Commit Graph

  • a911db9cba (abitset_and, abitset_and_cmp, abitset_and_or, abitset_and_or_cmp, abitset_andn, abitset_andn_cmp, abitset_andn_or, abitset_andn_or_cmp, abitset_bytes, abitset_copy, abitset_copy1, abitset_disjoint_p, abitset_empty_p, abitset_equal_p, abitset_init, abitset_list, abitset_list_reverse, abitset_not, abitset_ones, abitset_or, abitset_or_and, abitset_or_and_cmp, abitset_or_cmp, abitset_reset, abitset_set, abitset_size, abitset_small_list, abitset_subset_p, abitset_test, abitset_unused_clear, abitset_xor, abitset_xor_cmp, abitset_zero): Use function prototypes; this removes the need for declaring static functions simply to provide their prototypes. Paul Eggert 2002-10-16 06:15:02 +00:00
  • 1a9bf9b959 . Akim Demaille 2002-10-14 18:15:05 +00:00
  • ae26e1f02a Version 1.75. v1.75 Akim Demaille 2002-10-14 16:29:41 +00:00
  • d43baf71a7 * tests/Makefile.am (maintainer-check-posix): New. Akim Demaille 2002-10-14 15:09:15 +00:00
  • 7ebc83e34d * data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc member. Akim Demaille 2002-10-14 13:00:48 +00:00
  • b0a7a533c9 Regen. Akim Demaille 2002-10-14 12:49:24 +00:00
  • d90c934c05 Update. Akim Demaille 2002-10-14 12:32:48 +00:00
  • 05846dae07 * src/tables.c (table_ninf_remap): base -> tab. Reported by Matt Rosing. Akim Demaille 2002-10-14 11:38:21 +00:00
  • 447fbb178d * tests/action.at, tests/calc.at, tests/conflicts.at, tests/cxx-type.at, tests/headers.at, tests/input.at, tests/regression.at, tests/synclines.at, tests/torture.at: Say "bison -o foo.c foo.y", not "bison foo.y -o foo.c", so that the tests still work even if POSIXLY_CORRECT is set. * doc/bison.texinfo (Rpcalc Compile, Invocation): Likewise. Paul Eggert 2002-10-14 08:44:02 +00:00
  • b56471a689 Say "bison -o foo.c foo.y", not "bison foo.y -o foo.c", so that the commands still work even if POSIXLY_CORRECT is set. Paul Eggert 2002-10-14 08:43:36 +00:00
  • 1318e37d58 * data/c.m4 (b4_int_type): Use yysigned_char instead of signed char, for portability to K&R hosts. Fix typo: signed char is guaranteed only to 127, not to 128. * data/glr.c (yysigned_char): New type. * data/yacc.c (yysigned_char): Likewise. * tests/regression.at (Web2c Actions): signed char -> yysigned_char. Paul Eggert 2002-10-14 08:07:01 +00:00
  • 22a00a0cd2 (b4_int_type): Use yysigned_char instead of signed char, for portability to K&R hosts. Fix typo: signed char is guaranteed only to 127, not to 128. Paul Eggert 2002-10-14 08:06:33 +00:00
  • 768eb43fe8 (yysigned_char): New type. Paul Eggert 2002-10-14 08:06:06 +00:00
  • 7c78fa1885 (Web2c Actions): signed char -> yysigned_char. Paul Eggert 2002-10-14 08:05:20 +00:00
  • 5038f418c1 * data/yacc.c (yyparse): Rewrite to avoid "comparison is always true due to limited range of data type" warning from GCC. Paul Eggert 2002-10-14 06:55:10 +00:00
  • e5cfd9d8af (yyparse): Rewrite to avoid "comparison is always true due to limited range of data type" warning from GCC in synclines.at test. Paul Eggert 2002-10-14 06:54:41 +00:00
  • cc0f0794b8 * data/c.m4 (b4_token_defines): Protect against double-inclusion by wrapping enum yytokentype's definition inside #ifndef YYTOKENTYPE. This undoes a bug I introduced on 2002-10-12. Paul Eggert 2002-10-13 20:36:45 +00:00
  • 6b8c325436 (b4_token_defines): Protect against double-inclusion by wrapping enum yytokentype's definition inside #ifndef YYTOKENTYPE. This undoes a bug I introduced on 2002-10-12. Paul Eggert 2002-10-13 20:35:06 +00:00
  • 6fed0802ee * data/glr.c (yyglrShiftDefer, yyaddDeferredAction, yydoAction): Un yy- yyrhs to avoid the name clash with the global YYRHS. Akim Demaille 2002-10-13 19:40:30 +00:00
  • 32f0598d06 * Makefile.maint: Update from Autoconf 2.54. * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Remove, shipped with 2.54. Akim Demaille 2002-10-13 19:39:29 +00:00
  • 7ea9a33f3b * src/print.c (print_state): Separate the list of solved conflicts from the other items. * tests/conflicts.at (Resolved SR Conflicts): Adjust. Akim Demaille 2002-10-13 19:35:59 +00:00
  • ea99527d23 Let nondeterministic skeletons be usable with deterministic tables. With the patch, GAWK compiled by GCC without -O2 passes its test suite using a GLR parser driven by LALR tables. It fails with -O2 because `struct stat' gives two different answers on my machine: 88 (definition of an auto var) and later 96 (memset on this var). Hence the stack is badly corrumpted. The headers inclusion is to blame: if I move the awk.h inclusion before GLR's system header inclusion, the two struct stat have the same size. * src/tables.c (pack_table): Always create conflict_table. (token_actions): Always create conflict_list. * data/glr.c (YYFLAG): Remove, unused. Akim Demaille 2002-10-13 18:50:40 +00:00
  • f377f69fec * configure.ac (AC_GNU_SOURCE): Use it instead of hand written code. (O0FLAGS): New. (VALGRIND, GXX): New. * tests/atlocal.in (CFLAGS): Use O0FLAGS. * tests/bison.in: Run $PREBISON a pre-command. * tests/Makefile.am (maintainer-check, maintainer-check-valgrind) (maintainer-check-g++): New. * Makefile.am (maintainer-check): New. Akim Demaille 2002-10-13 18:49:44 +00:00
  • 2a1fe6ed6f * data/glr.c: Formatting changes. Tweak some trace messages to match yacc.c's. Akim Demaille 2002-10-13 14:25:55 +00:00
  • f50adbbdb0 GLR parsers sometimes raise parse errors instead of performing the default reduction. Reported by Charles-Henry de Boysson. * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Don't check the length of the traces when %glr. (_AT_CHECK_CALC_ERROR): Also skip ^Stack' lines, coming from GLR's traces. (AT_CHECK_CALC_LALR, AT_CHECK_CALC_GLR): New. Test GLR parsers. * data/glr.c (YYLEFTMOST_STATE): Fix its value. (yyltype): Remove the yy prefix from the member names. (yytable): Complete its comment. (yygetLRActions): Map error action number from YYTABLE from YYTABLE_NINF to 0. (yyisErrorAction): No longer compare YYACTION to YYPACT_NINF (which was a bug: it should have been YYTABEL_NINF, and yet it was not satisfying as we could compare an YYACTION computed from YYDEFACT to YYTABLE_NINF although they are unrelated): 0 is the only value for error actions. (yyreportParseError): In verbose parse error messages, don't issue error' in the list of expected tokens. * data/yacc.c (yyparse) <yybackup>: Rewrite the decoding of the next action to perform to match glr.c's decoding. (yytable): Complete its comment. Akim Demaille 2002-10-13 14:25:14 +00:00
  • 3b7d4eb2cd Regenerate. Paul Eggert 2002-10-13 09:09:49 +00:00
  • bcbad5b9a0 Fix problem reported by Henrik Grubbstroem in <http://mail.gnu.org/pipermail/bug-bison/2002-October/001670.html>: "nonterm: { $$ = 123; } { $$ = $1; };" was wrongly rejected, because the Bison parser reads the second action before reducing the first one. * src/scan-gram.l (rule_length): New static var. Use it to keep track of the rule length in the scanner, since we can't expect the parser to be in lock-step sync with the scanner. (handle_action_dollar, handle_action_at): Use this var. * tests/actions.at (Exotic Dollars): Test for the problem. Paul Eggert 2002-10-13 08:40:10 +00:00
  • 0ff67d71d7 (Exotic Dollars): Test for "nonterm: { $$ = 123; } { $$ = $1; };" bug. Paul Eggert 2002-10-13 08:39:31 +00:00
  • efcb44dd47 (rule_length): New static var. Use it to keep track of the rule length in the scanner, since we can't expect the parser to be in lock-step sync with the scanner. (handle_action_dollar, handle_action_at): Use this var. Paul Eggert 2002-10-13 08:38:39 +00:00
  • 1fe611e544 Attempt to fix SunOS 4.1.4 porting bug reported by Peter Klein in <http://mail.gnu.org/pipermail/bug-bison/2002-October/001674.html>. Paul Eggert 2002-10-13 06:00:24 +00:00
  • a6352deb14 (BISON_PREREQ_TIMEVAR): Check for <sys/time.h>. Include <sys/time.h> when checking for clock_t and struct tms. Use same include order as source. Paul Eggert 2002-10-13 05:59:40 +00:00
  • bd0ba42d72 Import GCC version as of today, then merge Bison's changes. Change "GCC" to "Bison" in copyright notice. Paul Eggert 2002-10-13 05:58:38 +00:00
  • 46b8b6ce90 Fix copyright and authorship notice to point to Bison, not GCC. Paul Eggert 2002-10-13 05:57:10 +00:00
  • fdabfd76d6 [! IN_GCC && HAVE_SYS_TIME_H]: Include <sys/time.h>. Update copyright date and clarify comments. (get_time) [IN_GCC]: Keep the GCC version for reference. Paul Eggert 2002-10-13 05:56:20 +00:00
  • ea9ed226e0 Import of GCC head 2002-10-11 Paul Eggert 2002-10-13 04:42:59 +00:00
  • 98194095fe * src/reader.c (grammar_current_rule_check): Don't worry about the default action if $$ is untyped. Prevents bogus warnings reported by Jim Gifford in <http://mail.gnu.org/pipermail/bug-bison/2002-October/001673.html>. Paul Eggert 2002-10-13 03:53:18 +00:00
  • 3f4c0f8017 (grammar_current_rule_check): Don't worry about the default action if $$ is untyped. Prevents bogus warnings reported by Jim Gifford in <http://mail.gnu.org/pipermail/bug-bison/2002-October/001673.html>. Paul Eggert 2002-10-13 03:52:53 +00:00
  • 14904b8965 * data/c.m4 (b4_token_enum): Do not define YYTOKENTYPE. * data/glr.c, data/lalr1.cc, data/yacc.c: Output token definitions before the first part of user declarations. Fixes compatibility problem reported by Jim Gifford for kbd in <http://mail.gnu.org/pipermail/bug-bison/2002-October/001672.html>. Paul Eggert 2002-10-12 23:21:00 +00:00
  • 17acead581 Output token definitions before the first part of user declarations. Paul Eggert 2002-10-12 23:20:23 +00:00
  • 095b9f05c3 (b4_token_enum): Do not define YYTOKENTYPE. Paul Eggert 2002-10-12 23:18:52 +00:00
  • 68449b3ad3 (Calling Convention): Fix strncmp typo. Paul Eggert 2002-10-11 21:19:27 +00:00
  • ff6dca1839 * data/yacc.c (yyreport_parse_error): Remove, putting its body into... (yyparse): here. This undoes some of the 2002-07-25 change. Compatibility problem reported by Ralf S. Engelschall with OSSP cfg <http://www.ossp.org/pkg/lib/cfg/>. Paul Eggert 2002-10-11 20:54:17 +00:00
  • df5aed8c11 (yyreport_parse_error): Remove, putting its body into... (yyparse): here. This undoes some of the 2002-07-25 change. Compatibility problem reported by Ralf S. Engelschall with OSSP cfg <http://www.ossp.org/pkg/lib/cfg/>. Paul Eggert 2002-10-11 20:53:39 +00:00
  • eb71459201 * tests/regression.at Characters Escapes): New. * src/scan-gram.l (SC_ESCAPED_CHARACTER): Accept ' in strings and characters. Reported by Jan Nieuwenhuizen. Akim Demaille 2002-10-11 11:23:19 +00:00
  • b7195100fd * po/id.po: New. Akim Demaille 2002-10-11 10:14:32 +00:00
  • f28a0f2dd1 Portability fixes for bitsets; this also avoids several GCC warnings. Paul Eggert 2002-10-10 07:38:40 +00:00
  • 303e6da265 Include bitset.h, not bbitset.h. Paul Eggert 2002-10-10 07:35:19 +00:00
  • ef5da92061 Include <stddef.h>, for offsetof. (lbitset_bytes): Adjust to new, unique names for structures. Paul Eggert 2002-10-10 07:33:59 +00:00
  • 3e0a8627e1 (ebitset_bytes): Adjust to new, unique names for structures. (enum_ebitset_find_mode): New type. (struct ebitset_struct, ebitset, struct bitset_struct, PFV): Remove. (ebitset_and, ebitset_andn, ebitset_or, ebitset_xor, ebitset_copy, ebitset_ones, ebitset_empty_p): New decls. Paul Eggert 2002-10-10 07:28:53 +00:00
  • fd5c1e824e enum -> enum_ Paul Eggert 2002-10-10 07:26:15 +00:00
  • f5e211a120 (bitsetv_alloc): Return a size that is aligned properly for vectors of objects. Do not assume that adding a header size to a multiple of a word size yields a value that is properly aligned for the whole union. Paul Eggert 2002-10-10 07:25:21 +00:00
  • 55e728eb31 (bitset_stats_bytes): Adjust to new, unique names for structures. Paul Eggert 2002-10-10 07:23:15 +00:00
  • 47c8386f83 (struct bitset_struct): Remove, replacing with.... (union bitset_union, struct abitset_struct, struct ebitset_struct, struct lbitset_struct, struct bitset_stats_struct): New types. All uses of struct bitset_struct changed to union bitset_union, etc. (bitset_next, bitset_prev, bitset_only_set_p): Declare. Paul Eggert 2002-10-10 07:20:24 +00:00
  • d5c559cde4 (bitset_op4_cmp): Supply prototype decls, to improve the type-checking that GCC can do. Paul Eggert 2002-10-10 07:18:47 +00:00
  • d9d83ef277 (enum_bitset_ops, enum_bitset_type): New types. All instances of parameters of type enum bitset_opts are now of type enum_bitset_opts, to conform to the C Standard, and similarly for enum_bitset_type. Paul Eggert 2002-10-10 07:15:56 +00:00
  • d4d399fcce Include <stddef.h>, for offsetof. Paul Eggert 2002-10-10 07:13:58 +00:00
  • 6fbe49845f * lib/bitset.h (bitset_reset): Do not assume that bitset_word is the same width as int. This reapplies a hunk of the 2002-08-12 patch <http://mail.gnu.org/pipermail/bison-patches/2002-August/001111.html>, which was inadvertently undone by the 2002-09-30 patch. * lib/lbitset.c (debug_lbitset): Do not assume that bitset_word is the same width as int. Paul Eggert 2002-10-07 19:58:00 +00:00
  • 7933f2b5dd Bison should now work on 64-bit hosts. Paul Eggert 2002-10-07 06:08:30 +00:00
  • 0f9cd74fdb (bitset_reset): Do not assume that bitset_word is the same width as int. This reapplies a hunk of the 2002-08-12 patch <http://mail.gnu.org/pipermail/bison-patches/2002-August/001111.html>, which was inadvertently undone by the 2002-09-30 patch. Paul Eggert 2002-10-07 05:43:35 +00:00
  • 09147be095 (debug_lbitset): Do not assume that bitset_word is the same width as int. Paul Eggert 2002-10-07 05:41:35 +00:00
  • 7a542f5d81 Bump to 1.50a. Paul Eggert 2002-10-07 04:51:50 +00:00
  • 420f93c83b Version 1.50. Paul Eggert 2002-10-05 06:25:50 +00:00
  • a337a5eb7e (AC_INIT): Version 1.50. Paul Eggert 2002-10-05 06:24:55 +00:00
  • 595878d7f5 Update and regenerate. Paul Eggert 2002-10-05 06:23:42 +00:00
  • 242a6e484e (reader): SHRT_MAX -> SYMBOL_NUMBER_MAX. Paul Eggert 2002-10-05 05:47:51 +00:00
  • 01eb033cf5 (SYMBOL_NUMBER_MAX): New macro. Paul Eggert 2002-10-05 05:47:14 +00:00
  • 1c303b00fe (GOTO_NUMBER_MAX): INT_MAX -> SHRT_MAX. Paul Eggert 2002-10-05 05:46:42 +00:00
  • f704e33362 (ITEM_NUMBER_MIN): MIN_MAX -> INT_MIN. Paul Eggert 2002-10-05 05:46:08 +00:00
  • 5beedd9b58 * lib/bbitset.h (BITSET_WINDEX_MAX): Redefine so that it cannot be interpreted as signed. * lib/ebitset.c (ebitset_list): Fix bug. From Michael Hayes. Paul Eggert 2002-10-05 05:02:30 +00:00
  • 9abb46d527 (AM_CFLAGS): Renamed from CFLAGS. (AM_YFLAGS): Renamed from YFLAGS. Paul Eggert 2002-10-05 04:54:54 +00:00
  • cd931d9b53 (AM_CFLAGS): Renamed from CFLAGS. Paul Eggert 2002-10-05 04:53:54 +00:00
  • a4bf0390a0 (Braces parsing): Use grep, not fgrep, as POSIX 1003.1-2001 has removed fgrep. Paul Eggert 2002-10-05 04:50:45 +00:00
  • 72d2299ca0 Minor spelling, grammar, and white space fixes. Paul Eggert 2002-10-05 04:45:45 +00:00
  • ff68026d4f More fixes for 64-bit hosts and large bitsets. Paul Eggert 2002-10-02 08:03:54 +00:00
  • bf5c381136 (lbitset_bytes): Use size_t, not unsigned int, to count bytes. Paul Eggert 2002-10-02 08:02:06 +00:00
  • 5c319390d7 (lbitset_size, lbitset_list, lbitset_list_merge): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 08:00:19 +00:00
  • effda851f6 (ebitset_bytes): Use size_t, not unsigned int, to count bytes. Paul Eggert 2002-10-02 07:58:11 +00:00
  • 52f8da14ea (ebitset_size, ebitset_list, ebitset_list_reverse): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 07:57:24 +00:00
  • eb6172cd1e (bitsetv_alloc, bitsetv_create): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 07:55:44 +00:00
  • 32e218da16 (bitsetv_alloc, bitsetv_create, bitsetv_free, bitsetv_zero, bitsetv_ones, bitsetv_transitive_closure, bitsetv_reflexive_transitive_closure): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 07:54:52 +00:00
  • 4fc71aa390 (bitsetv_matrix_dump): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Use proper printf formats for widths of integer types. Paul Eggert 2002-10-02 07:52:50 +00:00
  • c9de3b4080 (bitset_stats_bytes): Use size_t, not unsigned int, to count bytes. Paul Eggert 2002-10-02 07:50:39 +00:00
  • 2d382ea853 (bitset_stats_size, bitset_stats_list, bitset_stats_list_reverse, bitset_stats_size, bitset_stats_count, bitset_stats_list, bitset_stat_list_reverse): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 07:49:35 +00:00
  • 808a5918e6 (bitset_iterator.num, bitset_iterator.i, bitset_first, bitset_last): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 07:47:03 +00:00
  • d32fe6f64f (bitset_bytes, bitset_alloc, bitset_obstack_alloc): Use size_t, not unsigned int, to count bytes. Paul Eggert 2002-10-02 07:45:37 +00:00
  • f6ebdb3174 (struct bitset_vtable.size, struct bitset_vtable.count, struct bitset_vtable.list, struct bitset_vtable.list_reverse, bitset_count_, bitset_next, bitset_prev, bitset_first, bitset_last, bitset_count_): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 07:44:07 +00:00
  • 8207d52123 (abitset_bytes): Use size_t, not unsigned int, to count bytes. Paul Eggert 2002-10-02 07:42:26 +00:00
  • 62a34c3eb6 (struct abitset_struct.n_bits, abitset_small_list, abitset_size, abitset_list, abitset_list_reverse, abitset_list): Use bitset_bindex, not int or unsigned int or size_t, to count bits. Paul Eggert 2002-10-02 07:41:04 +00:00
  • 6aa452a643 * lib/abitset.c, lib/bbitset.h, lib/bitset.c, lib/bitset.h, * lib/bitset_stats.c, lib/bitsetv.c, lib/ebitset.c, lib/lbitset.c: Updates from Michael Hayes. Akim Demaille 2002-09-30 12:50:49 +00:00
  • 719010ad2b Regen. Akim Demaille 2002-09-30 12:43:14 +00:00
  • 927f781708 * configure.ac: Update AC_OUTPUT and AM_CONFIG_HEADER invocations. * tests/cxx-type.at (declarator): Don't rely on NDEBUG being not defined. Akim Demaille 2002-09-30 12:27:31 +00:00
  • e88dbdbf44 Fixes from Jim Meyering. Akim Demaille 2002-09-30 08:40:51 +00:00
  • b778eff5f9 Regen. Akim Demaille 2002-09-30 08:38:50 +00:00
  • 805e703284 Bump to 1.49d. Akim Demaille 2002-09-27 15:40:39 +00:00
  • 464197c3a7 . Akim Demaille 2002-09-27 15:19:32 +00:00
  • 35f6ddeafb Regen. v1.49c Akim Demaille 2002-09-27 14:55:20 +00:00
  • a75649b395 Remove. Akim Demaille 2002-09-27 14:50:35 +00:00
  • c0cac722f7 Update. Akim Demaille 2002-09-27 14:50:18 +00:00
  • 9738f41e3f Version 1.49c. Akim Demaille 2002-09-27 14:40:23 +00:00
  • a5c75d7fc6 * configure.ac (AM_INIT_AUTOMAKE): We _need_ 1.7. (Because of AC_LIBSOURCE). Akim Demaille 2002-09-27 13:24:19 +00:00