Commit Graph
100 Commits
Author SHA1 Message Date
Paul Eggert 329d23c5d6 Regenerate. 2004-05-27 07:40:12 +00:00
Paul Eggert 62cb8a9920 * src/parse-gram.y (lloc_default): Rewrite to avoid compiler bug.
* configure.ac (AC_PREREQ): Bump to 2.58.
2004-05-27 07:38:17 +00:00
Paul Eggert caa52c10c5 * configure.ac (AM_GNU_GETTEXT_VERSION): Lower it from 0.14.1 to 0.11.5.
* bootstrap: Remove gettext version checking.
2004-05-26 19:25:21 +00:00
Paul Eggert 5c9be03d6d Also mention that %union can depend on prerequisite types. 2004-05-26 17:45:45 +00:00
Paul Eggert 2cef3017cd * README: Mention GNU m4 1.4 bugs and Akim's patched version.
* README-alpha: Don't tell people not to package this.
2004-05-26 07:20:06 +00:00
Paul Eggert b9c85d5cef * bootstrap: Don't assume $(...) works; use ... instead. 2004-05-26 06:46:02 +00:00
Paul Eggert 4bfd5e4e53 * doc/bison.texinfo (Decl Summary, Bison Options): Clarify what's put into
the -d output file.
2004-05-25 19:09:01 +00:00
Paul Eggert 6712933e0f Undo change made earlier today: it caused autopoint to not bring
in ABOUT-NLS.  Ouch.  Instead, substitute our own diagnostic for
autopoint's.
2004-05-25 05:43:14 +00:00
Paul Eggert 6a36ff9495 The gettext version checking is causing more trouble than it's curing;
remove it.
2004-05-24 20:08:54 +00:00
Paul Eggert 209ea708c4 Ensure that the C++ compiler used for testing actually works on a
simple test program; if not, skip the C++-related tests.
2004-05-24 06:58:02 +00:00
Paul Eggert 383e69dc79 Output yylloc macro defn in glr.c even if locations are not being generated. 2004-05-21 22:23:04 +00:00
Paul Eggert 41ca25499e * configure.ac (AC_INIT): Update to 1.875e. 2004-05-21 22:12:21 +00:00
Paul Eggert e476c87d93 Version 1.875d. 2004-05-21 21:03:41 +00:00
Paul Eggert 233a88ad11 Use size_t (not unsigned int) for hashes, since the gnulib hash module
now uses size_t.
2004-05-07 07:35:10 +00:00
Paul Eggert 9668e2be96 Don't DEFUN AM_INTL_SUBDIR twice. 2004-05-03 23:10:25 +00:00
Paul Eggert a76ca26309 Regenerate. 2004-05-03 07:58:53 +00:00
Paul Eggert 12ffdd2835 * src/parse-gram.y: Put copyright notice inside %{ %} so it
gets copied to the output file.
2004-05-03 07:57:06 +00:00
Paul Eggert 4febdd9667 Reject unescaped newlines in strings. 2004-05-03 07:42:52 +00:00
Paul Eggert e23d0dd71e Remove more 'intl'-related files while bootstrapping. 2004-05-03 07:36:12 +00:00
Paul Eggert 1f65350a16 Get files from the gnulib and po repositories, instead of relying
on them being in our CVS.  Upgrade to latest versions of gnulib and Automake.
2004-04-28 20:00:56 +00:00
Paul Eggert f97de3247f (GZIP_ENV): Don't use --rsyncable if gzip doesn't
support it.  (The latest stable gzip doesn't.)
2004-04-28 19:52:27 +00:00
Paul Eggert 6e26ca8c27 Remove more K&R C support. 2004-04-28 06:52:51 +00:00
Paul Eggert b970803c91 Rewrite so that subpipe.h can stand alone. Assume C89 or better. 2004-04-28 06:30:05 +00:00
Paul Eggert 126e375187 Remove PARAMS. 2004-04-28 06:22:58 +00:00
Paul Eggert 7d7d666369 Remove PARAMS and upgrade to latest obstack.h. 2004-04-28 06:15:34 +00:00
Paul Eggert ca6f187f64 (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Don't
declare yyerror when using lalr.cc, as GCC 3.4.0 warns about the
unused declaration.
2004-04-28 06:06:31 +00:00
Paul Eggert 0f53f2226d (%union synch line): Put a dummy member in
the union, because empty unions aren't allowed in C.
Caught by GCC 3.4.0.
2004-04-28 06:03:54 +00:00
Paul Eggert 45d5982f04 (Parser::stos_) [! YYDEBUG]: Define even in this
case, as stos_ is now used by destructors due to the 2004-02-09
change.
2004-04-28 05:48:39 +00:00
Paul Eggert 1f916a78e6 Update copyright to 2004. 2004-04-13 17:43:15 +00:00
Paul Eggert 4f16766c00 * src/conflicts.c (conflicts_print): Correct format string typo:
use `%%' to produce literal `%'.  (trivial change)
2004-04-13 17:42:59 +00:00
Paul Eggert 584bbcd839 Regenerate. 2004-03-31 00:41:30 +00:00
Paul Eggert 779e7ceb93 Use 'short int' rather than 'short', and similarly for 'long', 'unsigned', etc. 2004-03-31 00:37:21 +00:00
Paul Eggert 2ae64eed27 (version): Update copyright year to 2004. 2004-03-30 08:11:20 +00:00
Paul Eggert 1452af69b4 Add support for hex token numbers. 2004-03-08 20:49:34 +00:00
Paul Eggert 006d217ddd (AT_COMPILE, AT_COMPILE_CXX): Ignore stdout from compilers. 2004-02-25 21:13:00 +00:00
Paul Eggert 6a60c4cf45 Add a marker for when 1.875c was published. 2004-02-25 20:23:33 +00:00
Paul Eggert 0b31edd3e1 Regenerate. 2004-02-02 22:52:54 +00:00
Paul Eggert dd0e0635ec Replace INCLUDES with AM_CPPFLAGS, fixing a bug in src/Makefile.am
reported by Paul Hilfinger.
2004-02-02 22:36:49 +00:00
Paul Eggert d0d5aa6425 (yytokenName): Bullet-proof against YYEMPTY token.
(yyreportSyntaxError): Handle case where lookahead token is
YYEMPTY.
2004-02-02 22:35:53 +00:00
Paul Eggert eda429346a a -> an (minor typo fix) 2003-10-21 17:42:48 +00:00
Paul Eggert 6a5ecb38fc Don't run 'testsuite --clean' if testsuite doesn't exist. 2003-10-07 23:34:20 +00:00
Paul Eggert 92ac370570 Do not allow NUL bytes in string literals or character constants. 2003-10-07 07:32:57 +00:00
Paul Eggert 91d2c560a8 Don't document %no-default-prec for now. 2003-10-05 07:34:36 +00:00
Paul Eggert 0cc3da3a4e In GLR grammars, $N and @N now yield non-modifiable lvalues. 2003-10-05 06:46:53 +00:00
Paul Eggert 66ef8b9d65 Regenerate. 2003-10-01 22:00:13 +00:00
Paul Eggert 22fccf958f Use "%no-default-prec" instead of "%default-prec 0". 2003-10-01 21:33:24 +00:00
Paul Eggert 42db4e2b74 Describe %default-prec. 2003-09-30 20:20:25 +00:00
Paul Eggert 39a06c251a Add %default-prec. 2003-09-30 20:11:29 +00:00
Paul Eggert 7f41b88821 Include local.at, not input.at, fixing a typo in the 2003-08-25 patch. 2003-09-30 16:45:13 +00:00
Paul Eggert 327b5b5675 Rework glr.c slightly to avoid gcc -Wtraditional warnings. 2003-08-04 19:09:58 +00:00
Paul Eggert 7b98f503de (yyuserMerge): Return void, not YYSTYPE.
The returned value is now stored in *YY0.  All callers changed.
2003-08-04 19:09:15 +00:00
Paul Eggert 16caa4f431 (merge_output): Adjust to the change to ../data/glr.c. 2003-08-04 19:08:38 +00:00
Paul Eggert 0051e3edb0 * data/glr.c (YYASSERT): New macro. 2003-07-26 14:14:15 +00:00
Paul Eggert 64c4fd521a (YYASSERT): New macro.
(yyfillin, yydoAction, yyglrReduce, yysplitStack,
yyresolveStates, yyprocessOneStack):
Use `YYASSERT (FOO);' rather than `if (! (FOO)) abort ();'.
2003-07-26 14:12:28 +00:00
Paul Eggert 5b620e069d * data/glr.c (yyglrReduce): Don't use C89 string concatenation. 2003-07-25 07:42:57 +00:00
Paul Eggert dfc8a22010 (yyglrReduce): Don't use C89 string concatenation. 2003-07-25 07:42:25 +00:00
Paul Eggert 137437c6db Let the user specify how to allocate and free memory. 2003-07-25 07:12:11 +00:00
Paul Eggert 2779e38386 (YYFREE, YYMALLOC): New macros.
All uses of free, malloc changed to use these macros.
2003-07-25 07:11:42 +00:00
Paul Eggert a525b5687d (YYFREE, YYMALLOC, YYREALLOC): New macros.
All uses of free, malloc, realloc changed to use these macros,
and unnecessary casts removed.
2003-07-25 07:10:14 +00:00
Paul Eggert b81a6e01dc (operator<<(std::ostream&, const Position&)):
use s.empty() rather than s == "" to test for empty string; see
<http://mail.gnu.org/archive/html/bison-patches/2003-07/msg00003.html>
(trivial change)
2003-07-07 03:46:28 +00:00
Paul Eggert ddb85ca59e use s.empty() rather than s == "" to test for empty string 2003-07-07 03:45:07 +00:00
Paul Eggert 4dcf140b13 Log 06-17 minor change to lib/libiberty.h that I forgot to log earlier; sorry! 2003-06-30 17:41:35 +00:00
Paul Eggert 29103e06b5 Omit the (1.875b) date from the 1.875c line. 2003-06-30 17:37:40 +00:00
Paul Eggert 0ae99356d5 * data/glr.c (YYLLOC_DEFAULT): Parenthesize arguments as needed,
and return properly parenthesized result.
* data/lalar1.cc (YYLLOC_DEFAULT): Likewise.
* data/yacc.c (YYLLOC_DEFAULT): Likewise.
Remove unnecessary parentheses from uses.
* doc/bison.texinfo (Location Default Action): Describe the
conventions for parentheses.
2003-06-20 22:52:12 +00:00
Paul Eggert 81fd08cad0 * data/glr.c (yyremoveDeletes, yy_reduce_print, yyglrReduce,
yyreportTree): Do not assume that size_t is the same width as int,
when printing sizes.  Print sizes using an unsigned format.
2003-06-19 08:45:55 +00:00
Paul Eggert 08fc98e544 (yyremoveDeletes, yy_reduce_print, yyglrReduce, yyreportTree): Do not
assume that size_t is the same width as int, when printing sizes.
Print sizes using an unsigned format.  Problem reported by Frank
Heckenbach in
<http://mail.gnu.org/archive/html/bison-patches/2003-06/msg00035.html>.
2003-06-19 08:45:16 +00:00
Paul Eggert cd05d13c9e Port to Forte Developer 7 C compiler. 2003-06-19 07:40:16 +00:00
Paul Eggert 5cc16ecc96 Port to Forte Developer 7 C compiler.
(struct YYLTYPE): If locations are not being used, declare a single
dummy member, as empty structs do not conform to the C standard.
(YYERROR, YYBACKUP): Do not use "do { ...; return foo; } while (0)";
the Forte Developer 7 C compiler complains that end-of-loop
code is not reached.
2003-06-19 07:38:39 +00:00
Paul Eggert 7b49187432 (AC_INIT): Bump version number to 1.875c. 2003-06-17 18:28:58 +00:00
Paul Eggert 226dcab028 Regenerate, to have proper Report-Msgid-Bugs-To: 2003-06-17 18:26:57 +00:00
Paul Eggert 8a2757b9e2 Include <stddef.h>, for size_t when libiberty.h doesn't define size_t. 2003-06-17 18:22:01 +00:00
Paul Eggert e6ce73154c (PARAMS): Spell argument as Args, not as X, to avoid warnings from
picky compilers about redefinition of PARAMS.
2003-06-17 08:51:57 +00:00
Paul Eggert 465b4444e8 Regenerate. 2003-06-17 08:34:53 +00:00
Paul Eggert f8e8262e70 Minor textual fixes. 2003-06-17 08:33:36 +00:00
Paul Eggert 7a5a3475cf (MSGID_BUGS_ADDRESS): New macro, for gettext 0.12.1. 2003-06-17 08:23:04 +00:00
Paul Eggert 7cc661648b Upgrade to gettext 0.12.1 version. 2003-06-17 08:19:02 +00:00
Paul Eggert acfafa9d91 (EXTRA_DIST): Add isc-posix.m4. 2003-06-17 08:17:48 +00:00
Paul Eggert 98bb5428c8 (vbitset_copy): Now static, to avoid a GCC warning. 2003-06-17 08:16:33 +00:00
Paul Eggert 8dd76bee16 1.875b changes 2003-06-17 07:54:28 +00:00
Paul Eggert 3473d0f899 Document 1.875b. 2003-06-17 07:52:27 +00:00
Paul Eggert ec622ab417 Add nls.m4, po.m4. 2003-06-17 07:49:33 +00:00
Paul Eggert 3647fcc8af Add stdbool.h. 2003-06-17 07:49:01 +00:00
Paul Eggert cbb0d2d116 (EXTRA_DIST): Add the following files, which
shouldn't be needed according to the gettext 0.12.1 documentation
but which seem to be needed anyway: codeset.m4 glibc21.m4
intdiv0.m4 inttypes-pri.m4 inttypes.m4 inttypes_h.m4
lcmessage.m4 nls.m4 po.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4.
2003-06-17 07:46:05 +00:00
Paul Eggert 88ab880d90 (vbitset_resize, vbitset_ones, vbitset_zero,
vbitset_empty_p, vbitset_copy1, vbitset_not, vbitset_equal_p,
vbitset_subset_p, vbitset_disjoint_p, vbitset_and, vbitset_and_cmp,
vbitset_andn, vbitset_andn_cmp, vbitset_or, vbitset_or_cmp,
vbitset_xor, vbitset_xor_cmp, vbitset_and_or, vbitset_and_or_cmp,
vbitset_andn_or, vbitset_andn_or_cmp, vbitset_or_and,
vbitset_or_and_cmp, vbitset_copy): Use prototypes, not old-style definitions.
2003-06-17 07:43:38 +00:00
Paul Eggert 6f2d9f5854 Do not include config.h; that's the includer's job.
Do not include <stdlib.h>.
(PARAMS): Define unconditionally for C89.
(ATTRIBUTE_NORETURN): Remove.
(ATTRIBUTE_UNUSED): Define unconditionally.
2003-06-17 07:25:48 +00:00
Paul Eggert 28ee846711 Upgrade to 2003-06-08 libbitset, then:
lbitset_unused_clear): Use prototypes, not old-style definitions.
2003-06-17 07:24:40 +00:00
Paul Eggert 75d0ea41fa Upgrade to 2003-06-08 libbitset, then:
(ebitset_resize, ebitset_unused_clear):
Use prototypes, not old-style definitions.
2003-06-17 07:23:46 +00:00
Paul Eggert 6a75a421f0 Upgrade to 2003-06-08 libbitset, except continue to include gettext.h
unconditionally, as per recent gettext manual's suggestion.
2003-06-17 07:22:58 +00:00
Paul Eggert fa8db4baa7 Upgrade to 2003-06-08 libbitset; then:
(bitset_compatible_p): Indent as per GNU standard.
Don't use 'index' in comments, as it's a builtin fn on some hosts.
2003-06-17 07:21:59 +00:00
Paul Eggert 3f764fe576 Upgrade to 2003-06-08 libbitset. 2003-06-17 07:21:03 +00:00
Paul Eggert 99c32453d0 Upgrade to 2003-06-08 libbitset; then:
Do not include config.h; that's the includer's job.
Do not include <sys/types.h>; shouldn't be needed on a C89 host.
2003-06-17 07:19:50 +00:00
Paul Eggert 94a23f969c (bitsets_sources): Add vbitset.c, vbitset.h. 2003-06-17 07:16:05 +00:00
Paul Eggert ac08ca6c30 Rename stdbool.h.in to stdbool_.h, to follow gnulib. 2003-06-17 06:55:55 +00:00
Paul Eggert e64fec0a0f (How Can I Reset the Parser): Renamed from `How Can I Reset
@code{yyparse}', since texinfo does not allow arbitrary @ in node
names.
2003-06-17 05:15:49 +00:00
Paul Eggert e2527c97f9 * configure.ac (AM_STDBOOL_H): Invoke this instead of AC_HEADER_STDBOOL.
(AM_GNU_GETTEXT): Put brackets around args, as latest manual suggests.
(AM_GNU_GETTEXT_VERSION): Update to 0.12.1.
2003-06-16 19:45:45 +00:00
Paul Eggert 1930ac784a (EXTRA_DIST): Add stdbool_.h.
(MOSTLYCLEANFILES): New var.
($(libbison_a_OBJECTS)): Depend on $(STDBOOL_H).
(stdbool.h): New rule.
2003-06-16 19:41:37 +00:00
Paul Eggert e9665d1605 Upgrade to today's gnulib. 2003-06-16 19:41:07 +00:00
Paul Eggert 671881d12d Minor white space issues, e.g. trailing white space at end of line. 2003-06-16 19:17:38 +00:00
Paul Eggert 907e3bc851 (AT_CHECK_CALC): New option EXPECTED-TO-FAIL.
(AT_CHECK_CALC_LALR1_CC): Use it, since the C++ LALR parser fails
the tests right now.
2003-06-16 18:42:49 +00:00
Paul Eggert b8a204c09b (_AT_TEST_GLR_CXXTYPES): Ensure yylex and
yyerror are declared before use; C99 requires this.
2003-06-16 18:37:55 +00:00