[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: %require exits 63
From: |
Akim Demaille |
Subject: |
FYI: %require exits 63 |
Date: |
Wed, 12 Oct 2005 12:14:02 +0200 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* src/parse-gram.y (version_check): Exit 63 to please missing
(stands for "version mismatch).
* tests/input.at, doc/bison.texinfo: Adjust.
Index: doc/bison.texinfo
===================================================================
RCS file: /cvsroot/bison/bison/doc/bison.texinfo,v
retrieving revision 1.163
diff -u -u -r1.163 bison.texinfo
--- doc/bison.texinfo 2 Oct 2005 18:49:15 -0000 1.163
+++ doc/bison.texinfo 12 Oct 2005 10:11:47 -0000
@@ -3569,7 +3569,8 @@
@findex %require
You may require the minimum version of Bison to process the grammar. If
-the requirement is not met, @command{bison} exits with an error.
+the requirement is not met, @command{bison} exits with an error (exit
+status 63).
@example
%require "@var{version}"
@@ -4173,9 +4174,8 @@
@end deffn
@deffn {Directive} %require "@var{version}"
-Specify that version @var{version} or higher of Bison required for the
-grammar.
address@hidden Decl, , Require a Version of Bison}.
+Require version @var{version} or higher of Bison. @xref{Require Decl, ,
+Require a Version of Bison}.
@end deffn
@deffn {Directive} %token-table
@@ -7993,9 +7993,8 @@
@end deffn
@deffn {Directive} %require "@var{version}"
-Specify that version @var{version} or higher of Bison required for the
-grammar.
address@hidden Decl, , Require a Version of Bison}.
+Require version @var{version} or higher of Bison. @xref{Require Decl, ,
+Require a Version of Bison}.
@end deffn
@deffn {Directive} %right
Index: src/parse-gram.y
===================================================================
RCS file: /cvsroot/bison/bison/src/parse-gram.y,v
retrieving revision 1.61
diff -u -u -r1.61 parse-gram.y
--- src/parse-gram.y 5 Oct 2005 06:39:08 -0000 1.61
+++ src/parse-gram.y 12 Oct 2005 10:11:47 -0000
@@ -539,8 +539,11 @@
version_check (location const *loc, char const *version)
{
if (strverscmp (version, PACKAGE_VERSION) > 0)
- complain_at (*loc, "require bison %s, but have %s",
- version, PACKAGE_VERSION);
+ {
+ complain_at (*loc, "require bison %s, but have %s",
+ version, PACKAGE_VERSION);
+ exit (63);
+ }
}
static void
Index: tests/input.at
===================================================================
RCS file: /cvsroot/bison/bison/tests/input.at,v
retrieving revision 1.35
diff -u -u -r1.35 input.at
--- tests/input.at 2 Oct 2005 18:49:15 -0000 1.35
+++ tests/input.at 12 Oct 2005 10:11:47 -0000
@@ -317,4 +317,4 @@
AT_CHECK_REQUIRE(1.0, 0)
AT_CHECK_REQUIRE(AT_PACKAGE_VERSION, 0)
## FIXME: Some day augment this version number.
-AT_CHECK_REQUIRE(100.0, 1)
+AT_CHECK_REQUIRE(100.0, 63)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: %require exits 63,
Akim Demaille <=