]> git.saurik.com Git - bison.git/blob - ChangeLog
(errno): Remove declaration, as we are now assuming C89 or better, and
[bison.git] / ChangeLog
1 2002-10-30 Paul Eggert <eggert@twinsun.com>
2
3 * lib/bitset_stats.c (bitset_stats_read, bitset_stats_write):
4 Check for close failures.
5 * src/files.h (xfclose): Return void, not int, since it always
6 returned zero.
7 * src/files.c (xfclose): Likewise. Report I/O error if ferror
8 indicates one.
9 * src/output.c (output_skeleton): Use xfclose rather than fclose
10 and ferror. xfclose now checks ferror.
11
12 * data/glr.c (YYLEFTMOST_STATE): Remove.
13 (yyreportTree): Use a stack-based leftmost state. This avoids
14 our continuing battles with bogus warnings about initializers.
15
16 2002-10-30 Akim Demaille <akim@epita.fr>
17
18 * src/system.h: Don't use #ifdef/#ifndef on HAVE_ values, only
19 #if.
20
21 2002-10-24 Paul Eggert <eggert@twinsun.com>
22
23 Version 1.75a.
24
25 * tests/calc.at (_AT_DATA_CALC_Y): Remove unused strcat declaration.
26 * tests/cxx-type.at (_AT_TEST_GLR_CALC): Include stdlib.h, since
27 we use malloc. Don't assume 'A' through 'Z' are contiguous.
28 Don't assume strdup exists; POSIX says its an XSI extension.
29 Check for buffer overflow on input.
30
31 2002-10-24 Akim Demaille <akim@epita.fr>
32
33 * src/output.c (output_skeleton): Don't disable M4sugar comments
34 too soon: it results in comments being expanded.
35 * data/yacc.c, data/glr.c, data/lalr1.cc: Do it right before the
36 first output.
37
38 2002-10-24 Akim Demaille <akim@epita.fr>
39
40 * data/yacc.c (m4_int_type): New.
41 * data/c.m4 (m4_int_type): Don't use yysigned_char, but `signed
42 char' as only yacc.c wants K&R portability.
43 * data/glr.c (yysigned_char): Remove.
44 * data/lalr1.cc: Rename the trailing b4_name as b4_parser_class_name.
45 Reported by Quoc Peyrot.
46
47 2002-10-23 Paul Eggert <eggert@twinsun.com>
48
49 * src/main.c (main): With --trace=time, report times even if a
50 non-fatal error occurs. Formerly, the times were reported in some
51 such cases but not in others.
52 * src/reader.c (reader): Just return if a complaint has been issued,
53 instead of exiting, so that 'main' can report times.
54
55 2002-10-22 Akim Demaille <akim@epita.fr>
56
57 * src/system.h: Include sys/types.
58 Reported by Bert Deknuydt.
59
60 2002-10-23 Paul Eggert <eggert@twinsun.com>
61
62 * configure.ac (AC_PROG_LEX): Use instead of AM_PROG_LEX.
63 Suggested by Art Haas.
64
65 2002-10-22 Paul Eggert <eggert@twinsun.com>
66
67 * src/complain.c (exit) [! (STDC_HEADERS || _LIBC)]: Remove exit
68 decl; not needed any more.
69 * src/main.c (main): Use return to exit, undoing yesterday's change.
70 The last OS that we could find where this wouldn't work is
71 SunOS 3.5, and that's too old to worry about now.
72
73 * data/glr.c (struct yyltype): Define members even when not
74 doing locations. This is more consistent with yacc.c, and it
75 works around the following bug reports:
76 http://mail.gnu.org/pipermail/bug-bison/2002-October/001764.html
77 http://mail.gnu.org/pipermail/bug-bison/2002-October/001769.html
78 and I hope it also fixes this bug report:
79 http://mail.gnu.org/pipermail/bug-bison/2002-October/001748.html
80
81 * doc/bison.texinfo: Minor spelling and typographical fixes. Use
82 @acronym consistently. Standardize on "Yacc" instead of "YACC",
83 "Algol" instead of "ALGOL". Give a bit more history about BNF.
84
85 2002-10-22 Akim Demaille <akim@epita.fr>
86
87 * data/README: New.
88
89 2002-10-21 Paul Eggert <eggert@twinsun.com>
90
91 Be consistent about 'bool'; the old code used an enum in one
92 module and an int in another, and this violates the C standard.
93 * m4/stdbool.m4: New file, from coreutils 4.5.3.
94 * configure.ac (AC_HEADER_STDBOOL): Add.
95 * m4/Makefile.am (EXTRA_DIST): Add stdbool.m4.
96 * src/muscle_tab.c (hash_compare_muscles): (a ? FALSE : TRUE) -> (! a)
97 * src/symtab.c (hash_compare_symbol_t): Likewise.
98 * src/system.h (bool, false, true): Use a definition consistent
99 with ../lib/hash.c. All uses changed.
100
101 * src/complain.c (warning_issued): Renamed from warn_message_count,
102 so that we needn't worry about integer overflow (!).
103 Now of type bool. All uses changed.
104 (complaint_issued): Renamed from complain_message_count; likewise.
105
106 * src/main.c (main): Use exit to exit with failure.
107
108 * src/complain.c (fatal_at, fatal): Use EXIT_FAILURE and EXIT_SUCCESS
109 rather than 1 and 0.
110 * src/main.c (main): Likewise.
111 * src/getargs.c (getargs): Likewise.
112 * src/reader.c (reader): Likewise.
113
114 * src/getarg.c (getargs): Remove duplicate code for
115 "Try `bison --help'".
116
117 * src/files.c (xfopen, xfclose): Use EXIT_FAILURE rather than 2.
118 What was that "2" for?
119
120 * src/complain.h (fatal, fatal_at): Add __attribute__((__noreturn__)).
121 * src/getargs.c (usage): Likewise.
122
123 * src/getargs.c (getargs): When there are too few operands, report
124 the last one. When there are too many, report the first extra
125 one. This is how diffutils does it.
126
127 2002-10-20 Paul Eggert <eggert@twinsun.com>
128
129 Remove K&R vestiges.
130 * configure.ac (AC_C_CONST, AM_C_PROTOTYPES): Remove.
131 * src/complain.c (VA_START): Remove. Assume prototypes.
132 (vfprintf) [! (HAVE_VPRINTF || defined vfprintf)]: New macro.
133 (private_strerror, warn_at, warn, complain_at, complain, fatal_at,
134 fatal): Assume prototypes.
135 * src/complain.h: Assume prototypes.
136 * src/system.h (PARAMS): Remove.
137 Include <limits.h> unconditionally, since it's guaranteeed even
138 for a freestanding C89 compiler.
139 (SHRT_MIN, SHRT_MAX): Remove, since C89 guarantees them.
140 * src/vmsgetargs.c (getargs, cli_present, cli_get_value): Prototype.
141
142 2002-10-20 Akim Demaille <akim@epita.fr>
143
144 * src/muscle_tab.c (muscle_grow): Remove trailing debugging code.
145 * data/glr.c (YY_USER_FORMALS, YY_USER_ARGS): New.
146 (yyuserAction, yydoAction, yyglrReduce, yyresolveValue)
147 (yyresolveStates, yyresolveAction, yyresolveStack)
148 (yyprocessOneStack): Use them.
149 (yy_reduce_print): New.
150 * tests/calc.at (_AT_DATA_CALC_Y): Exercise %parse-param.
151
152 2002-10-20 Akim Demaille <akim@epita.fr>
153
154 * data/c.m4 (b4_c_ansi_args): Recognize functions with no
155 arguments and output `void'.
156 (b4_c_function): Rename as...
157 (b4_c_function_def): this.
158 (b4_c_function_decl, b4_c_ansi_function_def)
159 (b4_c_ansi_function_decl): New.
160 Change the interpretation of the arguments: before `int, foo', now
161 `int foo, foo'.
162 * data/yacc.c (yyparse): Prototype and define thanks to these.
163 Adjust b4_c_function_def uses.
164 * data/glr.c (yyparse): Likewise, but ANSI only.
165
166 2002-10-20 Akim Demaille <akim@epita.fr>
167
168 * src/output.c (prepare): Move the definition of `tokens_number',
169 `nterms_number', `undef_token_number', `user_token_number_max'
170 to...
171 (prepare_tokens): Here.
172 (prepare_tokens): Rename as...
173 (prepare_symbols): this.
174 (prepare): Move the definition of `rules_number' to...
175 (prepare_rules): here.
176 (prepare): Move the definition of `last', `final_state_number',
177 `states_number' to...
178 (prepare_states): here.
179 * data/yacc.c, data/lalr1.cc, data/glr.c: Normalize `>' into `<'.
180
181 2002-10-20 Akim Demaille <akim@epita.fr>
182
183 * src/tables.h, src/tables.c, src/output.c: Comment changes.
184
185 2002-10-20 Akim Demaille <akim@epita.fr>
186
187 * data/yacc.c, data/yacc.c (b4_location_if, b4_pure_if): Move to...
188 * data/c.m4: here.
189
190 2002-10-20 Akim Demaille <akim@epita.fr>
191
192 * src/output.c (prepare): Use MUSCLE_INSERT_STRING.
193 * src/muscle_tab.c (muscle_pair_list_grow): Rename `val as
194 `pair'.
195 (muscle_init): Move the `b4_ltype', `b4_maxdepth', `b4_initdepth',
196 `name' to...
197 * data/glr.c, data/lalr1.cc, data/yacc.c (b4_location_type)
198 (b4_stack_depth_init, b4_stack_depth_max, b4_parser_class_name):
199 These.
200
201 2002-10-19 Paul Eggert <eggert@twinsun.com>
202
203 Do not create a temporary file, as that involves security and
204 cleanup headaches. Instead, use a pair of pipes.
205 Derived from a suggestion by Florian Krohm.
206 * lib/subpipe.c, lib/subpipe.h, m4/subpipe.m4: New files.
207 * lib/mkstemp.c, lib/readpipe.c, lib/tempname.c, m4/mkstemp.m4: Remove.
208 * configure.ac (UTILS_FUNC_MKSTEMP, jm_PREREQ_TEMPNAME): Remove.
209 (BISON_PREREQ_SUBPIPE): Add.
210 * lib/Makefile.am (libbison_a_SOURCES): Remove readpipe.c.
211 Add subpipe.h, subpipe.c.
212 * m4/Makefile.am (EXTRA_DIST): Remove mkstemp.m4. Add subpipe.m4.
213 * po/POTFILES.in: Add lib/subpipe.c.
214 * src/output.c: Include "subpipe.h".
215 (m4_invoke): Remove decl.
216 (scan_skel): New decl.
217 (output_skeleton): Use pipe rather than temporary file for m4 input.
218 Check that m4sugar.m4 is readable, to avoid deadlock.
219 Check for pipe I/O error.
220 * src/scan-skel.l (readpipe): Remove decl.
221 (scan_skel): New function, to be used in place of m4_invoke.
222 Read from stream rather than file.
223
224 * lib/timevar.c (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Do not cast to
225 float, as this generates a warning on Solaris 8 + GCC 3.2 with
226 --enable-gcc-warnings. Instead, divide into 1.0 rather than 1;
227 this generates a more-accurate value anyway.
228
229 * lib/timevar.c (timervar_accumulate): Rename locals to
230 avoid confusion with similarly-named more-global.
231 * src/muscle_tab.c (muscle_pair_list_grow): Likewise.
232
233 * src/output.c (prepare): Use xstrdup to convert char const *
234 to char *, to avoid GCC warning.
235
236 2002-10-19 Akim Demaille <akim@epita.fr>
237
238 * tests/calc.at (_AT_DATA_CALC_Y): Define VAL, LOC, LEX_FORMALS,
239 LEX_PRE_FORMALS, LEX_ARGS, LEX_PRE_ARGS, USE_LEX_ARGS.
240 Use them to have `calc.y' ready for %pure-parser.
241 * data/yacc.c (YYLEX): Pass a yylex return type to
242 b4_c_function_call.
243
244 2002-10-19 Akim Demaille <akim@epita.fr>
245
246 Prototype support of %lex-param and %parse-param.
247
248 * src/parse-gram.y: Add the definition of the %lex-param and
249 %parse-param tokens, plus their rules.
250 Drop the `_' version of %glr-parser.
251 Add the "," token.
252 * src/scan-gram.l (INITIAL): Scan them.
253 * src/muscle_tab.c: Comment changes.
254 (muscle_insert, muscle_find): Rename `pair' as `probe'.
255 * src/muscle_tab.h (MUSCLE_INSERT_PREFIX): Remove unused.
256 (muscle_entry_s): The `value' member is no longer const.
257 Adjust all dependencies.
258 * src/muscle_tab.c (muscle_init): Adjust: use
259 MUSCLE_INSERT_STRING.
260 Initialize the obstack earlier.
261 * src/muscle_tab.h, src/muscle_tab.c (muscle_grow)
262 (muscle_pair_list_grow): New.
263 * data/c.m4 (b4_c_function_call, b4_c_args): New.
264 * data/yacc.c (YYLEX): Use b4_c_function_call to honor %lex-param.
265 * tests/calc.at: Use %locations, not --locations.
266 (AT_CHECK_CALC_GLR): Use %glr-parser, not %glr_parser.
267
268 2002-10-19 Akim Demaille <akim@epita.fr>
269
270 * src/getargs.c (usage): Take status as argument and exit
271 accordingly.
272 Report the traditional `Try ... --help' message when status != 0.
273 (usage, version): Don't take a FILE * as arg, it is pointless.
274 (getargs): When there is an incorrect number of arguments, make it
275 an error, and report it GNUlically thanks to `usage ()'.
276
277 2002-10-18 Paul Eggert <eggert@twinsun.com>
278
279 * data/glr.c (yyreportParseError): Don't assume that sprintf
280 yields the length of the printed string, as this is not true
281 on SunOS 4.1.4. Reported by Peter Klein.
282
283 * tests/calc.at (_AT_DATA_CALC_Y): #undef memcmp and realloc.
284 * tests/conflicts.at (%nonassoc and eof): Likewise.
285 Fixes SunOS 4.1.4 test failure reported by Peter Klein.
286
287 2002-10-17 Akim Demaille <akim@epita.fr>
288
289 * src/getargs.h (trace_e): Add trace_scan, and trace_parse.
290 * src/getargs.c (trace_types, trace_args): Adjust.
291 * src/reader.c (grammar_current_rule_prec_set)
292 (grammar_current_rule_dprec_set, grammar_current_rule_merge_set):
293 Standardize error messages.
294 And s/@prec/%prec/!
295 (reader): Use trace_flag to enable scanner/parser debugging,
296 instead of an adhoc scheme.
297 * src/scan-gram.l: Remove trailing debugging code.
298
299 2002-10-16 Paul Eggert <eggert@twinsun.com>
300
301 * src/muscle_tab.h (MUSCLE_TAB_H_): Was misspelled as
302 MUSCLE_TAB_H.
303
304 * NEWS: Officially drop support for building Bison with K&R C,
305 since it didn't work anyway and it's not worth worrying about.
306 * Makefile.maint (wget_files): Remove ansi2knr.c.
307 (ansi2knr.c-url_prefix): Remove.
308 * lib/.cvsignore: Remove ansi2knr, ansi2knr.*.
309 * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove.
310 * src/Makefile.am (AUTOMAKE_OPTIONS): Remove.
311
312 2002-10-15 Paul Eggert <eggert@twinsun.com>
313
314 Stop using the "enum_" trick for K&R-style function definitions;
315 it confused me, and I was the author! Instead, assume that people
316 who want to use K&R C compilers (when using these modules in GCC,
317 perhaps?) will run ansi2knr.
318
319 * lib/bbitset.h: (enum_bitset_ops, enum_bitset_type): Remove.
320 All uses of "enum_" changed to "enum ".
321 * lib/ebitset.c (enum_ebitset_find_mode): Likewise.
322 * lib/lbitset.c (enum_lbitset_find_mode): Likewise.
323
324 * lib/abitset.c (abitset_and, abitset_and_cmp, abitset_and_or,
325 abitset_and_or_cmp, abitset_andn, abitset_andn_cmp,
326 abitset_andn_or, abitset_andn_or_cmp, abitset_bytes, abitset_copy,
327 abitset_copy1, abitset_disjoint_p, abitset_empty_p,
328 abitset_equal_p, abitset_init, abitset_list, abitset_list_reverse,
329 abitset_not, abitset_ones, abitset_or, abitset_or_and,
330 abitset_or_and_cmp, abitset_or_cmp, abitset_reset, abitset_set,
331 abitset_size, abitset_small_list, abitset_subset_p, abitset_test,
332 abitset_unused_clear, abitset_xor, abitset_xor_cmp, abitset_zero):
333 Use function prototypes; this removes the need for declaring
334 static functions simply to provide their prototypes.
335 * lib/bitset.c (bitset_alloc, bitset_and_or_, bitset_and_or_cmp_,
336 bitset_andn_or_, bitset_andn_or_cmp_, bitset_bytes, bitset_copy_,
337 bitset_count_, bitset_create, bitset_dump, bitset_first,
338 bitset_free, bitset_init, bitset_last, bitset_next,
339 bitset_obstack_alloc, bitset_obstack_free, bitset_only_set_p,
340 bitset_op4_cmp, bitset_or_and_, bitset_or_and_cmp_, bitset_prev,
341 bitset_print, bitset_release_memory, bitset_toggle_,
342 bitset_type_choose, bitset_type_get, bitset_type_name_get,
343 debug_bitset): Likewise.
344 * lib/bitset.h (bitset_set, bitset_reset, bitset_test): Likewise.
345 * lib/bitset_stats.c (bitset_log_histogram_print,
346 bitset_percent_histogram_print, bitset_stats_and,
347 bitset_stats_and_cmp, bitset_stats_and_or,
348 bitset_stats_and_or_cmp, bitset_stats_andn, bitset_stats_andn_cmp,
349 bitset_stats_andn_or, bitset_stats_andn_or_cmp, bitset_stats_copy,
350 bitset_stats_count, bitset_stats_disable, bitset_stats_disjoint_p,
351 bitset_stats_dump, bitset_stats_empty_p, bitset_stats_enable,
352 bitset_stats_equal_p, bitset_stats_free, bitset_stats_init,
353 bitset_stats_list, bitset_stats_list_reverse, bitset_stats_not,
354 bitset_stats_ones, bitset_stats_or, bitset_stats_or_and,
355 bitset_stats_or_and_cmp, bitset_stats_or_cmp, bitset_stats_print,
356 bitset_stats_print_1, bitset_stats_read, bitset_stats_reset,
357 bitset_stats_set, bitset_stats_size, bitset_stats_subset_p,
358 bitset_stats_test, bitset_stats_toggle, bitset_stats_type_get,
359 bitset_stats_write, bitset_stats_xor, bitset_stats_xor_cmp,
360 bitset_stats_zero): Likewise.
361 * lib/bitsetv.c (bitsetv_alloc, bitsetv_create, bitsetv_free,
362 bitsetv_zero, bitsetv_ones, bitsetv_transitive_closure,
363 bitsetv_dump, debug_bitsetv): Likewise.
364 * lib/ebitset.c (ebitset_and, ebitset_and_cmp, ebitset_andn,
365 ebitset_andn_cmp, ebitset_bytes, ebitset_copy, ebitset_copy_,
366 ebitset_copy_cmp, ebitset_disjoint_p, ebitset_elt_add,
367 ebitset_elt_alloc, ebitset_elt_calloc, ebitset_elt_find,
368 ebitset_elt_free, ebitset_elt_last, ebitset_elt_remove,
369 ebitset_elt_zero_p, ebitset_elts_grow, ebitset_empty_p,
370 ebitset_equal_p, ebitset_free, ebitset_init, ebitset_list,
371 ebitset_list_reverse, ebitset_not, ebitset_ones, ebitset_op3_cmp,
372 ebitset_or, ebitset_or_cmp, ebitset_release_memory, ebitset_reset,
373 ebitset_set, ebitset_size, ebitset_subset_p, ebitset_test,
374 ebitset_weed, ebitset_xor, ebitset_xor_cmp, ebitset_zero):
375 Likewise.
376 * lib/lbitset.c (debug_lbitset, lbitset_and, lbitset_and_cmp,
377 lbitset_andn, lbitset_andn_cmp, lbitset_bytes, lbitset_copy,
378 lbitset_copy_cmp, lbitset_disjoint_p, lbitset_elt_alloc,
379 lbitset_elt_calloc, lbitset_elt_find, lbitset_elt_free,
380 lbitset_elt_link, lbitset_elt_unlink, lbitset_elt_zero_p,
381 lbitset_empty_p, lbitset_equal_p, lbitset_free, lbitset_init,
382 lbitset_list, lbitset_list_reverse, lbitset_not, lbitset_ones,
383 lbitset_op3_cmp, lbitset_or, lbitset_or_cmp, lbitset_prune,
384 lbitset_release_memory, lbitset_reset, lbitset_set, lbitset_size,
385 lbitset_subset_p, lbitset_test, lbitset_weed, lbitset_xor,
386 lbitset_xor_cmp, lbitset_zero): Likewise.
387
388 2002-10-14 Akim Demaille <akim@epita.fr>
389
390 Version 1.75.
391
392 2002-10-14 Akim Demaille <akim@epita.fr>
393
394 * tests/Makefile.am (maintainer-check-posix): New.
395
396 2002-10-14 Akim Demaille <akim@epita.fr>
397
398 * data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc
399 member.
400
401 2002-10-14 Akim Demaille <akim@epita.fr>
402
403 * src/tables.c (table_ninf_remap): base -> tab.
404 Reported by Matt Rosing.
405
406 2002-10-14 Paul Eggert <eggert@twinsun.com>
407
408 * tests/action.at, tests/calc.at, tests/conflicts.at,
409 tests/cxx-type.at, tests/headers.at, tests/input.at,
410 tests/regression.at, tests/synclines.at, tests/torture.at:
411 Say "bison -o foo.c foo.y", not "bison foo.y -o foo.c",
412 so that the tests still work even if POSIXLY_CORRECT is set.
413 * doc/bison.texinfo (Rpcalc Compile, Invocation): Likewise.
414
415 * data/c.m4 (b4_int_type): Use yysigned_char instead of signed char,
416 for portability to K&R hosts. Fix typo: signed char is guaranteed
417 only to 127, not to 128.
418 * data/glr.c (yysigned_char): New type.
419 * data/yacc.c (yysigned_char): Likewise.
420 * tests/regression.at (Web2c Actions): signed char -> yysigned_char.
421
422 2002-10-13 Paul Eggert <eggert@twinsun.com>
423
424 * data/yacc.c (yyparse): Rewrite to avoid "comparison is always
425 true due to limited range of data type" warning from GCC.
426
427 * data/c.m4 (b4_token_defines): Protect against double-inclusion
428 by wrapping enum yytokentype's definition inside #ifndef
429 YYTOKENTYPE. This undoes a bug I introduced on 2002-10-12.
430
431 2002-10-13 Akim Demaille <akim@epita.fr>
432
433 * data/glr.c (yyglrShiftDefer, yyaddDeferredAction, yydoAction):
434 Un yy- yyrhs to avoid the name clash with the global YYRHS.
435
436 2002-10-13 Akim Demaille <akim@epita.fr>
437
438 * Makefile.maint: Update from Autoconf 2.54.
439 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Remove, shipped with 2.54.
440
441 2002-10-13 Akim Demaille <akim@epita.fr>
442
443 * src/print.c (print_state): Separate the list of solved conflicts
444 from the other items.
445 * tests/conflicts.at (Resolved SR Conflicts): Adjust.
446
447 2002-10-13 Akim Demaille <akim@epita.fr>
448
449 Let nondeterministic skeletons be usable with deterministic
450 tables.
451
452 With the patch, GAWK compiled by GCC without -O2 passes its test
453 suite using a GLR parser driven by LALR tables. It fails with -O2
454 because `struct stat' gives two different answers on my machine:
455 88 (definition of an auto var) and later 96 (memset on this var).
456 Hence the stack is badly corrumpted. The headers inclusion is to
457 blame: if I move the awk.h inclusion before GLR's system header
458 inclusion, the two struct stat have the same size.
459
460 * src/tables.c (pack_table): Always create conflict_table.
461 (token_actions): Always create conflict_list.
462 * data/glr.c (YYFLAG): Remove, unused.
463
464 2002-10-13 Akim Demaille <akim@epita.fr>
465
466 * configure.ac (AC_GNU_SOURCE): Use it instead of hand written code.
467 (O0FLAGS): New.
468 (VALGRIND, GXX): New.
469 * tests/atlocal.in (CFLAGS): Use O0FLAGS.
470 * tests/bison.in: Run $PREBISON a pre-command.
471 * tests/Makefile.am (maintainer-check, maintainer-check-valgrind)
472 (maintainer-check-g++): New.
473 * Makefile.am (maintainer-check): New.
474
475 2002-10-13 Akim Demaille <akim@epita.fr>
476
477 * data/glr.c: Formatting changes.
478 Tweak some trace messages to match yacc.c's.
479
480 2002-10-13 Akim Demaille <akim@epita.fr>
481
482 GLR parsers sometimes raise parse errors instead of performing the
483 default reduction.
484 Reported by Charles-Henry de Boysson.
485
486 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Don't
487 check the length of the traces when %glr.
488 (_AT_CHECK_CALC_ERROR): Also skip `^Stack' lines, coming from
489 GLR's traces.
490 (AT_CHECK_CALC_LALR, AT_CHECK_CALC_GLR): New.
491 Test GLR parsers.
492 * data/glr.c (YYLEFTMOST_STATE): Fix its value.
493 (yyltype): Remove the yy prefix from the member names.
494 (yytable): Complete its comment.
495 (yygetLRActions): Map error action number from YYTABLE from
496 YYTABLE_NINF to 0.
497 (yyisErrorAction): No longer compare YYACTION to YYPACT_NINF
498 (which was a bug: it should have been YYTABEL_NINF, and yet it was
499 not satisfying as we could compare an YYACTION computed from
500 YYDEFACT to YYTABLE_NINF although they are unrelated): 0 is the
501 only value for error actions.
502 (yyreportParseError): In verbose parse error messages, don't issue
503 `error' in the list of expected tokens.
504 * data/yacc.c (yyparse) <yybackup>: Rewrite the decoding of the
505 next action to perform to match glr.c's decoding.
506 (yytable): Complete its comment.
507
508 2002-10-13 Paul Eggert <eggert@twinsun.com>
509
510 Fix problem reported by Henrik Grubbstroem in
511 <http://mail.gnu.org/pipermail/bug-bison/2002-October/001670.html>:
512 "nonterm: { $$ = 123; } { $$ = $1; };" was wrongly rejected,
513 because the Bison parser reads the second action before reducing
514 the first one.
515 * src/scan-gram.l (rule_length): New static var.
516 Use it to keep track of the rule length in the scanner, since
517 we can't expect the parser to be in lock-step sync with the scanner.
518 (handle_action_dollar, handle_action_at): Use this var.
519 * tests/actions.at (Exotic Dollars): Test for the problem.
520
521 2002-10-12 Paul Eggert <eggert@twinsun.com>
522
523 * lib/timevar.c [! IN_GCC && HAVE_SYS_TIME_H]: Include <sys/time.h>.
524 * m4/timevar.m4 (BISON_PREREQ_TIMEVAR): Check for <sys/time.h>.
525 Include <sys/time.h> when checking for clock_t and struct tms.
526 Use same include order as source.
527 This is for the SunOS 4.1.4 porting bug reported by Peter Klein in
528 <http://mail.gnu.org/pipermail/bug-bison/2002-October/001674.html>.
529
530 * lib/timevar.c: Update copyright date and clarify comments.
531 (get_time) [IN_GCC]: Keep the GCC version for reference.
532
533 * lib/timevar.c, lib/timevar.h, lib/timevar.def: Import
534 GCC version as of today, then merge Bison's changes.
535 Change "GCC" to "Bison" in copyright notice. timevar.def's
536 author is Akim, so change that too.
537
538 * src/reader.c (grammar_current_rule_check):
539 Don't worry about the default action if $$ is untyped.
540 Prevents bogus warnings reported by Jim Gifford in
541 <http://mail.gnu.org/pipermail/bug-bison/2002-October/001673.html>.
542
543 * data/c.m4 (b4_token_enum): Do not define YYTOKENTYPE.
544 * data/glr.c, data/lalr1.cc, data/yacc.c:
545 Output token definitions before the first part of user declarations.
546 Fixes compatibility problem reported by Jim Gifford for kbd in
547 <http://mail.gnu.org/pipermail/bug-bison/2002-October/001672.html>.
548
549 2002-10-11 Paul Eggert <eggert@twinsun.com>
550
551 * data/yacc.c (yyreport_parse_error): Remove, putting its body into...
552 (yyparse): here. This undoes some of the 2002-07-25 change.
553 Compatibility problem reported by Ralf S. Engelschall with
554 OSSP cfg <http://www.ossp.org/pkg/lib/cfg/>.
555
556 2002-10-11 Akim Demaille <akim@epita.fr>
557
558 * tests/regression.at Characters Escapes): New.
559 * src/scan-gram.l (SC_ESCAPED_CHARACTER): Accept \' in strings and
560 characters.
561 Reported by Jan Nieuwenhuizen.
562
563 2002-10-11 Akim Demaille <akim@epita.fr>
564
565 * po/id.po: New.
566
567 2002-10-10 Paul Eggert <eggert@twinsun.com>
568
569 Portability fixes for bitsets; this also avoids several GCC
570 warnings.
571
572 * lib/abitset.c: Include <stddef.h>, for offsetof.
573 * lib/lbitset.c: Likewise.
574
575 * lib/abitset.c (abitset_bytes): Return a size that is aligned
576 properly for vectors of objects. Do not assume that adding a
577 header size to a multiple of a word size yields a value that is
578 properly aligned for the whole union.
579 * lib/bitsetv.c (bitsetv_alloc): Likewise.
580
581 * lib/bitset_stats.c (bitset_stats_bytes): Adjust to new,
582 unique names for structures.
583 * lib/ebitset.c (ebitset_bytes): Likewise.
584 * lib/lbitset.c (lbitset_bytes): Likewise.
585
586 * lib/abitset.c (abitset_ones, abitset_zero, abitset_empty_p,
587 abitset_copy1, abitset_not, abitset_equal_p, abitset_subset_p,
588 abitset_disjoint_p, abitset_and, abitset_and_cmp, abitset_andn,
589 abitset_andn_cmp, abitset_or, abitset_or_cmp, abitset_xor,
590 abitset_xor_cmp, abitset_and_or, abitset_and_or_cmp,
591 abitset_andn_or, abitset_andn_or_cmp, abitset_or_and,
592 abitset_or_and_cmp, abitset_copy): Supply prototype decls,
593 to improve the type-checking that GCC can do.
594 * lib/bitset.c (bitset_op4_cmp): Likewise.
595 * lib/bitset_stats.c (bitset_stats_count,
596 bitset_stats_empty_p, bitset_stats_ones, bitset_stats_zero,
597 bitset_stats_copy, bitset_stats_disjoint_p,
598 bitset_stats_equal_p, bitset_stats_not, bitset_stats_subset_p,
599 bitset_stats_and, bitset_stats_and_cmp, bitset_stats_andn,
600 bitset_stats_andn_cmp, bitset_stats_or, bitset_stats_or_cmp,
601 bitset_stats_xor, bitset_stats_xor_cmp, bitset_stats_and_or,
602 bitset_stats_and_or_cmp, bitset_stats_andn_or,
603 bitset_stats_andn_or_cmp, bitset_stats_or_and,
604 bitset_stats_or_and_cmp): Likewise.
605 * lib/lbitset.c (lbitset_and, lbitset_and_cmp, lbitset_andn,
606 lbitset_andn_cmp, lbitset_or, lbitset_or_cmp, lbitset_xor,
607 lbitset_xor_cmp, lbitset_empty_p, lbitset_ones, lbitset_not,
608 lbitset_subset_p, lbitset_disjoint_p, debug_lbitset): Likewise.
609
610 * lib/abitset.h: Include bitset.h, not bbitset.h.
611 * lib/ebitset.h: Likewise.
612 * lib/lbitset.h: Likewise.
613
614 * lib/bbitset.h: (enum_bitset_ops, enum_bitset_type): New types.
615 All instances of parameters of type enum bitset_opts are now of
616 type enum_bitset_opts, to conform to the C Standard, and similarly
617 for enum_bitset_type.
618 * lib/ebitset.c (enum_ebitset_find_mode): Likewise.
619 * lib/lbitset.c (enum_lbitset_find_mode): Likewise.
620
621 Do not use "struct bitset_struct" to mean different things in
622 different modules. Not only is this confusing, it violates
623 the C Standard, which requires that structure types in different
624 modules must be compatible if one is to be passed to the other.
625 * lib/bbitset.h (bitset): Now points to a union, not to a struct.
626 All instances of "struct bitset_struct *" replaced with "bitset".
627 * lib/bitset.h (struct bitset_struct): Remove, replacing with....
628 (union bitset_union, struct abitset_struct, struct ebitset_struct,
629 struct lbitset_struct, struct bitset_stats_struct): New types.
630 All uses of struct bitset_struct changed to union bitset_union,
631 etc.
632 * lib/abitset.c (struct abitset_struct, abitset,
633 struct bitset_struct): Remove.
634 * lib/bitset_stats.c (struct bitset_stats_struct, bitset_stats,
635 struct bitset_struct): Remove.
636 * lib/ebitset.c (struct ebitset_struct, ebitset, struct
637 bitset_struct): Remove.
638 * lib/lbitset.c (struct lbitset_struct, lbitset, bitset_struct):
639 Likewise.
640
641 Do not call a function of type T using a call that assumes the
642 function is of a different type U. Standard C requires that a
643 function must be called with a type that is compatible with its
644 definition.
645 * lib/bbitset.h (bitset_and_or_, bitset_andn_or_, bitset_or_and_):
646 New decls.
647 * lib/bitset.c (bitset_and_or_, bitset_andn_or_, bitset_or_and_):
648 New functions.
649 * lib/ebitset.c (PFV): Remove.
650 * lib/lbitset.c (PFV): Likewise.
651 * lib/ebitset.c (ebitset_and, ebitset_andn, ebitset_or,
652 ebitset_xor, ebitset_copy, ebitset_ones, ebitset_empty_p): New
653 decls.
654 (ebitset_and, ebitset_andn, ebitset_or, ebitset_xor): New functions.
655 (ebitset_vtable): Use them.
656 * lib/lbitset.c (lbitset_and, lbitset_andn, lbitset_or,
657 lbitset_xor): New functions.
658 (lbitset_vtable): Use them.
659
660 * lib/bitset.h (bitset_next, bitset_prev, bitset_only_set_p):
661 Declare.
662
663 * lib/bitsetv.c (bitsetv_alloc): Add a cast to (void *) to avoid a
664 GCC warning.
665 * lib/lbitset.c (LBITSET_CURRENT1): Likewise.
666 Use offsetof, for simplicity.
667
668 2002-10-06 Paul Eggert <eggert@twinsun.com>
669
670 * lib/bitset.h (bitset_reset): Do not assume that bitset_word is
671 the same width as int. This reapplies a hunk of the 2002-08-12 patch
672 <http://mail.gnu.org/pipermail/bison-patches/2002-August/001111.html>,
673 which was inadvertently undone by the 2002-09-30 patch.
674 * lib/lbitset.c (debug_lbitset): Do not assume that bitset_word is
675 the same width as int.
676
677 2002-10-04 Paul Eggert <eggert@twinsun.com>
678
679 Version 1.50.
680
681 * configure.ac (AC_INIT), NEWS: Increment version number.
682
683 * doc/bison.texinfo: Minor spelling, grammar, and white space
684 fixes.
685 (Symbols): Mention that any negative value returned from yylex
686 signifies end-of-input. Warn about negative chars. Mention
687 the portable Standard C character set.
688
689 The GNU coding standard says CFLAGS and YFLAGS are reserved
690 for the installer to set.
691 * lib/Makefile.am (AM_CFLAGS): Renamed from CFLAGS.
692 * src/Makefile.am (AM_CFLAGS): Likewise.
693 (AM_YFLAGS): Renamed from YFLAGS.
694
695 Fix some MAX and MIN problems.
696 * src/gram.h (ITEM_NUMBER_MIN): MIN_MAX -> INT_MIN.
697 * src/lalr.h (GOTO_NUMBER_MAX): INT_MAX -> SHRT_MAX.
698 * src/symtab.h (SYMBOL_NUMBER_MAX): New macro.
699 * src/reader.c (reader): Use it.
700
701 * tests/regression.at (Braces parsing): Use grep, not fgrep, as
702 POSIX 1003.1-2001 has removed fgrep.
703
704 2002-10-04 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
705
706 * lib/bbitset.h (BITSET_WINDEX_MAX): Redefine so that it cannot be
707 interpreted as signed.
708 * lib/ebitset.c (ebitset_list): Fix bug.
709
710 2002-10-01 Paul Eggert <eggert@twinsun.com>
711
712 More fixes for 64-bit hosts and large bitsets.
713
714 * lib/abitset.c (struct abitset_struct.n_bits, abitset_small_list,
715 abitset_size, abitset_list, abitset_list_reverse, abitset_list):
716 Use bitset_bindex, not int or unsigned int or size_t, to count bits.
717 * lib/bbitset.h (struct bitset_vtable.size, struct bitset_vtable.count,
718 struct bitset_vtable.list, struct bitset_vtable.list_reverse,
719 bitset_count_, bitset_next, bitset_prev, bitset_first, bitset_last,
720 bitset_count_): Likewise.
721 * lib/bitset.h (bitset_iterator.num, bitset_iterator.i,
722 bitset_first, bitset_last): Likewise.
723 * lib/bitset_stats.c (bitset_stats_size, bitset_stats_list,
724 bitset_stats_list_reverse, bitset_stats_size,
725 bitset_stats_count, bitset_stats_list, bitset_stat_list_reverse):
726 Likewise.
727 * lib/bitsetv-print.c (bitsetv_matrix_dump): Likewise.
728 * lib/bitsetv.c (bitsetv_alloc, bitsetv_create, bitsetv_free,
729 bitsetv_zero, bitsetv_ones, bitsetv_transitive_closure,
730 bitsetv_reflexive_transitive_closure): Likewise.
731 * lib/bitsetv.h (bitsetv_alloc, bitsetv_create): Likewise.
732 * lib/ebitset.c (ebitset_size, ebitset_list, ebitset_list_reverse):
733 Likewise.
734 * lib/lbitset.c (lbitset_size, lbitset_list, lbitset_list_merge):
735 Likewise.
736
737 * lib/abitset.c (abitset_ones, abitset_zero, abitset_bytes):
738 Use size_t, not unsigned int, to count bytes.
739 * lib/abitset.h (abitset_bytes): Likewise.
740 * lib/bitset.c (bitset_bytes, bitset_alloc, bitset_obstack_alloc):
741 Likewise.
742 * lib/bitset.h (bitset_bytes): Likewise.
743 * lib/bitset_stats.c (bitset_stats_bytes, bitset_stats_init): Likewise.
744 * lib/bitset_stats.h (bitset_stats_bytes): Likewise.
745 * lib/bitsetv.c (bitsetv_alloc): Likewise.
746 * lib/ebitset.c (ebitset_bytes): Likewise.
747 * lib/ebitset.h (ebitset_bytes): Likewise.
748 * lib/lbitset.c (lbitset_bytes): Likewise.
749 * lib/lbitset.h (lbitset_bytes): Likewise.
750
751 * lib/abitset.c (abitset_empty_p, abitset_not, abitset_equal_p,
752 abitset_subset_p, abitset_disjoint_p, abitset_and,
753 abitset_and_cmp, abitset_andn, abitset_andn_cmp, abitset_or,
754 abitset_or_cmp, abitset_xor, abitset_xor_cmp, abitset_and_or,
755 abitset_and_or_cmp, abitset_andn_or, abitset_andn_or_cmp,
756 abitset_or_and, abitset_or_and_cmp):
757 Use bitset_windex instead of unsigned int.
758 * lib/bitsetv.c (bitsetv_dump, debug_bitsetv): Likewise.
759 * lib/ebitset.c (struct ebitset_struct.size, ebitset_elts_grow,
760 ebitset_elt_add, ebitset_elt_remove, ebitset_weed,
761 ebitset_elt_find, ebitset_list_reverse, ebitset_list, ebitset_init):
762 Likewise.
763 * lib/lbitset.c (lbitset_ones, lbitset_not): Likewise.
764
765 * lib/bitset.c (bitset_print):
766 Use proper printf formats for widths of integer types.
767 * lib/bitset_stats.c (bitset_percent_histogram_print,
768 bitset_log_histogram_print, bitset_stats_print_1): Likewise.
769 * lib/bitsetv-print.c (bitsetv_matrix_dump): Likewise.
770 * lib/bitsetv.c (bitsetv_dump, debug_bitsetv): Likewise.
771 * lib/lbitset.c (lbitset_bytes): Likewise.
772
773 * lib/bbitset.h (BITSET_BINDEX_MAX, BITSET_WINDEX_MAX,
774 BITSET_SIZE_MAX): New macros.
775 (BITSET_INDEX_MAX): Remove. It wasn't right, since it assumed that
776 sizeof (bitset_word) == sizeof (bitset_windex). All uses changed
777 to BITSET_WINDEX_MAX.
778
779 * lib/bitset.c (bitset_next, bitset_prev, bitset_first,
780 bitset_last): Return BITSET_BINDEX_MAX (not -1) for no value,
781 since we now return the bitset_bindex type (not int).
782
783 * lib/bitsetv.c (bitsetv_alloc): Check for arithmetic overflow
784 when computing sizes.
785 * lib/ebitset.c (ebitset_elts_grow): Likewise.
786
787 * lib/lbitset.c (lbitset_elt_find): Simplify windex calculation
788 and avoid cast to unsigned.
789
790 2002-09-30 Akim Demaille <akim@epita.fr>
791
792 * lib/abitset.c, lib/bbitset.h, lib/bitset.c, lib/bitset.h,
793 * lib/bitset_stats.c, lib/bitsetv.c, lib/ebitset.c, lib/lbitset.c:
794 Updates from Michael Hayes.
795
796 2002-09-30 Art Haas <ahaas@neosoft.com>
797
798 * configure.ac: Update AC_OUTPUT and AM_CONFIG_HEADER
799 invocations.
800 * tests/cxx-type.at (declarator): Don't rely on NDEBUG being not
801 defined.
802
803 2002-09-27 Akim Demaille <akim@epita.fr>
804
805 Version 1.49c.
806
807 2002-09-27 Akim Demaille <akim@epita.fr>
808
809 * configure.ac (AM_INIT_AUTOMAKE): We _need_ 1.7.
810 (Because of AC_LIBSOURCE).
811
812 2002-09-27 Akim Demaille <akim@epita.fr>
813
814 Playing with Autoscan.
815
816 * configure.ac: Remove the old LIBOBJ tweaks.
817 (AC_REPLACE_FUNCS): Add strrchr and strtol.
818 * lib/strrchr.c: New.
819 * lib/strtol.c: New, from the Coreutils 4.5.1.
820
821 2002-09-27 Akim Demaille <akim@epita.fr>
822
823 Playing with Autoscan.
824
825 * m4/prereq.m4 (jm_PREREQ_ARGMATCH, jm_FUNC_ARGMATCH): New.
826 * lib/Makefile.am (libbison_a_SOURCES): No longer include
827 argmatch.c and argmatch.h, since they are AC_LIBSOURCE'd.
828 * lib/strcasecmp.c, lib/strncasecmp.c, lib/memcmp.c: New, from the
829 Coreutils 4.5.1.
830
831 2002-09-24 Akim Demaille <akim@epita.fr>
832
833 * doc/bison.texinfo (Stack Overflow): xref to Recursion.
834 (Frequently Asked Questions, Parser Stack Overflow): New.
835
836 2002-09-13 Akim Demaille <akim@epita.fr>
837
838 Playing with autoscan.
839
840 * src/reader.c (get_merge_function): Use xstrdup, not strdup.
841 * src/files.c (skeleton_find): Remove, unused.
842 * m4/memcmp.m4: New, from the Coreutils 4.5.1.
843 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Run jm_FUNC_MEMCMP.
844
845 2002-09-13 Akim Demaille <akim@epita.fr>
846
847 * configure.ac (AM_INIT_AUTOMAKE): Require Automake 1.6.3.
848 * Makefile.am (AUTOMAKE_OPTIONS): Don't.
849
850 2002-09-13 Akim Demaille <akim@epita.fr>
851
852 * configure.ac: Require 2.54.
853 s/jm_FUNC_MALLOC/AC_FUNC_MALLOC/.
854 s/jm_FUNC_REALLOC/AC_FUNC_REALLOC/.
855 * m4/c-bs-a.m4, m4/malloc.m4, m4/mbstate_t.m4, m4/realloc.m4:
856 Remove, provided by Autoconf macros.
857
858 2002-09-12 Akim Demaille <akim@epita.fr>
859
860 * m4/prereq.m4: Update, from Coreutils 4.5.1.
861
862 2002-09-12 Akim Demaille <akim@epita.fr>
863
864 * m4/prereq.m4: Update, from Fileutils 4.1.5.
865 * configure.ac (jm_PREREQ_TEMPNAME): Invoke it.
866 Reported by Martin Mokrejs.
867
868 2002-09-10 Akim Demaille <akim@epita.fr>
869
870 * src/parse-gram.y: Associate a human readable string to each
871 token type.
872 * tests/regression.at (Invalid inputs): Adjust.
873
874 2002-09-10 Gary V. Vaughan <gary@gnu.org>
875
876 * tests/Makefile.am ($(srcdir)/package.m4): Bison now ships
877 with an Autoconf-2.5x style configure.ac.
878
879 2002-09-06 Paul Eggert <eggert@twinsun.com>
880
881 * doc/bison.texinfo (Conditions): Make explicit that the GPL
882 exception applies only to yacc.c. This is a modification of a
883 patch originally suggested by Akim Demaille.
884
885 2002-09-06 Akim Demaille <akim@epita.fr>
886
887 * data/c.m4 (b4_copyright): Move the GPL exception comment from
888 here to...
889 * data/yacc.c: here.
890
891 * data/lalr1.cc (struct yyltype): Don't define it, since we use
892 LocationType.
893 (b4_ltype): Default to yy::Location from location.hh.
894
895 2002-09-04 Jim Meyering <jim@meyering.net>
896
897 * data/yacc.c: Guard the declaration of yytoknum also with
898 `#ifdef YYPRINT', so it is declared only when used.
899
900 2002-09-04 Akim Demaille <akim@epita.fr>
901
902 * configure.in: Rename as...
903 * configure.ac: this.
904 Bump to 1.49c.
905
906 2002-09-04 Akim Demaille <akim@epita.fr>
907
908 * src/assoc.c, src/closure.c, src/gram.c, src/injections.c,
909 * src/lalr.c, src/LR0.c, src/relation.c, src/tables.c: Don't
910 translate maintainer only messages.
911
912 2002-08-12 Paul Eggert <eggert@twinsun.com>
913
914 Version 1.49b.
915
916 * Makefile.am (SUBDIRS): Remove intl.
917 (DISTCLEANFILES): Remove.
918 * NEWS: Mention that GNU M4 is now required. Clarify what is
919 meant by "larger grammars". Mention the pt_BR translation.
920 * configure.in (AC_CHECK_DECLS): Add getenv, getopt.
921 (AM_GNU_GETTEXT_VERSION): New macro, replacing GETTEXT_VERSION var.
922 Bump version from 0.11.2 to 0.11.5.
923 (BISON_PREREQ_STAGE): Remove.
924 (AM_GNU_GETTEXT): Use external gettext.
925 (AC_OUTPUT): Remove intl/Makefile.
926
927 * config/depcomp, config/install-sh: Sync with Automake 1.6.3.
928
929 * data/glr.c: Include string.h, for strlen.
930 (yyreportParseError): Use size_t for yysize.
931 (yy_yypstack): No longer nested inside yypstates, as nested
932 functions are not portable. Do not assume size_t is the
933 same width as int.
934 (yypstates): Do not assume that ptrdiff_t is the same width
935 as int, and similarly for yyposn and YYINDEX.
936
937 * data/yacc.c: Fix comment about `$$ = $1': it can copy garbage.
938
939 * lib/Makefile.am (INCLUDES): Do not include from the intl
940 directory, which has been removed.
941 * src/Makefile.am (INCLUDES): Likewise.
942
943 * lib/Makefile.am (libbison_a_SOURCES): Add unlocked-io.h.
944 (bitsets_sources, additional_bitsets_sources, timevars_sources):
945 New vars.
946
947 * lib/Makefile.am (libbison_a_SOURCES): Avoid +=, a GNU make extension.
948 * tests/Makefile.am (EXTRA_DIST): Likewise.
949
950 * lib/abitset.c (abitset_reverse_list, ebitset_reverse_list):
951 Do not assume that bitset_windex is the same width as unsigned.
952
953 * lib/abitset.c (abitset_unused_clear): Do not assume that
954 bitset_word is the same width as int.
955 * lib/bbitset.h (BITSET_INDEX_MAX, BITSET_MSB): Likewise.
956 * lib/bitset.h (bitset_set, bitset_reset): Likewise.
957 * lib/bitset_stats.c (bitset_stats_set, bitset_stats_reset): Likewise.
958 * lib/ebitset.c (ebitset_set, ebitset_reset): Likewise.
959 * lib/lbitset.c (lbitset_set, lbitset_reset): Likewise.
960
961 * lib/abitset.c (abitset_op1): Use -1, not ~0, as memset arg (for
962 portability to one's complement hosts!).
963 * lib/ebitset.c (ebitset_op1): Likewise.
964 * lib/lbitset.c (lbitset_op1): Likewise.
965
966 * lib/argmatch.c, lib/quotearg.c, quotearg.h: Sync with GNU tar.
967 * lib/argmatch.h, lib/basename.c, lib/dirname.c, lib/dirname.h,
968 lib/hash.c, lib/hash.h, lib/strnlen.c, lib/xmalloc.c:
969 Sync with fileutils.
970 * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c,
971 lib/gettext.h: Sync with diffutils.
972
973 * lib/memrchr.c, lib/mkstemp.c, lib/strchr.c, lib/strnlen.c,
974 lib/strspn.c, lib/tempname.c: Use GPL, not LGPL.
975
976 * lib/obstack.c, lib/obstack.h: Sync with fileutils, except use
977 PROTOTYPES to check for prototypes, and "defined __STDC__" to
978 check for void *.
979
980 * lib/bbitset.h (BITSET_WORD_BITS): Now of type unsigned, not
981 size_t; the old version tried to do this but casted improperly.
982 (bitset_bindex, bitset_windex): Now size_t, not unsigned long.
983 (bitset_test): Now returns int, not unsigned long.
984
985 * lib/bitset_stats.c: Include "gettext.h".
986 (_): New macro.
987 (bitset_stats_set, bitset_stats_reset, bitset_stats_test): Don't
988 name locals "index", as it generates unnecessary warnings on some
989 hosts that have an "index" function.
990
991 * lib/bitset_stats.c (bitset_stats_print_1, bitset_stats_print,
992 bitset_stats_read, bitset_stats_write): Wrap strings in _() if
993 they need translation.
994 * src/LR0.c (state_list_append, new_itemsets, get_state,
995 append_states, generate_states): Likewise.
996 * src/assoc.c (assoc_to_string): Likewise.
997 * src/closure.c (print_closure, set_firsts, closure): Likewise.
998 * src/gram.c (grammar_dump): Likewise.
999 * src/injections.c (injections_compute): Likewise.
1000 * src/lalr.c (lookaheads_print): Likewise.
1001 * src/relation.c (relation_transpose): Likewise.
1002 * src/scan-gram.l: Likewise.
1003 * src/tables.c (table_grow, pack_vector): Likewise.
1004
1005 * m4/Makefile.am (EXTRA_DIST): Remove codeset.m4,
1006 glibc21.m4, isc-posix.m4 lcmessage.m4, stage.m4.
1007 * m4/malloc.m4, m4/realloc.m4: Sync with diffutils.
1008 * m4/mbstate_t.m4: Sync with fileutils.
1009 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): AC_MBSTATE_T -> AC_TYPE_MBSTATE_T.
1010
1011 * po/LINGUAS: Add pt_BR.
1012 * po/POTFILES.in: Add src/assoc.c, src/closure.c, src/gram.c,
1013 src/main.c, src/relation.c, src/state.c, lib/bitset_stats.c,
1014 lib/timevar.c.
1015 Use src/parse-gram.y instead of src/parse-gram.c, as the gettext
1016 manual recommends.
1017 Similarly, use src/scan-gram.l instead of src/scan-gram.c.
1018
1019 * src/complain.c (strerror_r): Remove decl; not needed.
1020 (strerror): Use same pattern as ../lib/error.c.
1021
1022 * src/files.c, src/files.h (compute_header_macro): Remove; unused.
1023
1024 * src/gram.c (grammar_dump): Do not assume ptrdiff_t fits in int.
1025
1026 * src/main.c (main): Cast result of bindtextdomain and textdomain
1027 to void, to avoid a GCC warning when --disable-nls is in effect.
1028
1029 * src/scan-gram.l: Use strings rather than escapes when possible,
1030 to minimize the number of warnings from xgettext.
1031 (handle_action_dollar, handle_action_at): Don't use isdigit,
1032 as it mishandles negative chars and it may not work as expected
1033 outside the C locale.
1034
1035 * src/symtab.c (symbol_get): Don't cast LHS of an assignment;
1036 this is a GCC extension and is not portable to other compilers.
1037
1038 * src/system.h (alloca): Use same pattern as ../lib/error.c.
1039 Do not include <ctype.h>; no longer needed.
1040 Do not include <malloc.h>; no longer needed (and generates
1041 warnings on OpenBSD 3.0).
1042
1043 * tests/cxx-type.at (yylex): Do not pass signed char to isupper;
1044 it's not portable.
1045
1046 * tests/regression.at: Do not use 'cc -c input.c -o input';
1047 Sun C rejects this. Instead, use 'cc -c input.c -o input.o'.
1048
1049 * tests/synclines.at (AC_SYNCLINES_COMPILE): Accept any nonzero
1050 exit status as failure, not just exit status 1. Sun C exits
1051 with status 2 sometimes.
1052
1053 * tests/torture.at (AT_INCREASE_DATA_SIZE): New macro.
1054 Use it for the two large tests.
1055
1056 2002-08-02 Akim Demaille <akim@epita.fr>
1057
1058 * src/conflicts.c (conflicts_output): Don't output rules never
1059 reduced here, since anyway that computation doesn't work.
1060 * src/gram.h, src/gram.h (rule_filter_t, rule_useful_p)
1061 (rule_useless_p, rule_never_reduced_p): New.
1062 (grammar_rules_partial_print): Use a filter instead of a range.
1063 Display the title only if needed.
1064 (grammar_rules_print): Adjust.
1065 (grammar_rules_never_reduced_report): New.
1066 * src/tables.c (action_row): Move the computation of rules never
1067 reduced to...
1068 (token_actions): here.
1069 * src/main.c (main): Make the parser before making the report, so
1070 that rules never reduced are computed.
1071 Call grammar_rules_never_reduced_report.
1072 * src/print.c (print_results): Report rules never reduced.
1073 * tests/conflicts.at, tests/reduce.at: Adjust.
1074
1075 2002-08-01 Akim Demaille <akim@epita.fr>
1076
1077 Instead of attaching lookaheads and duplicating the rules being
1078 reduced by a state, attach the lookaheads to the reductions.
1079
1080 * src/state.h (state_t): Remove the `lookaheads',
1081 `lookaheads_rule' member.
1082 (reductions_t): Add a `lookaheads' member.
1083 Use a regular array for the `rules'.
1084 * src/state.c (reductions_new): Initialize the lookaheads member
1085 to 0.
1086 (state_rule_lookaheads_print): Adjust.
1087 * src/state.h, src/state.c (state_reductions_find): New.
1088 * src/conflicts.c (resolve_sr_conflict, set_conflicts)
1089 (count_rr_conflicts): Adjust.
1090 * src/lalr.c (LArule): Remove.
1091 (add_lookback_edge): Adjust.
1092 (state_lookaheads_count): New.
1093 (states_lookaheads_initialize): Merge into...
1094 (initialize_LA): this.
1095 (lalr_free): Adjust.
1096 * src/main.c (main): Don't free nullable and derives too early: it
1097 is used by --verbose.
1098 * src/print.c, src/print_graph.c, src/tables.c: Adjust.
1099
1100 2002-08-01 Akim Demaille <akim@epita.fr>
1101
1102 * src/derives.h, src/derives.c (derives): A `rule_t***' instead of
1103 `rule_number_t**'.
1104 (set_derives, free_derives): Rename as...
1105 (derives_compute, derives_free): this.
1106 Adjust all dependencies.
1107 * src/nullable.c (set_nullable, free_nullable): Rename as...
1108 (nullable_compute, nullable_free): these.
1109 (rule_list_t): Store rule_t *, not rule_number_t.
1110 * src/state.c (state_rule_lookaheads_print): Directly compare rule
1111 pointers, instead of their numbers.
1112 * src/main.c (main): Call nullable_free, and derives_free earlier,
1113 as they were lo longer used.
1114
1115 2002-08-01 Akim Demaille <akim@epita.fr>
1116
1117 * lib/timevar.c (get_time): Include children time.
1118 * src/lalr.h (LA, LArule): Don't export them: used with the
1119 state_t.
1120 * src/lalr.c (LA, LArule): Static.
1121 * src/lalr.h, src/lalr.c (lalr_free): New.
1122 * src/main.c (main): Call it.
1123 * src/tables.c (pack_vector): Check whether loc is >= to the
1124 table_size, not >.
1125 (pack_tables): Don't free froms, tos, conflict_tos, and pos...
1126 (tables_generate): do it, since that's also it which allocates
1127 them.
1128 Don't free LA and LArule, main does.
1129
1130 2002-07-31 Akim Demaille <akim@epita.fr>
1131
1132 Separate parser tables computation and output.
1133
1134 * src/output.c (nvectors, base_t, base, base_ninf, conflict_table)
1135 (conflict_list, conflict_list_cnt, table, check, table_ninf)
1136 (yydefgoto, yydefact, high): Move to...
1137 * src/tables.h, src/tables.c: here.
1138 * src/output.c (vector_number_t, VECTOR_NUMBER_MAX)
1139 (VECTOR_NUMBER_MIN, state_number_to_vector_number)
1140 (symbol_number_to_vector_number, nvectors, BASE_MAX, BASE_MIN)
1141 (froms, tos, conflict_tos, tally, width, action_t, ACTION_MAX)
1142 (ACTION_MIN, actrow, order, nentries, pos, conflrow)
1143 (conflict_list_free, table_size, lowzero, table_grow, conflict_row)
1144 (action_row, save_row, token_actions, save_column, default_goto)
1145 (goto_actions, sort_actions, matching_state, pack_vector)
1146 (table_ninf_remap, pack_table, prepare_actions): Move to...
1147 * src/tables.c: here.
1148 * src/tables.h, src/tables.c(tables_generate, tables_free): New.
1149 * src/output.c (token_actions, output_base, output_conflicts)
1150 (output_check): Merge into...
1151 (prepare_actions): this.
1152 (actions_output): Rename as...
1153 (user_actions_output): this.
1154 * src/main.c (main): Call tables_generate and tables_free.
1155
1156 2002-07-31 Akim Demaille <akim@epita.fr>
1157
1158 Steal GCC's --time-report support.
1159
1160 * lib/timevar.c, lib/timevar.h, lib/timevar.def: New,
1161 stolen/adjusted from GCC.
1162 * m4/stage.m4: Remove time related checks.
1163 * m4/timevar.m4: New.
1164 * configure.in: Adjust.
1165 * src/system.h: Adjust to using timevar.h.
1166 * src/getargs.h, src/getargs.c: Support trace_time for
1167 --trace=time.
1168 * src/main.c (stage): Remove.
1169 (main): Replace `stage' invocations with timevar calls.
1170 * src/output.c: Insert pertinent timevar calls.
1171
1172 2002-07-31 Akim Demaille <akim@epita.fr>
1173
1174 Let --trace have arguments.
1175
1176 * src/getargs.h (enum trace_e): New.
1177 * src/getargs.c (trace_args, trace_types, trace_argmatch): New.
1178 (long_options, short_options): --trace/-T takes an optional
1179 argument.
1180 Change all the uses of trace_flag to reflect the new flags.
1181 * tests/sets.at (Firsts, Nullable, Broken Closure): Use --trace=sets.
1182
1183 Strengthen `stage' portability.
1184
1185 * m4/stage.m4 (BISON_PREREQ_STAGE): New.
1186 * configure.in: Use it.
1187 Don't check for malloc.h and sys/times.h.
1188 * src/system.h: Include them when appropriate.
1189 * src/main.c (stage): Compile only when mallinfo, struct mallinfo,
1190 times and struct tms are available.
1191
1192 2002-07-30 Akim Demaille <akim@epita.fr>
1193
1194 In verbose parse error message, don't report `error' as an
1195 expected token.
1196 * tests/actions.at (Printers and Destructors): Adjust.
1197 * tests/calc.at (Calculator $1): Adjust.
1198 * data/yacc.c, data/glr.c, data/lalr1.c: When making the verbose
1199 error message, do not report the parser accepts the error token in
1200 that state.
1201
1202 2002-07-30 Akim Demaille <akim@epita.fr>
1203
1204 Normalize conflict related messages.
1205
1206 * src/complain.h, src/complain.c (warn, complain): New.
1207 * src/conflicts.c (conflicts_print): Use them.
1208 (conflict_report_yacc): New, extracted from...
1209 (conflicts_print): here.
1210 * tests/conflicts.at, tests/existing.at: Adjust.
1211
1212 2002-07-30 Akim Demaille <akim@epita.fr>
1213
1214 Report rules which are never reduced by the parser: those hidden
1215 by conflicts.
1216
1217 * src/LR0.c (save_reductions): Don't make the final state too
1218 different: save its reduction (accept) instead of having a state
1219 without any action (no shift or goto, no reduce).
1220 Note: the final state is now a ``regular'' state, i.e., the
1221 parsers now contain `reduce 0' as default reduction.
1222 Nevertheless, since they decide to `accept' when yystate =
1223 final_state, they still will not reduce rule 0.
1224 * src/print.c (print_actions, print_reduction): Adjust.
1225 * src/output.c (action_row): Track reduced rules.
1226 (token_actions): Report rules never reduced.
1227 * tests/conflicts.at, tests/regression.at: Adjust.
1228
1229 2002-07-30 Akim Demaille <akim@epita.fr>
1230
1231 `stage' was accidently included in a previous patch.
1232 Initiate its autoconfiscation.
1233
1234 * configure.in: Look for malloc.h and sys/times.h.
1235 * src/main.c (stage): Adjust.
1236 Report only when trace_flag.
1237
1238 2002-07-29 Akim Demaille <akim@epita.fr>
1239
1240 * src/state.h, src/state.c (transitions_t): Holds state_t*'s, not
1241 state_number_t.
1242 (errs_t): symbol_t*, not symbol_number_t.
1243 (reductions_t): rule_t*, not rule_number_t.
1244 (FOR_EACH_SHIFT): New.
1245 * src/LR0.c, src/conflicts.c, src/lalr.c, src/output.c
1246 * src/print.c, src/print_graph.c: Adjust.
1247
1248 2002-07-29 Akim Demaille <akim@epita.fr>
1249
1250 Use $accept and $end, as BYacc and BTYacc do, instead of $axiom and $.
1251
1252 * src/symtab.h, src/symtab.c (eoftoken, axiom): Rename as...
1253 (endtoken, accept): these.
1254 * src/reader.c (reader): Set endtoken's default tag to "$end".
1255 Set undeftoken's tag to "$undefined" instead of "$undefined.".
1256 * doc/bison.texinfo (Table of Symbols): Mention $accept and $end.
1257 Adjust.
1258
1259 2002-07-29 Akim Demaille <akim@epita.fr>
1260
1261 * src/reduce.c (reduce_grammar): When the language is empty,
1262 complain about the start symbol, not the axiom.
1263 Use its location.
1264 * tests/reduce.at (Empty Language): New.
1265
1266 2002-07-26 Akim Demaille <akim@epita.fr>
1267
1268 * src/reader.h, src/reader.c (gram_error): ... can't get
1269 yycontrol without making too strong assumptions on the parser
1270 itself.
1271 * src/output.c (prepare_tokens): Use the real 0th value of
1272 token_translations instead of `0'.
1273 * src/parse-gram.y (yyerror): Don't rely on yycontrol being
1274 visible here.
1275 * data/yacc.c (yyreport_parse_error): Rename yylocation as yylloc
1276 for the time being: %locations ought to provide it to yyerror.
1277
1278 2002-07-25 Akim Demaille <akim@epita.fr>
1279
1280 * src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1.
1281 * doc/bison.texinfo (Decl Summary): s/$illegal/$undefined./.
1282 * tests/regression.at (Web2c Actions): Adjust.
1283
1284 2002-07-25 Akim Demaille <akim@epita.fr>
1285
1286 Stop storing rules from 1 to nrules + 1.
1287
1288 * src/LR0.c, src/closure.c, src/derives.c, src/gram.c, src/lalr.c
1289 * src/nullable.c, src/output.c, src/print.c, src/reader.c
1290 * src/reduce.c: Allocate and free from &rules[0], not &rules[1].
1291 Iterate from 0 to nrules.
1292 Use rule_number_as_item_number and item_number_as_rule_number.
1293 Adjust to `derive' now containing possibly 0.
1294 * src/gram.h (rule_number_as_item_number, item_number_as_rule_number):
1295 Handle the `- 1' part in rule numbers from/to item numbers.
1296 * src/conflicts.c (log_resolution): Fix the message which reversed
1297 shift and reduce.
1298 * src/output.c (action_row): Initialize default_rule to -1.
1299 (token_actions): Adjust.
1300 * tests/sets.at (Nullable, Firsts): Fix the previously bogus
1301 expected output.
1302 * tests/conflicts.at (Resolved SR Conflicts): Likewise.
1303
1304 2002-07-25 Akim Demaille <akim@epita.fr>
1305
1306 * data/c.m4 (b4_c_function, b4_c_ansi_args, b4_c_ansi_arg)
1307 (b4_c_knr_arg_names, b4_c_knr_arg_name, b4_c_knr_arg_decls)
1308 (b4_c_knr_arg_decl): New.
1309 * data/yacc.c: Use it to define yysymprint, yydestruct, and
1310 yyreport_parse_error.
1311
1312 2002-07-25 Akim Demaille <akim@epita.fr>
1313
1314 * data/yacc.c (yyreport_parse_error): New, extracted from...
1315 (yyparse): here.
1316 (yydestruct, yysymprint): Move above yyparse.
1317 Be K&R compliant.
1318
1319 2002-07-25 Akim Demaille <akim@epita.fr>
1320
1321 * data/c.m4 (b4_ints_in, b4_int_type, b4_int_type_for): New,
1322 replace...
1323 (b4_sint_type, b4_uint_type): these.
1324 * data/yacc.c, data/glr.c, data/lalr1.cc: Use b4_int_type_for.
1325 * tests/regression.at (Web2c Actions): Adjust.
1326
1327 2002-07-25 Akim Demaille <akim@epita.fr>
1328
1329 * src/gram.h (TIEM_NUMBER_MAX): New.
1330 (item_number_of_rule_number, rule_number_of_item_number): Rename
1331 as...
1332 (rule_number_as_item_number, item_number_as_rule_number): these.
1333 Adjust dependencies.
1334 * src/output.c (vector_number_t, VECTOR_NUMBER_MAX)
1335 (VECTOR_NUMBER_MIN, state_number_to_vector_number)
1336 (symbol_number_to_vector_number): New.
1337 (order): Of vector_number_t* type.
1338 (base_t, BASE_MAX, BASE_MIN): New.
1339 (froms, tos, width, pos, check): Of base_t type.
1340 (action_number_t, ACTION_MIN, ACTION_MAX): New.
1341 (actrow): Of action_number_t type.
1342 (conflrow): Of unsigned int type.
1343 (table_ninf, base_ninf): New.
1344 (GENERATE_MUSCLE_INSERT_TABLE): Also output the `*_min' value.
1345 (muscle_insert_int_table, muscle_insert_base_table)
1346 (muscle_insert_rule_number_table): New.
1347 (prepare_tokens): Output `toknum' as int_table.
1348 (action_row): Returns a rule_number_t.
1349 Use ACTION_MIN, not SHRT_MIN.
1350 (token_actions): yydefact is rule_number_t*.
1351 (table_ninf_remap): New.
1352 (pack_table): Use it for `base' and `table'.
1353 * data/yacc.c, data/glr.c, data/lalr1.cc (YYFLAG): Remove,
1354 replaced with...
1355 (YYPACT_NINF, YYTABLE_NINF): these.
1356 (yypact, yytable): Compute their types instead of hard-coded
1357 `short'.
1358 * tests/regression.at (Web2c Actions): Adjust.
1359
1360 2002-07-19 Akim Demaille <akim@epita.fr>
1361
1362 * src/scan-gram.l (id): Can start with an underscore.
1363
1364 2002-07-16 Akim Demaille <akim@epita.fr>
1365
1366 * src/assoc.c, src/asssoc.h (assoc_t, assoc_to_string): New.
1367 Adjust all former `associativity' dependencies.
1368 * src/symtab.c (symbol_new): Default associativity is `undef', not
1369 `right'.
1370 (symbol_check_alias_consistence): Adjust.
1371
1372 2002-07-09 Akim Demaille <akim@epita.fr>
1373
1374 * doc/bison.texinfo: Properly set the ``header'' part.
1375 Use @dircategory ``GNU programming tools'' as per Texinfo's
1376 documentation.
1377 Use @copying.
1378
1379 2002-07-09 Akim Demaille <akim@epita.fr>
1380
1381 * lib/quotearg.h: Protect against multiple inclusions.
1382 * src/location.h (location_t): Add a `file' member.
1383 (LOCATION_RESET, LOCATION_PRINT): Adjust.
1384 * src/complain.c (warn_at, complain_at, fatal_at): Drop
1385 `error_one_per_line' support.
1386
1387 2002-07-09 Akim Demaille <akim@epita.fr>
1388
1389 * src/complain.h, src/complain.c (warn, complain): Remove, unused.
1390 * src/reader.c (lineno): Remove.
1391 Adjust all dependencies.
1392 (get_merge_function): Take a location and use complain_at.
1393 * src/symtab.h, src/symtab.c (symbol_make_alias): Likewise.
1394 * tests/regression.at (Invalid inputs, Mixing %token styles):
1395 Adjust.
1396
1397 2002-07-09 Akim Demaille <akim@epita.fr>
1398
1399 * src/parse-gram.y (rules_or_grammar_declaration): Add an error
1400 recovery rule, and forbid extensions when --yacc.
1401 (gram_error): Use complain_at.
1402 * src/reader.c (reader): Exit if there were parse errors.
1403
1404 2002-07-09 Akim Demaille <akim@epita.fr>
1405
1406 * tests/synclines.at (AT_SYNCLINES_COMPILE): New.
1407 (AT_TEST_SYNCLINE): Adjust to unusual GCC outputs.
1408 Reported by R Blake <blakers@mac.com>.
1409
1410 2002-07-09 Akim Demaille <akim@epita.fr>
1411
1412 * data/yacc.c: Output the copyright notive in the header.
1413
1414 2002-07-03 Akim Demaille <akim@epita.fr>
1415
1416 * src/output.c (froms, tos): Are state_number_t.
1417 (save_column): sp, sp1, and sp2 are state_number_t.
1418 (prepare): Rename `final' as `final_state_number', `nnts' as
1419 `nterms_number', `nrules' as `rules_number', `nstates' as
1420 `states_number', and `ntokens' as `tokens_number'. Remove `nsym',
1421 unused.
1422 * data/yacc.c, data/glr.c, data/lalr1.cc: Adjust.
1423 * data/lalr1.cc (nsym_): Remove, unused.
1424
1425 2002-07-03 Akim Demaille <akim@epita.fr>
1426
1427 * src/lalr.h, src/lalr.c (goto_number_t): New.
1428 * src/lalr.c (goto_list_t): New.
1429 Propagate them.
1430 * src/nullable.c (rule_list_t): New.
1431 Propagate.
1432 * src/types.h: Remove.
1433
1434 2002-07-03 Akim Demaille <akim@epita.fr>
1435
1436 * src/closure.c (print_fderives): Use rule_rhs_print.
1437 * src/derives.c (print_derives): Use rule_rhs_print.
1438 (rule_list_t): New, replaces `shorts'.
1439 (set_derives): Add comments.
1440 * tests/sets.at (Nullable, Firsts): Adjust.
1441
1442 2002-07-03 Akim Demaille <akim@epita.fr>
1443
1444 * src/output.c (prepare_actions): Free `tally' and `width'.
1445 (prepare_actions): Allocate and free `order'.
1446 * src/symtab.c (symbols_free): Free `symbols'.
1447 * src/scan-gram.l (scanner_free): Clear Flex's scanners memory.
1448 * src/output.c (m4_invoke): Move to...
1449 * src/scan-skel.l: here.
1450 (<<EOF>>): Close yyout, and free its name.
1451
1452 2002-07-03 Akim Demaille <akim@epita.fr>
1453
1454 Fix some memory leaks, and fix a bug: state 0 was examined twice.
1455
1456 * src/LR0.c (new_state): Merge into...
1457 (state_list_append): this.
1458 (new_states): Merge into...
1459 (generate_states): here.
1460 (set_states): Don't ensure a proper `errs' state member here, do it...
1461 * src/conflicts.c (conflicts_solve): here.
1462 * src/state.h, src/state.c: Comment changes.
1463 (state_t): Rename member `shifts' as `transitions'.
1464 Adjust all dependencies.
1465 (errs_new): For consistency, also take the values as argument.
1466 (errs_dup): Remove.
1467 (state_errs_set): New.
1468 (state_reductions_set, state_transitions_set): Assert that no
1469 previous value was assigned.
1470 (state_free): New.
1471 (states_free): Use it.
1472 * src/conflicts.c (resolve_sr_conflict): Don't use an `errs_t' as
1473 temporary storage: use `errs' and `nerrs' as elsewhere.
1474 (set_conflicts): Allocate and free this `errs'.
1475
1476 2002-07-02 Akim Demaille <akim@epita.fr>
1477
1478 * lib/libiberty.h: New.
1479 * lib: Update the bitset implementation from upstream.
1480 * src/closure.c, src/lalr.c, src/output.c, src/print_graph.c,
1481 * src/state.c: Use BITSET_FOR_EACH, not BITSET_EXECUTE.
1482 * src/main.c: Adjust bitset stats calls.
1483
1484 2002-07-01 Paul Eggert <eggert@twinsun.com>
1485
1486 * src/scan-gram.l (<SC_ESCAPED_CHARACTER>): Convert to unsigned
1487 char, so that negative chars don't collide with $.
1488
1489 2002-06-30 Akim Demaille <akim@epita.fr>
1490
1491 Have the GLR tests be `warning' checked, and fix the warnings.
1492
1493 * data/glr.c (YYFPRINTF): Always define it, not only when YYDEBUG
1494 (yyuserAction, yyreportAmbiguity): `Use' all the arguments.
1495 (yyremoveDeletes): `yyi' and `yyj' are size_t.
1496 Use YYFPRINTF when under if (YYDEBUG) to avoid empty `if' bodies.
1497 (yyaddDeferredAction): static.
1498 (yyglrReduce): yyi, yyk, amd yyposn are size_t.
1499 (yyreportParseError): yyprefix is const.
1500 yytokenp is used only when verbose.
1501 (yy__GNUC__): Replace with __GNUC__.
1502 (yypdumpstack): yyi is size_t.
1503 (yypreference): Un-yy local variables and arguments, to avoid
1504 clashes with `yyr1'. Anyway, we are not in the user name space.
1505 (yytname_size): be an int, as is compared with ints.
1506 * tests/testsuite.at (AT_COMPILE, AT_PARSER_CHECK): New.
1507 Use them.
1508 * tests/cxx-gram.at: Use quotation to protect $1.
1509 Use AT_COMPILE to enable warnings hunts.
1510 Prototype yylex and yyerror.
1511 `Use' argc.
1512 Include `string.h', not `strings.h'.
1513 Produce and prototype stmtMerge only when used.
1514 yylex takes a location.
1515
1516 2002-06-30 Akim Demaille <akim@epita.fr>
1517
1518 We spend a lot of time in quotearg, in particular when --verbose.
1519
1520 * src/symtab.c (symbol_get): Store a quoted version of the key.
1521 (symbol_tag_get, symbol_tag_get_n, symbol_tag_print): Remove.
1522 Adjust all callers.
1523
1524 2002-06-30 Akim Demaille <akim@epita.fr>
1525
1526 * src/state.h (reductions_t): Rename member `nreds' as num.
1527 (errs_t): Rename members `nerrs' and `errs' as `num' and `symbols'.
1528 * src/state.c (ERRS_ALLOC, REDUCTIONS_ALLOC): Use the correct types.
1529
1530 2002-06-30 Akim Demaille <akim@epita.fr>
1531
1532 * src/state.h, src/state.c (shift_t, SHIFT_SYMBOL, SHIFT_IS_SHIFT)
1533 (SHIFT_IS_GOTO, SHIFT_IS_ERROR, SHIFT_DISABLE, SHIFT_IS_DISABLED)
1534 (shifts_to): Rename as...
1535 (transition_t, TRANSITION_SYMBOL, TRANSITION_IS_TRANSITION)
1536 (TRANSITION_IS_GOTO, TRANSITION_IS_ERROR, TRANSITION_DISABLE)
1537 (TRANSITION_IS_DISABLED, transitions_to): these.
1538
1539 2002-06-30 Akim Demaille <akim@epita.fr>
1540
1541 * src/print.c (print_shifts, print_gotos): Merge into...
1542 (print_transitions): this.
1543 (print_transitions, print_errs, print_reductions): Align the
1544 lookaheads columns.
1545 (print_core, print_transitions, print_errs, print_state,
1546 print_grammar): Output empty lines separator before, not after.
1547 (state_default_rule_compute): Rename as...
1548 (state_default_rule): this.
1549 * tests/conflicts.at (Defaulted Conflicted Reduction),
1550 (Unresolved SR Conflicts, Resolved SR Conflicts): Adjust.
1551 * tests/regression.at (Rule Line Numbers, Web2c Report): Adjust.
1552
1553 2002-06-30 Akim Demaille <akim@epita.fr>
1554
1555 Display items as we display rules.
1556
1557 * src/gram.h, src/gram.c (rule_lhs_print): New.
1558 * src/gram.c (grammar_rules_partial_print): Use it.
1559 * src/print.c (print_core): Likewise.
1560 * tests/conflicts.at (Defaulted Conflicted Reduction),
1561 (Unresolved SR Conflicts): Adjust.
1562 (Unresolved SR Conflicts): Adjust and rename as...
1563 (Resolved SR Conflicts): this, as was meant.
1564 * tests/regression.at (Web2c Report): Adjust.
1565
1566 2002-06-30 Akim Demaille <akim@epita.fr>
1567
1568 * src/print.c (state_default_rule_compute): New, extracted from...
1569 (print_reductions): here.
1570 Pessimize, but clarify the code.
1571 * tests/conflicts.at (Defaulted Conflicted Reduction): New.
1572
1573 2002-06-30 Akim Demaille <akim@epita.fr>
1574
1575 * src/output.c (action_row): Let default_rule be always a rule
1576 number.
1577
1578 2002-06-30 Akim Demaille <akim@epita.fr>
1579
1580 * src/closure.c (print_firsts, print_fderives, closure):
1581 Use BITSET_EXECUTE.
1582 * src/lalr.c (lookaheads_print): Likewise.
1583 * src/state.c (state_rule_lookaheads_print): Likewise.
1584 * src/print_graph.c (print_core): Likewise.
1585 * src/print.c (print_reductions): Likewise.
1586 * src/output.c (action_row): Likewise.
1587 Use SHIFT_IS_DISABLED, SHIFT_IS_SHIFT and SHIFT_SYMBOL.
1588
1589 2002-06-30 Akim Demaille <akim@epita.fr>
1590
1591 * src/print_graph.c: Use report_flag.
1592
1593 2002-06-30 Akim Demaille <akim@epita.fr>
1594
1595 * src/lalr.c (traverse, digraph, matrix_print, transpose): Move
1596 to...
1597 * src/relation.h, src/relation.c (traverse, relation_digraph)
1598 (relation_print, relation_transpose): New.
1599
1600 2002-06-30 Akim Demaille <akim@epita.fr>
1601
1602 * src/state.h, src/state.c (shifts_to): New.
1603 * src/lalr.c (build_relations): Use it.
1604
1605 2002-06-30 Akim Demaille <akim@epita.fr>
1606
1607 * src/gram.h (rule_number_t, RULE_NUMBER_MAX, int_of_rule_number)
1608 (item_number_of_rule_number, rule_number_of_item_number): New.
1609 * src/LR0.c, src/closure.c, src/derives.c, src/derives.h,
1610 * src/gram.c, src/lalr.c, src/nullable.c, src/output.c, src/print.c,
1611 * src/print_graph.c, src/reader.c, src/reduce.c, src/reduce.h:
1612 Propagate their use.
1613 Much remains to be done, in particular wrt `shorts' from types.h.
1614
1615 2002-06-30 Akim Demaille <akim@epita.fr>
1616
1617 * src/symtab.c (symbol_new): Initialize the `printer' member.
1618
1619 2002-06-30 Akim Demaille <akim@epita.fr>
1620
1621 * src/LR0.c (save_reductions): Remove, replaced by...
1622 * src/state.h, src/state.c (state_reductions_set): New.
1623 (reductions, errs): Rename as...
1624 (reductions_t, errs_t): these.
1625 Adjust all dependencies.
1626
1627 2002-06-30 Akim Demaille <akim@epita.fr>
1628
1629 * src/LR0.c (state_list_t, state_list_append): New.
1630 (first_state, last_state): Now symbol_list_t.
1631 (this_state): Remove.
1632 (new_itemsets, append_states, save_reductions): Take a state_t as
1633 argument.
1634 (set_states, generate_states): Adjust.
1635 (save_shifts): Remove, replaced by...
1636 * src/state.h, src/state.c (state_shifts_set): New.
1637 (shifts): Rename as...
1638 (shifts_t): this.
1639 Adjust all dependencies.
1640 * src/state.h (state_t): Remove the `next' member.
1641
1642 2002-06-30 Akim Demaille <akim@epita.fr>
1643
1644 * src/vcg.c (quote): Use slot 2, since we often pass symbol tag
1645 escaped in slot 0.
1646
1647 2002-06-30 Akim Demaille <akim@epita.fr>
1648
1649 Use hash.h for the state hash table.
1650
1651 * src/LR0.c (STATE_HASH_SIZE, state_hash): Remove.
1652 (allocate_storage): Use state_hash_new.
1653 (free_storage): Use state_hash_free.
1654 (new_state, get_state): Adjust.
1655 * src/lalr.h, src/lalr.c (states): Move to...
1656 * src/states.h (state_t): Remove the `link' member, no longer
1657 used.
1658 * src/states.h, src/states.c: here.
1659 (state_hash_new, state_hash_free, state_hash_lookup)
1660 (state_hash_insert, states_free): New.
1661 * src/states.c (state_table, state_compare, state_hash): New.
1662 * src/output.c (output_actions): Do not free states now, since we
1663 still need to know the final_state number in `prepare', called
1664 afterwards. Do it...
1665 * src/main.c (main): here: call states_free after `output'.
1666
1667 2002-06-30 Akim Demaille <akim@epita.fr>
1668
1669 * src/state.h, src/state.c (state_new): New, extracted from...
1670 * src/LR0.c (new_state): here.
1671 * src/state.h (STATE_ALLOC): Move to...
1672 * src/state.c: here.
1673 * src/LR0.h, src/LR0.c (nstates, final_state): Move to...
1674 * src/state.h, src/state.c: here.
1675
1676 2002-06-30 Akim Demaille <akim@epita.fr>
1677
1678 * src/reader.c (gensym): Rename as...
1679 * src/symtab.h, src/symtab.c (dummy_symbol_get): this.
1680 (getsym): Rename as...
1681 (symbol_get): this.
1682
1683 2002-06-30 Akim Demaille <akim@epita.fr>
1684
1685 * src/state.h (state_number_t, STATE_NUMBER_MAX): New.
1686 * src/LR0.c, src/LR0.h, src/conflicts.c, src/lalr.c, src/lalr.h,
1687 * src/output.c, src/print.c, src/print_graph.c: Propagate.
1688 * src/LR0.h, src/LR0.h (final_state): Is a state_t*.
1689
1690 2002-06-30 Akim Demaille <akim@epita.fr>
1691
1692 Make the test suite pass with warnings checked.
1693
1694 * tests/actions.at (Printers and Destructors): Improve.
1695 Avoid unsigned vs. signed issues.
1696 * tests/calc.at: Don't exercise the scanner here, do it...
1697 * tests/input.at (Torturing the Scanner): here.
1698
1699 2002-06-28 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1700
1701 * data/glr.c: Correct typo in Emacs-mode directive. Slightly
1702 reorganize first lines parallel to yacc.c.
1703
1704 2002-06-28 Akim Demaille <akim@epita.fr>
1705
1706 * data/c.m4 (b4_copyright, b4_sint_type, b4_uint_type, b4_token_define)
1707 (b4_token_enum, b4_token_defines): New, factored from...
1708 * data/lalr1.cc, data/yacc.c, glr.c: here.
1709
1710 2002-06-28 Akim Demaille <akim@epita.fr>
1711
1712 * data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for
1713 unused variables.
1714 * src/output.c (merger_output): static.
1715
1716 2002-06-28 Akim Demaille <akim@epita.fr>
1717
1718 * src/reader.h: s/grammer_current_rule_merge_set/grammar_.../.
1719 * src/conflicts.c (conflicts_total_count): `i' is unsigned, to
1720 pacify GCC.
1721 * src/output.c (save_row): Initialize all the variables to pacify GCC.
1722
1723 2002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1724
1725 Accumulated changelog for new GLR parsing features.
1726
1727 * src/conflicts.c (count_total_conflicts): Change name to
1728 conflicts_total_count.
1729 * src/conflicts.h: Ditto.
1730 * src/output.c (token_actions): Use the new name.
1731 (output_conflicts): Change conflp => conflict_list_heads, and
1732 confl => conflict_list for better readability.
1733 * data/glr.c: Use the new names.
1734 * NEWS: Add self to GLR announcement.
1735
1736 * src/reader.c (free_merger_functions): Cleanup: XFREE->free.
1737
1738 * doc/bison.texinfo (GLR Parsers): Make corrections suggested by
1739 Akim Demaille.
1740
1741 * data/bison.glr: Change name to glr.c
1742 * data/glr.c: Renamed from bison.glr.
1743 * data/Makefile.am: Add glr.c
1744
1745 * src/getargs.c:
1746
1747 * src/symlist.h: Add dprec and merger fields to symbol_list_s.
1748 * src/symlist.c (symbol_list_new): Initialize dprec and merger fields.
1749
1750 Originally 2002-06-16 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1751
1752 * data/bison.glr: Be sure to restore the
1753 current #line when returning to the skeleton contents after having
1754 exposed the input file's #line.
1755
1756 Originally 2002-06-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1757
1758 * data/bison.glr: Bring up to date with changes to bison.simple.
1759
1760 Originally 2002-06-03 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1761
1762 * data/bison.glr: Correct definitions that use b4_prefix.
1763 Various reformatting.
1764 (GLRStack): Make yychar (in YYPURE case) and yytokenp as part of stack.
1765 (yyreportParseError, yyrecoverParseError, yyprocessOneStack): remove
1766 yytokenp argument; now part of stack.
1767 (yychar): Define to behave as documented.
1768 (yyclearin): Ditto.
1769
1770 Originally 2002-05-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
1771
1772 * src/reader.h: Add declaration for free_merger_functions.
1773
1774 * src/reader.c (merge_functions): New variable.
1775 (get_merge_function): New function.
1776 (free_merger_functions): New function.
1777 (readgram): Check for %prec that is not followed by a symbol.
1778 Handle %dprec and %merge declarations.
1779 (packgram): Initialize dprec and merger fields in rules array.
1780
1781 * src/output.c (conflict_tos, conflrow, conflict_table, conflict_list,
1782 conflict_list_cnt, conflict_list_free): New variables.
1783 (table_grow): Also grow conflict_table.
1784 (prepare_rules): Output dprec and merger tables.
1785 (conflict_row): New function.
1786 (action_row): Output conflict lists for GLR parser. Don't use
1787 default reduction in conflicted states for GLR parser so that there
1788 are spaces for the conflict lists.
1789 (save_row): Also save conflict information.
1790 (token_actions): Allocate conflict list.
1791 (merger_output): New function.
1792 (pack_vector): Pack conflict table, too.
1793 (output_conflicts): New function to output yyconflp and yyconfl.
1794 (output_check): Allocate conflict_tos.
1795 (output_actions): Output conflict tables, also.
1796 (output_skeleton): Output b4_mergers definition.
1797 (prepare): Output b4_max_rhs_length definition.
1798 Use 'bison.glr' as default skeleton for GLR parsers.
1799
1800 * src/gram.c (glr_parser): New flag.
1801 (grammar_free): Call free_merger_functions.
1802
1803 * src/conflicts.c (count_rr_conflicts): Augment to optionally count
1804 all pairs of conflicting reductions, rather than just all tokens
1805 causing conflicts. Needed to size conflict tables.
1806 (conflicts_output): Modify call to count_rr_conflicts for new
1807 interface.
1808 (conflicts_print): Ditto.
1809 (count_total_conflicts): New function.
1810
1811 * src/reader.h (merger_list): New type.
1812 (merge_functions): New variable.
1813
1814 * src/lex.h (tok_dprec, tok_merge): New token types.
1815
1816 * src/gram.h (rule_s): Add dprec and merger fields.
1817 (glr_parser): New flag.
1818
1819 * src/conflicts.h (count_total_conflicts): New function.
1820
1821 * src/options.c (option_table): Add %dprec, %merge, and %glr-parser.
1822
1823 * doc/bison.texinfo (Generalized LR Parsing): New section.
1824 (GLR Parsers): New section.
1825 (Language and Grammar): Mention GLR parsing.
1826 (Table of Symbols): Add %dprec, %glr-parser, %merge, GLR
1827 Correct typo ("tge" -> "the").
1828
1829 * data/bison.glr: New skeleton for GLR parsing.
1830
1831 * tests/cxx-gram.at: New tests for GLR parsing.
1832
1833 * tests/testsuite.at: Include cxx-gram.at.
1834
1835 * tests/Makefile.am: Add cxx-gram.at.
1836
1837 * src/parse-gram.y:
1838
1839 * src/scan-gram.l: Add %dprec, %glr-parser, %merge.
1840
1841 * src/parse-gram.y: Grammar for %dprec, %merge, %glr-parser.
1842
1843 2002-06-27 Akim Demaille <akim@epita.fr>
1844
1845 * src/options.h, src/options.c: Remove.
1846 * src/getargs.c (short_options, long_options): New.
1847
1848 2002-06-27 Akim Demaille <akim@epita.fr>
1849
1850 * data/bison.simple, data/bison.c++: Rename as...
1851 * data/yacc.c, data/lalr1.cc: these.
1852 * doc/bison.texinfo (Environment Variables): Remove.
1853
1854 2002-06-25 Raja R Harinath <harinath@cs.umn.edu>
1855
1856 * src/getargs.c (report_argmatch): Initialize strtok().
1857
1858 2002-06-20 Akim Demaille <akim@epita.fr>
1859
1860 * data/bison.simple (b4_symbol_actions): New, replaces...
1861 (b4_symbol_destructor, b4_symbol_printer): these.
1862 (yysymprint): Be sure to call YYPRINT only for tokens, and using
1863 user token numbers.
1864
1865 2002-06-20 Akim Demaille <akim@epita.fr>
1866
1867 * data/bison.simple (yydestructor): Rename as...
1868 (yydestruct): this.
1869
1870 2002-06-20 Akim Demaille <akim@epita.fr>
1871
1872 * src/symtab.h, src/symtab.c (symbol_type_set)
1873 (symbol_destructor_set, symbol_precedence_set): The location is
1874 the last argument.
1875 Adjust all callers.
1876
1877 2002-06-20 Akim Demaille <akim@epita.fr>
1878
1879 * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser
1880 internals.
1881 * src/reader.h, src/reader.c (grammar_current_rule_prec_set):
1882 Takes a location.
1883 * src/symtab.h, src/symtab.c (symbol_class_set)
1884 (symbol_user_token_number_set): Likewise.
1885 Adjust all callers.
1886 Promote complain_at.
1887 * tests/input.at (Type Clashes): Adjust.
1888
1889 2002-06-20 Akim Demaille <akim@epita.fr>
1890
1891 * data/bison.simple (YYLEX): Fix the declaration when
1892 %pure-parser.
1893
1894 2002-06-20 Akim Demaille <akim@epita.fr>
1895
1896 * data/bison.simple (yysymprint): Don't print the token number,
1897 just its name.
1898 * tests/actions.at (Destructors): Rename as...
1899 (Printers and Destructors): this.
1900 Also exercise %printer.
1901
1902 2002-06-20 Akim Demaille <akim@epita.fr>
1903
1904 * data/bison.simple (YYDSYMPRINT): New.
1905 Use it to remove many of the #if YYDEBUG/if (yydebug).
1906
1907 2002-06-20 Akim Demaille <akim@epita.fr>
1908
1909 * src/symtab.h, src/symtab.c (symbol_t): printer and
1910 printer_location are new members.
1911 (symbol_printer_set): New.
1912 * src/parse-gram.y (PERCENT_PRINTER): New token.
1913 Handle its associated rule.
1914 * src/scan-gram.l: Adjust.
1915 (handle_destructor_at, handle_destructor_dollar): Rename as...
1916 (handle_symbol_code_at, handle_symbol_code_dollar): these.
1917 * src/output.c (symbol_printers_output): New.
1918 (output_skeleton): Call it.
1919 * data/bison.simple (yysymprint): New. Cannot be named yyprint
1920 since there are already many grammar files with a user `yyprint'.
1921 Replace the calls to YYPRINT to calls to yysymprint.
1922 * tests/calc.at: Adjust.
1923 * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was
1924 taking advantage of parser very internal details (stack size!).
1925
1926 2002-06-20 Akim Demaille <akim@epita.fr>
1927
1928 * src/scan-gram.l: Complete the scanner with the missing patterns
1929 to pacify Flex.
1930 Use `quote' and `symbol_tag_get' where appropriate.
1931
1932 2002-06-19 Akim Demaille <akim@epita.fr>
1933
1934 * tests/actions.at (Destructors): Augment to test locations.
1935 * data/bison.simple (yydestructor): Pass it the current location
1936 if locations are enabled.
1937 Prototype only when __STDC__ or C++.
1938 Change the argument names to move into the yy name space: there is
1939 user code here.
1940
1941 2002-06-19 Akim Demaille <akim@epita.fr>
1942
1943 * data/bison.simple (b4_pure_if): New.
1944 Use it instead of #ifdef YYPURE.
1945
1946 2002-06-19 Akim Demaille <akim@epita.fr>
1947
1948 * data/bison.simple (b4_location_if): New.
1949 Use it instead of #ifdef YYLSP_NEEDED.
1950
1951 2002-06-19 Akim Demaille <akim@epita.fr>
1952
1953 Prepare @$ in %destructor, but currently don't bind it in the
1954 skeleton, as %location use is not cleaned up yet.
1955
1956 * src/scan-gram.l (handle_dollar, handle_destructor_at)
1957 (handle_action_at): New.
1958 (handle_at, handle_action_dollar, handle_destructor_dollar): Take
1959 a braced_code_t and a location as additional arguments.
1960 (handle_destructor_dollar): Instead of requiring `b4_eval', just
1961 unquote one when outputting `b4_dollar_dollar'.
1962 Adjust callers.
1963 * data/bison.simple (b4_eval): Remove.
1964 (b4_symbol_destructor): Adjust.
1965 * tests/input.at (Invalid @n): Adjust.
1966
1967 2002-06-19 Zack Weinberg <zack@codesourcery.com>
1968
1969 * doc/bison.texinfo: Document ability to have multiple
1970 prologue sections.
1971
1972 2002-06-18 Akim Demaille <akim@epita.fr>
1973
1974 * src/files.c (compute_base_names): When computing the output file
1975 names from the input file name, strip the directory part.
1976
1977 2002-06-18 Akim Demaille <akim@epita.fr>
1978
1979 * data/bison.simple.new: Comment changes.
1980 Reported by Andreas Schwab.
1981
1982 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu>
1983
1984 * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that
1985 there are no `label `yyoverflowlab' defined but not used' warnings
1986 when yyoverflow is defined.
1987
1988 2002-06-18 Akim Demaille <akim@epita.fr>
1989
1990 * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a
1991 new member.
1992 (symbol_destructor_set): Adjust.
1993 * src/output.c (symbol_destructors_output): Output the destructor
1994 locations.
1995 Output the symbol name.
1996 * data/bison.simple (b4_symbol_destructor): Adjust.
1997
1998 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com>
1999 and Akim Demaille <akim@epita.fr>
2000
2001 * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy
2002 what's left on the stack when the error recovery hits EOF.
2003 * tests/actions.at (Destructors): Complete to exercise this case.
2004
2005 2002-06-17 Akim Demaille <akim@epita.fr>
2006
2007 * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of
2008 arguments is really empty, not only equal to `[]'.
2009 * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new
2010 member.
2011 (symbol_destructor_set): New.
2012 * src/output.c (symbol_destructors_output): New.
2013 * src/reader.h (brace_code_t, current_braced_code): New.
2014 * src/scan-gram.l (BRACED_CODE): Use it to branch on...
2015 (handle_dollar): Rename as...
2016 (handle_action_dollar): this.
2017 (handle_destructor_dollar): New.
2018 * src/parse-gram.y (PERCENT_DESTRUCTOR): New.
2019 (grammar_declaration): Use it.
2020 * data/bison.simple (yystos): Is always defined.
2021 (yydestructor): New.
2022 * tests/actions.at (Destructors): New.
2023 * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep.
2024
2025 2002-06-17 Akim Demaille <akim@epita.fr>
2026
2027 * src/symlist.h, src/symlist.c (symbol_list_length): New.
2028 * src/scan-gram.l (handle_dollar, handle_at): Compute the
2029 rule_length only when needed.
2030 * src/output.c (actions_output, token_definitions_output): Output
2031 the full M4 block.
2032 * src/symtab.c: Don't access directly to the symbol tag, use
2033 symbol_tag_get.
2034 * src/parse-gram.y: Use symbol_list_free.
2035
2036 2002-06-17 Akim Demaille <akim@epita.fr>
2037
2038 * src/reader.h, src/reader.c (symbol_list, symbol_list_new)
2039 (symbol_list_prepend, get_type_name): Move to...
2040 * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new)
2041 (symbol_list_prepend, symbol_list_n_type_name_get): here.
2042 Adjust all callers.
2043 (symbol_list_free): New.
2044 * src/scan-gram.l (handle_dollar): Takes a location.
2045 * tests/input.at (Invalid $n): Adjust.
2046
2047 2002-06-17 Akim Demaille <akim@epita.fr>
2048
2049 * src/reader.h, src/reader.c (symbol_list_new): Export it.
2050 (symbol_list_prepend): New.
2051 * src/parse-gram.y (%union): `list' is a new member.
2052 (symbols.1): New, replaces...
2053 (terms_to_prec.1, nterms_to_type.1): these.
2054 * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set)
2055 Take a location as additional argument.
2056 Adjust all callers.
2057
2058 2002-06-15 Akim Demaille <akim@epita.fr>
2059
2060 * src/parse-gram.y: Move %token in the declaration section so that
2061 we don't depend upon CVS Bison.
2062
2063 2002-06-15 Akim Demaille <akim@epita.fr>
2064
2065 * src/state.h, src/state.c (state_rule_lookaheads_print): New.
2066 * src/print.c (print_core): Use it.
2067
2068 2002-06-15 Akim Demaille <akim@epita.fr>
2069
2070 * src/conflicts.c (log_resolution): Accept the rule involved in
2071 the sr conflicts instead of the lookahead number that points to
2072 that rule.
2073 (flush_reduce): Accept the current lookahead vector as argument,
2074 instead of the index in LA.
2075 (resolve_sr_conflict): Accept the current number of lookahead
2076 bitset to consider for the STATE, instead of the index in LA.
2077 (set_conflicts): Adjust.
2078 * src/lalr.c, src/lalr.h, src/state.h: Comment changes.
2079
2080 2002-06-15 Akim Demaille <akim@epita.fr>
2081
2082 * src/state.h (state_t): Replace the `lookaheadsp' member, a
2083 short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**).
2084 Adjust all dependencies.
2085 * src/lalr.c (initialize_lookaheads): Split into...
2086 (states_lookaheads_count, states_lookaheads_initialize): these.
2087 (lalr): Adjust.
2088
2089 2002-06-15 Akim Demaille <akim@epita.fr>
2090
2091 * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved
2092 out of...
2093 (grammar_rules_print): here.
2094 * src/reduce.c (reduce_output): Use it.
2095 * tests/reduce.at (Useless Rules, Reduced Automaton)
2096 (Underivable Rules): Adjust.
2097
2098 2002-06-15 Akim Demaille <akim@epita.fr>
2099
2100 Copy BYacc's nice way to report the grammar.
2101
2102 * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print):
2103 New.
2104 Don't print the rules' location, it is confusing and useless.
2105 (rule_print): Use grammar_rhs_print.
2106 * src/print.c (print_grammar): Use grammar_rules_print.
2107
2108 2002-06-15 Akim Demaille <akim@epita.fr>
2109
2110 Complete and rationalize `useless thing' warnings.
2111
2112 * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n)
2113 (symbol_tag_print): New.
2114 Use them everywhere in place of accessing directly the tag member.
2115 * src/gram.h, src/gram.c (rule_print): New.
2116 Use it where a rule used to be printed `by hand'.
2117 * src/reduce.c (nonterminals_reduce): Report the use nonterminals.
2118 (reduce_grammar_tables): Report the useless rules.
2119 (reduce_print): Useless things are a warning, not an error.
2120 Report it as such.
2121 * tests/reduce.at (Useless Nonterminals, Useless Rules):
2122 (Reduced Automaton, Underivable Rules): Adjust.
2123 * tests/regression.at (Web2c Report, Web2c Report): Adjust.
2124 * tests/conflicts.at (Unresolved SR Conflicts)
2125 (Solved SR Conflicts): Adjust.
2126
2127 2002-06-15 Akim Demaille <akim@epita.fr>
2128
2129 Let symbols have a location.
2130
2131 * src/symtab.h, src/symtab.c (symbol_t): Location is a new member.
2132 (getsym): Adjust.
2133 Adjust all callers.
2134 * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at):
2135 Use location_t, not int.
2136 * src/symtab.c (symbol_check_defined): Take advantage of the
2137 location.
2138 * tests/regression.at (Invalid inputs): Adjust.
2139
2140 2002-06-15 Akim Demaille <akim@epita.fr>
2141
2142 * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New.
2143 (input): Don't try to initialize yylloc here, do it in the
2144 scanner.
2145 * src/scan-gram.l (YY_USER_INIT): Initialize yylloc.
2146 * src/gram.h (rule_t): Change line and action_line into location
2147 and action_location, of location_t type.
2148 Adjust all dependencies.
2149 * src/location.h, src/location.c (empty_location): New.
2150 * src/reader.h, src/reader.c (grammar_start_symbol_set)
2151 (grammar_symbol_append, grammar_rule_begin, grammar_rule_end)
2152 (grammar_current_rule_symbol_append)
2153 (grammar_current_rule_action_append): Expect a location as argument.
2154 * src/reader.c (grammar_midrule_action): Adjust to attach an
2155 action's location as dummy symbol location.
2156 * src/symtab.h, src/symtab.c (startsymbol_location): New.
2157 * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust
2158 the line numbers.
2159
2160 2002-06-14 Akim Demaille <akim@epita.fr>
2161
2162 Grammar declarations may be found in the grammar section.
2163
2164 * src/parse-gram.y (rules_or_grammar_declaration): New.
2165 (declarations): Each declaration may end with a semicolon, not
2166 just...
2167 (grammar_declaration): `"%union"'.
2168 (grammar): Branch to rules_or_grammar_declaration.
2169
2170 2002-06-14 Akim Demaille <akim@epita.fr>
2171
2172 * src/main.c (main): Invoke scanner_free.
2173
2174 2002-06-14 Akim Demaille <akim@epita.fr>
2175
2176 * src/output.c (m4_invoke): Extracted from...
2177 (output_skeleton): here.
2178 Free tempfile.
2179
2180 2002-06-14 Akim Demaille <akim@epita.fr>
2181
2182 * src/parse-gram.y (directives, directive, gram)
2183 (grammar_directives, precedence_directives, precedence_directive):
2184 Rename as...
2185 (declarations, declaration, grammar, grammar_declaration)
2186 (precedence_declaration, precedence_declarator): these.
2187 (symbol_declaration): New.
2188
2189 2002-06-14 Akim Demaille <akim@epita.fr>
2190
2191 * src/files.c (action_obstack): Remove, unused.
2192 (output_obstack): Remove it, and all its dependencies, as it is no
2193 longer needed.
2194 * src/reader.c (epilogue_set): Build the epilogue in the
2195 muscle_obstack.
2196 * src/output.h, src/output.c (muscle_obstack): Move to...
2197 * src/muscle_tab.h, src/muscle_tab.h: here.
2198 (muscle_init): Initialize muscle_obstack.
2199 (muscle_free): New.
2200 * src/main.c (main): Call it.
2201
2202 2002-06-14 Akim Demaille <akim@epita.fr>
2203
2204 * src/location.h: New, extracted from...
2205 * src/reader.h: here.
2206 * src/Makefile.am (noinst_HEADERS): Merge into
2207 (bison_SOURCES): this.
2208 Add location.h.
2209 * src/parse-gram.y: Use location_t instead of Bison's.
2210 * src/reader.h, src/reader.c (prologue_augment, epilogue_set):
2211 Use location_t instead of ints.
2212
2213 2002-06-14 Akim Demaille <akim@epita.fr>
2214
2215 * data/bison.simple, data/bison.c++: Be sure to restore the
2216 current #line when returning to the skeleton contents after having
2217 exposed the input file's #line.
2218
2219 2002-06-12 Akim Demaille <akim@epita.fr>
2220
2221 * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too
2222 eager.
2223 * tests/actions.at (Exotic Dollars): New.
2224
2225 2002-06-12 Akim Demaille <akim@epita.fr>
2226
2227 * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst
2228 ['"/] too eagerly.
2229 * tests/input.at (Torturing the Scanner): New.
2230
2231 2002-06-11 Akim Demaille <akim@epita.fr>
2232
2233 * src/scan-gram.l (YY_OBS_INIT): Remove, replace with...
2234 [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE]
2235 [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment.
2236 * src/reader.h, src/scan-gram.l (scanner_initialize): this.
2237 * src/reader.c (reader): Use it.
2238
2239 2002-06-11 Akim Demaille <akim@epita.fr>
2240
2241 * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval.
2242 Adjust all callers.
2243 (scanner_last_string_free): New.
2244
2245 2002-06-11 Akim Demaille <akim@epita.fr>
2246
2247 * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as...
2248 (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these.
2249 (last_string, YY_OBS_FREE): New.
2250 Use them when returning an ID.
2251
2252 2002-06-11 Akim Demaille <akim@epita.fr>
2253
2254 Have Bison grammars parsed by a Bison grammar.
2255
2256 * src/reader.c, src/reader.h (prologue_augment): New.
2257 * src/reader.c (copy_definition): Remove.
2258
2259 * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment)
2260 (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action)
2261 (grammar_current_rule_prec_set, grammar_current_rule_check)
2262 (grammar_current_rule_symbol_append)
2263 (grammar_current_rule_action_append): Export.
2264 * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_
2265 (symbol_list_action_append): Remove.
2266 Hook the routines from reader.
2267 * src/scan-gram.l: In INITIAL, characters and strings are tokens.
2268 * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now.
2269
2270 * src/reader.c (read_declarations): Remove, unused.
2271
2272 * src/parse-gram.y: Handle the epilogue.
2273 * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as...
2274 (grammar_start_symbol_set): this.
2275 * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet.
2276 * src/reader.c (readgram): Remove, unused.
2277 (reader): Adjust to insert eoftoken and axiom where appropriate.
2278
2279 * src/reader.c (copy_dollar): Replace with...
2280 * src/scan-gram.h (handle_dollar): this.
2281 * src/parse-gram.y: Remove `%thong'.
2282
2283 * src/reader.c (copy_at): Replace with...
2284 * src/scan-gram.h (handle_at): this.
2285
2286 * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at):
2287 New.
2288
2289 * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the
2290 time being.
2291
2292 * src/reader.h, src/reader.c (grammar_rule_end): New.
2293
2294 * src/parse.y (current_type, current_class): New.
2295 Implement `%nterm', `%token' support.
2296 Merge `%term' into `%token'.
2297 (string_as_id): New.
2298 * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the
2299 type name.
2300
2301 * src/parse-gram.y: Be sure to handle properly the beginning of
2302 rules.
2303
2304 * src/parse-gram.y: Handle %type.
2305 * src/reader.c (grammar_rule_end): Call grammar_current_rule_check.
2306
2307 * src/parse-gram.y: More directives support.
2308 * src/options.c: No longer handle source directives.
2309
2310 * src/parse-gram.y: Fix %output.
2311
2312 * src/parse-gram.y: Handle %union.
2313 Use the prologue locations.
2314 * src/reader.c (parse_union_decl): Remove.
2315
2316 * src/reader.h, src/reader.c (epilogue_set): New.
2317 * src/parse-gram.y: Use it.
2318
2319 * data/bison.simple, data/bison.c++: b4_stype is now either not
2320 defined, then default to int, or to the contents of %union,
2321 without `union' itself.
2322 Adjust.
2323 * src/muscle_tab.c (muscle_init): Don't predefine `stype'.
2324
2325 * src/output.c (actions_output): Don't output braces, as they are
2326 already handled by the scanner.
2327
2328 * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of
2329 characters to themselves.
2330
2331 * tests/reduce.at (Reduced Automaton): End the grammars with %% so
2332 that the epilogue has a proper #line.
2333
2334 * src/parse-gram.y: Handle precedence/associativity.
2335
2336 * src/symtab.c (symbol_precedence_set): Requires the symbol to be
2337 a terminal.
2338 * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters.
2339 * tests/calc.at: Do not use `%token "foo"' as it makes not sense
2340 at all to define terminals that cannot be emitted.
2341
2342 * src/scan-gram.l: Escape M4 characters.
2343
2344 * src/scan-gram.l: Working properly with escapes in user
2345 strings/characters.
2346
2347 * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR)
2348 (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING'
2349 grammar.
2350 Use more modest sizes, as for the time being the parser does not
2351 release memory, and therefore the process swallows a huge amount
2352 of memory.
2353
2354 * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the
2355 stricter %token grammar.
2356
2357 * src/symtab.h (associativity): Add `undef_assoc'.
2358 (symbol_precedence_set): Do nothing when passed an undef_assoc.
2359 * src/symtab.c (symbol_check_alias_consistence): Adjust.
2360
2361 * tests/regression.at (Invalid %directive): Remove, as it is now
2362 meaningless.
2363 (Invalid inputs): Adjust to the new error messages.
2364 (Token definitions): The new grammar doesn't allow too many
2365 eccentricities.
2366
2367 * src/lex.h, src/lex.c: Remove.
2368 * src/reader.c (lastprec, skip_to_char, read_signed_integer)
2369 (copy_character, copy_string2, copy_string, copy_identifier)
2370 (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl)
2371 (parse_muscle_decl, parse_dquoted_param, parse_skel_decl)
2372 (parse_action): Remove.
2373 * po/POTFILES.in: Adjust.
2374
2375 2002-06-11 Akim Demaille <akim@epita.fr>
2376
2377 * src/reader.c (parse_action): Don't store directly into the
2378 rule's action member: return the action as a string.
2379 Don't require `rule_length' as an argument: compute it.
2380 (grammar_current_rule_symbol_append)
2381 (grammar_current_rule_action_append): New, eved out from
2382 (readgram): here.
2383 Remove `action_flag', `rulelength', unused now.
2384
2385 2002-06-11 Akim Demaille <akim@epita.fr>
2386
2387 * src/reader.c (grammar_current_rule_prec_set).
2388 (grammar_current_rule_check): New, eved out from...
2389 (readgram): here.
2390 Remove `xaction', `first_rhs': useless.
2391 * tests/input.at (Type clashes): New.
2392 * tests/existing.at (GNU Cim Grammar): Adjust.
2393
2394 2002-06-11 Akim Demaille <akim@epita.fr>
2395
2396 * src/reader.c (grammar_midrule_action): New, Eved out from
2397 (readgram): here.
2398
2399 2002-06-11 Akim Demaille <akim@epita.fr>
2400
2401 * src/reader.c (grammar_rule_begin, previous_rule, current_rule):
2402 New.
2403 (readgram): Use them as replacement of inlined code, crule and
2404 crule1.
2405
2406 2002-06-11 Akim Demaille <akim@epita.fr>
2407
2408 * src/reader.c (grammar_end, grammar_symbol_append): New.
2409 (readgram): Use them.
2410 Make the use of `p' as local as possible.
2411
2412 2002-06-10 Akim Demaille <akim@epita.fr>
2413
2414 GCJ's parser requires the tokens to be defined before the prologue.
2415
2416 * data/bison.simple: Output the token definition before the user's
2417 prologue.
2418 * tests/regression.at (Braces parsing, Duplicate string)
2419 (Mixing %token styles): Check the output from bison.
2420 (Early token definitions): New.
2421
2422 2002-06-10 Akim Demaille <akim@epita.fr>
2423
2424 * src/symtab.c (symbol_user_token_number_set): Don't complain when
2425 assigning twice the same user number to a token, so that we can
2426 use it in...
2427 * src/lex.c (lex): here.
2428 Also use `symbol_class_set' instead of hand written code.
2429 * src/reader.c (parse_assoc_decl): Likewise.
2430
2431 2002-06-10 Akim Demaille <akim@epita.fr>
2432
2433 * src/symtab.c, src/symtab.c (symbol_class_set)
2434 (symbol_user_token_number_set): New.
2435 * src/reader.c (parse_token_decl): Use them.
2436 Use a switch instead of ifs.
2437 Use a single argument.
2438
2439 2002-06-10 Akim Demaille <akim@epita.fr>
2440
2441 Remove `%thong' support as it is undocumented, unused, duplicates
2442 `%token's job, and creates useless e-mail traffic with people who
2443 want to know what it is, why it is undocumented, unused, and
2444 duplicates `%token's job.
2445
2446 * src/reader.c (parse_thong_decl): Remove.
2447 * src/options.c (option_table): Remove "thong".
2448 * src/lex.h (tok_thong): Remove.
2449
2450 2002-06-10 Akim Demaille <akim@epita.fr>
2451
2452 * src/symtab.c, src/symtab.c (symbol_type_set)
2453 (symbol_precedence_set): New.
2454 * src/reader.c (parse_type_decl, parse_assoc_decl): Use them.
2455 (value_components_used): Remove, unused.
2456
2457 2002-06-09 Akim Demaille <akim@epita.fr>
2458
2459 Move symbols handling code out of the reader.
2460
2461 * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken)
2462 (axiom): Move to...
2463 * src/symtab.h, src/symtab.c: here.
2464
2465 * src/gram.c (start_symbol): Remove: use startsymbol->number.
2466 * src/reader.c (startval): Rename as...
2467 * src/symtab.h, src/symtab.c (startsymbol): this.
2468 * src/reader.c: Adjust.
2469
2470 * src/reader.c (symbol_check_defined, symbol_make_alias)
2471 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
2472 (token_translations_init)
2473 Move to...
2474 * src/symtab.c: here.
2475 * src/reader.c (packsymbols): Move to...
2476 * src/symtab.h, src/symtab.c (symbols_pack): here.
2477 * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as
2478 argument.
2479
2480 2002-06-03 Akim Demaille <akim@epita.fr>
2481
2482 * src/muscle_tab.c (muscle_insert, muscle_find): Declarations,
2483 then statements.
2484
2485 2002-06-03 Akim Demaille <akim@epita.fr>
2486
2487 * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize
2488 structs with non literals.
2489 * src/scan-skel.l: never-interactive.
2490 * src/conflicts.c (enum conflict_resolution_e): No trailing
2491 comma.
2492 * src/getargs.c (usage): Split long literal strings.
2493 Reported by Hans Aberg.
2494
2495 2002-05-28 Akim Demaille <akim@epita.fr>
2496
2497 * data/bison.c++: Use C++ ostreams.
2498 (cdebug_): New member.
2499
2500 2002-05-28 Akim Demaille <akim@epita.fr>
2501
2502 * src/output.c (output_skeleton): Be sure to allocate enough room
2503 for `/' _and_ for `\0' in full_skeleton.
2504
2505 2002-05-28 Akim Demaille <akim@epita.fr>
2506
2507 * data/bison.c++: Catch up with bison.simple:
2508 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
2509 and Paul Eggert <eggert@twinsun.com>: `error' handing.
2510 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_,
2511 and popping traces.
2512
2513 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
2514
2515 * src/output.c (output_skeleton): Put an explicit path in front of
2516 the skeleton file name, rather than relying on the -I directory,
2517 to partially alleviate effects of having a skeleton file lying around
2518 in the current directory.
2519
2520 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
2521
2522 * src/conflicts.c (log_resolution): Correct typo:
2523 obstack_printf should be obstack_fgrow1.
2524
2525 2002-05-26 Akim Demaille <akim@epita.fr>
2526
2527 * src/state.h (state_t): `solved_conflicts' is a new member.
2528 * src/LR0.c (new_state): Set it to 0.
2529 * src/conflicts.h, src/conflicts.c (print_conflicts)
2530 (free_conflicts, solve_conflicts): Rename as...
2531 (conflicts_print, conflicts_free, conflicts_solve): these.
2532 Adjust callers.
2533 * src/conflicts.c (enum conflict_resolution_e)
2534 (solved_conflicts_obstack): New, used by...
2535 (log_resolution): this.
2536 Adjust to attach the conflict resolution to each state.
2537 Complete the description with the precedence/associativity
2538 information.
2539 (resolve_sr_conflict): Adjust.
2540 * src/print.c (print_state): Output its solved_conflicts.
2541 * tests/conflicts.at (Unresolved SR Conflicts)
2542 (Solved SR Conflicts): Exercise --report=all.
2543
2544 2002-05-26 Akim Demaille <akim@epita.fr>
2545
2546 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
2547 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
2548 * src/reader.c, src/reduce.c, src/state.h, src/symtab.h
2549 (token_number_t, item_number_as_token_number)
2550 (token_number_as_item_number, muscle_insert_token_number_table):
2551 Rename as...
2552 (symbol_number_t, item_number_as_symbol_number)
2553 (symbol_number_as_item_number, muscle_insert_symbol_number_table):
2554 these, since it is more appropriate.
2555
2556 2002-05-26 Akim Demaille <akim@epita.fr>
2557
2558 * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional
2559 `Error:' lines.
2560 * data/bison.simple (yystos) [YYDEBUG]: New.
2561 (yyparse) [YYDEBUG]: Display the symbols which are popped during
2562 error recovery.
2563 * tests/regression.at (Web2c Actions): Adjust: yystos is output now.
2564
2565 2002-05-25 Akim Demaille <akim@epita.fr>
2566
2567 * doc/bison.texinfo (Debugging): Split into...
2568 (Tracing): this new section, its former contents, and...
2569 (Understanding): this new section.
2570 * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced
2571 by...
2572 (report_flag): this.
2573 Adjust all dependencies.
2574 (report_args, report_types, report_argmatch): New.
2575 (usage, getargs): Report/support -r, --report.
2576 * src/options.h
2577 (struct option_table_struct): Rename as..,
2578 (struct option_table_s): this.
2579 Rename the `set_flag' member to `flag' to match with getopt_long's
2580 struct.
2581 * src/options.c (option_table): Split verbose into an entry for
2582 %verbose, and another for --verbose.
2583 Support --report/-r, so remove -r from the obsolete --raw.
2584 * src/print.c: Attach full item sets and lookaheads reports to
2585 report_flag instead of trace_flag.
2586 * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1.
2587
2588 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
2589 and Paul Eggert <eggert@twinsun.com>
2590
2591 * data/bison.simple (yyparse): Correct error handling to conform to
2592 POSIX and yacc. Specifically, after syntax error is discovered,
2593 do not reduce further before shifting the error token.
2594 Clean up the code a bit by removing the labels yyerrdefault,
2595 yyerrhandle, yyerrpop.
2596 * NEWS: Document the above.
2597
2598 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
2599
2600 * data/bison.simple (yyr1): Don't use yy_token_number_type as element
2601 type; it isn't always big enough, since it doesn't necessarily
2602 include non-terminals.
2603 (yytranslate): Expand definition of yy_token_number_type, so that
2604 the latter can be removed.
2605 (yy_token_number_type): Remove, only one use.
2606 * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple---
2607 don't use TokenNumberType as element type.
2608
2609 * tests/regression.at: Modify expected output to agree with change
2610 to yyr1 and yytranslate.
2611
2612 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com>
2613
2614 * src/reader.c (parse_action): Use copy_character instead of
2615 obstack_1grow.
2616
2617 2002-05-13 Akim Demaille <akim@epita.fr>
2618
2619 * tests/regression.at (Token definitions): Prototype yylex and
2620 yyerror.
2621
2622 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU>
2623
2624 * src/scan-skel.l: Correct off-by-one error in handling of __oline__.
2625 * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect
2626 32-bit arithmetic.
2627 * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto.
2628
2629 2002-05-07 Akim Demaille <akim@epita.fr>
2630
2631 * tests/synclines.at: Be sure to prototype yylex and yyerror to
2632 avoid GCC warnings.
2633
2634 2002-05-07 Akim Demaille <akim@epita.fr>
2635
2636 Kill GCC warnings.
2637
2638 * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop
2639 over the RHS of each rule.
2640 * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int.
2641 * src/state.h (state_t): Member `nitems' is unsigned short.
2642 * src/LR0.c (get_state): Adjust.
2643 * src/reader.c (packgram): Likewise.
2644 * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type
2645 `Type'.
2646 (muscle_insert_int_table): Remove, unused.
2647 (prepare_rules): Remove `max'.
2648
2649 2002-05-06 Akim Demaille <akim@epita.fr>
2650
2651 * src/closure.c (print_firsts): Display of the symbol tags.
2652 (bitmatrix_print): Move to...
2653 * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump):
2654 here.
2655 * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust.
2656
2657 2002-05-06 Akim Demaille <akim@epita.fr>
2658
2659 * src/muscle_tab.c (muscle_m4_output): Must return TRUE for
2660 hash_do_for_each.
2661
2662 2002-05-06 Akim Demaille <akim@epita.fr>
2663
2664 * src/LR0.c (new_state, get_state): Instead of using the global
2665 `kernel_size' and `kernel_base', have two new arguments:
2666 `core_size' and `core'.
2667 Adjust callers.
2668
2669 2002-05-06 Akim Demaille <akim@epita.fr>
2670
2671 * src/reader.c (packgram): No longer end `ritem' with a 0
2672 sentinel: it is not used.
2673
2674 2002-05-05 Akim Demaille <akim@epita.fr>
2675
2676 New experimental feature: display the lookaheads in the report and
2677 graph.
2678
2679 * src/print (print_core): When --trace-flag, display the rules
2680 lookaheads.
2681 * src/print_graph.c (print_core): Likewise.
2682 Swap the arguments.
2683 Adjust caller.
2684
2685 2002-05-05 Akim Demaille <akim@epita.fr>
2686
2687 * tests/torture.at (Many lookaheads): New test.
2688
2689 2002-05-05 Akim Demaille <akim@epita.fr>
2690
2691 * src/output.c (GENERATE_OUTPUT_TABLE): Replace with...
2692 (GENERATE_MUSCLE_INSERT_TABLE): this.
2693 (output_int_table, output_unsigned_int_table, output_short_table)
2694 (output_token_number_table, output_item_number_table): Replace with...
2695 (muscle_insert_int_table, muscle_insert_unsigned_int_table)
2696 (muscle_insert_short_table, muscle_insert_token_number_table)
2697 (muscle_insert_item_number_table): these.
2698 Adjust all callers.
2699 (prepare_tokens): Don't free `translations', since...
2700 * src/reader.h, src/reader.c (grammar_free): do it.
2701 Move to...
2702 * src/gram.h, src/gram.c (grammar_free): here.
2703 * data/bison.simple, data/bison.c++: b4_token_number_max is now
2704 b4_translate_max.
2705
2706 2002-05-05 Akim Demaille <akim@epita.fr>
2707
2708 * src/output.c (output_unsigned_int_table): New.
2709 (prepare_rules): `i' is unsigned.
2710 `prhs', `rline', `r2' are unsigned int.
2711 Rename muscle `rhs_number_max' as `rhs_max'.
2712 Output muscles `prhs_max', `rline_max', and `r2_max'.
2713 Free rline and r1.
2714 * data/bison.simple, data/bison.c++: Adjust to use these muscles
2715 to compute types instead of constant types.
2716 * tests/regression.at (Web2c Actions): Adjust.
2717
2718 2002-05-04 Akim Demaille <akim@epita.fr>
2719
2720 * src/symtab.h (SALIAS, SUNDEF): Rename as...
2721 (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these.
2722 Adjust dependencies.
2723 * src/output.c (token_definitions_output): Be sure not to output a
2724 `#define 'a'' when fed with `%token 'a' "a"'.
2725 * tests/regression.at (Token definitions): New.
2726
2727 2002-05-03 Paul Eggert <eggert@twinsun.com>
2728
2729 * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE
2730 for K&R C.
2731
2732 2002-05-03 gettextize <bug-gnu-gettext@gnu.org>
2733
2734 * Makefile.am (SUBDIRS): Remove intl.
2735 (EXTRA_DIST): Add config/config.rpath.
2736
2737 2002-05-03 Akim Demaille <akim@epita.fr>
2738
2739 * data/bison.simple (m4_if): Don't output empty enums.
2740 And actually, output valid enum definitions :(.
2741
2742 2002-05-03 Akim Demaille <akim@epita.fr>
2743
2744 * configure.bat: Remove, completely obsolete.
2745 * Makefile.am (EXTRA_DIST): Adjust.
2746 Don't distribute config.rpath...
2747 * config/Makefile.am (EXTRA_DIST): Do it.
2748
2749 2002-05-03 Akim Demaille <akim@epita.fr>
2750
2751 * configure.in (GETTEXT_VERSION): New.
2752 Suggested by Bruno Haible for the forthcoming Gettext 0.10.3.
2753
2754 2002-05-03 Akim Demaille <akim@epita.fr>
2755
2756 * data/bison.simple (b4_token_enum): New.
2757 (b4_token_defines): Use it to output tokens both as #define and
2758 enums.
2759 Suggested by Paul Eggert.
2760 * src/output.c (token_definitions_output): Don't output spurious
2761 white spaces.
2762
2763 2002-05-03 Akim Demaille <akim@epita.fr>
2764
2765 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
2766
2767 2002-05-02 Robert Anisko <robert@lrde.epita.fr>
2768
2769 * data/bison.c++: Adapt expansion of $s and @s to the C++ parser.
2770 Update the stack class, give a try to deque as the default container.
2771
2772 2002-05-02 Akim Demaille <akim@epita.fr>
2773
2774 * data/bison.simple (yyparse): Do not implement @$ = @1.
2775 (YYLLOC_DEFAULT): Adjust to do it.
2776 * doc/bison.texinfo (Location Default Action): Fix.
2777
2778 2002-05-02 Akim Demaille <akim@epita.fr>
2779
2780 * src/reader.c (parse_braces): Merge into...
2781 (parse_action): this.
2782
2783 2002-05-02 Akim Demaille <akim@epita.fr>
2784
2785 * configure.in (ALL_LINGUAS): Remove.
2786 * po/LINGUAS, hr.po: New.
2787
2788 2002-05-02 Akim Demaille <akim@epita.fr>
2789
2790 Remove the so called hairy (semantic) parsers.
2791
2792 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove.
2793 * src/gram.h, src/gram.c (semantic_parser): Remove.
2794 (rule_t): Remove the guard and guard_line members.
2795 * src/lex.h (token_t): remove tok_guard.
2796 * src/options.c (option_table): Remove %guard and %semantic_parser
2797 support.
2798 * src/output.c, src/output.h (guards_output): Remove.
2799 (prepare): Adjust.
2800 (token_definitions_output): Don't output the `T'
2801 tokens (???).
2802 (output_skeleton): Don't output the guards.
2803 * src/files.c, src/files.c (attrsfile): Remove.
2804 * src/reader.c (symbol_list): Remove the guard and guard_line
2805 members.
2806 Adjust dependencies.
2807 (parse_guard): Remove.
2808 * data/bison.hairy: Remove.
2809 * doc/bison.texinfo (Environment Variables): Remove occurrences of
2810 BISON_HAIRY.
2811
2812 2002-05-02 Akim Demaille <akim@epita.fr>
2813
2814 * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action)
2815 (parse_guard): Rename the formal argument `stack_offset' as
2816 `rule_length', which is more readable.
2817 Adjust callers.
2818 (copy_at, copy_dollar): Instead of outputting the hard coded
2819 values of $$, $n and so forth, output invocation to b4_lhs_value,
2820 b4_lhs_location, b4_rhs_value, and b4_rhs_location.
2821 Note: this patch partially drops `semantic-parser' support: it
2822 always does `rule_length - n', where semantic parsers ought to
2823 always use `-n'.
2824 * data/bison.simple, data/bison.c++ (b4_lhs_value)
2825 (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New.
2826
2827 2002-05-02 Akim Demaille <akim@epita.fr>
2828
2829 * configure.in (AC_INIT): Bump to 1.49b.
2830 (AM_INIT_AUTOMAKE): Short invocation.
2831
2832 2002-05-02 Akim Demaille <akim@epita.fr>
2833
2834 Version 1.49a.
2835
2836 2002-05-01 Akim Demaille <akim@epita.fr>
2837
2838 * src/skeleton.h: Remove.
2839
2840 2002-05-01 Akim Demaille <akim@epita.fr>
2841
2842 * src/skeleton.h: Fix the #endif.
2843 Reported by Magnus Fromreide.
2844
2845 2002-04-26 Paul Eggert <eggert@twinsun.com>
2846
2847 * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL):
2848 Define if we define YYSTYPE and YYLTYPE, respectively.
2849 (YYCOPY): Fix [] quoting problem in the non-GCC case.
2850
2851 2002-04-25 Robert Anisko <robert@lrde.epita.fr>
2852
2853 * src/scan-skel.l: Postprocess quadrigraphs.
2854
2855 * src/reader.c (copy_character): New function, used to output
2856 single characters while replacing `[' and `]' with quadrigraphs, to
2857 avoid troubles with M4 quotes.
2858 (copy_comment): Output characters with copy_character.
2859 (read_additionnal_code): Likewise.
2860 (copy_string2): Likewise.
2861 (copy_definition): Likewise.
2862
2863 * tests/calc.at: Exercise M4 quoting.
2864
2865 2002-04-25 Akim Demaille <akim@epita.fr>
2866
2867 * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space
2868 between `!' and the command.
2869 Reported by Paul Eggert.
2870
2871 2002-04-24 Robert Anisko <robert@lrde.epita.fr>
2872
2873 * tests/calc.at: Exercise prologue splitting.
2874
2875 * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and
2876 `b4_post_prologue' instead of `b4_prologue'.
2877
2878 * src/output.c (prepare): Add the `pre_prologue' and `post_prologue'
2879 muscles.
2880 (output): Free pre_prologue_obstack and post_prologue_obstack.
2881 * src/files.h, src/files.c (attrs_obstack): Remove.
2882 (pre_prologue_obstack, post_prologue_obstack): New.
2883 * src/reader.c (copy_definition): Add a parameter to specify the
2884 obstack to fill, instead of using attrs_obstack unconditionally.
2885 (read_declarations): Pass pre_prologue_obstack to copy_definition if
2886 `%union' has not yet been seen, pass post_prologue_obstack otherwise.
2887
2888 2002-04-23 Paul Eggert <eggert@twinsun.com>
2889
2890 * data/bison.simple: Remove unnecessary commentary and white
2891 space differences from 1_29-branch.
2892 Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE).
2893
2894 (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY,
2895 YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or
2896 if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial
2897 constructors or destructors.
2898
2899 (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack.
2900
2901 2002-04-23 Akim Demaille <akim@epita.fr>
2902
2903 * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels.
2904 * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's
2905 location with columns.
2906 * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'.
2907 All reported by Paul Eggert.
2908
2909 2002-04-22 Akim Demaille <akim@epita.fr>
2910
2911 * src/reduce.c (dump_grammar): Move to...
2912 * src/gram.h, src/gram.c (grammar_dump): here.
2913 Be sure to separate long item numbers.
2914 Don't read the members of a rule's prec if its nil.
2915
2916 2002-04-22 Akim Demaille <akim@epita.fr>
2917
2918 * src/output.c (table_size, table_grow): New.
2919 (MAXTABLE): Remove, replace uses with table_size.
2920 (pack_vector): Instead of dying when the table is too big, grow it.
2921
2922 2002-04-22 Akim Demaille <akim@epita.fr>
2923
2924 * data/bison.simple (yyr1): Its type is that of a token number.
2925 * data/bison.c++ (r1_): Likewise.
2926 * tests/regression.at (Web2c Actions): Adjust.
2927
2928 2002-04-22 Akim Demaille <akim@epita.fr>
2929
2930 * src/reader.c (token_translations_init): 256 is now the default
2931 value for the error token, i.e., it will be assigned another
2932 number if the user assigned 256 to one of her tokens.
2933 (reader): Don't force 256 to error.
2934 * doc/bison.texinfo (Symbols): Adjust.
2935 * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR)
2936 (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3
2937 etc. instead of 10, 20, 30 (which was used to `jump' over error
2938 (256) and undefined (2)).
2939
2940 2002-04-22 Akim Demaille <akim@epita.fr>
2941
2942 Propagate more token_number_t.
2943
2944 * src/gram.h (token_number_as_item_number)
2945 (item_number_as_token_number): New.
2946 * src/output.c (GENERATE_OUTPUT_TABLE): New.
2947 Use it to create output_item_number_table and
2948 output_token_number_table.
2949 * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c,
2950 * src/lex.c, src/nullable.c, src/output.c, src/print.c,
2951 * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h,
2952 * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts.
2953
2954 2002-04-22 Akim Demaille <akim@epita.fr>
2955
2956 * src/output.h, src/output.c (get_lines_number): Remove.
2957
2958 2002-04-19 Akim Demaille <akim@epita.fr>
2959
2960 * doc/bison.texinfo (Actions): Make clear that `|' is not the same
2961 as Lex/Flex'.
2962 (Debugging): More details about enabling the debugging features.
2963 (Table of Symbols): Describe $$, $n, @$, and @n.
2964 Suggested by Tim Josling.
2965
2966 2002-04-19 Akim Demaille <akim@epita.fr>
2967
2968 * doc/bison.texinfo: Remove the uses of the obsolete @refill.
2969
2970 2002-04-10 Akim Demaille <akim@epita.fr>
2971
2972 * src/system.h: Rely on HAVE_LIMITS_H.
2973 Suggested by Paul Eggert.
2974
2975 2002-04-09 Akim Demaille <akim@epita.fr>
2976
2977 * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the
2978 full stderr, and strip it according to the bison options, instead
2979 of composing the error message from different bits.
2980 This makes it easier to check for several error messages.
2981 Adjust all the invocations.
2982 Add an invocation exercising the error token.
2983 Add an invocation demonstrating a stupid error message.
2984 (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0.
2985 Adjust the tests.
2986 Error message are for stderr, not stdout.
2987
2988 2002-04-09 Akim Demaille <akim@epita.fr>
2989
2990 * src/gram.h, src/gram.c (error_token_number): Remove, use
2991 errtoken->number.
2992 * src/reader.c (reader): Don't specify the user token number (2)
2993 for $undefined, as it uselessly prevents using it.
2994 * src/gram.h (token_number_t): Move to...
2995 * src/symtab.h: here.
2996 (state_t.number): Is a token_number_t.
2997 * src/print.c, src/reader.c: Use undeftoken->number instead of
2998 hard coded 2.
2999 (Even though this 2 is not the same as above: the number of the
3000 undeftoken remains being 2, it is its user token number which
3001 might not be 2).
3002 * src/output.c (prepare_tokens): Rename the `maxtok' muscle with
3003 `user_token_number_max'.
3004 Output `undef_token_number'.
3005 * data/bison.simple, data/bison.c++: Use them.
3006 Be sure to map invalid yylex return values to
3007 `undef_token_number'. This saves us from gratuitous SEGV.
3008
3009 * tests/conflicts.at (Solved SR Conflicts)
3010 (Unresolved SR Conflicts): Adjust.
3011 * tests/regression.at (Web2c Actions): Adjust.
3012
3013 2002-04-08 Akim Demaille <akim@epita.fr>
3014
3015 * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/.
3016 Adding #line.
3017 Remove the duplicate `typedefs'.
3018 (RhsNumberType): Fix the declaration and various other typos.
3019 Use __ofile__.
3020 * data/bison.simple: Use __ofile__.
3021 * src/scan-skel.l: Handle __ofile__.
3022
3023 2002-04-08 Akim Demaille <akim@epita.fr>
3024
3025 * src/gram.h (item_number_t): New, the type of item numbers in
3026 RITEM. Note that it must be able to code symbol numbers as
3027 positive number, and the negation of rule numbers as negative
3028 numbers.
3029 Adjust all dependencies (pretty many).
3030 * src/reduce.c (rule): Remove this `short *' pointer: use
3031 item_number_t.
3032 * src/system.h (MINSHORT, MAXSHORT): Remove.
3033 Include `limits.h'.
3034 Adjust dependencies to using SHRT_MAX and SHRT_MIN.
3035 (shortcpy): Remove.
3036 (MAXTABLE): Move to...
3037 * src/output.c (MAXTABLE): here.
3038 (prepare_rules): Use output_int_table to output rhs.
3039 * data/bison.simple, data/bison.c++: Adjust.
3040 * tests/torture.at (Big triangle): Move the limit from 254 to
3041 500.
3042 * tests/regression.at (Web2c Actions): Ajust.
3043
3044 Trying with bigger grammars shows various phenomena: at 3000 (28Mb
3045 of grammar file) bison is killed by my system, at 2000 (12Mb) bison
3046 passes, but produces negative #line number, once fixed, GCC is
3047 killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of
3048 C), it passes.
3049 * src/state.h (state_h): Code input lines on ints, not shorts.
3050
3051 2002-04-08 Akim Demaille <akim@epita.fr>
3052
3053 * src/reduce.c (reduce_grammar): First reduce the nonterminals,
3054 and then the grammar.
3055
3056 2002-04-08 Akim Demaille <akim@epita.fr>
3057
3058 * src/system.h: No longer using strndup.
3059
3060 2002-04-07 Akim Demaille <akim@epita.fr>
3061
3062 * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New.
3063 * src/output.c (output_table_data): Return the longest number.
3064 (prepare_tokens): Output `token_number_max').
3065 * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type):
3066 New.
3067 Use them to define yy_token_number_type/TokenNumberType.
3068 Use this type for yytranslate.
3069 * tests/torture.at (Big triangle): Push the limit from 124 to
3070 253.
3071 * tests/regression.at (Web2c Actions): Adjust.
3072
3073 2002-04-07 Akim Demaille <akim@epita.fr>
3074
3075 * tests/torture.at (Big triangle): New.
3076 (GNU AWK Grammar, GNU Cim Grammar): Move to...
3077 * tests/existing.at: here.
3078
3079 2002-04-07 Akim Demaille <akim@epita.fr>
3080
3081 * src/gram.h, src/gram.c (nitems): Remove, it is an alias of
3082 nritems.
3083 Adjust dependencies.
3084
3085 2002-04-07 Akim Demaille <akim@epita.fr>
3086
3087 * src/reader.c: Normalize increments to prefix form.
3088
3089 2002-04-07 Akim Demaille <akim@epita.fr>
3090
3091 * src/reader.c, symtab.c: Remove debugging code.
3092
3093 2002-04-07 Akim Demaille <akim@epita.fr>
3094
3095 Rename all the `bucket's as `symbol_t'.
3096
3097 * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c,
3098 * src/reader.c, src/reader.h, src/reduce.c, src/state.h,
3099 * src/symtab.c, src/symtab.h (bucket): Rename as...
3100 (symbol_t): this.
3101 (symbol_list_new, bucket_check_defined, bucket_make_alias)
3102 (bucket_check_alias_consistence, bucket_pack, bucket_translation)
3103 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
3104 (buckets_new, buckets_free, buckets_do): Rename as...
3105 (symbol_list_new, symbol_check_defined, symbol_make_alias)
3106 (symbol_check_alias_consistence, symbol_pack, symbol_translation)
3107 (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t)
3108 (symbols_new, symbols_free, symbols_do): these.
3109
3110 2002-04-07 Akim Demaille <akim@epita.fr>
3111
3112 Use lib/hash for the symbol table.
3113
3114 * src/gram.c (ntokens): Initialize to 1, to reserve a slot for
3115 EOF.
3116 * src/lex.c (lex): Set the `number' member of new terminals.
3117 * src/reader.c (bucket_check_defined, bucket_make_alias)
3118 (bucket_check_alias_consistence, bucket_translation): New.
3119 (reader, grammar_free, readgram, token_translations_init)
3120 (packsymbols): Adjust.
3121 (reader): Number the predefined tokens.
3122 * src/reduce.c (inaccessable_symbols): Just use hard coded numbers
3123 for predefined tokens.
3124 * src/symtab.h (bucket): Remove all the hash table related
3125 members.
3126 * src/symtab.c (symtab): Replace by...
3127 (bucket_table): this.
3128 (bucket_new, bucket_free, hash_compare_bucket, hash_bucket)
3129 (buckets_new, buckets_do): New.
3130
3131 2002-04-07 Akim Demaille <akim@epita.fr>
3132
3133 * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems)
3134 (start_symbol, max_user_token_number, semantic_parser)
3135 (error_token_number): Initialize.
3136 * src/reader.c (grammar, start_flag, startval, typed, lastprec):
3137 Initialize.
3138 (reader): Don't.
3139 (errtoken, eoftoken, undeftoken, axiom): Extern.
3140
3141 2002-04-07 Akim Demaille <akim@epita.fr>
3142
3143 * src/gram.h (rule_s): prec and precsym are now pointers
3144 to the bucket giving the priority/associativity.
3145 Member `associativity' removed: useless.
3146 * src/reduce.c, src/conflicts.c: Adjust.
3147
3148 2002-04-07 Akim Demaille <akim@epita.fr>
3149
3150 * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c:
3151 Properly escape the symbols' TAG when outputting them.
3152
3153 2002-04-07 Akim Demaille <akim@epita.fr>
3154
3155 * src/lalr.h (LA): Is a bitsetv, not bitset*.
3156
3157 2002-04-07 Akim Demaille <akim@epita.fr>
3158
3159 * src/lalr.h, src/lalr.c (LAruleno): Replace with...
3160 (LArule): this, which is an array to rule_t*.
3161 * src/print.c, src/conflicts.c: Adjust.
3162
3163 2002-04-07 Akim Demaille <akim@epita.fr>
3164
3165 * src/gram.h (rule_t): Rename `number' as `user_number'.
3166 `number' is a new member.
3167 Adjust dependencies.
3168 * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number.
3169
3170 2002-04-07 Akim Demaille <akim@epita.fr>
3171
3172 As a result of the previous patch, it is no longer needed
3173 to reorder ritem itself.
3174
3175 * src/reduce.c (reduce_grammar_tables): Don't sort RITEM.
3176
3177 2002-04-07 Akim Demaille <akim@epita.fr>
3178
3179 Be sure never to walk through RITEMS, but use only data related to
3180 the rules themselves. RITEMS should be banished.
3181
3182 * src/output.c (output_token_translations): Rename as...
3183 (prepare_tokens): this.
3184 In addition to `translate', prepare the muscles `tname' and
3185 `toknum', which were handled by...
3186 (output_rule_data): this.
3187 Remove, and move the remainder of its outputs into...
3188 (prepare_rules): this new routines, which also merges content from
3189 (output_gram): this.
3190 (prepare_rules): Be sure never to walk through RITEMS.
3191 (output_stos): Rename as...
3192 (prepare_stos): this.
3193 (output): Always invoke prepare_states, after all, just don't use it
3194 in the output if you don't need it.
3195
3196 2002-04-07 Akim Demaille <akim@epita.fr>
3197
3198 * src/LR0.c (new_state): Display `nstates' as the name of the
3199 newly created state.
3200 Adjust to initialize first_state and last_state if needed.
3201 Be sure to distinguish the initial from the final state.
3202 (new_states): Create the itemset of the initial state, and use
3203 new_state.
3204 * src/closure.c (closure): Now that the initial state has its
3205 items properly set, there is no need for a special case when
3206 creating `ruleset'.
3207
3208 As a result, now the rule 0, reducing to $axiom, is visible in the
3209 outputs. Adjust the test suite.
3210
3211 * tests/conflicts.at (Solved SR Conflicts)
3212 (Unresolved SR Conflicts): Adjust.
3213 * tests/regression.at (Web2c Report, Rule Line Numbers): Idem.
3214 * tests/conflicts.at (S/R in initial): New.
3215
3216 2002-04-07 Akim Demaille <akim@epita.fr>
3217
3218 * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over
3219 the RHS of the rules.
3220 * src/output.c (output_gram): Likewise.
3221
3222 2002-04-07 Akim Demaille <akim@epita.fr>
3223
3224 * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's
3225 bucket.
3226 Adjust all dependencies.
3227 * src/reduce.c (nonterminals_reduce): Don't forget to renumber the
3228 `number' of the buckets too.
3229 * src/gram.h: Include `symtab.h'.
3230 (associativity): Move to...
3231 * src/symtab.h: here.
3232 No longer include `gram.h'.
3233
3234 2002-04-07 Akim Demaille <akim@epita.fr>
3235
3236 * src/gram.h, src/gram.c (rules_rhs_length): New.
3237 (ritem_longest_rhs): Use it.
3238 * src/gram.h (rule_t): `number' is a new member.
3239 * src/reader.c (packgram): Set it.
3240 * src/reduce.c (reduce_grammar_tables): Move the useless rules at
3241 the end of `rules', and count them out of `nrules'.
3242 (reduce_output, dump_grammar): Adjust.
3243 * src/print.c (print_grammar): It is no longer needed to check for
3244 the usefulness of a rule, as useless rules are beyond `nrules + 1'.
3245 * tests/reduce.at (Reduced Automaton): New test.
3246
3247 2002-04-07 Akim Demaille <akim@epita.fr>
3248
3249 * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a
3250 lacking `+ 1' to nrules, Bison reported as useless a token if it
3251 was used solely to set the precedence of the last rule...
3252
3253 2002-04-07 Akim Demaille <akim@epita.fr>
3254
3255 * data/bison.c++, data/bison.simple: Don't output the current file
3256 name in #line, to avoid useless diffs between two identical
3257 outputs under different names.
3258
3259 2002-04-07 Akim Demaille <akim@epita.fr>
3260
3261 * src/closure.c, src/print.c, src/reader.c, src/reduce.c:
3262 Normalize loops to using `< nrules + 1', not `<= nrules'.
3263
3264 2002-04-07 Akim Demaille <akim@epita.fr>
3265
3266 * TODO: Update.
3267
3268 2002-04-07 Akim Demaille <akim@epita.fr>
3269
3270 * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename
3271 bucket.value as bucket.number.
3272
3273 2002-04-07 Akim Demaille <akim@epita.fr>
3274
3275 * src/closure.c, src/derives.c, src/gram.h, src/lalr.c,
3276 * src/nullable.c, src/output.c, src/print.c, src/print_graph.c,
3277 * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the
3278 RHS, instead of being an index in RITEMS.
3279
3280 2002-04-04 Paul Eggert <eggert@twinsun.com>
3281
3282 * doc/bison.texinfo: Update copyright date.
3283 (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII.
3284 (Symbols): Warn about running Bison in one character set,
3285 but compiling and/or running in an incompatible one.
3286 Warn about character code 256, too.
3287
3288 2002-04-03 Paul Eggert <eggert@twinsun.com>
3289
3290 * src/bison.data (YYSTACK_ALLOC): Depend on whether
3291 YYERROR_VERBOSE is nonzero, not whether it is defined.
3292
3293 Merge changes from bison-1_29-branch.
3294
3295 2002-03-20 Paul Eggert <eggert@twinsun.com>
3296
3297 Merge fixes from Debian bison_1.34-1.diff.
3298
3299 * configure.in (AC_PREREQ): 2.53.
3300
3301 2002-03-20 Akim Demaille <akim@epita.fr>
3302
3303 * src/conflicts.c (log_resolution): Argument `resolution' is const.
3304
3305 2002-03-19 Paul Eggert <eggert@twinsun.com>
3306
3307 * src/bison.simple (YYCOPY): New macro.
3308 (YYSTACK_RELOCATE): Use it.
3309 Remove Type arg; no longer needed. All callers changed.
3310 (yymemcpy): Remove; no longer needed.
3311
3312 * Makefile.am (AUTOMAKE_OPTIONS): 1.6.
3313 * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove.
3314
3315 2002-03-19 Akim Demaille <akim@epita.fr>
3316
3317 Test and fix the #line outputs.
3318
3319 * tests/atlocal.at (GCC): New.
3320 * tests/synclines.at (AT_TEST_SYNCLINE): New macro.
3321 (Prologue synch line, ,%union synch line, Postprologue synch line)
3322 (Action synch line, Epilogue synch line): New tests.
3323 * src/reader.c (parse_union_decl): Define the muscle stype_line.
3324 * data/bison.simple, data/bison.c++: Use it.
3325
3326 2002-03-19 Akim Demaille <akim@epita.fr>
3327
3328 * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts)
3329 (Solved SR Conflicts, %expect not enough, %expect right)
3330 (%expect too much): Move to...
3331 * tests/conflicts.at: this new file.
3332
3333 2002-03-19 Akim Demaille <akim@epita.fr>
3334
3335 * data/m4sugar/m4sugar.m4: Update from CVS Autoconf.
3336 * data/bison.simple, data/bison.c++: Handle the `#define' part, so
3337 that we can move to enums for instance.
3338 * src/output.c (token_definitions_output): Output a list of
3339 `token-name, token-number' instead of the #define.
3340 (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'.
3341
3342 2002-03-14 Akim Demaille <akim@epita.fr>
3343
3344 Use Gettext 0.11.1.
3345
3346 2002-03-09 Robert Anisko <robert@lrde.epita.fr>
3347
3348 * data/bison.c++: Make the user able to add members to the generated
3349 parser by subclassing.
3350
3351 2002-03-05 Robert Anisko <robert@lrde.epita.fr>
3352
3353 * src/reader.c (read_additionnal_code): `c' should be an integer, not
3354 a character.
3355 Reported by Nicolas Tisserand and Nicolas Burrus.
3356
3357 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
3358
3359 * src/reader.c: Warn about lacking semi-colons, do not complain.
3360
3361 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
3362
3363 * data/bison.c++: Remove a debug line.
3364
3365 2002-03-04 Robert Anisko <robert@lrde.epita.fr>
3366
3367 * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge
3368 location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and
3369 provide a default implementation.
3370
3371 2002-03-04 Akim Demaille <akim@epita.fr>
3372
3373 * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'.
3374 * tests/output.at (AT_CHECK_OUTPUT): Likewise.
3375 * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto.
3376 * tests/semantic.at (Parsing Guards): Similarly.
3377 * src/reader.at (readgram): Complain if the last rule is not ended
3378 with a semi-colon.
3379
3380 2002-03-04 Akim Demaille <akim@epita.fr>
3381
3382 * src/warshall.h, src/warshall.c (bitmatrix_print): Move to...
3383 * src/closure.c: here.
3384 (set_firsts): Use bitsetv_reflexive_transitive_closure instead of
3385 RTC.
3386 * src/warshall.h, src/warshall.c: Remove.
3387 * tests/sets.at (Broken Closure): Adjust.
3388
3389 2002-03-04 Akim Demaille <akim@epita.fr>
3390
3391 * src/output.c (output_skeleton): tempdir is const.
3392 bytes_read is unused.
3393
3394 2002-03-04 Akim Demaille <akim@epita.fr>
3395
3396 * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
3397 * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c:
3398 Update.
3399 From Michael Hayes.
3400
3401 2002-03-04 Akim Demaille <akim@epita.fr>
3402
3403 * src/closure.c (closure): `r' is unused.
3404
3405 2002-03-04 Akim Demaille <akim@epita.fr>
3406
3407 * tests/sets.at (Broken Closure): Add the ending `;'.
3408 * src/reader.at (readgram): Complain if a rule is not ended with a
3409 semi-colon.
3410
3411 2002-03-04 Akim Demaille <akim@epita.fr>
3412
3413 * src/conflicts.c (set_conflicts): Use bitset_disjoint_p.
3414 (count_sr_conflicts): Use bitset_count.
3415 * src/reduce.c (inaccessable_symbols): Ditto.
3416 (bits_size): Remove.
3417 * src/warshall.h, src/warshall.c: Convert to bitsetv.
3418
3419 2002-03-04 Akim Demaille <akim@epita.fr>
3420
3421 * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c,
3422 * src/reduce.c: Remove the `bitset_zero's following the
3423 `bitset_create's, as now it is performed by the latter.
3424
3425 2002-03-04 Akim Demaille <akim@epita.fr>
3426
3427 * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
3428 * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h,
3429 * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the
3430 latest sources from Michael.
3431
3432 2002-03-04 Akim Demaille <akim@epita.fr>
3433
3434 * src/output.c (output): Don't free the grammar.
3435 * src/reader.c (grammar_free): New.
3436 * src/main.c (main): Call it and don't free symtab here.
3437
3438 2002-03-04 Akim Demaille <akim@epita.fr>
3439
3440 * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer
3441 before returning.
3442 Reported by Benoit Perrot.
3443
3444 2002-03-04 Akim Demaille <akim@epita.fr>
3445
3446 Use bitset operations when possible, not loops over bits.
3447
3448 * src/conflicts.c (set_conflicts, count_sr_conflicts): Use
3449 bitset_or.
3450 * src/print.c (print_reductions): Use bitset_and, bitset_andn.
3451 * src/reduce.c (useless_nonterminals): Formatting changes.
3452 * src/warshall.c (TC): Use bitset_or.
3453
3454 2002-03-04 Akim Demaille <akim@epita.fr>
3455
3456 * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused.
3457 * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET):
3458 Ditto.
3459
3460 2002-03-04 Akim Demaille <akim@epita.fr>
3461
3462 * src/lalr.c (F): Now a bitset*.
3463 Adjust all dependencies.
3464
3465 2002-03-04 Akim Demaille <akim@epita.fr>
3466
3467 * src/conflicts.c (shiftset, lookaheadset): Now bitset.
3468 Adjust all dependencies.
3469
3470 2002-03-04 Akim Demaille <akim@epita.fr>
3471
3472 * src/L0.c, src/LR0.h (nstates): Be size_t.
3473 Adjust comparisons (signed vs unsigned).
3474 * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a
3475 bitset*.
3476 Adjust all dependencies.
3477
3478 2002-03-04 Akim Demaille <akim@epita.fr>
3479
3480 * src/closure.c (firsts): Now, also a bitset.
3481 Adjust all dependencies.
3482 (varsetsize): Remove, now unused.
3483 * src/warshall.h, src/warshall.c: Now work on arrays of bitsets.
3484
3485 2002-03-04 Akim Demaille <akim@epita.fr>
3486
3487 * src/print.c: Convert to use bitset.h, not hand coded iterations
3488 over ints.
3489
3490 2002-03-04 Akim Demaille <akim@epita.fr>
3491
3492 * src/reduce.c: Convert to use bitset.h, not hand coded BSet.
3493
3494 2002-03-04 Akim Demaille <akim@epita.fr>
3495
3496 * src/closure.c (ruleset): Be a bitset.
3497 (rulesetsize): Remove.
3498
3499 2002-03-04 Akim Demaille <akim@epita.fr>
3500
3501 * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c,
3502 * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c,
3503 * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New.
3504 * src/closure.c (fderives): Be an array of bitsets.
3505
3506 2002-02-28 Robert Anisko <robert@lrde.epita.fr>
3507
3508 * data/bison.c++: Merge the two generated headers. Insert a copyright
3509 notice in each output file.
3510
3511 2002-02-28 Akim Demaille <akim@epita.fr>
3512
3513 * data/bison.c++: Copy the prologue of bison.simple to fetch
3514 useful M4 definitions, such as b4_header_guard.
3515
3516 2002-02-25 Akim Demaille <akim@epita.fr>
3517
3518 * src/getargs.c (version): Give the name of the authors, and use a
3519 translator friendly scheme for the bgr
3520 copyright notice.
3521
3522 2002-02-25 Akim Demaille <akim@epita.fr>
3523
3524 * src/output.c (header_output): Remove, now handled completely via
3525 M4.
3526
3527 2002-02-25 Akim Demaille <akim@epita.fr>
3528
3529 * m4/m4.m4: New, from CVS Autoconf.
3530 * configure.in: Invoke it.
3531 * src/output.c (output_skeleton): Use its result instead of the
3532 hard coded name.
3533
3534 2002-02-25 Akim Demaille <akim@epita.fr>
3535
3536 * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from
3537 Fileutils 4.1.5.
3538 * configure.in: Invoke UTILS_FUNC_MKSTEMP.
3539 * src/output.c (output_skeleton): Use mkstemp to create a real
3540 temporary file.
3541 Move the filling of `skeleton' and its muscle to...
3542 (prepare): here.
3543 (output): Move the definition of the prologue muscle to...
3544 (prepare): here.
3545 * src/system.h (DEFAULT_TMPDIR): New.
3546
3547 2002-02-14 Paul Eggert <eggert@twinsun.com>
3548
3549 Remove the support for C++ namespace cleanliness; it was
3550 causing more problems than it was curing, since it didn't work
3551 properly on some nonstandard C++ compilers. This can wait
3552 for a proper C++ parser.
3553
3554 * NEWS: Document this.
3555 * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention
3556 of C++, as it's treated like C now.
3557 * src/bison.simple (YYSTD): Remove.
3558 (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL):
3559 Treat C++ just like Standard C instead of trying to support
3560 namespace cleanliness.
3561
3562 2002-02-14 Akim Demaille <akim@epita.fr>
3563
3564 * tests/regression.at (else): Adjust to Andreas' change.
3565
3566 2002-02-14 Akim Demaille <akim@epita.fr>
3567
3568 * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c.
3569
3570 2002-02-13 Andreas Schwab <schwab@suse.de>
3571
3572 * src/output.c (output_rule_data): Don't output NULL, it might
3573 not be defined yet.
3574
3575 2002-02-11 Robert Anisko <robert@lrde.epita.fr>
3576
3577 * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue.
3578 (Copyright notice): Update.
3579
3580 2002-02-11 Akim Demaille <akim@epita.fr>
3581
3582 * tests/regression.at (%nonassoc and eof): Don't include
3583 nonportable headers.
3584
3585 2002-02-08 Robert Anisko <robert@lrde.epita.fr>
3586
3587 * data/bison.c++: Correct error recovery. Make the user able to
3588 initialize the starting location.
3589
3590 2002-02-07 Akim Demaille <akim@epita.fr>
3591
3592 * tests/input.at: New.
3593
3594 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
3595
3596 * data/bison.c++: Replace some direct m4 expansions by constants. Be
3597 more consistent when naming methods and variables. Put preprocessor
3598 directives around tables only needed for debugging.
3599
3600 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
3601
3602 * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in
3603 C++ parsers.
3604 (yy::b4_name::parse): Use print_.
3605
3606 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
3607
3608 * data/bison.c++ (yy::b4_name::parse): Error recovery is back.
3609
3610 2002-02-07 Robert Anisko <robert@lrde.epita.fr>
3611
3612 * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in
3613 C++ parsers.
3614 (yy::b4_name::parse): Build verbose error messages, and use error_.
3615
3616 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
3617
3618 * data/bison.c++: Fix m4 quoting in comments.
3619
3620 2002-02-06 Robert Anisko <robert@lrde.epita.fr>
3621
3622 * data/bison.c++: Adjust the parser code. Fix some muscles that were
3623 not expanded by m4.
3624
3625 2002-02-05 Akim Demaille <akim@epita.fr>
3626
3627 * data/bison.c++: Adjust to the M4 back end.
3628 More is certainly needed.
3629
3630 2002-02-05 Akim Demaille <akim@epita.fr>
3631
3632 Give a try to M4 as a back end.
3633
3634 * lib/readpipe.c: New, from wdiff.
3635 * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and
3636 BISON_HAIRY.
3637 * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS
3638 specific values. Now it is m4 that performs the lookup.
3639 * src/parse-skel.y: Remove.
3640 * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New.
3641 * src/output.c (actions_output, guards_output)
3642 (token_definitions_output): No longer keeps track of the output
3643 line number, hence remove the second argument.
3644 (guards_output): Check against the guard member of a rule, not the
3645 action member.
3646 Adjust callers.
3647 (output_skeleton): Don't look for the skeleton location, let m4 do
3648 that.
3649 Create `/tmp/muscles.m4'. This is temporary, a proper temporary
3650 file will be used.
3651 Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton.
3652 (prepare): Given that for the time being changesyntax is not
3653 usable in M4, rename the muscles using `-' to `_'.
3654 Define `defines_flag', `output_parser_name' and `output_header_name'.
3655 * src/output.h (actions_output, guards_output)
3656 (token_definitions_output): Adjust prototypes.
3657 * src/scan-skel.l: Instead of scanning the skeletons, it now
3658 processes the output of m4: `__oline__' and `#output'.
3659 * data/bison.simple: Adjust to be used by M4(sugar).
3660 * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up
3661 to date.
3662 * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR'
3663 instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'.
3664 * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New,
3665 shamelessly stolen from CVS Autoconf.
3666
3667 2002-02-05 Akim Demaille <akim@epita.fr>
3668
3669 * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version.
3670 * configure.in: Check for the declarations of free and malloc.
3671 * src/muscle_tab.c: Adjust.
3672
3673 2002-02-05 Akim Demaille <akim@epita.fr>
3674
3675 * src/muscle_tab.c (muscle_init): Don't default to NULL muscle
3676 which have no values.
3677
3678 2002-02-05 Akim Demaille <akim@epita.fr>
3679
3680 * src/bison.simple, src/bison.hairy, src/bison.c++: Move to...
3681 * data/: here.
3682
3683 2002-01-29 Paul Eggert <eggert@twinsun.com>
3684
3685 * src/bison.simple (YYSIZE_T): Do not define merely because
3686 YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined.
3687 On some platforms, <alloca.h> does not declare YYSTD (size_t).
3688
3689 2002-01-27 Akim Demaille <akim@epita.fr>
3690
3691 Fix `%nonassoc and eof'.
3692
3693 * src/state.c (errs_dup): Aaaah! The failure was due to bytes
3694 which were not properly copied! Replace
3695 memcpy (res->errs, src->errs, src->nerrs);
3696 with
3697 memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0]));
3698 !!!
3699 * tests/regression.at (%nonassoc and eof): Adjust to newest
3700 Autotest: `.' is not in the PATH.
3701
3702 2002-01-27 Akim Demaille <akim@epita.fr>
3703
3704 * tests/sets.at (AT_EXTRACT_SETS): New.
3705 (Nullable): Use it.
3706 (Firsts): New.
3707
3708 2002-01-26 Akim Demaille <akim@epita.fr>
3709
3710 * tests/actions.at, tests/calc.at, tests/headers.at,
3711 * tests/torture.at: Adjust to the newest Autotest which no longer
3712 forces `.' in the PATH.
3713
3714 2002-01-25 Akim Demaille <akim@epita.fr>
3715
3716 * tests/regression.at (%nonassoc and eof): New.
3717 Suggested by Robert Anisko.
3718
3719 2002-01-24 Akim Demaille <akim@epita.fr>
3720
3721 Bison dumps core when trying to complain about broken input files.
3722 Reported by Cris van Pelt.
3723
3724 * src/lex.c (parse_percent_token): Be sure to set token_buffer.
3725 * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge
3726 into...
3727 (Invalid inputs): Strengthen: exercise parse_percent_token.
3728
3729 2002-01-24 Robert Anisko <robert.anisko@epita.fr>
3730
3731 * src/Makefile.am: Add bison.c++.
3732 * src/bison.c++: New skeleton.
3733
3734 2002-01-21 Paolo Bonzini <bonzini@gnu.org>
3735
3736 * po/it.po: New.
3737
3738 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net>
3739
3740 * src/files.c (skeleton_find) [MSDOS]: Fix cp definition.
3741
3742 2002-01-20 Marc Autret <marc@gnu.org>
3743
3744 * src/files.c (compute_output_file_names): Fix
3745
3746 2002-01-20 Marc Autret <marc@gnu.org>
3747
3748 * tests/output.at: New test.
3749 * src/files.c (compute_base_names): Don't map extensions when
3750 the YACC flag is set, use defaults.
3751 Reported by Evgeny Stambulchik.
3752
3753 2002-01-20 Marc Autret <marc@gnu.org>
3754
3755 * src/system.h: Need to define __attribute__ away for non-GCC
3756 compilers as well (i.e. the vendor C compiler).
3757 Suggested by Albert Chin-A-Young.
3758
3759 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be>
3760
3761 * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the
3762 canonical definition.
3763 * src/system.h: Use the canonical definition for PARAMS (avoids
3764 a conflict with the macro from lib/hash.h).
3765
3766 2002-01-11 Akim Demaille <akim@epita.fr>
3767
3768 * configure.in: Use AC_FUNC_STRNLEN.
3769 Fixes the failures observed on AIX 4.3 by H.Merijn Brand.
3770
3771 2002-01-09 Akim Demaille <akim@epita.fr>
3772
3773 * src/files.c, src/files.h (output_infix): New.
3774 (tab_extension): Remove.
3775 (compute_base_names): Compute the former, drop the latter.
3776 * src/output.c (prepare): Insert the muscles `output-infix', and
3777 `output-suffix'.
3778 * src/parse-skel.y (string, string.1): New.
3779 (section.header): Use it.
3780 (section.yacc): Remove.
3781 (prefix): Remove too.
3782 * src/scan-skel.l: Adjust.
3783 * src/bison.simple, src/bison.hairy: Adjust.
3784
3785 2002-01-09 Akim Demaille <akim@epita.fr>
3786
3787 * configure.in (WERROR_CFLAGS): Compute it.
3788 * src/Makefile.am (CFLAGS): Pass it.
3789 * tests/atlocal.in (CFLAGS): Idem.
3790 * src/files.c: Fix a few warnings.
3791 (get_extension_index): Remove, unused.
3792
3793 2002-01-08 Akim Demaille <akim@epita.fr>
3794
3795 * src/getargs.c (AS_FILE_NAME): New.
3796 (getargs): Use it to convert DOSish file names.
3797 * src/files.c (base_name): Rename as full_base_name to avoid
3798 clashes with `base_name ()'.
3799 (filename_split): New.
3800 (compute_base_names): N-th rewrite, using filename_split.
3801
3802 2002-01-08 Akim Demaille <akim@epita.fr>
3803
3804 * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c:
3805 New, stolen from the Fileutils 4.1.
3806 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
3807 * configure.in: Check for the presence of memrchr, and of its
3808 prototype.
3809
3810 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be>
3811
3812 * lib/hash.h (__P): Added definition for this macro.
3813 * src/Makefile.am: Add parse-skel.c and scan-skel.c to
3814 BUILT_SOURCES, to ensure they are generated first.
3815 * src/parse-skel.y: Use YYERROR_VERBOSE instead of
3816 %error-verbose to allow bootstrapping with bison 1.30x.
3817
3818 2002-01-06 Akim Demaille <akim@epita.fr>
3819
3820 * src/reader.c (parse_braces): Don't fetch the next char, the
3821 convention is to fetch on entry.
3822 * tests/torture.at (GNU Cim Grammar): Reintroduce their weird
3823 'switch' without a following semicolon.
3824 * tests/regression.at (braces parsing): New.
3825
3826 2002-01-06 Akim Demaille <akim@epita.fr>
3827
3828 Bison is dead wrong in its RR conflict reports.
3829
3830 * tests/torture.at (GNU Cim Grammar): New.
3831 * src/conflicts.c (count_rr_conflicts): Fix.
3832
3833 2002-01-06 Akim Demaille <akim@epita.fr>
3834
3835 Creating package.m4 from configure.ac causes too many problems.
3836
3837 * tests/Makefile.am (package.m4): Create it by hand,
3838 AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf.
3839
3840 2002-01-06 Akim Demaille <akim@epita.fr>
3841
3842 * src/Makefile.am (bison_SOURCES): Add parse-skel.h and
3843 skeleton.h.
3844
3845 2002-01-04 Paul Eggert <eggert@twinsun.com>
3846
3847 * doc/bison.texinfo (Debugging):
3848 Remove YYSTDERR; it's no longer defined or used.
3849 Also, s/cstdio.h/cstdio/.
3850
3851 2002-01-03 Akim Demaille <akim@epita.fr>
3852
3853 * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf.
3854
3855 2002-01-03 Akim Demaille <akim@epita.fr>
3856
3857 * src/parse-skel.y (process_skeleton): Don't bind the parser's
3858 tracing code to --trace, wait for a better --trace option, with
3859 args.
3860
3861 2002-01-03 Akim Demaille <akim@epita.fr>
3862
3863 * src/bison.simple (YYSTDERR): Remove, replace `stderr'.
3864 The ISO C++ standard is extremely clear about it: stderr is
3865 considered a macro, not a regular symbol (see table 94 `Header
3866 <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files).
3867 Therefore std:: does not apply to it. It still does with fprintf.
3868 Also, s/cstdio.h/cstdio/.
3869
3870 2002-01-03 Akim Demaille <akim@epita.fr>
3871
3872 * lib/quotearg.c: Use `#include "..."' instead of `#include <...>'
3873 for non system headers.
3874
3875 2002-01-02 Akim Demaille <akim@epita.fr>
3876
3877 Equip the skeleton chain with location tracking, runtime trace,
3878 pure parser and scanner.
3879
3880 * src/parse-skel.y: Request a pure parser, locations, and prefix
3881 renaming.
3882 (%union): Having several members with the same type does not help
3883 type mismatches, simplify.
3884 (YYPRINT, yyprint): New.
3885 (yyerror): ``Rename'' (there is a #define yyerror skel_error) as...
3886 (skel_error): this.
3887 Handle locations.
3888 * src/scan-skel.l: Adjust to these changes.
3889 * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP)
3890 (LOCATION_PRINT, skel_control_t): New.
3891
3892 2001-12-30 Akim Demaille <akim@epita.fr>
3893
3894 * src/parse-skel.y: Get rid of the shift/reduce conflict:
3895 replace `gb' with BLANKS.
3896 * src/scan-skel.l: Adjust.
3897
3898 2001-12-30 Akim Demaille <akim@epita.fr>
3899
3900 * src/system.h: We don't need nor want bcopy.
3901 Throw away MS-DOS crap: we don't need getpid.
3902 * configure.in: We don't need strndup. It was even causing
3903 problems: because Flex includes the headers *before* us,
3904 _GNU_SOURCE is not defined by config.h, and therefore strndup was
3905 not visible.
3906 * lib/xstrndup.c: New.
3907 * src/scan-skel.l: Use it.
3908 Be sure to initialize yylval.muscle member when scanning a MUSCLE.
3909 * src/parse-skel.y: Use %directives instead of #defines.
3910
3911 2001-12-30 Akim Demaille <akim@epita.fr>
3912
3913 * src/skeleton.h: New.
3914 * src/output.c (output_parser, output_master_parser): Remove, dead
3915 code.
3916 * src/output.h (get_lines_number, actions_output, guards_output)
3917 (token_definitions_output): Prototype them.
3918 * src/parse-skel.y: Add the license notice.
3919 Include output.h and skeleton.h.
3920 (process_skeleton): Returns void, and takes a single parameter.
3921 * src/scan-skel.l: Add the license notice.
3922 Include skeleton.h.
3923 Don't use %option yylineno: it seems that then Flex imagines
3924 REJECT has been used, and therefore it won't reallocate its
3925 buffers (which makes no other sense to me than a bug). It results
3926 in warnings for `unused: yy_flex_realloc'.
3927
3928 2001-12-30 Robert Anisko <robert.anisko@epita.fr>
3929
3930 * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
3931 (MUSCLE_INSERT_PREFIX): ...to there.
3932 * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING)
3933 (MUSCLE_INSERT_PREFIX): Move from here...
3934
3935 * src/bison.hairy: Add a section directive. Put braces around muscle
3936 names. This parser skeleton is still broken, but Bison should not
3937 choke on a bad muscle 'syntax'.
3938 * src/bison.simple: Add a section directive. Put braces around muscle
3939 names.
3940
3941 * src/files.h (strsuffix, stringappend): Add declarations.
3942 (tab_extension): Add declaration.
3943 (short_base_name): Add declaration.
3944
3945 * src/files.c (strsuffix, stringappend): No longer static. These
3946 functions are used in the skeleton parser.
3947 (tab_extension): New.
3948 (compute_base_names): Use the computations done in this function
3949 to guess if the generated parsers should have '.tab' in their
3950 names.
3951 (short_base_name): No longer static.
3952
3953 * src/output.c (output_skeleton): New.
3954 (output): Disable call to output_master_parser, and give a try to
3955 a new skeleton handling system.
3956 (guards_output, actions_output): No longer static.
3957 (token_definitions_output, get_lines_number): No longer static.
3958
3959 * configure.in: Use AM_PROG_LEX and AC_PROG_YACC.
3960
3961 * src/Makefile.am (bison_SOURCES): Add scan-skel.l and
3962 parse-skel.y.
3963
3964 * src/parse-skel.y: New file.
3965 * src/scan-skel.l: New file.
3966
3967 2001-12-29 Akim Demaille <akim@epita.fr>
3968
3969 %name-prefix is broken.
3970
3971 * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy".
3972 Adjust all dependencies.
3973 * tests/headers.at (export YYLTYPE): Strengthen this test: use
3974 %name-prefix.
3975
3976 Renaming yylval but not yylloc is not consistent. Now we do.
3977
3978 * src/bison.simple: Prefix yylloc if used.
3979 * doc/bison.texinfo (Decl Summary): Document that.
3980
3981 2001-12-29 Akim Demaille <akim@epita.fr>
3982
3983 * doc/bison.texinfo: Promote `%long-directive' over
3984 `%long_directive'.
3985 Remove all references to fixed-output-files, yacc is enough.
3986
3987 2001-12-29 Akim Demaille <akim@epita.fr>
3988
3989 * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the
3990 user prologue. These are defaults.
3991 * tests/actions.at (Mid-rule actions): Make sure the user can
3992 define YYDEBUG and YYERROR_VERBOSE.
3993
3994 2001-12-29 Akim Demaille <akim@epita.fr>
3995
3996 * src/output.c (header_output): Don't forget to export YYLTYPE and
3997 yylloc.
3998 * tests/headers.at (export YYLTYPE): New, make sure it does.
3999 * tests/regression.at (%union and --defines, Invalid CPP headers):
4000 Move to...
4001 * tests/headers.at: here.
4002
4003 2001-12-29 Akim Demaille <akim@epita.fr>
4004
4005 * src/gram.h (rule_s): Member `assoc' is of type `associativity'.
4006
4007 2001-12-29 Akim Demaille <akim@epita.fr>
4008
4009 * tests/actions.at (Mid-rule actions): Output on a single line
4010 instead of several.
4011
4012 2001-12-29 Akim Demaille <akim@epita.fr>
4013
4014 * doc/bison.texinfo: Formatting changes.
4015
4016 2001-12-29 Akim Demaille <akim@epita.fr>
4017
4018 Don't store the token defs in a muscle, just be ready to output it
4019 on command. Now possible via `symbols'. Fixes a memory leak.
4020
4021 * src/output.c (token_definitions_output): New.
4022 (output_parser, header_output): Use it.
4023 * src/reader.c (symbols_save): Remove.
4024
4025 2001-12-29 Akim Demaille <akim@epita.fr>
4026
4027 * src/bison.simple: Do not provide a default for YYSTYPE and
4028 YYLTYPE before the user's prologue. Otherwise it's hardly... a
4029 default.
4030
4031 2001-12-29 Akim Demaille <akim@epita.fr>
4032
4033 Mid-rule actions are simply... ignored!
4034
4035 * src/reader.c (readgram): Be sure to attach mid-rule actions to
4036 the empty-rule associated to the dummy symbol, not to the host
4037 rule.
4038 * tests/actions.at (Mid-rule actions): New.
4039
4040 2001-12-29 Akim Demaille <akim@epita.fr>
4041
4042 Memory leak.
4043
4044 * src/reader.c (reader): Free grammar.
4045
4046 2001-12-29 Akim Demaille <akim@epita.fr>
4047
4048 Memory leak.
4049
4050 * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here,
4051 since it allocates it for each state, although only one is needed.
4052 (allocate_storage): Do it here.
4053
4054 2001-12-29 Akim Demaille <akim@epita.fr>
4055
4056 * src/options.h, src/options.c (create_long_option_table): Rename
4057 as...
4058 (long_option_table_new): this, with a clearer prototype.
4059 (percent_table): Remove, unused,
4060 * src/getargs.c (getargs): Adjust.
4061
4062 2001-12-29 Akim Demaille <akim@epita.fr>
4063
4064 * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c
4065 * src/print.c, src/print_graph.c, src/state.h: Rename state_table
4066 as states.
4067
4068 2001-12-29 Akim Demaille <akim@epita.fr>
4069
4070 * src/lalr.c (build_relations): Rename `states' as `states1'.
4071 Sorry, I don't understand exactly what it is, no better name...
4072
4073 2001-12-29 Akim Demaille <akim@epita.fr>
4074
4075 * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
4076 * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c
4077 * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table
4078 as rules.
4079
4080 2001-12-29 Akim Demaille <akim@epita.fr>
4081
4082 * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long
4083 ago.
4084
4085 2001-12-29 Akim Demaille <akim@epita.fr>
4086
4087 * src/reader.c, src/reader.h (user_toknums): Remove.
4088 Adjust all users to use symbols[i]->user_token_number.
4089
4090 2001-12-29 Akim Demaille <akim@epita.fr>
4091
4092 * src/gram.c, src/gram.h (sprec, sassoc): Remove.
4093 Adjust all users to use symbols[i]->prec or ->assoc.
4094
4095 2001-12-29 Akim Demaille <akim@epita.fr>
4096
4097 * src/reader.c, src/reader.h (tags): Remove.
4098 Adjust all users to use symbols[i]->tag.
4099
4100 2001-12-29 Akim Demaille <akim@epita.fr>
4101
4102 * src/gram.h, src/gram.c (symbols): New, similar to state_table
4103 and rule_table.
4104 * src/reader.c (packsymbols): Fill this table.
4105 Drop sprec.
4106 * src/conflicts.c (resolve_sr_conflict): Adjust.
4107 * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a
4108 single table.
4109 Use symbols[i]->tag instead of tags[i].
4110
4111 2001-12-29 Akim Demaille <akim@epita.fr>
4112
4113 * tests/calc.at (_AT_DATA_CALC_Y): Also use %union.
4114 In addition, put a comment in there, to replace...
4115 * tests/regression.at (%union and C comments): Remove.
4116
4117 2001-12-29 Akim Demaille <akim@epita.fr>
4118
4119 * tests/regression.at (Web2c Actions): Blindly move the actual
4120 output as expected output. The contents *seem* right to me, but I
4121 can't pretend reading perfectly parser tables... Nonetheless, all
4122 the other tests pass correctly, the table look OK, even though the
4123 presence of `$axiom' is to be noted: AFAICS it is useless (but
4124 harmless).
4125
4126 2001-12-29 Akim Demaille <akim@epita.fr>
4127
4128 * src/reader.c (readgram): Don't add the rule 0 if there were no
4129 rules read. In other words, add it _after_ having performed
4130 grammar sanity checks.
4131 Fixes the `tests/regression.at (Invalid input: 1)' Failure.
4132
4133 2001-12-29 Akim Demaille <akim@epita.fr>
4134
4135 * tests/regression.at (Web2c Report): Catch up: the rule 0 is now
4136 visible, and some states have now a different number.
4137
4138 2001-12-29 Akim Demaille <akim@epita.fr>
4139
4140 * src/reader.c (readgram): Bind the initial rule's lineno to that
4141 of the first rule.
4142 * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts):
4143 (Solved SR Conflicts): Adjust rule 0's line number.
4144
4145 2001-12-29 Akim Demaille <akim@epita.fr>
4146
4147 Fix the `GAWK Grammar' failure.
4148
4149 * src/LR0.c (final_state): Initialize to -1 so that we do compute
4150 the reductions of the first state which was mistakenly confused
4151 with the final state because precisely final_state was initialized
4152 to 0.
4153 * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads,
4154 now noticed by Bison.
4155 * tests/regression.at (Rule Line Numbers): Adjust: state 0 does
4156 have a reduction on $default.
4157
4158 2001-12-29 Akim Demaille <akim@epita.fr>
4159
4160 * src/gram.c (ritem_print): Be sure to subtract 1 when displaying
4161 rule line numbers.
4162 * src/closure.c (print_closure): Likewise.
4163 * src/derives.c (print_derives): Likewise.
4164 * tests/sets.at (Nullable): Adjust: the rule numbers are correct
4165 now.
4166
4167 2001-12-29 Akim Demaille <akim@epita.fr>
4168
4169 * src/lalr.c (lookaheads_print): New.
4170 (lalr): Call it when --trace-flag.
4171 * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads
4172 are dumped.
4173
4174 2001-12-29 Akim Demaille <akim@epita.fr>
4175
4176 * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0',
4177 when walking through ritem, even via rule->rhs.
4178 * src/reduce.c (dump_grammar, useful_production, reduce_output)
4179 (useful_production, useless_nonterminals): Likewise.
4180 (reduce_grammar_tables): Likewise, plus update nritems.
4181 * src/nullable.c (set_nullable): Likewise.
4182 * src/lalr.c (build_relations): Likewise.
4183 * tests/sets.at (Nullable): Adjust.
4184 Fortunately, now, the $axiom is no longer nullable.
4185
4186 2001-12-29 Akim Demaille <akim@epita.fr>
4187
4188 * src/LR0.c (generate_states): Use nritems, not nitems, nor using
4189 the 0-sentinel.
4190 * src/gram.c (ritem_longest_rhs): Likewise.
4191 * src/reduce.c (nonterminals_reduce): Likewise.
4192 * src/print_graph.c (print_graph): Likewise.
4193 * src/output.c (output_rule_data): Likewise.
4194 * src/nullable.c (set_nullable): Likewise.
4195
4196 2001-12-29 Akim Demaille <akim@epita.fr>
4197
4198 * src/output.c: Comment changes.
4199
4200 2001-12-27 Paul Eggert <eggert@twinsun.com>
4201
4202 * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special
4203 cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and
4204 Sparc, as they were causing more porting problems than the
4205 (minor) performance improvement was worth.
4206
4207 Also, catch up with 1.31's YYSTD.
4208
4209 2001-12-27 Akim Demaille <akim@epita.fr>
4210
4211 * src/output.c (output_gram): Rely on nritems, not the
4212 0-sentinel. See below.
4213 Use -1 as separator, not 0.
4214 * src/bison.simple (yyparse): Subtract 1 to the rule numbers.
4215 Rely on -1 as separator in yyrhs, instead of 0.
4216 * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue
4217 twice `Now at end of input', therefore there are two lines less to
4218 expect.
4219
4220 2001-12-27 Akim Demaille <akim@epita.fr>
4221
4222 * tests/regression.at (Unresolved SR Conflicts):
4223 (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes
4224 below.
4225
4226 2001-12-27 Akim Demaille <akim@epita.fr>
4227
4228 * src/LR0.c (new_state): Recognize the final state by the fact it
4229 is reached by eoftoken.
4230 (insert_start_shifting_state, insert_eof_shifting_state)
4231 (insert_accepting_state, augment_automaton): Remove, since now
4232 these states are automatically computed from the initial state.
4233 (generate_states): Adjust.
4234 * src/print.c: When reporting a rule number to the user, substract
4235 1, so that the axiom rule is rule 0, and the first user rule is 1.
4236 * src/reduce.c: Likewise.
4237 * src/print_graph.c (print_core): For the time being, just as for
4238 the report, depend upon --trace-flags to dump the full set of
4239 items.
4240 * src/reader.c (readgram): Once the grammar read, insert the rule
4241 0: `$axiom: START-SYMBOL $'.
4242 * tests/set.at: Adjust: rule 0 is now displayed, and since the
4243 number of the states has changed (the final state is no longer
4244 necessarily the last), catch up.
4245
4246 2001-12-27 Akim Demaille <akim@epita.fr>
4247
4248 Try to make the use of the eoftoken valid. Given that its value
4249 is 0 which was also used as a sentinel in ritem, (i) make sure >= 0
4250 is used instead of > 0 where appropriate, (ii), depend upon nritems
4251 instead of the 0-sentinel.
4252
4253 * src/gram.h, src/gram.c (nritems): New.
4254 Expected to be duplication of nitems, but for the time being...
4255 * src/reader.c (packgram): Assert nritems and nitems are equal.
4256 * src/LR0.c (allocate_itemsets, new_itemsets): Adjust.
4257 * src/closure.c (print_closure, print_fderives): Likewise.
4258 * src/gram.c (ritem_print): Likewise.
4259 * src/print.c (print_core, print_grammar): Likewise.
4260 * src/print_graph.c: Likewise.
4261
4262 2001-12-27 Akim Demaille <akim@epita.fr>
4263
4264 * src/main.c (main): If there are complains after grammar
4265 reductions, then output the report anyway if requested, then die.
4266 * src/symtab.c (bucket_new): Initialize `value' to -1, not 0.
4267 * src/reader.c (eoftoken): New.
4268 (parse_token_decl): If the token being defined has value `0', it
4269 is the eoftoken.
4270 (packsymbols): No longer hack `tags' to insert `$' by hand.
4271 Be sure to preserve the value of the eoftoken.
4272 (reader): Make sure eoftoken is defined.
4273 Initialize nsyms to 0: now eoftoken is created just like the others.
4274 * src/print.c (print_grammar): Don't special case the eof token.
4275 * src/regression.at: Adjust: `$' has value 0, not -1, which was a
4276 lie anyway, albeit pleasant.
4277 * tests/calc.at: Exercise error messages with eoftoken.
4278 Change the grammar so that empty input is invalid.
4279 Adjust expectations.
4280 When yyungeting, be sure to use a valid yylloc: use last_yylloc.
4281
4282 2001-12-27 Akim Demaille <akim@epita.fr>
4283
4284 * configure.in: Check the protos of strchr ans strspn.
4285 Replace strchr if needed.
4286 * src/system.h: Provide the protos of strchr, strspn and memchr if
4287 missing.
4288 * lib/strchr.c: New.
4289 * src/reader.c (symbols_save): Use strchr.
4290
4291 2001-12-27 Akim Demaille <akim@epita.fr>
4292
4293 * src/print.c, src/print_graph.c (escape): New.
4294 Use it to quote the TAGS outputs.
4295 * src/print_graph.c (print_state): Now errors are in red, and
4296 reductions in green.
4297 Prefer high to wide: output the state number on a line of its own.
4298
4299 2001-12-27 Akim Demaille <akim@epita.fr>
4300
4301 * src/state.h, src/state.c (reductions_new): New.
4302 * src/LR0.c (set_state_table): Let all the states have a
4303 `reductions', even if reduced to 0.
4304 (save_reductions): Adjust.
4305 * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust.
4306 * src/print.c (print_reductions, print_actions): Adjust.
4307 * src/output.c (action_row): Adjust.
4308
4309 2001-12-27 Akim Demaille <akim@epita.fr>
4310
4311 * src/state.h, src/state.c (errs_new, errs_dup): New.
4312 * src/LR0.c (set_state_table): Let all the states have an errs,
4313 even if reduced to 0.
4314 * src/print.c (print_errs, print_reductions): Adjust.
4315 * src/output.c (output_actions, action_row): Adjust.
4316 * src/conflicts.c (resolve_sr_conflict): Adjust.
4317
4318 2001-12-27 Akim Demaille <akim@epita.fr>
4319
4320 * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL.
4321
4322 2001-12-27 Akim Demaille <akim@epita.fr>
4323
4324 * src/conflicts.c, src/conflicts.h (print_reductions): Move to...
4325 * src/print.c: here.
4326 (lookaheadset, shiftset): New, used as additional storage by
4327 print_reductions.
4328 (print_results): Adjust.
4329 (print_shifts, print_gotos, print_errs): New, extracted from...
4330 (print_actions): here.
4331 * src/print_graph.c (print_actions): Remove dead code.
4332
4333 2001-12-27 Akim Demaille <akim@epita.fr>
4334
4335 * src/reader.c (copy_dollar, copy_at): Better checking of `n' in
4336 `$n' and `@n'.
4337
4338 2001-12-27 Akim Demaille <akim@epita.fr>
4339
4340 * src/lalr.c (add_lookback_edge): Use state_t instead of ints.
4341 (build_relations): Adjust.
4342
4343 2001-12-27 Akim Demaille <akim@epita.fr>
4344
4345 * src/lalr.c (set_goto_map): Remove a wrong but benign loop
4346 duplication.
4347
4348 2001-12-27 Akim Demaille <akim@epita.fr>
4349
4350 * src/reader.c (packgram): Catch nitems overflows.
4351
4352 2001-12-27 Akim Demaille <akim@epita.fr>
4353
4354 * src/files.c, src/files.h (guard_obstack): Remove.
4355 * src/output.c (output): Adjust.
4356 * src/reader.c (parse_braces): New, factoring...
4357 (copy_action, copy_guard): these two which are renamed as...
4358 (parse_action, parse_guard): these.
4359 As a voluntary consequence, using braces around guards is now
4360 mandatory.
4361
4362 2001-12-27 Akim Demaille <akim@epita.fr>
4363
4364 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
4365 * src/reader.c (symbol_list): `guard' and `guard_line' are new
4366 members.
4367 (symbol_list_new): Adjust.
4368 (copy_action): action_line is the first line, not the last.
4369 (copy_guard): Just as for actions, store the `action' only, not
4370 the switch/case/break flesh.
4371 Don't parse the user action that might follow the guard, let...
4372 (readgram): do it, i.e., now, there can be an action after a
4373 guard.
4374 In other words the guard is just explicitly optional.
4375 (packgram): Adjust.
4376 * src/output.c (guards_output): New.
4377 (output_parser): Call it when needed.
4378 (output): Also free the guard and attrs obstacks.
4379 * src/files.c, src/files.h (obstack_save): Remove.
4380 (output_files): Remove.
4381 As a result, if one needs the former `.act' file, using an
4382 appropriate skeleton which requires actions and guards is now
4383 required.
4384 * src/main.c (main): Adjust.
4385 * tests/semantic.at: New.
4386 * tests/regression.at: Use `input.y' as input file name.
4387 Avoid 8+3 problems by requiring input.c when the test needs the
4388 parser.
4389
4390 2001-12-27 Akim Demaille <akim@epita.fr>
4391
4392 * src/reader.c (symbol_list_new): Be sure to initialize all the
4393 fields.
4394
4395 2001-12-27 Akim Demaille <akim@epita.fr>
4396
4397 All the hacks using a final pseudo state are now useless.
4398
4399 * src/LR0.c (set_state_table): state_table holds exactly nstates.
4400 * src/lalr.c (nLA): New.
4401 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
4402 instead of lookaheadsp from the pseudo state (nstate + 1).
4403
4404 2001-12-27 Akim Demaille <akim@epita.fr>
4405
4406 * src/output.c (action_row, token_actions): Use a state_t instead
4407 of a integer, and nlookaheads instead of the following state's
4408 lookaheadsp.
4409
4410 2001-12-27 Akim Demaille <akim@epita.fr>
4411
4412 * src/conflicts.c (log_resolution, flush_shift)
4413 (resolve_sr_conflict, set_conflicts, solve_conflicts)
4414 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
4415 (conflicts_print, print_reductions): Use a state_t instead of an
4416 integer when referring to a state.
4417 As much as possible, depend upon nlookaheads, instead of the
4418 `lookaheadsp' member of the following state (since lookaheads of
4419 successive states are successive, the difference between state n + 1
4420 and n served as the number of lookaheads for state n).
4421 * src/lalr.c (add_lookback_edge): Likewise.
4422 * src/print.c (print_core, print_actions, print_state)
4423 (print_results): Likewise.
4424 * src/print_graph.c (print_core, print_actions, print_state)
4425 (print_graph): Likewise.
4426 * src/conflicts.h: Adjust.
4427
4428 2001-12-27 Akim Demaille <akim@epita.fr>
4429
4430 * src/bison.hairy: Formatting/comment changes.
4431 ANSIfy.
4432 Remove `register' indications.
4433 Add plenty of `static'.
4434
4435 2001-12-27 Akim Demaille <akim@epita.fr>
4436
4437 * src/output.c (prepare): Drop the muscle `ntbase' which
4438 duplicates ntokens.
4439 * src/bison.simple: Formatting/comment changes.
4440 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
4441 is an undocumented synonym.
4442
4443 2001-12-22 Akim Demaille <akim@epita.fr>
4444
4445 * src/output.c (output_table_data): Change the prototype to use
4446 `int' for array ranges: some invocations do pass an int, not a
4447 short.
4448 Reported by Wayne Green.
4449
4450 2001-12-22 Akim Demaille <akim@epita.fr>
4451
4452 Some actions of web2c.y are improperly triggered.
4453 Reported by Mike Castle.
4454
4455 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
4456 * tests/regression.at (Web2c): Rename as...
4457 (Web2c Report): this.
4458 (Web2c Actions): New.
4459
4460 2001-12-22 Akim Demaille <akim@epita.fr>
4461
4462 Reductions in web2c.y are improperly reported.
4463 Reported by Mike Castle.
4464
4465 * src/conflicts.c (print_reductions): Fix.
4466 * tests/regression.at (Web2c): New.
4467
4468 2001-12-18 Akim Demaille <akim@epita.fr>
4469
4470 Some host fail on `assert (!"foo")', which expands to
4471 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
4472 Reported by Nelson Beebee.
4473
4474 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
4475 `#define it_succeeded 0' and `assert (it_succeeded)'.
4476
4477 2001-12-17 Marc Autret <autret_m@epita.fr>
4478
4479 * src/bison.simple: Don't hard code the skeleton line and filename.
4480 * src/output.c (output_parser): Rename 'line' as 'output_line'.
4481 New line counter 'skeleton_line' (skeleton-line muscle).
4482
4483 2001-12-17 Paul Eggert <eggert@twinsun.com>
4484
4485 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
4486 YYDEBUG must be defined to a nonzero value.
4487
4488 * src/bison.simple (yytname): Do not assume that the user defines
4489 YYDEBUG to a properly parenthesized expression.
4490
4491 2001-12-17 Akim Demaille <akim@epita.fr>
4492
4493 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
4494 nlookaheads is a new member.
4495 Adjust all users.
4496 * src/lalr.h (nlookaheads): Remove this orphan declaration.
4497 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
4498 state.
4499
4500 2001-12-17 Akim Demaille <akim@epita.fr>
4501
4502 * src/files.h, src/files.c (open_files, close_files): Remove.
4503 * src/main.c (main): Don't open/close files, nor invoke lex_free,
4504 let...
4505 * src/reader.c (reader): Do it.
4506
4507 2001-12-17 Akim Demaille <akim@epita.fr>
4508
4509 * src/conflicts.c (print_reductions): Formatting changes.
4510
4511 2001-12-17 Akim Demaille <akim@epita.fr>
4512
4513 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
4514 (flush_reduce): New.
4515 (resolve_sr_conflict): Adjust.
4516
4517 2001-12-17 Akim Demaille <akim@epita.fr>
4518
4519 * src/output.c (output_obstack): Be static and rename as...
4520 (format_obstack): this, to avoid any confusion with files.c's
4521 output_obstack.
4522 * src/reader.h (muscle_obstack): Move to...
4523 * src/output.h: here, since it's defined in output.c.
4524
4525 2001-12-17 Akim Demaille <akim@epita.fr>
4526
4527 * src/output.c (action_row, save_column, default_goto)
4528 (sort_actions, matching_state, pack_vector): Better variable
4529 locality.
4530
4531 2001-12-17 Akim Demaille <akim@epita.fr>
4532
4533 * src/output.c: Various formatting changes.
4534
4535 2001-12-17 Akim Demaille <akim@epita.fr>
4536
4537 * src/files.c (output_files): Free the output_obstack.
4538 * src/main.c (main): Call print and print_graph conditionally.
4539 * src/print.c (print): Work unconditionally.
4540 * src/print_graph.c (print_graph): Work unconditionally.
4541 * src/conflicts.c (log_resolution): Output only if verbose_flag.
4542
4543 2001-12-16 Marc Autret <autret_m@epita.fr>
4544
4545 * src/output.c (actions_output): Fix. When we use %no-lines,
4546 there is one less line per action.
4547
4548 2001-12-16 Marc Autret <autret_m@epita.fr>
4549
4550 * src/bison.simple: Remove a useless #line directive.
4551 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
4552 * src/output.c (get_lines_number): New.
4553 (output_parser): Adjust, now takes care about the lines of a
4554 output muscles.
4555 Fix line numbering.
4556 (actions_output): Computes the number of lines taken by actions.
4557 (output_master_parser): Insert new skeleton which is the name of
4558 the output parser file name.
4559
4560 2001-12-15 Marc Autret <autret_m@epita.fr>
4561
4562 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
4563
4564 2001-12-15 Marc Autret <autret_m@epita.fr>
4565
4566 * src/output.c (output_gram): Keep track of the hairy one.
4567
4568 2001-12-15 Akim Demaille <akim@epita.fr>
4569
4570 Make `make distcheck' work.
4571
4572 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
4573 system.h which uses libgettext.h.
4574
4575 2001-12-15 Akim Demaille <akim@epita.fr>
4576
4577 * src/nullable.c (set_nullable): Useless rules must be skipped,
4578 otherwise, since we range over their symbols, we might look at a
4579 nonterminal which no longer ``exists'', i.e., it is not counted in
4580 `nvars', hence we overflow our arrays.
4581
4582 2001-12-15 Akim Demaille <akim@epita.fr>
4583
4584 The header can also be produced directly, without any obstack!
4585 Yahoo!
4586
4587 * src/files.c, src/files.h (defines_obstack): Remove.
4588 (compute_header_macro): Global.
4589 (defines_obstack_save): Remove.
4590 * src/reader.c (parse_union_decl): No longer output to
4591 defines_obstack: its content can be found in the `stype' muscle
4592 anyway.
4593 (output_token_translations): Merge into...
4594 (symbols_output): this.
4595 Rename as...
4596 (symbols_save): this.
4597 (reader): Adjust.
4598 * src/output.c (header_output): New.
4599 (output): Call it.
4600
4601 2001-12-15 Akim Demaille <akim@epita.fr>
4602
4603 * src/reader.c (parse_union_decl): Instead of handling two obstack
4604 simultaneously, use one to define the `stype' muscle, and use the
4605 value of the latter to fill defines_obstack.
4606 (copy_comment): Remove.
4607 (copy_comment2): Work for a single obstack.
4608 Rename as...
4609 (copy_comment): this.
4610
4611 2001-12-15 Akim Demaille <akim@epita.fr>
4612
4613 * src/lex.c, src/lex.h (xgetc): No longer static.
4614 * src/reader.c (parse_union_decl): Revamp.
4615
4616 2001-12-15 Akim Demaille <akim@epita.fr>
4617
4618 Still making progress in separating Bison into (i) input, (ii)
4619 process, (iii) output: now we can directly output the parser file
4620 without using table_obstack at all.
4621
4622 * src/files.c, src/files.h (table_obstack): Bye bye.
4623 (parser_file_name): New.
4624 * src/files.c (compute_output_file_names): Compute it.
4625 * src/output.c (actions_output, output_parser)
4626 (output_master_parser): To a file instead of an obstack.
4627
4628 2001-12-15 Akim Demaille <akim@epita.fr>
4629
4630 Attach actions to rules, instead of pre-outputting them to
4631 actions_obstack.
4632
4633 * src/gram.h (rule_t): action and action_line are new members.
4634 * src/reader.c (symbol_list): Likewise.
4635 (copy_action): Save the actions within the rule.
4636 (packgram): Save them in rule_table.
4637 * src/output.c (actions_output): New.
4638 (output_parser): Use it on `%%actions'.
4639 (output_rule_data): Don't free rule_table.
4640 (output): Do it.
4641 (prepare): Don't save the `action' muscle.
4642 * src/bison.simple: s/%%action/%%actions/.
4643
4644 2001-12-15 Akim Demaille <akim@epita.fr>
4645
4646 * src/reader.c (copy_action): When --yacc, don't append a `;'
4647 to the user action: let it fail if lacking.
4648 Suggested by Arnold Robbins and Tom Tromey.
4649
4650 2001-12-14 Akim Demaille <akim@epita.fr>
4651
4652 * src/lex.c (literalchar): Simply return the char you decoded, non
4653 longer mess around with obstacks and int pointers.
4654 Adjust all callers.
4655
4656 2001-12-14 Akim Demaille <akim@epita.fr>
4657
4658 * src/lex.c (literalchar): Don't escape the special characters,
4659 just decode them, and keep them as char (before, eol was output as
4660 the 2 char string `\n' etc.).
4661 * src/output.c (output_rule_data): Use quotearg to output the
4662 token strings.
4663
4664 2001-12-13 Paul Eggert <eggert@twinsun.com>
4665
4666 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
4667 Do not infringe on the global user namespace when using C++.
4668 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
4669 All uses of `fprintf' and `stderr' changed.
4670
4671 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
4672
4673 2001-12-13 Akim Demaille <akim@epita.fr>
4674
4675 The computation of nullable is broken: it doesn't handle empty
4676 RHS's properly.
4677
4678 * tests/torture.at (GNU AWK Grammar): New.
4679 * tests/sets.at (Nullable): New.
4680 * src/nullable.c (set_nullable): Instead of blindly looping over
4681 `ritems', loop over the rules, and then over their rhs's.
4682
4683 Work around Autotest bugs.
4684
4685 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
4686 frame, because Autotest understand lines starting with a `+' as
4687 traces from the shell. Then, they are not processed properly.
4688 Admittedly an Autotest bug, but we don't have time to wait for
4689 Autotest to catch up.
4690 * tests/regression.at (Broken Closure): Adjust to the new table
4691 frames.
4692 Move to...
4693 * tests/sets.at: here.
4694
4695 2001-12-13 Akim Demaille <akim@epita.fr>
4696
4697 * src/closure.c (closure): Use nrules instead of playing tricks
4698 with BITS_PER_WORD.
4699
4700 2001-12-13 Akim Demaille <akim@epita.fr>
4701
4702 * src/print.c (print_actions): Output the handling of `$' as the
4703 traces do: shifting the token EOF. Before EOF was treated as a
4704 nonterminal.
4705 * tests/regression.at: Adjust some tests.
4706 * src/print_graph.c (print_core): Complete the set of items via
4707 closure. The next-to-final and final states are still unsatisfying,
4708 but that's to be addressed elsewhere.
4709 No longer output the rule numbers, but do output the state number.
4710 A single loop for the shifts + gotos is enough, but picked a
4711 distinct color for each.
4712 (print_graph): Initialize and finalize closure.
4713
4714 2001-12-13 Akim Demaille <akim@epita.fr>
4715
4716 * src/reader.c (readgram): Remove dead code, an strip useless
4717 braces.
4718 (get_type): Remove, unused.
4719
4720 2001-12-12 Akim Demaille <akim@epita.fr>
4721
4722 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
4723 on that of lib/error.c.
4724
4725 2001-12-12 Akim Demaille <akim@epita.fr>
4726
4727 Some hosts don't like `/' in includes.
4728
4729 * src/system.h: Include libgettext.h without qualifying the path.
4730 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
4731 $(top_srcdir).
4732
4733 2001-12-11 Marc Autret <autret_m@epita.fr>
4734
4735 * src/output.c (output_parser): Remove useless muscle.
4736
4737 2001-12-11 Marc Autret <autret_m@epita.fr>
4738
4739 * src/bison.simple: Remove #line just before %%epilogue. It
4740 is now handled in ...
4741 * src/reader.c (read_additionnal_code): Add the output of a
4742 #line for the epilogue.
4743
4744 2001-12-10 Marc Autret <autret_m@epita.fr>
4745
4746 * src/reader.c (copy_definition): Re-use CPP-outed code which
4747 replace precedent remove.
4748 * src/bison.simple: Remove #line before %%prologue because
4749 %%input-line is wrong at this time.
4750
4751 2001-12-10 Marc Autret <autret_m@epita.fr>
4752
4753 * src/reader.c (symbols_output): Clean up.
4754 * src/output.c (output_gram, output): Clean up.
4755
4756 2001-12-10 Akim Demaille <akim@epita.fr>
4757
4758 * src/lalr.c (initialize_lookaheads): New. Extracted from...
4759 * src/LR0.c (set_state_table): here.
4760 * src/lalr.c (lalr): Call it.
4761
4762 2001-12-10 Akim Demaille <akim@epita.fr>
4763
4764 * src/state.h (shifts): Remove the `number' member: shifts are
4765 attached to state, hence no longer need to be labelled with a
4766 state number.
4767
4768 2001-12-10 Akim Demaille <akim@epita.fr>
4769
4770 Now that states have a complete set of members, the linked list of
4771 shifts is useless: just fill directly the state's shifts member.
4772
4773 * src/state.h (shifts): Remove the `next' member.
4774 * src/LR0.c (first_state, last_state): Remove.
4775 Adjust the callers.
4776 (augment_automaton): Don't look for the shifts that must be added
4777 a shift on EOF: it is those of the state we looked for! But now,
4778 since shifts are attached, it is no longer needed to looking
4779 merely by its id: its number.
4780
4781 2001-12-10 Akim Demaille <akim@epita.fr>
4782
4783 * src/LR0.c (augment_automaton): Better variable locality.
4784 Remove an impossible branch: if there is a state corresponding to
4785 the start symbol being shifted, then there is shift for the start
4786 symbol from the initial state.
4787
4788 2001-12-10 Akim Demaille <akim@epita.fr>
4789
4790 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
4791 only when appropriate: when insert_start_shifting_state' is not
4792 invoked.
4793 * tests/regression.at (Rule Line Numbers): Adjust.
4794
4795 2001-12-10 Akim Demaille <akim@epita.fr>
4796
4797 * src/LR0.c (augment_automaton): Now that all states have shifts,
4798 merge the two cases addition shifts to the initial state.
4799
4800 2001-12-10 Akim Demaille <akim@epita.fr>
4801
4802 * src/lalr.c (set_state_table): Move to...
4803 * src/LR0.c: here.
4804 * src/lalr.c (lalr): Don't call it...
4805 * src/LR0.c (generate_states): do it.
4806 * src/LR0.h (first_state): Remove, only the table is used.
4807
4808 2001-12-10 Akim Demaille <akim@epita.fr>
4809
4810 * src/LR0.h (first_shift, first_reduction): Remove.
4811 * src/lalr.c: Don't use first_shift: find shifts through the
4812 states.
4813
4814 2001-12-10 Akim Demaille <akim@epita.fr>
4815
4816 * src/LR0.c: Attach shifts to states as soon as they are
4817 computed.
4818 * src/lalr.c (set_state_table): Instead of assigning shifts to
4819 state, just assert that the mapping was properly done.
4820
4821 2001-12-10 Akim Demaille <akim@epita.fr>
4822
4823 * src/LR0.c (insert_start_shift): Rename as...
4824 (insert_start_shifting_state): this.
4825 (insert_eof_shifting_state, insert_accepting_state): New.
4826 (augment_automaton): Adjust.
4827 Better locality of the variables.
4828 When looking if the start_symbol is shifted from the initial
4829 state, using `while (... symbol != start_symbol ...)' sounds
4830 better than `while (... symbol < start_symbol ...)': If fail
4831 to see how the order between symbols could be relevant!
4832
4833 2001-12-10 Akim Demaille <akim@epita.fr>
4834
4835 * src/getargs.h: Don't declare `spec_name_prefix' and
4836 `spec_file_prefix', declared by src/files.h.
4837 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
4838 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
4839 * src/output.c (prepare): Adjust.
4840 * src/reader.c (symbols_output): Likewise.
4841 * src/vmsgetargs.c: Vaguely adjust, but who cares?
4842
4843 2001-12-10 Akim Demaille <akim@epita.fr>
4844
4845 * src/muscle_tab.c (muscle_init): NULL is a better default than
4846 `"0"'.
4847
4848 2001-12-10 Akim Demaille <akim@epita.fr>
4849
4850 * src/reader.c (reader): Calling symbols_output once is enough.
4851
4852 2001-12-10 Akim Demaille <akim@epita.fr>
4853
4854 Now that states have a complete set of members, the linked list of
4855 reductions is useless: just fill directly the state's reductions
4856 member.
4857
4858 * src/state.h (struct reductions): Remove member `number' and
4859 `next'.
4860 * src/LR0.c (first_reduction, last_reduction): Remove.
4861 (save_reductions): Don't link the new reductions, store them in
4862 this_state.
4863 * src/lalr.c (set_state_table): No need to attach reductions to
4864 states, it's already done.
4865 * src/output.c (output_actions): No longer free the shifts, then
4866 the reductions, then the states: free all the states and their
4867 members.
4868
4869 2001-12-10 Akim Demaille <akim@epita.fr>
4870
4871 * src/options.c (OPTN, DRTV, BOTH): New.
4872 (option_table): Use them.
4873
4874 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
4875 the job of system.h.
4876 * src/options.c: Don't include stdio.h and xalloc.h for the same
4877 reasons.
4878
4879 2001-12-10 Akim Demaille <akim@epita.fr>
4880
4881 * src/output.c (output, prepare): Make sure the values of the
4882 muscles `action' and `prologue' are 0-terminated.
4883
4884 2001-12-10 Akim Demaille <akim@epita.fr>
4885
4886 Clean up GCC warnings.
4887
4888 * src/reader.c (copy_action): `buf' is not used.
4889 (parse_skel_decl): Be static.
4890 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
4891 * src/options.h (create_long_option_table): Have a real prototype.
4892 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
4893 (hash_delete_at): Return const void *.
4894 Adjust casts to preserve the const.
4895
4896 2001-12-10 Akim Demaille <akim@epita.fr>
4897
4898 * configure.in: Require 2.52g.
4899 M4 is not needed, but AUTOM4TE is.
4900 * m4/m4.m4: Remove.
4901 * tests/Makefile.am: Adjust.
4902
4903 2001-12-10 Akim Demaille <akim@epita.fr>
4904
4905 One structure for states is enough, even though theoretically
4906 there are LR(0) states and LALR(1) states.
4907
4908 * src/lalr.h (state_t): Remove.
4909 (state_table): Be state_t **, not state_t *.
4910 * src/state.h (core, CORE_ALLOC): Rename as...
4911 (state_t, STATE_ALLOC): this.
4912 Add the LALR(1) members: shifts, reductions, errs.
4913 * src/LR0.c (state_table): Rename as...
4914 (state_hash): this, to avoid name clashes with the global
4915 `state_table'.
4916 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
4917 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
4918
4919 2001-12-10 Akim Demaille <akim@epita.fr>
4920
4921 Bison dumps core on bash.y.
4922 Reported by Pascal Bart.
4923
4924 * src/warshall.c (bitmatrix_print): New.
4925 (TC): Use it.
4926 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
4927 j must be the outer loop.
4928 * tests/regression.at (Broken Closure): New.
4929
4930 2001-12-05 Akim Demaille <akim@epita.fr>
4931
4932 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
4933 its argument.
4934 Reported by Peter Hámorský.
4935
4936 2001-12-05 Akim Demaille <akim@epita.fr>
4937
4938 * src/conflicts.c (err_table): Remove.
4939 (resolve_sr_conflict): Adjust.
4940 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
4941 Rename as...
4942 (state_t.reductions, state_t.shifts): this.
4943
4944 2001-12-05 Akim Demaille <akim@epita.fr>
4945
4946 * src/reduce.c (reduce_grammar_tables): No longer disable the
4947 removal of useless rules via CPP but via `if (0)', so that the
4948 compiler still check the code is valid.
4949 For instance, it should have noticed `rline' no longer exists: use
4950 the `line' member of rule_t.
4951 * src/gram.c (dummy, rline): Remove, unused.
4952
4953 2001-12-05 Akim Demaille <akim@epita.fr>
4954
4955 * src/output.c (pack_vector): Use assert, not berror.
4956 * src/main.c (berror): Remove, unused.
4957
4958 2001-12-05 Akim Demaille <akim@epita.fr>
4959
4960 New experimental feature: if --verbose --trace output all the
4961 items of a state, not only its kernel.
4962
4963 * src/print.c (print_core): If `trace_flag', then invoke closure
4964 before outputting the items of the state (print_core is no longer
4965 a correct name them).
4966 (print_results): Invoke new_closure/free_closure if needed.
4967
4968 2001-12-05 Akim Demaille <akim@epita.fr>
4969
4970 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
4971 * src/closure.c, src/closure.h (itemsetsize): Rename as...
4972 (nitemset): for consistency with the rest of the project.
4973
4974 2001-12-05 Akim Demaille <akim@epita.fr>
4975
4976 * src/closure.c (print_closure): Improve.
4977 (closure): Use it for printing input and output.
4978
4979 2001-12-05 Akim Demaille <akim@epita.fr>
4980
4981 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
4982 indexed by nonterminals.
4983
4984 2001-12-05 Akim Demaille <akim@epita.fr>
4985
4986 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
4987 what it was!).
4988 * src/warshall.h: Remove accidental duplication of the content.
4989
4990 2001-12-05 Akim Demaille <akim@epita.fr>
4991
4992 * src/closure.c (set_fderives): De-obfuscate.
4993
4994 2001-12-05 Akim Demaille <akim@epita.fr>
4995
4996 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
4997
4998 2001-12-05 Akim Demaille <akim@epita.fr>
4999
5000 * src/closure.c (set_firsts): De-obfuscate.
5001
5002 2001-12-05 Akim Demaille <akim@epita.fr>
5003
5004 * src/output.c (action_row): De-obfuscate
5005 using the good o' techniques: arrays not pointers, variable
5006 locality, BITISSET, RESETBIT etc.
5007
5008 2001-12-05 Akim Demaille <akim@epita.fr>
5009
5010 Pessimize the code to simplify it: from now on, all the states
5011 have a valid SHIFTS, which NSHIFTS is possibly 0.
5012
5013 * src/LR0.c (shifts_new): Be global and move to..
5014 * src/state.c, src/state.h: here.
5015 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
5016 * src/print_graph: Adjust.
5017
5018 2001-12-05 Akim Demaille <akim@epita.fr>
5019
5020 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
5021 * src/conflicts.c: Use it.
5022 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
5023 incorrectly ``simplified''.
5024
5025 2001-12-05 Akim Demaille <akim@epita.fr>
5026
5027 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
5028 using the good o' techniques: arrays not pointers, variable
5029 locality, BITISSET, RESETBIT etc.
5030
5031 2001-12-05 Akim Demaille <akim@epita.fr>
5032
5033 * src/state.h (SHIFT_SYMBOL): New.
5034 * src/conflicts.c: Use it to deobfuscate.
5035
5036 2001-12-05 Akim Demaille <akim@epita.fr>
5037
5038 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
5039 (print_reductions): De-obfuscate using the good o' techniques:
5040 arrays not pointers, variable locality, BITISSET.
5041
5042 2001-12-05 Akim Demaille <akim@epita.fr>
5043
5044 * src/conflicts.c (print_reductions): Arrays, not pointers.
5045 Use BITISSET.
5046
5047 2001-12-05 Akim Demaille <akim@epita.fr>
5048
5049 * src/conflicts.c (print_reductions): Pessimize, but clarify.
5050
5051 2001-12-05 Akim Demaille <akim@epita.fr>
5052
5053 * src/conflicts.c (print_reductions): Improve variable locality.
5054
5055 2001-12-05 Akim Demaille <akim@epita.fr>
5056
5057 * src/conflicts.c (print_reductions): Pessimize, but clarify.
5058
5059 2001-12-05 Akim Demaille <akim@epita.fr>
5060
5061 * src/conflicts.c (print_reductions): Improve variable locality.
5062
5063 2001-12-05 Akim Demaille <akim@epita.fr>
5064
5065 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
5066 * src/lalr.c: Use them.
5067
5068 2001-12-05 Akim Demaille <akim@epita.fr>
5069
5070 * src/LR0.c (augment_automaton): Formatting changes.
5071 Better variable locality.
5072
5073 2001-12-05 Akim Demaille <akim@epita.fr>
5074
5075 * src/lalr.c (matrix_print): New.
5076 (transpose): Use it.
5077 Use arrays instead of pointers.
5078
5079 2001-12-05 Akim Demaille <akim@epita.fr>
5080
5081 * src/lalr.c (maxrhs): Move to...
5082 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
5083 * src/lalr.c (build_relations): Adjust.
5084
5085 2001-12-05 Akim Demaille <akim@epita.fr>
5086
5087 * src/lalr.c (transpose): Free the memory allocated to the
5088 argument, as it is replaced by the results by the unique caller.
5089 (build_relations): Merely invoke transpose: it handles the memory
5090 deallocation.
5091 Improve variable locality.
5092 Avoid variables used as mere abbreviations.
5093 (compute_lookaheads): Use arrays instead of pointers.
5094
5095 2001-12-05 Akim Demaille <akim@epita.fr>
5096
5097 * src/lalr.c (initialize_F): Improve variable locality.
5098 Avoid variables used as mere abbreviations.
5099
5100 2001-12-05 Akim Demaille <akim@epita.fr>
5101
5102 * src/derives.c (print_derives): Display the ruleno.
5103 * src/lalr.c (initialize_F, transpose): Better variable locality
5104 to improve readability.
5105 Avoid variables used as mere abbreviations.
5106
5107 2001-12-05 Akim Demaille <akim@epita.fr>
5108
5109 * src/lalr.c (traverse): Use arrays instead of pointers.
5110
5111 2001-12-05 Akim Demaille <akim@epita.fr>
5112
5113 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
5114 the handling of squeue.
5115 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
5116
5117 2001-12-05 Akim Demaille <akim@epita.fr>
5118
5119 Because useless nonterminals are now kept alive (instead of being
5120 `destroyed'), we now sometimes examine them, and store information
5121 related to them. Hence we need to know their number, and adjust
5122 memory allocations.
5123
5124 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
5125 static.
5126 * src/LR0.c (allocate_itemsets): The memory allocated to
5127 `symbol_count' was used for two different purpose: once to count
5128 the number of occurrences of each symbol, and later reassigned to
5129 `shift_symbol', containing the symbol that can be shifted from a
5130 given state.
5131 Deobfuscate, i.e., allocate, use and free `symbol_count' here
5132 only, and...
5133 (new_itemsets): Allocate `shift_symbol' here.
5134 (allocate_itemsets): symbol_count includes useless nonterminals.
5135 Make room for them.
5136 (free_storage): Use `free', not `XFREE', for pointers that cannot
5137 be null.
5138
5139 2001-12-05 Akim Demaille <akim@epita.fr>
5140
5141 * src/nullable.c (set_nullable): Deobfuscate the handling of
5142 ritem.
5143 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
5144
5145 2001-12-05 Akim Demaille <akim@epita.fr>
5146
5147 * src/gram.c, src/gram.h (ritem_print): New.
5148 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
5149 (This useless function was defined only to work around VMS linkers
5150 that can't handle compilation units with variables only).
5151 * src/reduce.c (dump_grammar): Use it to trace the construction of
5152 ritem.
5153
5154 2001-12-04 Paul Eggert <eggert@twinsun.com>
5155
5156 * src/bison.simple (union yyalloc): Change member names
5157 to be the same as the stack names.
5158 (yyparse): yyptr is now union yyalloc *, not char *.
5159 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
5160 and may generate better code on some machines.
5161 (yystpcpy): Use prototype if __STDC__ is defined, not just
5162 if __cplusplus is defined.
5163
5164 2001-11-30 Akim Demaille <akim@epita.fr>
5165
5166 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
5167 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
5168 Gettext doesn't compile cleanly, and dies with -Werror.
5169 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
5170 Include WARNING_CFLAGS here.
5171 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
5172 before being defined.
5173
5174 2001-11-27 Paul Eggert <eggert@twinsun.com>
5175
5176 * lib/quotearg.h (quotearg_n, quotearg_n_style):
5177 First arg is int, not unsigned.
5178 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
5179 (SIZE_MAX, UINT_MAX): New macros.
5180 (quotearg_n_options): Abort if N is negative.
5181 Avoid overflow check on hosts where size_t is 64 bits and int
5182 is 32 bits, as overflow is impossible there.
5183 Fix off-by-one typo that caused unnecessary reallocation.
5184
5185 2001-11-29 Paul Eggert <eggert@twinsun.com>
5186
5187 Name space cleanup in generated parser.
5188
5189 * doc/bison.texinfo (Bison Parser): Discuss system headers
5190 and their effect on the user name space.
5191
5192 * src/bison.simple:
5193 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
5194 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
5195 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
5196
5197 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
5198 on user names when possible.
5199
5200 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
5201 Simplify test for whather <alloca.h> exists.
5202
5203 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
5204
5205 (<stdio.h>): Include if YYDEBUG.
5206
5207 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
5208 ! defined (yyoverflow) && ! defined (yymemcpy).
5209
5210 (yymemcpy, yyparse): Rename local variables as needed so that
5211 they all begin with 'yy'.
5212
5213 (yystrlen, yystpcpy): New functions.
5214
5215 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
5216 All uses changed.
5217
5218 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
5219 instead of relying on string.h functions. Use YYSTACK_ALLOC
5220 and YYSTACK_FREE instead of malloc and free.
5221
5222 2001-11-30 Akim Demaille <akim@epita.fr>
5223
5224 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
5225 before their first uses.
5226 (YYBISON, YYPURE): Move to the top of the output.
5227
5228 2001-11-30 Akim Demaille <akim@epita.fr>
5229
5230 * tests/reduce.at (Useless Nonterminals): Fix.
5231
5232 2001-11-30 Akim Demaille <akim@epita.fr>
5233
5234 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
5235 if body instead of `;' to pacify GCC's warnings.
5236
5237 2001-11-30 Akim Demaille <akim@epita.fr>
5238
5239 Instead of mapping the LHS of unused rules to -1, keep the LHS
5240 valid, but flag the rules as invalid.
5241
5242 * src/gram.h (rule_t): `useful' is a new member.
5243 * src/print.c (print_grammar): Adjust.
5244 * src/derives.c (set_derives): Likewise.
5245 * src/reader.c (packgram, reduce_output): Likewise.
5246 * src/reduce.c (reduce_grammar_tables): Likewise.
5247 * tests/reduce.at (Underivable Rules, Useless Rules): New.
5248
5249 2001-11-30 Akim Demaille <akim@epita.fr>
5250
5251 * src/reduce.c (reduce_output): Formatting changes.
5252 * src/print.c (print_results, print_grammar): Likewise.
5253 * tests/regression.at (Rule Line Numbers)
5254 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
5255
5256 2001-11-30 Akim Demaille <akim@epita.fr>
5257
5258 * src/reduce.c (nonterminals_reduce): Instead of throwing away
5259 useless nonterminals, move them at the end of the symbol arrays.
5260 (reduce_output): Adjust.
5261 * tests/reduce.at (Useless Nonterminals): Adjust.
5262
5263 2001-11-30 Akim Demaille <akim@epita.fr>
5264
5265 * src/reduce.c: Various comment/formatting changes.
5266 (nonterminals_reduce): New, extracted from...
5267 (reduce_grammar_tables): here.
5268 (reduce_grammar): Call nonterminals_reduce.
5269
5270 2001-11-29 Paul Eggert <eggert@twinsun.com>
5271
5272 * src/bison.simple (YYSTACK_REALLOC): Remove.
5273 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
5274 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
5275 New macros.
5276 (union yyalloc): New type.
5277 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
5278 an arbitrary restriction on hosts where size_t is wider than int.
5279
5280 (yyparse): Don't dump core if alloca or malloc fails; instead, report
5281 a parser stack overflow. Allocate just one block of memory for all
5282 three stacks, instead of allocating three blocks; this typically is
5283 faster and reduces fragmentation.
5284
5285 Do not limit the number of items in the stack to a value that fits
5286 in 'int', as this is an arbitrary limit on hosts with 64-bit
5287 size_t and 32-bit int.
5288
5289 2001-11-29 Marc Autret <autret_m@epita.fr>
5290
5291 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
5292 of defining YYERROR_VERBOSE.
5293 [AT_DATA]: $4 is now out of C declarations in the prologue.
5294
5295 2001-11-28 Marc Autret <autret_m@epita.fr>
5296
5297 * src/reader.c (parse_dquoted_param): New.
5298 (parse_skel_decl): Use it.
5299 * src/lex.h: Add its prototype.
5300 * src/lex.c (literalchar): Become not static.
5301
5302 2001-11-28 Marc Autret <autret_m@epita.fr>
5303
5304 * src/output.h: And put its extern declaration here.
5305 * src/output.c (error_verbose): Define here.
5306 (prepare): Echo name modification.
5307 * src/getargs.h: Clean its extern declaration.
5308 * src/getargs.c (error_verbose_flag): Remove.
5309 (getargs): Remove case 'e'.
5310 * src/options.c (option_table): 'error-verbose' is now seen as simple
5311 percent option.
5312 Include output.h.
5313
5314 * src/reader.c (read_declarations): Remove case tok_include.
5315 (parse_include_decl): Remove.
5316 * src/lex.h (token_t): Remove tok_include.
5317 * src/options.c (option_table): 'include' is now a simple command line
5318 option.
5319
5320 2001-11-28 Marc Autret <autret_m@epita.fr>
5321
5322 * src/bison.simple: Adjust muscle names.
5323 * src/muscle_tab.c (muscle_init): Also rename the muscles.
5324 * src/output.c (prepare): s/_/-/ for the muscles names.
5325 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
5326
5327 2001-11-28 Marc Autret <autret_m@epita.fr>
5328
5329 * src/bison.simple: Fix debug.
5330 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
5331
5332 2001-11-28 Akim Demaille <akim@epita.fr>
5333
5334 * src/LR0.c (shifts_new): New.
5335 (save_shifts, insert_start_shift, augment_automaton): Use it.
5336
5337 2001-11-28 Akim Demaille <akim@epita.fr>
5338
5339 * src/closure.c (closure): `b' and `ruleno' denote the same value:
5340 keep ruleno only.
5341
5342 2001-11-28 Akim Demaille <akim@epita.fr>
5343
5344 * src/closure.c (closure): Instead of looping over word in array
5345 then bits in words, loop over bits in array.
5346
5347 2001-11-28 Akim Demaille <akim@epita.fr>
5348
5349 * src/closure.c (closure): No longer optimize the special case
5350 where all the bits of `ruleset[r]' are set to 0, to make the code
5351 clearer.
5352
5353 2001-11-28 Akim Demaille <akim@epita.fr>
5354
5355 * src/closure.c (closure): `r' and `c' are new variables, used to
5356 de-obfuscate accesses to RULESET and CORE.
5357
5358 2001-11-28 Akim Demaille <akim@epita.fr>
5359
5360 * src/reduce.c (reduce_print): Use ngettext.
5361 (dump_grammar): Improve the trace accuracy.
5362
5363 2001-11-28 Akim Demaille <akim@epita.fr>
5364
5365 * src/reduce.c (dump_grammar): Don't translate trace messages.
5366
5367 2001-11-28 Akim Demaille <akim@epita.fr>
5368
5369 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
5370 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
5371 as all tags are free'ed afterwards.
5372 From Enrico Scholz.
5373
5374 2001-11-27 Paul Eggert <eggert@twinsun.com>
5375
5376 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
5377 use alloca when we didn't want to, and vice versa.
5378
5379 2001-11-27 Marc Autret <autret_m@epita.fr>
5380
5381 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
5382 initialization.
5383 * src/output.c (prepare): Remove its update.
5384
5385 2001-11-27 Marc Autret <autret_m@epita.fr>
5386
5387 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
5388 Use %error-verbose.
5389
5390 2001-11-27 Marc Autret <autret_m@epita.fr>
5391
5392 * src/bison.simple: Remove YYERROR_VERBOSE using.
5393 Use %%error_verbose.
5394 (yyparse): Likewise.
5395 * src/output.c (prepare): Give its final value.
5396 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
5397 * src/getargs.h: Add its extern declaration.
5398 * src/getargs.c (error_verbose_flag): New int.
5399 (getargs): Update to catch new case.
5400 * src/options.c (option_table): 'error-verbose' is a new option.
5401 (shortopts): Update.
5402
5403 2001-11-27 Akim Demaille <akim@epita.fr>
5404
5405 * src/system.h: Use intl/libgettext.h.
5406 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
5407
5408 2001-11-27 Akim Demaille <akim@epita.fr>
5409
5410 * tests/torture.at (Exploding the Stack Size with Malloc):
5411 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
5412
5413 2001-11-27 Akim Demaille <akim@epita.fr>
5414
5415 * src/files.c: Include error.h.
5416 Reported by Hans Aberg.
5417
5418 2001-11-26 Marc Autret <autret_m@epita.fr>
5419
5420 * src/reader.c (parse_include_decl): New, not yet implemented.
5421 (read_declarations): Add case tok_include.
5422 * src/getargs.h (include): Add its extern definition.
5423 * src/getargs.c (include): New const char *.
5424 (getargs): Add case '-I'.
5425 * src/options.c (option_table): Add include as command line and
5426 percent option.
5427 * src/lex.h (token_t): Add tok_include.
5428
5429 2001-11-26 Akim Demaille <akim@epita.fr>
5430
5431 * src/reader.c (readgram): Make sure rules for mid-rule actions
5432 have a lineno equal to that of their host rule.
5433 Reported by Hans Aberg.
5434 * tests/regression.at (Rule Line Numbers): New.
5435
5436 2001-11-26 Akim Demaille <akim@epita.fr>
5437
5438 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
5439 size_ts.
5440
5441 2001-11-26 Akim Demaille <akim@epita.fr>
5442
5443 * src/complain.c, src/complain.h (error): Remove, provided by
5444 lib/error.[ch].
5445
5446 2001-11-26 Akim Demaille <akim@epita.fr>
5447
5448 * src/reader.c (read_declarations): Don't abort on tok_illegal,
5449 issue an error message.
5450 * tests/regression.at (Invalid %directive): New.
5451 Reported by Hans Aberg.
5452
5453 2001-11-26 Akim Demaille <akim@epita.fr>
5454
5455 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
5456 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
5457
5458 2001-11-26 Akim Demaille <akim@epita.fr>
5459
5460 * src/conflicts.c (conflicts_print): Don't complain at all when
5461 there are no reduce/reduce conflicts, and as many shift/reduce
5462 conflicts as expected.
5463 * tests/regression.at (%expect right): Adjust.
5464
5465 2001-11-23 Akim Demaille <akim@epita.fr>
5466
5467 * lib/alloca.c: Update, from fileutils.
5468
5469 2001-11-23 Akim Demaille <akim@epita.fr>
5470
5471 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
5472
5473 2001-11-23 Akim Demaille <akim@epita.fr>
5474
5475 * src/system.h: Include alloca.h.
5476 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
5477
5478 2001-11-23 Akim Demaille <akim@epita.fr>
5479
5480 * src/print_graph.c (print_actions): Remove `rule', unused.
5481 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
5482 pacify GCC's signed < unsigned warnings.
5483 * src/closure.c (itemsetsize): Likewise.
5484 * src/reader.c (symbol_list_new): Static.
5485
5486 2001-11-23 Akim Demaille <akim@epita.fr>
5487
5488 Attaching lineno to buckets is stupid, since only one copy of each
5489 symbol is kept, only the line of the first occurrence is kept too.
5490
5491 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
5492 * src/reader.c (rline_allocated): Remove, unused.
5493 (symbol_list): Have a `line' member.
5494 (symbol_list_new): New.
5495 (readgram): Use it.
5496 * src/print.c (print_grammar): Output the rule line numbers.
5497 * tests/regression.at (Solved SR Conflicts)
5498 (Unresolved SR Conflicts): Adjust.
5499 Reported by Hans Aberg.
5500
5501 2001-11-22 Marc Autret <autret_m@epita.fr>
5502
5503 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
5504
5505 2001-11-22 Marc Autret <autret_m@epita.fr>
5506
5507 * src/muscle_tab.c (muscle_init): Remove initialization of
5508 skeleton muscle.
5509 * src/output.c (output_master_parser): Do it here.
5510
5511 2001-11-20 Akim Demaille <akim@epita.fr>
5512
5513 * po/sv.po: New.
5514 * configure.in (ALL_LINGUAS): Adjust.
5515 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
5516 longer contains strings to translate.
5517
5518 2001-11-19 Akim Demaille <akim@epita.fr>
5519
5520 * src/conflicts.c (conflicts_print): Add a missing \n.
5521
5522 2001-11-19 Akim Demaille <akim@epita.fr>
5523
5524 * src/nullable.c (nullable_print): New.
5525 (set_nullable): Call it when tracing.
5526 Better locality of variables.
5527
5528 2001-11-19 Akim Demaille <akim@epita.fr>
5529
5530 * src/print.c (print_actions): Better locality of variables.
5531
5532 2001-11-19 Akim Demaille <akim@epita.fr>
5533
5534 * src/derives.c (print_derives): Fix and enrich.
5535 * src/closure.c (print_fderives): Likewise.
5536
5537 2001-11-19 Akim Demaille <akim@epita.fr>
5538
5539 * src/closure.c (itemsetend): Remove, replaced with...
5540 (itemsetsize): new.
5541
5542 2001-11-19 Akim Demaille <akim@epita.fr>
5543
5544 * src/LR0.c (kernel_end): Remove, replaced with...
5545 (kernel_size): new.
5546
5547 2001-11-19 Akim Demaille <akim@epita.fr>
5548
5549 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
5550 to clarify.
5551
5552 2001-11-19 Akim Demaille <akim@epita.fr>
5553
5554 * src/closure.c (closure): Use arrays instead of pointers to clarify.
5555
5556 2001-11-19 Akim Demaille <akim@epita.fr>
5557
5558 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
5559 trace messages.
5560 * src/LR0.c: Likewise.
5561 (allocate_itemsets): Use arrays instead of pointers to clarify.
5562
5563 2001-11-19 Akim Demaille <akim@epita.fr>
5564
5565 * src/getargs.c (statistics_flag): Replace with...
5566 (trace_flag): New.
5567 (longopts): Accept --trace instead of --statistics.
5568 * src/getargs.h, src/options.c: Adjust.
5569 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
5570 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
5571
5572 2001-11-19 Akim Demaille <akim@epita.fr>
5573
5574 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
5575 pointers to clarify the code.
5576 (save_reductions, save_shifts): Factor common parts of alternatives.
5577
5578 2001-11-19 Akim Demaille <akim@epita.fr>
5579
5580 * src/LR0.c (new_state, get_state): Complete TRACE code.
5581 * src/closure.c: Include `reader.h' to get `tags', needed by the
5582 trace code.
5583 Rename the conditional DEBUG as TRACE.
5584 Output consistently TRACEs to stderr, not stdout.
5585 * src/derives.c: Likewise.
5586 * src/reduce.c: (inaccessable_symbols): Using if is better style
5587 than goto.
5588 Use `#if TRACE' instead of `#if 0' for tracing code.
5589
5590 2001-11-19 Akim Demaille <akim@epita.fr>
5591
5592 * src/system.h (LIST_FREE, shortcpy): New.
5593 * src/LR0.c: Use them.
5594 * src/output.c (free_itemsets, free_reductions, free_shifts):
5595 Remove, replaced by LIST_FREE.
5596
5597 2001-11-19 Akim Demaille <akim@epita.fr>
5598
5599 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
5600 (REDUCTIONS_ALLOC): New.
5601 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
5602 allocation.
5603
5604 2001-11-19 Akim Demaille <akim@epita.fr>
5605
5606 * src/LR0.c (new_state): Complete trace code.
5607 * src/nullable.c (set_nullable): Don't translate traces.
5608
5609 2001-11-19 Akim Demaille <akim@epita.fr>
5610
5611 * src/print_graph.c (print_core): Better locality of variables.
5612 * src/print.c (print_core): Likewise.
5613
5614 2001-11-19 Akim Demaille <akim@epita.fr>
5615
5616 * src/vcg.c: You do the output, so you are responsible of the
5617 handling of VCG syntax, in particular: use quotearg.
5618 * src/print_graph.c: Don't.
5619 (print_actions): Don't output the actions as part of the nodes,
5620 since that's the job of the edges.
5621 (print_state): Don't output by hand: fill the node description,
5622 and ask for its output.
5623
5624 2001-11-19 Akim Demaille <akim@epita.fr>
5625
5626 * src/bison.simple (yyparse): When verbosely reporting an error,
5627 no longer put additional quotes around token names.
5628 * tests/calc.at: Adjust.
5629
5630 2001-11-19 Akim Demaille <akim@epita.fr>
5631
5632 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
5633 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
5634 * src/output.c: Adjust.
5635
5636 2001-11-19 Akim Demaille <akim@epita.fr>
5637
5638 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
5639 (rule_t): this.
5640 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
5641
5642 2001-11-19 Akim Demaille <akim@epita.fr>
5643
5644 * src/gram.h (rule_t): New.
5645 (rule_table): New.
5646 (rrhs, rlhs): Remove, part of state_t.
5647 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
5648 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
5649 * src/reader.c, src/reduce.c: Adjust.
5650
5651 2001-11-19 Akim Demaille <akim@epita.fr>
5652
5653 * src/reader.c (symbols_output): New, extracted from...
5654 (packsymbols): Here.
5655 (reader): Call it.
5656
5657 2001-11-19 Akim Demaille <akim@epita.fr>
5658
5659 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
5660 (maxrhs): this new function.
5661
5662 2001-11-19 Akim Demaille <akim@epita.fr>
5663
5664 * src/lalr.c (F): New macro to access the variable F.
5665 Adjust.
5666
5667 2001-11-19 Akim Demaille <akim@epita.fr>
5668
5669 * src/lalr.h (LA): New macro to access the variable LA.
5670 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
5671 * src/lalr.c: Adjust.
5672
5673 2001-11-19 Akim Demaille <akim@epita.fr>
5674
5675 * src/lalr.c (initialize_LA): Only initialize LA. Let...
5676 (set_state_table): handle the `lookaheads' members.
5677
5678 2001-11-19 Akim Demaille <akim@epita.fr>
5679
5680 * src/lalr.h (lookaheads): Removed array, whose contents is now
5681 a member of...
5682 (state_t): this structure.
5683 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
5684 Adjust.
5685
5686 2001-11-19 Akim Demaille <akim@epita.fr>
5687
5688 * src/lalr.h (consistent): Removed array, whose contents is now
5689 a member of...
5690 (state_t): this structure.
5691 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
5692 Adjust.
5693
5694 2001-11-19 Akim Demaille <akim@epita.fr>
5695
5696 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
5697 contents are now members of...
5698 (state_t): this structure.
5699 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
5700 Adjust.
5701
5702 2001-11-19 Akim Demaille <akim@epita.fr>
5703
5704 * src/lalr.h (state_t): New.
5705 (state_table): Be a state_t * instead of a core **.
5706 (accessing_symbol): Remove, part of state_t.
5707 * src/lalr.c: Adjust.
5708 (set_accessing_symbol): Merge into...
5709 (set_state_table): this.
5710 * src/print_graph.c, src/conflicts.c: Adjust.
5711
5712 2001-11-14 Akim Demaille <akim@epita.fr>
5713
5714 * tests/calc.at, tests/output.at, tests/regression.at,
5715 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
5716 now the tests are run in private dirs, therefore AC_CLEANUP and
5717 family can be simplified to 0-ary.
5718 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
5719 use abs. path to find config.h.
5720 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
5721 stderr, there can be way too much random noise.
5722 Instead pass -Werror to GCC and rely on the exit status.
5723 Reported by Wolfram Wagner.
5724
5725 2001-11-14 Akim Demaille <akim@epita.fr>
5726
5727 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
5728 defined only if yyoverflow is defined, to avoid `warning: unused
5729 variable `yyvs1''.
5730 Reported by The Test Suite.
5731
5732 2001-11-14 Akim Demaille <akim@epita.fr>
5733
5734 * src/print.c: Include reduce.h.
5735 Reported by Hans Aberg.
5736
5737 2001-11-14 Akim Demaille <akim@epita.fr>
5738
5739 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
5740 Revert a previous patch: these are really const.
5741 * src/conflicts.c (conflict_report): Additional useless pair of
5742 braces to pacify GCC's warnings for `if () if () {} else {}'.
5743 * src/lex.c (parse_percent_token): Replace equal_offset with
5744 arg_offset.
5745 arg is const.
5746 Be sure to strdup `arg' when used, since there is no reason for
5747 token_buffer not to change.
5748
5749 2001-11-14 Akim Demaille <akim@epita.fr>
5750
5751 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
5752 definition.
5753 * src/main.c (main): Use them.
5754 Suggested by Hans Aberg.
5755
5756 2001-11-12 Akim Demaille <akim@epita.fr>
5757
5758 * src/system.h (ngettext): Now that we use ngettext, be sure to
5759 provide a default definition when NLS are not used.
5760
5761 2001-11-12 Akim Demaille <akim@epita.fr>
5762
5763 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
5764 Use @kbd to denote user input.
5765 (Language and Grammar): ANSIfy the example.
5766 Adjust its layout for info/notinfo.
5767 (Location Tracking Calc): Output error messages to stderr.
5768 Output locations in a more GNUtically correct way.
5769 Fix a couple of Englishos.
5770 Adjust @group/@end group pairs.
5771
5772 2001-11-12 Akim Demaille <akim@epita.fr>
5773
5774 %expext was not functioning at all.
5775
5776 * src/conflicts.c (expected_conflicts): Set to -1.
5777 (conflict_report): Use ngettext.
5778 (conflicts_print): Check %expect and make its violation an error.
5779 * doc/bison.texinfo (Expect Decl): Adjust.
5780 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
5781 * tests/regression.at (%expect not enough, %expect right)
5782 (%expect too much): New.
5783
5784 2001-11-12 Akim Demaille <akim@epita.fr>
5785
5786 * tests/regression.at (Conflicts): Rename as...
5787 (Unresolved SR Conflicts): this.
5788 (Solved SR Conflicts): New.
5789
5790 2001-11-12 Akim Demaille <akim@epita.fr>
5791
5792 * src/reduce.c (print_results): Rename as...
5793 (reduce_output): This.
5794 Output to OUT, passed as argument, instead of output_obstack.
5795 (dump_grammar): Likewise.
5796 (reduce_free): New.
5797 Also free V1.
5798 (reduce_grammar): No longer call reduce_output, since...
5799 * src/print.c (print_results): do it.
5800 * src/main.c (main): Call reduce_free;
5801
5802 2001-11-12 Akim Demaille <akim@epita.fr>
5803
5804 * src/conflicts.c (print_reductions): Accept OUT as argument.
5805 Output to it, not to output_obstack.
5806 * src/print.c (print_actions): Adjust.
5807
5808 2001-11-12 Akim Demaille <akim@epita.fr>
5809
5810 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
5811 the result instead of using...
5812 (src_total, rrc_total, src_count, rrc_count): Remove.
5813 (any_conflicts): Remove.
5814 (print_conflicts): Split into...
5815 (conflicts_print, conflicts_output): New.
5816 * src/conflicts.h: Adjust.
5817 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
5818 * src/print.c (print_grammar): Issue `\n' between two rules.
5819 * tests/regression.at (Conflicts): New.
5820 Reported by Tom Lane.
5821
5822 2001-11-12 Akim Demaille <akim@epita.fr>
5823
5824 * tests/regression.at (Invalid input): Remove, duplicate with
5825 ``Invalid input: 1''.
5826
5827 2001-11-12 Akim Demaille <akim@epita.fr>
5828
5829 * tests/torture.at (AT_DATA_STACK_TORTURE)
5830 (Exploding the Stack Size with Alloca)
5831 (Exploding the Stack Size with Malloc): New.
5832
5833 2001-11-12 Akim Demaille <akim@epita.fr>
5834
5835 * src/bison.simple (YYSTACK_REALLOC): New.
5836 (yyparse) [!yyoverflow]: Use it and free the old stack.
5837 Reported by Per Allansson.
5838
5839 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
5840
5841 * src/bison.simple: Define type yystype instead of YYSTYPE, and
5842 define CPP macro, which substitute YYSTYPE by yystype.
5843 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
5844 with yyltype/YYLTYPE. This allows inclusion of the generated
5845 header within the parser if the compiler, such as GGC, accepts
5846 multiple equivalent #defines.
5847 From Akim.
5848
5849 2001-11-05 Akim Demaille <akim@epita.fr>
5850
5851 * src/reader.c (symbols_output): New, extracted from...
5852 (packsymbols): here.
5853 (reader): Adjust.
5854
5855 2001-11-05 Akim Demaille <akim@epita.fr>
5856
5857 * src/lex.c (parse_percent_token): s/quotearg/quote/.
5858
5859 2001-11-05 Akim Demaille <akim@epita.fr>
5860
5861 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
5862 pattern.
5863
5864 2001-11-05 Akim Demaille <akim@epita.fr>
5865
5866 * src/options.h (struct option_table_struct): set_flags is void*.
5867 * src/options.c (longopts): Support `--output' and `%output'.
5868 (usage): Adjust.
5869 * src/lex.h (tok_setopt): Remove, replaced with...
5870 (tok_intopt, tok_stropt): these new guys.
5871 * src/lex.c (getopt.h): Not needed.
5872 (token_buffer, unlexed_token_buffer): Not const.
5873 (percent_table): Promote `-' over `_' in directive names.
5874 Active `%name-prefix', `file-prefix', and `output'.
5875 (parse_percent_token): Accept possible arguments to directives.
5876 Promote `-' over `_' in directive names.
5877
5878 2001-11-04 Akim Demaille <akim@epita.fr>
5879
5880 * doc/bison.texinfo (Decl Summary): Split the list into
5881 `directives for grammars' and `directives for bison'.
5882 Sort'em.
5883 Add description of `%name-prefix', `file-prefix', and `output'.
5884 Promote `-' over `_' in directive names.
5885 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
5886 Simplify the description of `--name-prefix'.
5887 Promote `-' over `_' in directive names.
5888 Promote `--output' over `--output-file'.
5889 Fix the description of `--defines'.
5890 * tests/output.at: Exercise %file-prefix and %output.
5891
5892 2001-11-02 Akim Demaille <akim@epita.fr>
5893
5894 * doc/refcard.tex: Update.
5895
5896 2001-11-02 Akim Demaille <akim@epita.fr>
5897
5898 * src/symtab.h (SUNDEF): New.
5899 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
5900 stand for `uninitialized', instead of 0.
5901 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
5902 * src/lex.c (lex): Adjust.
5903
5904 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
5905 Number it 0.
5906 Let yylex return it instead of a plain 0.
5907 Reported by Dick Streefland.
5908
5909 2001-11-02 Akim Demaille <akim@epita.fr>
5910
5911 * tests/regression.at (Mixing %token styles): New test.
5912
5913 2001-11-02 Akim Demaille <akim@epita.fr>
5914
5915 * src/reader.c (parse_thong_decl): Formatting changes.
5916 (token_translations_init): New, extracted from...
5917 (packsymbols): Here.
5918 Adjust.
5919
5920 2001-11-01 Akim Demaille <akim@epita.fr>
5921
5922 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
5923 Check that `9foo.y' produces correct cpp guards.
5924 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
5925 guards.
5926 Reported by Wwp.
5927
5928 2001-11-01 Akim Demaille <akim@epita.fr>
5929
5930 * tests/regression.at (Invalid input: 2): New.
5931 * src/lex.c (unlexed_token_buffer): New.
5932 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
5933 too.
5934 Reported by Wwp.
5935
5936 2001-11-01 Akim Demaille <akim@epita.fr>
5937
5938 * tests/calc.at: Catch up with 1.30.
5939 * configure.in: Bump to 1.49a.
5940 Adjust to newer Autotest.
5941
5942 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
5943
5944 * src/conflicts.c: Move global variables rrc_total and src_total ...
5945 (print_conflicts): here.
5946 * src/output.c (output): Free global variable user_toknums.
5947 * src/lex.c (token_obstack): Become static.
5948
5949 2001-10-18 Akim Demaille <akim@epita.fr>
5950
5951 * tests/atlocal.in (GCC): Add.
5952 * tests/calc.at: s/m4_match/m4_bmatch/.
5953 s/m4_patsubst/m4_bpatsubst/.
5954 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
5955 * configure.in: AC_SUBST(GCC).
5956
5957 2001-10-14 Marc Autret <autret_m@epita.fr>
5958
5959 * src/options.c (create_long_option_table): Fix.
5960
5961 2001-10-10 Akim Demaille <akim@epita.fr>
5962
5963 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
5964
5965 2001-10-04 Akim Demaille <akim@epita.fr>
5966
5967 * src/reader.c (parse_union_decl): Push the caracters in
5968 union_obstack, not attrs_obstack.
5969
5970 2001-10-04 Akim Demaille <akim@epita.fr>
5971
5972 Merge in the branch 1.29.
5973
5974 * src/reader.c (packsymbols): Use a temporary obstack for
5975 `%%tokendef', since output_stack is already used elsewhere.
5976
5977 2001-10-02 Akim Demaille <akim@epita.fr>
5978
5979 Bump 1.29d.
5980
5981 2001-10-02 Akim Demaille <akim@epita.fr>
5982
5983 Version 1.29c.
5984
5985 2001-10-02 Akim Demaille <akim@epita.fr>
5986
5987 * tests/regression.at (Invalid CPP headers): New.
5988 From Alexander Belopolsky.
5989 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
5990
5991 2001-10-02 Akim Demaille <akim@epita.fr>
5992
5993 * tests/regression.at (Invalid input): New.
5994 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
5995 Reported by Shura.
5996
5997 2001-10-02 Akim Demaille <akim@epita.fr>
5998
5999 * tests/calc.at: Now that --debug works, the tests must be adjusted.
6000
6001 2001-10-02 Akim Demaille <akim@epita.fr>
6002
6003 * src/output.c (output_parser): Assert `skeleton'.
6004 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
6005 systems.
6006 From Shura.
6007
6008 2001-10-01 Marc Autret <autret_m@epita.fr>
6009
6010 * src/lex.h: Echo modifications.
6011 * src/lex.c (unlex): Parameter is now token_t.
6012 From Hans Aberg.
6013
6014 2001-10-01 Marc Autret <autret_m@epita.fr>
6015
6016 * src/main.c: Include lex.h.
6017 From Hans Aberg.
6018
6019 2001-09-29 Akim Demaille <akim@epita.fr>
6020
6021 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
6022
6023 2001-09-28 Akim Demaille <akim@epita.fr>
6024
6025 * tests/testsuite.at: Update to newer Autotest.
6026 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
6027
6028 2001-09-27 Akim Demaille <akim@epita.fr>
6029
6030 Position independent wrapper.
6031
6032 * tests/bison: Remove.
6033 * tests/bison.in: New.
6034 * configure.in: Adjust.
6035
6036 2001-09-27 Paul Eggert <eggert@twinsun.com>
6037
6038 Port quotearg fixes from tar 1.13.24.
6039
6040 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
6041 tm to be declared.
6042 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
6043 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
6044
6045 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
6046 * m4/mbrtowc.m4: New file.
6047 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
6048 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
6049
6050 2001-09-27 Akim Demaille <akim@epita.fr>
6051
6052 Bump to 1.29c.
6053
6054 2001-09-27 Akim Demaille <akim@epita.fr>
6055
6056 Version 1.29b.
6057
6058 2001-09-25 Akim Demaille <akim@epita.fr>
6059
6060 * src/system.h: Include `xalloc.h'.
6061 Remove it from the C files.
6062 * src/files.c (output_files): Free the obstacks.
6063 * src/lex.c (init_lex): Rename as...
6064 (lex_init): this.
6065 (lex_free): New.
6066 * src/main.c (main): Use it.
6067
6068 2001-09-24 Marc Autret <autret_m@epita.fr>
6069
6070 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
6071 to output informations in fout (FILE*).
6072 (open_graph, close_graph): Likewise.
6073 (output_graph, output_edge, output_node): Likewise.
6074 * src/vcg.h: Update function prototypes.
6075 * src/print_graph.c (print_graph): Open output graph file.
6076 (print_actions): Adjust.
6077 * src/files.h: Remove extern declaration.
6078 * src/files.c: Remove graph_obstack declaration.
6079 (open_files): Remove graph_obstack initialization.
6080 (output_files): Remove graph_obstack saving.
6081
6082 2001-09-24 Marc Autret <autret_m@epita.fr>
6083
6084 * src/files.c (compute_output_file_names): Fix.
6085
6086 2001-09-24 Marc Autret <autret_m@epita.fr>,
6087 Akim Demaille <akim@epita.fr>
6088
6089 * src/reader.c (reader): Remove call to free_symtab ().
6090 * src/main.c (main): Call it here.
6091 Include symtab.h.
6092 * src/conflicts.c (initialize_conflicts): Rename as...
6093 (solve_conflicts): this.
6094 * src/print.c (print_core, print_actions, print_state)
6095 (print_grammar): Dump to a file instead a `output_obstack'.
6096 (print_results): Dump `output_obstack', and then proceed with the
6097 FILE *.
6098 * src/files.c (compute_output_file_names, close_files): New.
6099 (output_files): Adjust.
6100 * src/main.c (main): Adjust.
6101
6102 2001-09-23 Marc Autret <autret_m@epita.fr>
6103
6104 * src/files.c (compute_header_macro): Computes header macro name
6105 from spec_defines_file when given.
6106
6107 2001-09-23 Marc Autret <autret_m@epita.fr>
6108
6109 * src/files.c (output_files): Add default extensions.
6110
6111 2001-09-22 Akim Demaille <akim@epita.fr>
6112
6113 * src/conflicts.c (finalize_conflicts): Rename as...
6114 (free_conflicts): this.
6115
6116 2001-09-22 Akim Demaille <akim@epita.fr>
6117
6118 * src/gram.c (gram_free): Rename back as...
6119 (dummy): this.
6120 (output_token_translations): Free `token_translations'.
6121 * src/symtab.c (free_symtab): Free the tag field.
6122
6123 2001-09-22 Akim Demaille <akim@epita.fr>
6124
6125 Remove `translations' as it is always set to true.
6126
6127 * src/gram.h: Adjust.
6128 * src/reader.c (packsymbols, parse_token_decl): Adjust
6129 * src/print.c (print_grammar): Adjust.
6130 * src/output.c (output_token_translations): Adjust.
6131 * src/lex.c (lex): Adjust.
6132 * src/gram.c: Be sure the set pointers to NULL.
6133 (dummy): Rename as...
6134 (gram_free): this.
6135
6136 2001-09-22 Akim Demaille <akim@epita.fr>
6137
6138 * configure.in: Invoke AM_LIB_DMALLOC.
6139 * src/system.h: Use dmalloc.
6140 * src/LR0.c: Be sure to have pointers initialized to NULL.
6141 (allocate_itemsets): Allocate kernel_items only if needed.
6142
6143 2001-09-22 Akim Demaille <akim@epita.fr>
6144
6145 * configure.in: Bump to 1.29b.
6146 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
6147 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
6148 need xmalloc.c in calc.y.
6149 From Pascal Bart.
6150
6151 2001-09-21 Akim Demaille <akim@epita.fr>
6152
6153 Version 1.29a.
6154 * Makefile.maint, config/config.guess, config/config.sub,
6155 * config/missing: Update from masters.
6156 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
6157 upon package.m4.
6158 * configure.in (ALL_LINGUAS): Add `tr'.
6159
6160 2001-09-21 Akim Demaille <akim@epita.fr>
6161
6162 * tests/Makefile.am (package.m4): Move to...
6163 ($(srcdir)/$(TESTSUITE)): here.
6164
6165 2001-09-20 Akim Demaille <akim@epita.fr>
6166
6167 * src/complain.c: No longer try to be standalone: use system.h.
6168 Don't assume __STDC__ is defined to 1. Just test if it is defined.
6169 * src/complain.h: Likewise.
6170 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
6171 Remove the unused variable `n'.
6172 From Albert Chin-A-Young.
6173
6174 2001-09-18 Marc Autret <autret_m@epita.fr>
6175
6176 * doc/bison.1: Update.
6177 * doc/bison.texinfo (Bison Options): Update --defines and --graph
6178 descriptions.
6179 (Option Cross Key): Update.
6180 Add --graph.
6181
6182 2001-09-18 Marc Autret <autret_m@epita.fr>
6183
6184 * tests/regression.at: New test (comment in %union).
6185
6186 2001-09-18 Marc Autret <autret_m@epita.fr>
6187
6188 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
6189 do that.
6190 Reported by Keith Browne.
6191
6192 2001-09-18 Marc Autret <autret_m@epita.fr>
6193
6194 * tests/output.at: Add tests for --defines and --graph.
6195
6196 2001-09-18 Marc Autret <autret_m@epita.fr>
6197
6198 * tests/output.at: Removes tests of %{header,src}_extension features.
6199
6200 2001-09-18 Akim Demaille <akim@epita.fr>
6201
6202 * tests/Makefile.am (package.m4): New.
6203 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
6204 (_AT_CHECK_CALC_ERROR): Likewise.
6205 Factor the `, ' part of verbose error messages.
6206
6207 2001-09-18 Marc Autret <autret_m@epita.fr>
6208
6209 * src/getargs.c (longopts): Declare --defines and --graph as options
6210 with optional arguments.
6211 * src/files.h: Add extern declarations.
6212 * src/files.c (spec_graph_file, spec_defines_file): New.
6213 (output_files): Update.
6214 Remove CPP-outed code.
6215
6216 2001-09-18 Marc Autret <autret_m@epita.fr>
6217
6218 Turn off %{source,header}_extension feature.
6219
6220 * src/files.c (compute_exts_from_gf): Update.
6221 (compute_exts_from_src): Update.
6222 (output_files): CPP-out useless code.
6223 * src/files.h: Remove {header,source}_extension extern declarations.
6224 * src/reader.c (parse_dquoted_param): CPP-out.
6225 (parse_header_extension_decl): Remove.
6226 (parse_source_extension_decl): Remove.
6227 (read_declarations): Remove cases tok_{hdrext,srcext}.
6228 * src/lex.c (percent_table): Remove {header,source}_extension entries.
6229 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
6230
6231 2001-09-10 Akim Demaille <akim@epita.fr>
6232
6233 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
6234 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
6235 (AT_CHECK_OUTPUT): this.
6236 Merely check ls' exit status, its output is useless.
6237
6238 2001-09-10 Akim Demaille <akim@epita.fr>
6239
6240 * tests/calc.at: Use m4_match.
6241 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
6242
6243 2001-09-10 Marc Autret <autret_m@epita.fr>,
6244 Akim Demaille <akim@epita.fr>
6245
6246 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
6247 enum color_e.
6248 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
6249 to `normal'.
6250 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
6251 * src/lex.h: Adjust prototype.
6252 (token_t): Add `tok_undef'.
6253 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
6254 (parse_percent_token): Now returns token_t.
6255 Add default statement in switch.
6256 (lex): Separate `c' as an input variable, from the token_t result
6257 part.
6258 (unlexed): Is a token_t.
6259
6260 2001-09-10 Akim Demaille <akim@epita.fr>
6261
6262 * configure.in: Bump to 1.29a.
6263
6264 2001-09-07 Akim Demaille <akim@epita.fr>
6265
6266 Version 1.29.
6267
6268 2001-08-30 Akim Demaille <akim@epita.fr>
6269
6270 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
6271 * m4/atconfig.m4: Remove.
6272 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
6273 * tests/bison: New.
6274 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
6275 m4_if, m4_patsubst, and m4_regexp.
6276 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
6277 `input' file instead of echo.
6278
6279 2001-08-29 Akim Demaille <akim@epita.fr>
6280
6281 Bump to 1.28e.
6282
6283 2001-08-29 Akim Demaille <akim@epita.fr>
6284
6285 Version 1.28d.
6286
6287 2001-08-29 Paul Eggert <eggert@twinsun.com>
6288
6289 * src/bison.simple (yyparse): Don't take the address of an
6290 item before the start of an array, as that doesn't conform to
6291 the C Standard.
6292
6293 2001-08-29 Robert Anisko <anisko_r@epita.fr>
6294
6295 * doc/bison.texinfo (Location Tracking Calc): New node.
6296
6297 2001-08-29 Paul Eggert <eggert@twinsun.com>
6298
6299 * src/output.c (output): Do not define const, as this now
6300 causes more problems than it cures.
6301
6302 2001-08-29 Akim Demaille <akim@epita.fr>
6303
6304 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
6305 the nodes.
6306 Be sure to tag the `detailmenu'.
6307
6308 2001-08-29 Akim Demaille <akim@epita.fr>
6309
6310 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
6311 download in a tmp dir.
6312
6313 2001-08-28 Marc Autret <autret_m@epita.fr>
6314
6315 * config/depcomp: New file.
6316
6317 2001-08-28 Marc Autret <autret_m@epita.fr>
6318
6319 * doc/bison.1 (mandoc): Adjust.
6320 From Juan Manuel Guerrero.
6321
6322 2001-08-28 Marc Autret <autret_m@epita.fr>
6323
6324 * src/print_graph.c (print_state): Fix.
6325
6326 2001-08-27 Marc Autret <autret_m@epita.fr>
6327
6328 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
6329 char * members.
6330 Echo modifications to the functions prototypes.
6331 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
6332
6333 2001-08-27 Marc Autret <autret_m@epita.fr>
6334
6335 * src/vcg.c: Include `xalloc.h'.
6336 (add_colorentry): New.
6337 (add_classname): New.
6338 (add_infoname): New.
6339 * src/vcg.h: Add new prototypes.
6340
6341 2001-08-27 Akim Demaille <akim@epita.fr>
6342
6343 * Makefile.maint: Sync. again with CVS Autoconf.
6344
6345 2001-08-27 Akim Demaille <akim@epita.fr>
6346
6347 * Makefile.maint: Formatting changes.
6348 (po-update, cvs-update, update): New targets.
6349 (AMTAR): Remove.
6350
6351 2001-08-27 Akim Demaille <akim@epita.fr>
6352
6353 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
6354 * Makefile.maint: Sync. with CVS Autoconf.
6355
6356 2001-08-27 Marc Autret <autret_m@epita.fr>
6357
6358 * src/vcg.h (struct infoname_s): New.
6359 (struct colorentry_s): New.
6360 (graph_s): New fields {vertical,horizontal}_order in structure.
6361 Add `infoname' field.
6362 Add `colorentry' field;
6363 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
6364 (G_HORIZONTAL_ORDER): New.
6365 (G_INFONAME): New.
6366 (G_COLORENTRY): New.
6367 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
6368 Add output of `infoname'.
6369 Add output of `colorentry'.
6370
6371 2001-08-27 Marc Autret <autret_m@epita.fr>
6372
6373 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
6374 This one shadowed a global parameter.
6375
6376 2001-08-24 Marc Autret <autret_m@epita.fr>
6377
6378 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
6379 instead of `unsigned'.
6380 (print_state): Do not call obstack_object_size () in obstack_grow ()
6381 to avoid macro variables shadowing.
6382
6383 2001-08-23 Marc Autret <autret_m@epita.fr>
6384
6385 * src/lex.c (percent_table): Typo: s/naem/name/.
6386 Add graph option.
6387 Normalize new options declarations.
6388
6389 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
6390
6391 * tests/suite.at: Exercise %header_extension and %source_extension.
6392
6393 2001-08-16 Marc Autret <autret_m@epita.fr>
6394
6395 * src/reader.c (parse_dquoted_param): New.
6396 (parse_header_extension_decl): Use it.
6397 (parse_source_extension_decl): Likewise.
6398
6399 2001-08-16 Marc Autret <autret_m@epita.fr>
6400
6401 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
6402 (get_xxxx_str): Use assert () instead of complain ().
6403 Remove return invokations in default cases.
6404 (get_decision_str): Modify default behaviour. Remove second argument.
6405 Echo modifications on calls.
6406 (output_graph): Fix.
6407
6408 2001-08-16 Marc Autret <autret_m@epita.fr>
6409
6410 * src/getargs.c (usage): Update with ``-g, --graph''.
6411
6412 2001-08-16 Marc Autret <autret_m@epita.fr>
6413
6414 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
6415 (Option Cross Key): Likewise.
6416 * doc/bison.1: Update.
6417
6418 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
6419
6420 * src/output.c (output_master_parser): Don't finish action_obstack.
6421 (output_parser): Don't care about the muscle action, here.
6422 (prepare): Copy the action_obstack in the action muscle.
6423 (output): Free action_obstack.
6424
6425 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
6426
6427 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
6428 will contain `%union' declaration.
6429 (parse_union_decl): Delete #line directive output.
6430 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
6431 informations about %union.
6432 (parse_union_decl): Copy the union_obstack in the muscle stype.
6433 * src/bison.simple: Add new #line directive.
6434 Add typdef %%stype YYSTYPE.
6435
6436 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
6437
6438 * src/bison.simple: Add new `#line' directive.
6439
6440 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
6441
6442 * src/bison.simple: New `#line' directive.
6443 * src/output.c (output_parser): Support new dynamic muscle input_line.
6444
6445 2001-09-22 Marc Autret <autret_m@epita.fr>
6446
6447 * src/output.c (output_master_parser): New.
6448 (output_parser): Be more re-entrant.
6449
6450 2001-09-21 Marc Autret <autret_m@epita.fr>
6451
6452 * src/reader.c (copy_definition, parse_union_decl): Update and use
6453 `linef' muscle.
6454 (copy_action): Likewise.
6455 Use obstack_1grow ().
6456 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
6457
6458 2001-09-21 Marc Autret <autret_m@epita.fr>
6459
6460 * src/options.c (option_table): Adjust.
6461 * src/lex.c (parse_percent_token): Fix.
6462
6463 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
6464
6465 * src/options.c (symtab.h): Include it, need by lex.h.
6466
6467 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
6468
6469 * src/lex.c (parse_percent_token): Change type of variable `tx', which
6470 is now an option_table_struct*.
6471 (option_strcmp): New function option_strcmp.
6472 (parse_percent_token): Call option_strcmp.
6473 * src/getargs.c (xalloc.h, options.h): Include it.
6474 (getargs): Call create_long_option_table.
6475 (getargs): Free longopts at the end of the function.
6476 (shortopts): Move in options.c.
6477 * src/options.c (create_long_option_table): New function. Convert
6478 information from option_table to option structure.
6479 * src/reader.c (options.h): Include it.
6480
6481 * src/Makefile.am: Adjust.
6482 * src/options.c (option_table): Create from longopts and percent_table.
6483 * src/getargs.c (longopts): Delete.
6484 * src/lex.c (struct percent_table_struct): Delete.
6485 (percent_table): Delete.
6486 (options.h): Include it.
6487 * src/options.c: Create.
6488 * src/options.h: Create.
6489 Declare enum opt_access_e.
6490 Define struct option_table_struct.
6491
6492 2001-09-20 Marc Autret <autret_m@epita.fr>
6493
6494 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
6495 sections of Bison.
6496
6497 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
6498
6499 * src/bison.simple: s/%%filename/%%skeleton.
6500 * src/muscle_tab.c (getargs.h): Include it.
6501 (muscle_init): Insert new muscle skeleton.
6502
6503 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
6504
6505 * src/output.c (output_parser): Delete unused variable actions_dumped.
6506
6507 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
6508
6509 * src/output.c (output): Delete call to reader_output_yylsp.
6510 * src/reader.c (reader): Likewise.
6511 * src/reader.h: Delete declaration of reader_output_yylsp.
6512
6513 2001-09-02 Marc Autret <autret_m@epita.fr>
6514
6515 * src/reader.c: Include muscle_tab.h.
6516 (parse_union_decl): Update.
6517 (parse_macro_decl): Rename parse_muscle_decl.
6518 Update to use renamed functions and variable.
6519 (read_declarations, copy_action, read_additionnal_code, : Updated
6520 with correct variables and functions names.
6521 (packsymbols, reader): Likewise.
6522
6523 * src/reader.h (muscle_obstack): Extern declaration update.
6524
6525 * src/output.c: Include muscle_tab.h
6526 In all functions using macro_insert, change by using muscle_insert ().
6527 (macro_obstack): Rename muscle_obstack.
6528 Echo modifications in the whole file.
6529 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
6530 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
6531 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
6532
6533 * src/muscle_tab.h: Update double inclusion macros.
6534 (macro_entry_s): Rename muscle_entry_s.
6535 Update prototypes.
6536
6537 * src/muscle_tab.c: Include muscle_tab.h.
6538 Rename macro_tabble to muscle_table.
6539 (mhash1, mhash2, mcmp): Use muscle_entry.
6540 (macro_init): Rename muscle_init. Update.
6541 (macro_insert): Rename muscle_insert. Update.
6542 (macro_find): Rename muscle_find. Update.
6543
6544 * src/main.c: Include muscle_tab.h.
6545 (main): Call muscle_init ().
6546 * src/Makefile.am (bison_SOURCES): Echo modifications.
6547
6548 2001-09-02 Marc Autret <autret_m@epita.fr>
6549
6550 Now the files macro_tab.[ch] are named muscle_tab.[ch].
6551
6552 * src/muscle_tab.c, src/muscle_tab.h: Add files.
6553
6554 2001-09-02 Marc Autret <autret_m@epita.fr>
6555
6556 * src/macrotab.c, src/macrotab.h: Remove.
6557
6558 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
6559
6560 * src/reader.c (copy_guard): Use muscle to specify the `#line'
6561 filename.
6562
6563 2001-09-01 Marc Autret <autret_m@epita.fr>
6564
6565 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
6566 to an explicit value to activate the feature. We do it here.
6567
6568 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
6569
6570 * src/output.c (prepare): Delete the `filename' muscule insertion.
6571 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
6572 (parse_union_decl): Likewise.
6573 * src/macrotab.c (macro_init): Initialize filename by infile.
6574
6575 2001-08-31 Marc Autret <autret_m@epita.fr>
6576
6577 * src/bison.simple (YYLSP_NEEDED): New definition.
6578 * src/output.c (prepare): Add macro insertion of `locations_flag'
6579
6580 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
6581
6582 * src/output.c (prepare): Delete insertion of previous muscles,
6583 and insert the `prefix' muscles.
6584 * src/macrotab.c (macro_init): Likewise.
6585 (macro_init): Initialization prefix directive by `yy'.
6586 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
6587 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
6588 yylval, yydebug, yyerror, yynerrs and yyparse.
6589 New directive `#define' to substitute yydebug, ... with option
6590 name_prefix.
6591
6592 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
6593
6594 * src/main.c (main): Standardize.
6595 * src/output.c (output_table_data, output_parser): Likewise.
6596 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
6597
6598 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
6599
6600 * src/reader.c (read_additionnal_code): Rename %%user_code to
6601 %%epilogue.
6602 * src/output.c (output): Rename %%declarations to %%prologue.
6603 * src/bison.simple: Echo modifications.
6604
6605 2001-08-31 Marc Autret <autret_m@epita.fr>
6606
6607 * src/reader.c (readgram): CleanUp.
6608 (output_token_defines): Likewise.
6609 (packsymbols): Likewise.
6610 (reader): Likewise.
6611 * src/output.c (output): CPP-out useless code.
6612
6613 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
6614
6615 * src/reader.c (reader): Delete obsolete call to function
6616 output_trailers and output_headers.
6617 * src/output.h: Remove obsolete functions prototypes of output_headers
6618 and output_trailers.
6619
6620 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
6621
6622 * src/main.c: Include macrotab.h.
6623 * src/macrotab.h (macro_entry_s): Constify fields.
6624 Adjust functions prototypes.
6625 * src/macrotab.c (macro_insert): Constify key and value.
6626 (macro_find): Constify key.
6627 (macro_insert): Include 'xalloc.h'
6628 (macro_insert): Use XMALLOC.
6629 (macro_find): Constify return value.
6630 * src/output.c (output_table_data): Rename table to table_data.
6631 (output_parser): Constify macro_key, macro_value.
6632
6633 2001-08-30 Marc Autret <autret_m@epita.fr>
6634
6635 * src/reader.c (parse_skel_decl): New.
6636 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
6637 * src/lex.h (token_t): New token `tok_skel'.
6638 * src/lex.c (percent_table): Add skeleton option entry.
6639 Standardize.
6640
6641 2001-08-29 Marc Autret <autret_m@epita.fr>
6642
6643 * src/bison.simple: Add %%user_code directive at the end.
6644 * src/reader.c (read_additionnal_code): New.
6645 (reader): Use it.
6646 * src/output.c (output_program): Remove.
6647 (output): Update.
6648
6649 2001-08-28 Marc Autret <autret_m@epita.fr>
6650
6651 * src/output.c (output_actions): Clean up.
6652 (output_gram): CPP-out useless code.
6653 * src/reader.c (reader): Clean up, CPP-out useless code.
6654
6655 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
6656
6657 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
6658 directive.
6659 * src/bison.simple: Add `%%definitions'.
6660
6661 2001-08-28 Marc Autret <autret_m@epita.fr>
6662
6663 * config/depcomp: New file.
6664
6665 2001-08-27 Paul Eggert <eggert@twinsun.com>
6666
6667 * src/bison.simple (yyparse): Don't take the address of an
6668 item before the start of an array, as that doesn't conform to
6669 the C Standard.
6670
6671 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
6672
6673 * src/output.c (output): Remove the initialization of the macro
6674 obstack. It was done too late here.
6675
6676 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
6677 completely wrong.
6678 (reader): Initialize the macro obstack here, since we need it to grow
6679 '%define' directives.
6680
6681 * src/reader.h: Declare the macro obstack as extern.
6682
6683 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
6684
6685 * src/output.c (output_parser): Fix. Store single '%' characters in
6686 the output obstack instead of throwing them away.
6687
6688 2001-08-27 Akim Demaille <akim@epita.fr>
6689
6690 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
6691
6692 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6693
6694 * lib/Makefile.am: Adjust.
6695
6696 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6697
6698 * src/bison.simple: Update and add '%%' directives.
6699
6700 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6701
6702 * src/reader.c (reader): Remove calls to 'output_headers' and
6703 'output_trailers'. Remove some C output.
6704 (readgram): Disable a piece of code that was writing a default
6705 definition for 'YYSTYPE'.
6706 (reader_output_yylsp): Remove.
6707 (packsymbols): Output token defintions to a macro.
6708 (copy_definition): Disable C output.
6709
6710 * src/reader.c (parse_macro_decl): New function used to parse macro
6711 declarations.
6712 (copy_string2): Put the body of copy_string into this new function.
6713 Add a parameter to let the caller choose whether he wants to copy the
6714 string delimiters or not.
6715 (copy_string): Be a simple call to copy_string2 with the last argument
6716 bound to true.
6717 (read_declarations): Add case for macro definition.
6718 (copy_identifier): New.
6719 (parse_macro_decl): Read macro identifiers using copy_identifier
6720 rather than lex.
6721
6722 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6723
6724 * src/output.c (prepare): Add prefixed names.
6725 (output_parser): Output semantic actions.
6726 (output_parser): Fix bug on '%%line' directives.
6727
6728 * src/output.c (output_headers): Remove. The C code printed by this
6729 function should now be in the skeletons.
6730 (output_trailers): Remove.
6731 (output): Disable call to 'reader_output_yylsp'.
6732 (output_rule_data): Do not output tables to the table obstack.
6733
6734 * src/output.c: Remove some C dedicated output.
6735 Improve the use of macro and output obstacks.
6736 (output_defines): Remove.
6737
6738 * src/output.c (output_token_translations): Associate 'translate'
6739 table with a macro. No output to the table obstack.
6740 (output_gram): Same for 'rhs' and 'prhs'.
6741 (output_stos): Same for 'stos'.
6742 (output_rule_data): Same for 'r1' and 'r2'.
6743 (token_actions): Same for 'defact'.
6744 (goto_actions): Same for 'defgoto'.
6745 (output_base): Same for 'pact' and 'pgoto'.
6746 (output_table): Same for 'table'.
6747 (output_check): Same for 'check'.
6748
6749 * src/output.c (output_table_data): New function.
6750 (output_short_table): Remove.
6751 (output_short_or_char_table): Remove.
6752
6753 * src/output.c (output_parser): Replace most of the skeleton copy code
6754 with something new. Skeletons are now processed character by character
6755 rather than line by line, and Bison looks for '%%' macros. This is the
6756 first step in making Bison's output process (a lot) more flexible.
6757 (output_parser): Use the macro table.
6758
6759 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6760
6761 * src/main.c (main): Initialize the macro table.
6762
6763 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6764
6765 * src/lex.c (percent_table): Add tok_define.
6766 * src/lex.h: Add tok_define.
6767
6768 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6769
6770 * src/macrotab.c: New file.
6771 * src/macrotab.h: New file.
6772 * src/Makefile.am: Update.
6773
6774 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
6775
6776 * lib/hash.c: New file.
6777 * lib/hash.h: New file.
6778 * lib/Makefile.am: Update.
6779
6780 2001-08-15 Akim Demaille <akim@epita.fr>
6781
6782 Version 1.28c.
6783
6784 2001-08-15 Marc Autret <autret_m@epita.fr>
6785
6786 * src/reader.c (readgram): Indent output macro YYSTYPE.
6787 (packsymbols): Likewise.
6788 (output_token_defines): Likewise.
6789 * src/files.c: Standardize.
6790 (compute_header_macro): New.
6791 (defines_obstack_save): New. Use compute_header_macro.
6792 (output_files): Update. Use defines_obstack_save.
6793
6794 2001-08-15 Akim Demaille <akim@epita.fr>
6795
6796 * doc/bison.texinfo (Table of Symbols): Document
6797 YYSTACK_USE_ALLOCA.
6798
6799 2001-08-15 Akim Demaille <akim@epita.fr>
6800
6801 * missing: Update from CVS Automake.
6802 * config/config.guess, config/config.sub, config/texinfo.tex:
6803 Update from gnu.org.
6804
6805 2001-08-15 Akim Demaille <akim@epita.fr>
6806
6807 * Makefile.maint: Sync with CVS Autoconf.
6808
6809 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
6810
6811 * doc/bison.texinfo: Include GNU Free Documentation License from
6812 `fdl.texi'.
6813 * doc/fdl.texi: Add to package.
6814
6815 2001-08-14 Marc Autret <autret_m@epita.fr>
6816
6817 Turn on %{source,header}_extension features.
6818
6819 * src/lex.c (percent_table): Un-CPP out header_extension and
6820 source_extension.
6821 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
6822 (compute_exts_from_src): Remove conditions. It restores priorities
6823 between options.
6824
6825 2001-08-14 Marc Autret <autret_m@epita.fr>
6826
6827 * src/files.c (compute_base_names): Add extensions computing when
6828 `--file-prefix' used.
6829 Standardize function calls.
6830
6831 2001-08-13 Marc Autret <autret_m@epita.fr>
6832
6833 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
6834 defining it (defined but null disables alloca).
6835
6836 2001-08-13 Marc Autret <autret_m@epita.fr>
6837
6838 * src/bison.simple (_yy_memcpy): CPP reformat.
6839
6840 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
6841
6842 * tests/atconfig.in (CPPFLAGS): Fix.
6843
6844 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
6845
6846 * doc/bison.texinfo: Include GNU General Public License from
6847 `gpl.texi'.
6848 * doc/gpl.texi: Add to package.
6849
6850 2001-08-10 Marc Autret <autret_m@epita.fr>
6851
6852 * src/print_graph.h: Fix.
6853 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
6854
6855 2001-08-10 Akim Demaille <akim@epita.fr>
6856
6857 * src/system.h: Provide default declarations for stpcpy, strndup,
6858 and strnlen.
6859
6860 2001-08-10 Robert Anisko <anisko_r@epita.fr>
6861
6862 * doc/bison.texinfo (Locations): Update @$ stuff.
6863
6864 2001-08-09 Robert Anisko <anisko_r@epita.fr>
6865
6866 * src/bison.simple (YYLLOC_DEFAULT): Update.
6867 (yyparse): Adjust.
6868
6869 2001-08-08 Marc Autret <autret_m@epita.fr>
6870
6871 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
6872 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
6873 Reported by Fabrice Bauzac.
6874
6875 2001-08-08 Marc Autret <autret_m@epita.fr>
6876
6877 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
6878 * src/vcg.c (output_node): Fix.
6879 * src/vcg.h: Cleanup.
6880 * src/print_graph.c: Add comments.
6881 (node_output_size): New global variable. Simplify the formatting of
6882 the VCG graph output.
6883 (print_actions): Unused code is now used. It notifies the final state
6884 and no action states in the VCG graph. It also give the reduce actions.
6885 The `shift and goto' edges are red and the `go to state' edges are
6886 blue.
6887 Get the current node name and node_obstack by argument.
6888 (node_obstack): New variable.
6889 (print_state): Manage node_obstack.
6890 (print_core): Use node_obstack given by argument.
6891 A node is not only computed here but in print_actions also.
6892 (print_graph): CPP out useless code instead of commenting it.
6893
6894 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
6895
6896 * tests/atconfig.in (CPPFLAGS): Fix.
6897
6898 2001-08-07 Akim Demaille <akim@epita.fr>
6899
6900 * src/print_graph.c (quote): New.
6901 (print_core): Use it.
6902
6903 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
6904
6905 * src/vcg.c (complain.h): Include it.
6906 Unepitaize `return' invocations.
6907 [NDEBUG] (main): Remove.
6908 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
6909 * src/files.c (open_files): Initialize graph_obstack.
6910 * src/print_graph.c (print_actions): CPP out useless code.
6911 (print_core): Don't output the last `\n' in labels.
6912 Use `quote'.
6913 * src/files.c (output_files): Output the VCG file.
6914 * src/main.c (main): Invoke print_graph ();
6915
6916 2001-08-06 Marc Autret <autret_m@epita.fr>
6917
6918 Automaton VCG graph output.
6919 Using option ``-g'' or long option ``--graph'', you can generate
6920 a gram_filename.vcg file containing a VCG description of the LALR (1)
6921 automaton of your grammar.
6922
6923 * src/main.c: Call to print_graph() function.
6924 * src/getargs.h: Update.
6925 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
6926 (graph_flag): New flag.
6927 (longopts): Update.
6928 (getargs): Add case `g'.
6929 * src/files.c (graph_obstack): New obstack struct.
6930 (open_files): Initialize new obstack.
6931 (output_files): Saves graph_obstack if required.
6932 * src/files.h (graph_obstack): New extern declaration.
6933 * src/Makefile.am: Add new source files.
6934
6935 2001-08-06 Marc Autret <autret_m@epita.fr>
6936
6937 * src/print_graph.c, src/print_graph.h (graph): New.
6938 * src/vcg.h: New file.
6939 * src/vcg.c: New file, VCG graph handling.
6940
6941 2001-08-06 Marc Autret <autret_m@epita.fr>
6942
6943 Add of %source_extension and %header_extension which specify
6944 the source or/and the header output file extension.
6945
6946 * src/files.c (compute_base_names): Remove initialisation of
6947 src_extension and header_extension.
6948 (compute_exts_from_gf): Update.
6949 (compute_exts_from_src): Update.
6950 (output_files): Update.
6951 * src/reader.c (parse_header_extension_decl): New.
6952 (parse_source_extension_decl): New.
6953 (read_declarations): New case statements for the new tokens.
6954 * src/lex.c (percent_table): Add entries for %source_extension
6955 and %header_extension.
6956 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
6957
6958 2001-08-06 Marc Autret <autret_m@epita.fr>
6959
6960 * configure.in: Bump to 1.28c.
6961 * doc/bison.texinfo: Texinfo thingies.
6962
6963 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
6964
6965 * tests/atconfig.in (CPPFLAGS): Add.
6966 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
6967
6968 2001-08-03 Akim Demaille <akim@epita.fr>
6969
6970 Version 1.28b.
6971
6972 2001-08-03 Akim Demaille <akim@epita.fr>
6973
6974 * tests/Makefile.am (check-local): Ship testsuite.
6975 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
6976 Include `string.h'.
6977
6978 2001-08-03 Akim Demaille <akim@epita.fr>
6979
6980 * configure.in: Try using -Wformat when compiling.
6981
6982 2001-08-03 Akim Demaille <akim@epita.fr>
6983
6984 * configure.in: Bump to 1.28b.
6985
6986 2001-08-03 Akim Demaille <akim@epita.fr>
6987
6988 * src/complain.c: Adjust strerror_r portability issues.
6989
6990 2001-08-03 Akim Demaille <akim@epita.fr>
6991
6992 Version 1.28a.
6993
6994 2001-08-03 Akim Demaille <akim@epita.fr>
6995
6996 * src/getargs.c, src/getarg.h (skeleton)): Constify.
6997 * src/lex.c (literalchar): Avoid name clashes on `buf'.
6998 * src/getargs.c: Include complain.h.
6999 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
7000 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
7001
7002 2001-08-03 Akim Demaille <akim@epita.fr>
7003
7004 * src/reader.c (readgram): Display hidden chars in error messages.
7005
7006 2001-08-03 Akim Demaille <akim@epita.fr>
7007
7008 Update to gettext 0.10.39.
7009
7010 2001-08-03 Akim Demaille <akim@epita.fr>
7011
7012 * lib/strspn.c: New.
7013
7014 2001-08-01 Marc Autret <autret_m@epita.fr>
7015
7016 * doc/bison.texinfo: Update.
7017 * doc/bison.1 (mandoc): Update.
7018 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
7019 * src/files.c: Support output files extensions computing.
7020 (src_extension): New static variable.
7021 (header_extension): New static variable.
7022 (tr): New function.
7023 (get_extension_index): New function, gets the index of an extension
7024 filename in a string.
7025 (compute_exts_from_gf): New function, computes extensions from the
7026 grammar file extension.
7027 (compute_exts_from_src): New functions, computes extensions from the
7028 C source file extension, file given by ``-o'' option.
7029 (compute_base_names): Update.
7030 (output_files): Update.
7031
7032 2001-08-01 Robert Anisko <anisko_r@epita.fr>
7033
7034 * doc/bison.texi: Document @$.
7035 (Locations): New section.
7036
7037 2001-07-18 Akim Demaille <akim@epita.fr>
7038
7039 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
7040 * config/prev-version.txt, config/move-if-change: New.
7041 * Makefile.am: Adjust.
7042
7043 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
7044
7045 * src/bison.simple (yyparse): Suppress warning `comparaison
7046 between signed and unsigned'.
7047
7048 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
7049
7050 * src/getargs.h (raw_flag): Remove.
7051 * src/getargs.c: Die on `-r'/`--raw'.
7052 * src/lex.c (parse_percent_token): Die on `%raw'.
7053 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
7054 * tests/calc.at: Suppress test with option `--raw'.
7055
7056 2001-07-14 Akim Demaille <akim@epita.fr>
7057
7058 * config/: New.
7059 * configure.in: Require Autoconf 2.50.
7060 Update to gettext 0.10.38.
7061
7062 2001-03-16 Akim Demaille <akim@epita.fr>
7063
7064 * doc/bison.texinfo: ANSIfy the examples.
7065
7066 2001-03-16 Akim Demaille <akim@epita.fr>
7067
7068 * getargs.c (skeleton): New variable.
7069 (longopts): --skeleton is a new option.
7070 (shortopts, getargs): -S is a new option.
7071 * getargs.h: Declare skeleton.
7072 * output.c (output_parser): Use it.
7073
7074 2001-03-16 Akim Demaille <akim@epita.fr>
7075
7076 * m4/strerror_r.m4: New.
7077 * m4/error.m4: Run AC_FUNC_STRERROR_R.
7078 * lib/error.h, lib/error.c: Update.
7079
7080 2001-03-16 Akim Demaille <akim@epita.fr>
7081
7082 * src/getargs.c (longopts): Clean up.
7083
7084 2001-02-21 Akim Demaille <akim@epita.fr>
7085
7086 * src/reader.c (gensym): `gensym_count' is your own.
7087 Use a static buf to create the symbol name, as token_buffer is no
7088 longer a buffer.
7089
7090 2001-02-08 Akim Demaille <akim@epita.fr>
7091
7092 * src/conflicts.c (conflict_report): Be sure not to append to res
7093 between two calls, which could happen if both first sprintf were
7094 skipped, but not the first cp += strlen.
7095
7096 2001-02-08 Akim Demaille <akim@epita.fr>
7097
7098 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
7099 New, from fileutils 4.0.37.
7100 * configure.in: Require Autoconf 2.49c. I took some time before
7101 making this decision. This is the only way out for portability
7102 issues in Bison, it would mean way too much duplicate effort to
7103 import in Bison features implemented in 2.49c since 2.13.
7104 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
7105
7106 2001-02-02 Akim Demaille <akim@epita.fr>
7107
7108 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
7109 * lib/xalloc.h, lib/xmalloc.c: Update.
7110
7111 2001-01-19 Akim Demaille <akim@epita.fr>
7112
7113 Get rid of the ad hoc handling of token_buffer in the scanner: use
7114 the obstacks.
7115
7116 * src/lex.c (token_obstack): New.
7117 (init_lex): Initialize it. No longer call...
7118 (grow_token_buffer): this. Remove it.
7119 Adjust all the places which used it to use the obstack.
7120
7121 2001-01-19 Akim Demaille <akim@epita.fr>
7122
7123 * src/lex.h: Rename all the tokens:
7124 s/\bENDFILE\b/tok_eof/g;
7125 s/\bIDENTIFIER\b/tok_identifier/g;
7126 etc.
7127 Let them be enums, not #define, to ease debugging.
7128 Adjust all the code.
7129
7130 2001-01-18 Akim Demaille <akim@epita.fr>
7131
7132 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
7133 * src/lex.c (maxtoken, grow_token_buffer): Static.
7134
7135 2001-01-18 Akim Demaille <akim@epita.fr>
7136
7137 Since we now use obstacks, more % directives can be enabled.
7138
7139 * src/lex.c (percent_table): Also accept `%yacc',
7140 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
7141 `%debug'.
7142 Handle the actions for `%semantic_parser' and `%pure_parser' here,
7143 instead of returning a token.
7144 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
7145 * src/reader.c (read_declarations): Adjust.
7146 * src/files.c (open_files): Don't call `compute_base_names', don't
7147 compute `attrsfile' since they depend upon data which might be
7148 *in* the input file now.
7149 (output_files): Do it here.
7150 * src/output.c (output_headers): Document the fact that this patch
7151 introduces a guaranteed SEGV for semantic parsers.
7152 * doc/bison.texinfo: Document them.
7153 * tests/suite.at: Exercise these %options.
7154
7155 2000-12-20 Akim Demaille <akim@epita.fr>
7156
7157 Also handle the output file (--verbose) with obstacks.
7158
7159 * files.c (foutput): Remove.
7160 (output_obstack): New.
7161 Adjust all dependencies.
7162 * src/conflicts.c: Return a string.
7163 * src/system.h (obstack_grow_string): Rename as...
7164 (obstack_sgrow): this. Be ready to work with non literals.
7165 (obstack_fgrow4): New.
7166
7167 2000-12-20 Akim Demaille <akim@epita.fr>
7168
7169 * src/files.c (open_files): Fix the computation of short_base_name
7170 in the case of `-o foo.tab.c'.
7171
7172 2000-12-20 Akim Demaille <akim@epita.fr>
7173
7174 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
7175 (copy_dollar): Now that everything uses obstacks, get rid of the
7176 FILE * parameters.
7177
7178 2000-12-20 Akim Demaille <akim@epita.fr>
7179
7180 * src/files.c (open_files): Actually the `.output' file is based
7181 on the short_base_name, not base_name.
7182 * tests/suite.at (Checking output file names): Adjust.
7183
7184 2000-12-20 Akim Demaille <akim@epita.fr>
7185
7186 * src/bison.s1: Remove, we now use directly...
7187 * src/bison.simple: this.
7188 * src/Makefile.am: Use pkgdata instead of data.
7189
7190 2000-12-20 Akim Demaille <akim@epita.fr>
7191
7192 * src/files.c (guard_obstack): New.
7193 (open_files): Initialize it.
7194 (output_files): Dump it...
7195 * src/files.h: Export it.
7196 * src/reader.c (copy_guard): Use it.
7197
7198 2000-12-19 Akim Demaille <akim@epita.fr>
7199
7200 * src/files.c (outfile, defsfile, actfile): Removed as global
7201 vars.
7202 (open_files): Don't compute them.
7203 (output_files): Adjust.
7204 (base_name, short_base_name): Be global.
7205 Adjust dependencies.
7206
7207 2000-12-19 Akim Demaille <akim@epita.fr>
7208
7209 * src/files.c (strsuffix): New.
7210 (stringappend): Be just like strcat but allocate.
7211 (base_names): Eve out from open_files.
7212 Try to simplify the rather hairy computation of base_name and
7213 short_base_name.
7214 (open_files): Use it.
7215 * tests/suite.at (Checking output file names): New test.
7216
7217 2000-12-19 Akim Demaille <akim@epita.fr>
7218
7219 * src/system.h (obstack_grow_literal_string): Rename as...
7220 (obstack_grow_string): this.
7221 * src/output.c (output_parser): Recognize `%% actions' instead of
7222 `$'.
7223 * src/bison.s1: s/$/%% actions/.
7224 * src/bison.hairy: Likewise.
7225
7226 2000-12-19 Akim Demaille <akim@epita.fr>
7227
7228 * src/output.c (output_parser): Compute the `#line' lines when
7229 there are.
7230 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
7231 Suggested by Hans Aberg.
7232
7233 2000-12-19 Akim Demaille <akim@epita.fr>
7234
7235 Let the handling of the skeleton files be local to the procedures
7236 that use it.
7237
7238 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
7239 longer static.
7240 (fparser, open_extra_files): Remove.
7241 (open_files, output_files): Don't take care of fparser.
7242 * src/files.h: Adjust.
7243 * src/output.c (output_parser): Open and close the file to the
7244 skeleton.
7245 * src/reader.c (read_declarations): When %semantic_parser, open
7246 fguard.
7247
7248 2000-12-19 Akim Demaille <akim@epita.fr>
7249
7250 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
7251 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
7252
7253 2000-12-19 Akim Demaille <akim@epita.fr>
7254
7255 * src/files.c (open_files): Yipee! We no longer need all the code
7256 looking for `/tmp' since we have no tmp file.
7257
7258 2000-12-19 Akim Demaille <akim@epita.fr>
7259
7260 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
7261 New macros.
7262 * src/files.c (open_files): Less dependency on MSDOS etc.
7263
7264 2000-12-14 Akim Demaille <akim@epita.fr>
7265
7266 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
7267 Provide a default definition.
7268 Use it when executing the default @ action.
7269 * src/reader.c (reader_output_yylsp): No longer include
7270 `timestamp' and `text' in the default YYLTYPE.
7271
7272 2000-12-12 Akim Demaille <akim@epita.fr>
7273
7274 * src/reader.c (copy_definition, parse_union_decl, copy_action)
7275 (copy_guard): Quote the file names.
7276 Reported by Laurent Mascherpa.
7277
7278 2000-12-12 Akim Demaille <akim@epita.fr>
7279
7280 * src/output.c (output_headers, output_program, output): Be sure
7281 to escape special characters when outputting filenames.
7282 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
7283 (output_headers): Don't depend on them, Use ACTSTR.
7284
7285 2000-11-17 Akim Demaille <akim@epita.fr>
7286
7287 * lib/obstack.h: Formatting changes.
7288 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
7289 prevents type checking.
7290 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
7291 cast the value to (void *): assigning a `foo *' to a `void *'
7292 variable is valid.
7293 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
7294 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
7295 append characters.
7296
7297 2000-11-17 Akim Demaille <akim@epita.fr>
7298
7299 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
7300 as...
7301 (suite.m4, regression.m4, calc.m4): these.
7302 * tests/atgeneral.m4: Update from CVS Autoconf.
7303
7304 2000-11-17 Akim Demaille <akim@epita.fr>
7305
7306 * tests/regression.m4 (%union and --defines): New test,
7307 demonstrating a current bug in the obstack implementation.
7308
7309 2000-11-17 Akim Demaille <akim@epita.fr>
7310
7311 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
7312 macros.
7313 Use them to declare the variables which are global or local to
7314 `yyparse'.
7315
7316 2000-11-17 Akim Demaille <akim@epita.fr>
7317
7318 * acconfig.h: Remove, no longer used.
7319
7320 2000-11-07 Akim Demaille <akim@epita.fr>
7321
7322 * src: s/Copyright (C)/Copyright/g.
7323
7324 2000-11-07 Akim Demaille <akim@epita.fr>
7325
7326 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
7327 defining.
7328 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
7329
7330 2000-11-07 Akim Demaille <akim@epita.fr>
7331
7332 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
7333 Merge in a single CPP if/else.
7334
7335 2000-11-07 Akim Demaille <akim@epita.fr>
7336
7337 * src/output.c (output): Remove useless variables.
7338 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
7339 argument `data' for consistency with the prototypes.
7340 Qualify it `const'.
7341 (obstack_copy, obstack_copy0): Rename the second argument as
7342 `address' for consistency. Qualify it `const'.
7343 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
7344 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
7345 `const' their input argument (`data' or `address').
7346 Adjust the corresponding macros to include `const' in casts.
7347
7348 2000-11-03 Akim Demaille <akim@epita.fr>
7349
7350 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
7351 s/PFILE1/BISON_HAIRY/.
7352 Adjust dependencies.
7353
7354 2000-11-03 Akim Demaille <akim@epita.fr>
7355
7356 For some reason, this was not applied.
7357
7358 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
7359 `unlink': it's no longer used.
7360
7361 2000-11-03 Akim Demaille <akim@epita.fr>
7362
7363 * src/files.c (skeleton_find): New function, eved out of...
7364 (open_files, open_extra_files): here.
7365
7366 2000-11-03 Akim Demaille <akim@epita.fr>
7367
7368 Don't use `atexit'.
7369
7370 * src/files.c (obstack_save): New function.
7371 (done): Rename as...
7372 (output_files): this.
7373 Use `obstack_save'.
7374 * src/main.c (main): Don't use `atexit' to register `done', since
7375 it no longer has to remove tmp files, just call `output_files'
7376 when there are no errors.
7377
7378 2000-11-02 Akim Demaille <akim@epita.fr>
7379
7380 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
7381 `unlink': it's no longer used.
7382 * src/files.h: Formatting changes.
7383
7384 2000-11-02 Akim Demaille <akim@epita.fr>
7385
7386 Remove the last uses of mktemp and unlink/delete.
7387
7388 * src/files.c (fdefines, ftable): Removed.
7389 (defines_ostack, table_obstack): New.
7390 Adjust dependencies of the former into uses of the latter.
7391 * src/output.c (output_short_or_char_table, output_short_table):
7392 Convert to using obstacks.
7393 * src/reader.c (copy_comment2): Accept one FILE * and two
7394 obstacks.
7395 (output_token_defines, reader_output_yylsp): Use obstacks.
7396 * src/system.h (obstack_fgrow3): New.
7397
7398 2000-11-01 Akim Demaille <akim@epita.fr>
7399
7400 Change each use of `fattrs' into a use of `attrs_obstack'.
7401
7402 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
7403 * src/files.c (fattrs): Remove.
7404 (attrs_obstack): New.
7405 Adjust all dependencies.
7406 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
7407
7408 2000-11-01 Akim Demaille <akim@epita.fr>
7409
7410 Introduce obstacks.
7411 Change each use of `faction' into a use of `action_obstack'.
7412
7413 * lib/obstack.h, lib/obstack.c: New files.
7414 * src/files.c (faction): Remove.
7415 (action_obstack): New.
7416 Adjust all dependencies.
7417
7418 2000-10-20 Akim Demaille <akim@epita.fr>
7419
7420 * lib/quote.h (PARAMS): New macro. Use it.
7421
7422 2000-10-16 Akim Demaille <akim@epita.fr>
7423
7424 * src/output.c (output_short_or_char_table): New function.
7425 (output_short_table, output_token_translations): Use it.
7426 (goto_actions): Use output_short_table.
7427
7428 2000-10-16 Akim Demaille <akim@epita.fr>
7429
7430 * src/symtab.c (bucket_new): New function.
7431 (getsym): Use it.
7432
7433 * src/output.c (output_short_table): New argument to display the
7434 comment associated with the table.
7435 Adjust dependencies.
7436 (output_gram): Use it.
7437 (output_rule_data): Nicer output layout for YYTNAME.
7438
7439 2000-10-16 Akim Demaille <akim@epita.fr>
7440
7441 * src/lex.c (read_typename): New function.
7442 (lex): Use it.
7443 * src/reader.c (copy_dollar): Likewise.
7444
7445 2000-10-16 Akim Demaille <akim@epita.fr>
7446
7447 * src/reader.c (copy_comment2): Expect the input stream to be on
7448 the `/' which is suspected to open a comment, instead of being
7449 called after `//' or `/*' was read.
7450 (copy_comment, copy_definition, parse_union_decl, copy_action)
7451 (copy_guard): Adjust.
7452
7453 2000-10-16 Akim Demaille <akim@epita.fr>
7454
7455 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
7456 `read_signed_integer'.
7457
7458 2000-10-16 Akim Demaille <akim@epita.fr>
7459
7460 * src/reader.c (copy_dollar): New function.
7461 (copy_guard, copy_action): Use it.
7462
7463 2000-10-16 Akim Demaille <akim@epita.fr>
7464
7465 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
7466 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
7467 New files, from Fileutils 4.0.27.
7468 * src/main.c (printable_version): Remove.
7469 * src/lex.c, src/reader.c: Use `quote'.
7470
7471 2000-10-04 Akim Demaille <akim@epita.fr>
7472
7473 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
7474
7475 2000-10-04 Akim Demaille <akim@epita.fr>
7476
7477 * doc/bison.texinfo: Various typos spotted by Neil Booth.
7478
7479 2000-10-04 Akim Demaille <akim@epita.fr>
7480
7481 When a literal string is used to define two different tokens,
7482 `bison -v' segfaults.
7483 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
7484
7485 * tests/regression.m4: New file.
7486 Include the core of the sample provided by Piotr Gackiewicz.
7487 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
7488 properly.
7489
7490 2000-10-04 Akim Demaille <akim@epita.fr>
7491
7492 * src/reader.c (parse_expect_decl): Keep `count' within the size
7493 of `buffer'.
7494 From Neil Booth.
7495
7496 2000-10-02 Paul Eggert <eggert@twinsun.com>
7497
7498 * bison.s1 (yyparse): Assign the default value
7499 unconditionally, to avoid a GCC warning and make the parser a
7500 tad smaller.
7501
7502 2000-10-02 Akim Demaille <akim@epita.fr>
7503
7504 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
7505 options.
7506
7507 2000-10-02 Akim Demaille <akim@epita.fr>
7508
7509 * src/derives.c, src/print.c, src/reduce.c: To ease the
7510 translation, move some `\n' out of the translated strings.
7511
7512 2000-10-02 Akim Demaille <akim@epita.fr>
7513
7514 The location tracking mechanism is precious for parse error
7515 messages. Nevertheless, it is enabled only when `@n' is used in
7516 the grammar, which is a different issue (you can use it in error
7517 message, but not in the grammar per se). Therefore, there should
7518 be another means to enable it.
7519
7520 * src/getargs.c (getargs): Support `--locations'.
7521 (usage): Report it.
7522 * src/getargs.h (locationsflag): Export it.
7523 * src/lex.c (percent_table): Support `%locations'.
7524 * src/reader.c (yylsp_needed): Remove this variable, now replaced
7525 with `locationsflag'.
7526 * doc/bison.texinfo: Document `--locations' and `%locations'.
7527 Sort the options.
7528 * tests/calc.m4: Test it.
7529
7530 For regularity of the names, replace each
7531 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
7532 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
7533 In addition replace each `flag' with `_flag'.
7534
7535 2000-10-02 Akim Demaille <akim@epita.fr>
7536
7537 Also test parse error messages, including with YYERROR_VERBOSE.
7538
7539 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
7540 associative).
7541 Use it to check the computations.
7542 Use it to check `nonassoc' is honored.
7543 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
7544 `--yyerror-verbose'.
7545 (_AT_CHECK_CALC): Adjust to this option.
7546 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
7547
7548 2000-10-02 Akim Demaille <akim@epita.fr>
7549
7550 Test also `--verbose', `--defines' and `--name-prefix'. Testing
7551 the latter demonstrates a flaw in the handling of non debugging
7552 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
7553 was used in order to simplify:
7554
7555 #if YYDEBUG
7556 if (yydebug)
7557 {
7558 ...
7559 }
7560 #endif
7561
7562 into
7563
7564 if (yydebug)
7565 {
7566 ...
7567 }
7568
7569 unfortunately this leads to a CPP conflict when
7570 `--name-prefix=foo' is used since it produces `#define yydebug
7571 foodebug'.
7572
7573 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
7574 (YYDPRINTF): New macro.
7575 Spread its use.
7576 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
7577 the bison options.
7578 Also test `--verbose', `--defines' and `--name-prefix'.
7579
7580 2000-10-02 Akim Demaille <akim@epita.fr>
7581
7582 Improve the readability of the produced parsers.
7583
7584 * src/bison.s1: Formatting changes.
7585 Improve the comment related to the `$' mark.
7586 (yydefault): Don't fall through to `yyresume': `goto' there.
7587 * src/output.c (output_parser): When the `$' is met, skip the end
7588 of its line.
7589 New variable, `number_of_dollar_signs', to check there's exactly
7590 one `$' in the parser skeleton.
7591
7592 2000-10-02 Akim Demaille <akim@epita.fr>
7593
7594 * lib/xstrdup.c: New file, from the fileutils.
7595 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
7596 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
7597 instead of strlen + xmalloc + strcpy.
7598 * src/symtab.c (copys): Remove, use xstrdup instead.
7599
7600 2000-10-02 Akim Demaille <akim@epita.fr>
7601
7602 * src/gram.h (associativity): New enum type which replaces the
7603 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
7604 `right_assoc', `left_assoc' and `non_assoc'.
7605 Adjust all dependencies.
7606 * src/reader.c: Formatting changes.
7607 (LTYPESTR): Don't define it, use it as a literal in
7608 `reader_output_yylsp'.
7609 * src/symtab.h (symbol_class): New enum type which replaces the
7610 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
7611 `sunknown', `stoken and `snterm'.
7612
7613 2000-10-02 Akim Demaille <akim@epita.fr>
7614
7615 * src/getargs.c (fixed_outfiles): Rename as...
7616 (yaccflag): for consistency and accuracy.
7617 Adjust dependencies.
7618
7619 2000-10-02 Akim Demaille <akim@epita.fr>
7620
7621 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
7622 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
7623 difficult and introduced a lot of core dump. It turns out that
7624 Bison used an implementation of `xmalloc' based on `calloc', and
7625 at various places it does depend upon the initialization to 0. I
7626 have not tried to isolate the pertinent places, and all the former
7627 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
7628 someone should address this issue.
7629
7630 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
7631 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
7632 files.
7633 Adjust dependencies.
7634 * src/warshall.h: New file.
7635 Propagate.
7636
7637 2000-10-02 Akim Demaille <akim@epita.fr>
7638
7639 Various anti-`extern in *.c' changes.
7640
7641 * src/system.h: Include `assert.h'.
7642
7643 2000-10-02 Akim Demaille <akim@epita.fr>
7644
7645 * src/state.h (nstates, final_state, first_state, first_shift)
7646 (first_reduction): Move their exportation from here...
7647 * src/LR0.h: to here.
7648 Adjust dependencies.
7649 * src/getargs.c (statisticsflag): New variable.
7650 Add support for `--statistics'.
7651 Adjust dependencies.
7652
7653 Remove a lot of now useless `extern' statements in most files.
7654
7655 2000-10-02 Akim Demaille <akim@epita.fr>
7656
7657 * src/LR0.h: New file.
7658 Propagate its use.
7659
7660 2000-10-02 Akim Demaille <akim@epita.fr>
7661
7662 * src/print.h: New file.
7663 Propagate its use.
7664 * src/print.c: Formatting and ordering changes.
7665 (verbose, terse): Replace with...
7666 (print_results): this new function.
7667 Adjust dependencies.
7668
7669 2000-10-02 Akim Demaille <akim@epita.fr>
7670
7671 * src/conflicts.c (conflict_report): New function.
7672 (conflict_log, verbose_conflict_log): Replace with...
7673 (print_conflicts): this function.
7674 Adjust dependencies.
7675 * src/conflicts.h: New file.
7676 Propagate its inclusion.
7677
7678 2000-10-02 Akim Demaille <akim@epita.fr>
7679
7680 * src/nullable.h: New file.
7681 Propagate its inclusion.
7682 * src/nullable.c: Formatting changes.
7683
7684 2000-10-02 Akim Demaille <akim@epita.fr>
7685
7686 * src/reduce.h: New file.
7687 Propagate its inclusion.
7688 * src/reduce.c: Topological sort and other formatting changes.
7689 (bool, TRUE, FALSE): Move their definition to...
7690 * src/system.h: here.
7691
7692 2000-10-02 Akim Demaille <akim@epita.fr>
7693
7694 * src/files.c: Formatting changes.
7695 (tryopen, tryclose, openfiles): Rename as...
7696 (xfopen, xfclose, open_files): this.
7697 (stringappend): static.
7698 * src/files.h: Complete the list of exported symbols.
7699 Propagate its use.
7700
7701 2000-10-02 Akim Demaille <akim@epita.fr>
7702
7703 * src/reader.h: New file.
7704 Propagate its use instead of tedious list of `extern' and
7705 prototypes.
7706 * src/reader.c: Formatting changes, topological sort,
7707 s/register//.
7708
7709 2000-10-02 Akim Demaille <akim@epita.fr>
7710
7711 * src/lex.h: Prototype `lex.c' exported functions.
7712 * src/reader.c: Adjust.
7713 * src/lex.c: Formatting changes.
7714 (safegetc): Rename as...
7715 (xgetc): this.
7716
7717 2000-10-02 Akim Demaille <akim@epita.fr>
7718
7719 * src/lalr.h: New file.
7720 Propagate its inclusion instead of prototypes and `extern'.
7721 * src/lalr.c: Formatting changes, topological sorting etc.
7722
7723 2000-10-02 Akim Demaille <akim@epita.fr>
7724
7725 * src/output.c (token_actions): Introduce a temporary array,
7726 YYDEFACT, that makes it possible for this function to use
7727 output_short_table.
7728
7729 2000-10-02 Akim Demaille <akim@epita.fr>
7730
7731 `user_toknums' is output as a `short[]' in `output.c', while it is
7732 defined as a `int[]' in `reader.c'. For consistency with the
7733 other output tables, `user_toknums' is now defined as a table of
7734 shorts.
7735
7736 * src/reader.c (user_toknums): Be a short table instead of an int
7737 table.
7738 Adjust dependencies.
7739
7740 Factor the short table outputs.
7741
7742 * src/output.c (output_short_table): New function.
7743 * src/output.c (output_gram, output_stos, output_rule_data)
7744 (output_base, output_table, output_check): Use it.
7745
7746 2000-10-02 Akim Demaille <akim@epita.fr>
7747
7748 * src/output.c (output): Topological sort of the functions, in
7749 order to get rid of the `static' prototypes.
7750 No longer use `register'.
7751 * src/output.h: New file.
7752 Propagate its inclusion in files explicitly prototyping functions
7753 from output.c.
7754
7755 2000-09-21 Akim Demaille <akim@epita.fr>
7756
7757 * src/atgeneral.m4: Update from Autoconf.
7758
7759 2000-09-21 Akim Demaille <akim@epita.fr>
7760
7761 * src/closure.h: New file.
7762 * src/closure.c: Formatting changes, topological sort over the
7763 functions, use of closure.h.
7764 (initialize_closure, finalize_closure): Rename as...
7765 (new_closure, free_closure): these. Adjust dependencies.
7766 * src/LR0.c: Formatting changes, topological sort, use of
7767 cloture.h.
7768 (initialize_states): Rename as...
7769 (new_states): this.
7770 * src/Makefile.am (noinst_HEADERS): Adjust.
7771
7772 2000-09-20 Akim Demaille <akim@epita.fr>
7773
7774 * src/acconfig.h: Don't protect config.h against multiple
7775 inclusion.
7776 Don't define PARAMS.
7777 * src/system.h: Define PARAMS.
7778 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
7779 purpose of config.h. system.h must not try to fix wrong
7780 definitions in config.h.
7781
7782 2000-09-20 Akim Demaille <akim@epita.fr>
7783
7784 * src/derives.h: New file.
7785 * src/main.c, src/derives.h: Use it.
7786 Formatting changes.
7787 * src/Makefile.am (noinst_HEADERS): Adjust.
7788
7789 2000-09-20 Akim Demaille <akim@epita.fr>
7790
7791 * tests/atgeneral.m4: Update from Autoconf.
7792 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
7793 (AT_CHECK_CALC): New macros.
7794 Use these macros to test bison with options `', `--raw',
7795 `--debug', `--yacc', `--yacc --debug'.
7796
7797 2000-09-19 Akim Demaille <akim@epita.fr>
7798
7799 * src/output.c: Formatting changes.
7800 * src/machine.h: Remove, leaving its contents in...
7801 * src/system.h: here.
7802 Include stdio.h.
7803 Adjust all dependencies on stdio.h and machine.h.
7804 * src/getargs.h: New file.
7805 Let all `extern' declarations about getargs.c be replaced with
7806 inclusion of `getargs.h'.
7807 * src/Makefile.am (noinst_HEADERS): Adjust.
7808
7809 * tests/calc.m4 (yyin): Be initialized in main, not on the global
7810 scope.
7811 (yyerror): Returns void, not int.
7812 * doc/bison.texinfo: Formatting changes.
7813
7814 2000-09-19 Akim Demaille <akim@epita.fr>
7815
7816 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
7817 portable.
7818
7819 2000-09-18 Akim Demaille <akim@epita.fr>
7820
7821 * configure.in: Append WARNING_CFLAGS to CFLAGS.
7822 * src/Makefile.am (INCLUDES): Don't.
7823 Be ready to fetch headers in lib/.
7824
7825 2000-09-18 Akim Demaille <akim@epita.fr>
7826
7827 * doc/bison.texinfo: Update the copyright.
7828 ANSIfy and GNUify the examples.
7829 Remove the old menu.
7830
7831 2000-09-18 Akim Demaille <akim@epita.fr>
7832
7833 First set of tests: use the `calc' example from the documentation.
7834
7835 * src/bison.s1 (yyparse): Condition the code using `yytname' which
7836 is defined only when YYDEBUG is.
7837 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
7838 * src/files.c (tryopen, tryclose): Formatting changes.
7839 Move to the top and be static.
7840 * src/reader.c (read_signed_integer): Likewise.
7841 * tests/calc.m4: New file.
7842 * Makefile.am, suite.m4: Adjust.
7843 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
7844
7845 2000-09-18 Akim Demaille <akim@epita.fr>
7846
7847 Add support for an Autotest test suite for Bison.
7848
7849 * m4/m4.m4, m4/atconfig.m4: New files.
7850 * m4/Makefile.am (EXTRA_DIST): Adjust.
7851 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
7852 files.
7853 * src/getargs.c: Display a more standard --version message.
7854 * src/reader.c (reader): Formatting changes.
7855 No longer depend upon VERSION_STRING.
7856 * configure.in: No longer use `dnl'.
7857 Set up the test suite and the new directory `tests/.
7858 (VERSION_STRING): Remove.
7859
7860 2000-04-14 Akim Demaille <akim@epita.fr>
7861
7862 * src/reader.c (copy_comment2): New function, same as former
7863 `copy_comment', but outputs into two FILE *.
7864 (copy_comment): Use it.
7865 (parse_union_decl): Use it.
7866 (get_type, parse_start_decl): Use the same `invalid' message.
7867 (parse_start_decl, parse_union_decl): Use the same `multiple'
7868 message.
7869 (parse_union_decl, copy_guard, copy_action): Use the same
7870 `unmatched' message.
7871 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
7872
7873 2000-03-31 Akim Demaille <akim@epita.fr>
7874
7875 * src/files.c (tryopen, tryclose): Move to the top.
7876 Be static.
7877
7878 2000-03-31 Akim Demaille <akim@epita.fr>
7879
7880 * src/main.c (main): Don't call `done', exit does it.
7881
7882 2000-03-31 Akim Demaille <akim@epita.fr>
7883
7884 * allocate.c: s/return (foo)/return foo/.
7885 * lalr.c: Likewise.
7886 * LR0.c: Likewise.
7887 * output.c: Likewise.
7888 * reader.c: Likewise.
7889 * symtab.c: Likewise.
7890 * vmsgetargs.c: Likewise.
7891
7892 2000-03-31 Akim Demaille <akim@epita.fr>
7893
7894 Clean up the error reporting functions.
7895
7896 * src/report.c: New file.
7897 * src/report.h: Likewise.
7898 * src/Makefile.am: Adjust.
7899 * m4/error.m4: New file.
7900 * m4/Makefile.am: Adjust.
7901 * configure.in (jm_PREREQ_ERROR): Call it.
7902 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
7903 Remove.
7904 (fatal, fatals): Remove. All callers use complain.c::fatal.
7905 (warn, warni, warns, warnss, warnss): Remove. All callers use
7906 complain.c::complain.
7907 (toomany): Remove, use fatal instead.
7908 * src/files.c (done): No argument, use complain_message_count.
7909 * src/main.c (main): Register `done' to `atexit'.
7910
7911 * src/getargs.c (usage): More `fputs', less `fprintf'.
7912
7913 2000-03-28 Akim Demaille <akim@epita.fr>
7914
7915 * lib/: New directory.
7916 * Makefile.am (SUBDIRS): Adjust.
7917 * configure.in: Adjust.
7918 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
7919 useless.
7920 * src/alloca.c: Moved to lib/.
7921 * src/getopt.c: Likewise.
7922 * src/getopt1.c: Likewise.
7923 * src/getopt.h: Likewise.
7924 * src/ansi2knr.c: Likewise.
7925 * src/ansi2knr.1: Likewise.
7926 * src/Makefile.am: Adjust.
7927 * lib/Makefile.am: New file.
7928
7929 2000-03-28 Akim Demaille <akim@epita.fr>
7930
7931 * src/getargs.c (usage): Refresh the help message.
7932
7933 2000-03-17 Akim Demaille <akim@epita.fr>
7934
7935 * src/getopt1.c: Updated from textutils 2.0e
7936 * src/getopt.c: Likewise.
7937 * src/getopt.h: Likewise.
7938
7939 2000-03-17 Akim Demaille <akim@epita.fr>
7940
7941 * src/Makefile.am (bison.simple): Fix the awk program: quote only
7942 the file name, not the whole `#line LINE FILE'.
7943
7944 2000-03-17 Akim Demaille <akim@epita.fr>
7945
7946 On syntax errors, report the token on which we choked.
7947
7948 * src/bison.s1 (yyparse): In the label yyerrlab, when
7949 YYERROR_VERBOSE, add yychar in msg.
7950
7951 2000-03-17 Akim Demaille <akim@epita.fr>
7952
7953 * src/reader.c (copy_at): New function.
7954 (copy_guard): Use it.
7955 (copy_action): Use it.
7956
7957 2000-03-17 Akim Demaille <akim@epita.fr>
7958
7959 Be kind to translators, save some useless translations.
7960
7961 * src/main.c (banner): New function.
7962 (fatal_banner): Use it.
7963 (warn_banner): Use it.
7964
7965 2000-03-17 Akim Demaille <akim@epita.fr>
7966
7967 * src/reader.c (copy_definition): Use copy_string and
7968 copy_comment. Removed now unused `match', `ended',
7969 `cplus_comment'.
7970 (copy_comment, copy_string): Moved, to be visible from
7971 copy_definition.
7972
7973 2000-03-17 Akim Demaille <akim@epita.fr>
7974
7975 * src/reader.c (copy_string): Declare `static inline'. No
7976 problems with inline, since it is checked by configure.
7977 (copy_comment): Likewise.
7978
7979 2000-03-17 Akim Demaille <akim@epita.fr>
7980
7981 * src/reader.c (packsymbols): Formatting changes.
7982
7983 2000-03-17 Akim Demaille <akim@epita.fr>
7984
7985 * src/reader.c (copy_comment): New function, factored out from:
7986 (copy_action): Use it. Removed now unused `match', `ended',
7987 `cplus_comment'.
7988 (copy_guard): Likewise.
7989
7990 2000-03-17 Akim Demaille <akim@epita.fr>
7991
7992 * src/reader.c (copy_string): New function, factored out from:
7993 (copy_action): Use it.
7994 (copy_guard): Likewise.
7995
7996 2000-03-17 Akim Demaille <akim@epita.fr>
7997
7998 Change the handling of @s so that they behave exactly like $s.
7999 There is now a pseudo variable @$ (readble and writable), location
8000 of the lhs of the rule (by default ranging from the location of
8001 the first symbol of the rhs, to the location of the last symbol,
8002 or, if the rhs is empty, YYLLOC).
8003
8004 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
8005 yyval.
8006 (yyparse): When providing a default semantic action, provide a
8007 default location action.
8008 (after the $): No longer change `*YYLSP', just stack YYLOC the
8009 same way you stack YYVAL.
8010 * src/reader.c (read_declarations): Use warns.
8011 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
8012 (copy_action, case '@'): Likewise.
8013 Use a standard error message, to save useless work from
8014 translators.
8015
8016 2000-03-17 Akim Demaille <akim@epita.fr>
8017
8018 * src/bison.s1: Formatting and cosmetics changes.
8019 * src/reader.c: Likewise.
8020 Update the Copyright notice.
8021
8022 2000-03-17 Akim Demaille <akim@epita.fr>
8023
8024 * src/bison.s1 (#line): All set to `#line' only, since the
8025 Makefile now handles them.
8026
8027 2000-03-16 Akim Demaille <akim@epita.fr>
8028
8029 * src/output.c (output_rule_data): Output the documentation of
8030 some of the tables.
8031 (Copyright notice): Update.
8032 Formatting changes.
8033
8034 2000-03-16 Akim Demaille <akim@epita.fr>
8035
8036 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
8037 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
8038 One `#if YYDEBUG' remains, since it uses variables which are
8039 defined only if `YYDEBUG != 0'.
8040
8041 2000-03-16 Akim Demaille <akim@epita.fr>
8042
8043 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
8044 and related variables so that the similarities are highlighted.
8045
8046 2000-03-16 Akim Demaille <akim@epita.fr>
8047
8048 * src/bison.s1: Properly indent CPP directives.
8049
8050 2000-03-16 Akim Demaille <akim@epita.fr>
8051
8052 * src/bison.s1: Properly indent the `alloca' CPP section.
8053
8054 2000-03-16 Akim Demaille <akim@epita.fr>
8055
8056 Do not hard code values of directories in `configure.in'.
8057 Update the `configure' tool chain.
8058
8059 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
8060 src/makefile.am.
8061 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
8062 (AC_OUTPUT): Add m4/Makefile.
8063 Bump to bison 1.28a, 1.29 has never been released.
8064 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
8065 handled via src/Makefile.am.
8066 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
8067 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
8068 autoheader.
8069 * Makefile.am (SUBDIRS): Add m4.
8070 (ACLOCAL_AM_FLAGS): New variable.
8071 (AUTOMAKE_OPTIONS): Add check-news.
8072 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
8073 the proper line number and file name.
8074 (DEFS): Propagate the location of bison library files and of the
8075 locale files.
8076 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
8077 builddir.
8078 * acinclude.m4: Remove, replaced by the directory m4.
8079 * m4/Makefile.am (EXTRA_DIST): New variable.
8080 * m4/gettext.m4: New file, from the fileutils.
8081 * m4/lcmessage.m4: Likewise
8082 * m4/progtest.m4: Likewise.
8083 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
8084
8085 2000-03-10 Akim Demaille <akim@epita.fr>
8086
8087 * src/closure.c:
8088 Formatting changes of various comments.
8089 Respect the GNU coding standards at various places.
8090 Don't use `_()' when no translation is needed.
8091
8092 1999-12-13 Jesse Thilo <jthilo@gnu.org>
8093
8094 * src/files.c:
8095 OS/2 honors TMPDIR environment variable.
8096
8097 1999-12-13 Jesse Thilo <jthilo@gnu.org>
8098
8099 * doc/bison.texinfo: Tweaked spelling and grammar.
8100 Updated ISBN.
8101 Removed reference to price of printed copy.
8102 Mention BISON_SIMPLE and BISON_HAIRY.
8103
8104 1999-12-13 Jesse Thilo <jthilo@gnu.org>
8105
8106 * configure.in, NEWS:
8107 Bison 1.29 released.
8108
8109 1999-10-27 Jesse Thilo <jthilo@gnu.org>
8110
8111 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
8112 Added reference card.
8113
8114 1999-07-26 Jesse Thilo <jthilo@gnu.org>
8115
8116 * po/ru.po: Added Russian translation.
8117
8118 1999-07-26 Jesse Thilo <jthilo@gnu.org>
8119
8120 * configure.in: Added Russian translation.
8121
8122 1999-07-06 Jesse Thilo <jthilo@gnu.org>
8123
8124 * configure.in, NEWS, README:
8125 Released version 1.28.
8126
8127 1999-06-14 Jesse Thilo <jthilo@gnu.org>
8128
8129 * src/system.h:
8130 Squashed redefinition warning on some systems.
8131
8132 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
8133 Have configure build version string instead of relying on ANSI string
8134 concatentation.
8135
8136 1999-06-14 Jesse Thilo <jthilo@gnu.org>
8137
8138 * po/POTFILES.in: Got rid of version.c.
8139
8140 1999-06-14 Jesse Thilo <jthilo@gnu.org>
8141
8142 * acconfig.h, configure.in:
8143 Have configure build version string instead of relying on ANSI string
8144 concatentation.
8145
8146 1999-06-08 Jesse Thilo <jthilo@gnu.org>
8147
8148 * doc/bison.1:
8149 Dropped mention of `+' for long-named options.
8150
8151 1999-05-30 Jesse Thilo <jthilo@gnu.org>
8152
8153 * src/files.c: Added <unistd.h> for unlink().
8154
8155 * src/Makefile.am, src/system.h:
8156 I18n fixes.
8157
8158 1999-05-30 Jesse Thilo <jthilo@gnu.org>
8159
8160 * README: Added a FAQ list.
8161
8162 * configure.in, acconfig.h:
8163 I18n fixes.
8164
8165 1999-05-30 Jesse Thilo <jthilo@gnu.org>
8166
8167 * doc/FAQ, doc/Makefile.am:
8168 Added a FAQ list.
8169
8170 1999-05-19 Jesse Thilo <jthilo@gnu.org>
8171
8172 * src/alloc.h, src/symtab.h, src/version.c:
8173 Protected inclusion of "config.h" with HAVE_CONFIG_H.
8174
8175 1999-04-18 Jesse Thilo <jthilo@gnu.org>
8176
8177 * src/.cvsignore, src/Makefile.am:
8178 Reorganized: sources in `src', documentation in `doc'.
8179
8180 * src/lex.c (literalchar):
8181 fixed the code for escaping double quotes (thanks
8182 Jonathan Czisny.)
8183
8184 1999-04-18 Jesse Thilo <jthilo@gnu.org>
8185
8186 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
8187 Adjusted paths to reflect directory reorganization.
8188
8189 1999-04-18 Jesse Thilo <jthilo@gnu.org>
8190
8191 * doc/.cvsignore, doc/Makefile.am:
8192 Reorganized: sources in `src', documentation in `doc'.
8193
8194 1999-04-18 Jesse Thilo <jthilo@gnu.org>
8195
8196 * configure.in:
8197 Updated AC_INIT file to reflect directory reorganization.
8198
8199 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
8200 Reorganized: sources in `src', documentation in `doc'.
8201
8202 1999-04-13 Jesse Thilo <jthilo@gnu.org>
8203
8204 * src/allocate.c:
8205 Don't declare calloc() and realloc() if not necessary.
8206
8207 1999-04-13 Jesse Thilo <jthilo@gnu.org>
8208
8209 * configure.in, acconfig.h, acinclude.m4:
8210 Don't declare calloc() and realloc() if not necessary.
8211
8212 1999-03-23 Jesse Thilo <jthilo@gnu.org>
8213
8214 * po/.cvsignore: Added i18n support.
8215
8216 1999-03-23 Jesse Thilo <jthilo@gnu.org>
8217
8218 * acconfig.h, configure.in, Makefile.am:
8219 Added i18n support.
8220
8221 1999-03-22 Jesse Thilo <jthilo@gnu.org>
8222
8223 * src/bison.s1: Fixed #line numbers.
8224
8225 1999-03-15 Jesse Thilo <jthilo@gnu.org>
8226
8227 * po/es.po, po/fr.po, po/nl.po, po/de.po:
8228 Added PO files from Translation Project.
8229
8230 1999-03-03 Jesse Thilo <jthilo@gnu.org>
8231
8232 * Makefile.am:
8233 Added support for non-ANSI compilers (ansi2knr).
8234
8235 1999-02-16 Jesse Thilo <jthilo@gnu.org>
8236
8237 * configure.in: Bumped version number to 1.27.
8238
8239 * Makefile.am:
8240 Added `bison.simple' to list of files removed by `make distclean'.
8241
8242 1999-02-12 Jesse Thilo <jthilo@gnu.org>
8243
8244 * src/files.c, src/files.h:
8245 Defined locations of parser files in config.h instead of Makefile.
8246
8247 1999-02-12 Jesse Thilo <jthilo@gnu.org>
8248
8249 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
8250 Defined locations of parser files in config.h instead of Makefile.
8251
8252 1999-02-09 Jesse Thilo <jthilo@gnu.org>
8253
8254 * Makefile.am:
8255 Removed inappropriate use of $< macro.
8256
8257 1999-02-05 Jesse Thilo <jthilo@gnu.org>
8258
8259 * po/Makefile.in.in, po/POTFILES.in:
8260 Add `po' directory skeleton.
8261
8262 1999-01-27 Jesse Thilo <jthilo@gnu.org>
8263
8264 * README: Document help-bison list.
8265
8266 * configure.in: Add check for mkstemp().
8267
8268 1999-01-20 Jesse Thilo <jthilo@gnu.org>
8269
8270 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
8271 Hush a few compiler warnings.
8272
8273 * src/files.c:
8274 Add tryclose(), which verifies that fclose was successful.
8275 Hush a couple of compiler warnings.
8276
8277 1999-01-20 Jesse Thilo <jthilo@gnu.org>
8278
8279 * Makefile.am, OChangeLog:
8280 ChangeLog is now automatically generated. Include the old version as
8281 OChangeLog.
8282
8283 1999-01-14 Jesse Thilo <jthilo@gnu.org>
8284
8285 * src/gram.h, src/lalr.c, src/lex.c, src/lex.h, src/machine.h, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/state.h, src/symtab.c, src/symtab.h, src/types.h, src/vmsgetargs.c, src/warshall.c, src/allocate.c, src/alloc.h, src/bison.s1, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/files.h, src/getargs.c, src/gram.c, src/LR0.c:
8286 Update FSF address.
8287
8288 1999-01-14 Jesse Thilo <jthilo@gnu.org>
8289
8290 * doc/bison.texinfo: Fix formatting glitch.
8291
8292 * doc/bison.texinfo: Update FSF address.
8293
8294 1999-01-14 Jesse Thilo <jthilo@gnu.org>
8295
8296 * acconfig.h: Update FSF address.
8297
8298 1999-01-08 Jesse Thilo <jthilo@gnu.org>
8299
8300 * src/system.h:
8301 Don't define PACKAGE here, since config.h defines it.
8302
8303 1998-12-30 Jesse Thilo <jthilo@gnu.org>
8304
8305 * src/reader.c: Update copyright date.
8306
8307 * src/main.c:
8308 Ditch sprintf to statically-sized buffers in fatal/warn functions in
8309 favor of output directly to stderr (avoids buffer overruns).
8310
8311 * src/reader.c: Some checks for premature EOF.
8312
8313 * src/allocate.c, src/alloc.h, src/closure.c, src/conflicts.c, src/derives.c, src/getargs.c, src/gram.c, src/lalr.c, src/lex.c, src/LR0.c, src/main.c, src/nullable.c, src/output.c, src/print.c, src/reduce.c, src/symtab.c, src/symtab.h, src/warshall.c:
8314 Use prototypes if the compiler understands them.
8315
8316 * src/files.c: Honor TMPDIR on Unix hosts.
8317 Use prototypes if the compiler understands them.
8318
8319 * src/reader.c:
8320 Fix a couple of buffer overrun bugs.
8321 Use prototypes if the compiler understands them.
8322
8323 * src/system.h: Include unistd.h and ctype.h.
8324 Use #ifdef instead of #if for NLS symbols.
8325
8326 1998-12-30 Jesse Thilo <jthilo@gnu.org>
8327
8328 * doc/bison.texinfo:
8329 Delete comment "consider using @set for edition number, etc..." since
8330 we now are doing so.
8331
8332 1998-12-30 Jesse Thilo <jthilo@gnu.org>
8333
8334 * configure.in:
8335 Use prototypes if the compiler understands them.
8336
8337 * NEWS: Document 1.26 highlights.
8338
8339 * Makefile.am: Require Automake 1.3 or later.
8340
8341 * acconfig.h:
8342 Use prototypes if the compiler understands them.
8343
8344 1998-12-29 Jesse Thilo <jthilo@gnu.org>
8345
8346 * src/version.c:
8347 Use VERSION symbol from automake for version number.
8348
8349 1998-12-29 Jesse Thilo <jthilo@gnu.org>
8350
8351 * acconfig.h, configure.in, version.cin:
8352 Use VERSION symbol from automake for version number.
8353
8354 1998-11-28 Jesse Thilo <jthilo@gnu.org>
8355
8356 * Makefile.am:
8357 Distribute original version of simple parser (bison.s1), not built
8358 version (bison.simple).
8359
8360 1998-11-28 Jesse Thilo <jthilo@gnu.org>
8361
8362 * doc/bison.texinfo: Add info dir entry.
8363
8364 * doc/bison.texinfo:
8365 Let automake put version number into documentation.
8366
8367 1998-11-26 Jesse Thilo <jthilo@gnu.org>
8368
8369 * src/bison.cld, src/build.com, src/vmshlp.mar:
8370 Add non-RCS files from /gd/gnu/bison.
8371
8372 1998-11-26 Jesse Thilo <jthilo@gnu.org>
8373
8374 * doc/bison.1:
8375 Document the BISON_HAIRY and BISON_SIMPLE variables.
8376
8377 1998-11-25 Jesse Thilo <jthilo@gnu.org>
8378
8379 * src/version.c: Build version.c automatically.
8380
8381 * src/reader.c:
8382 Fix token numbering (used to start at 258, not 257).
8383
8384 * src/system.h: Include config.h.
8385
8386 * src/getargs.c: Update bug report address.
8387
8388 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
8389 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
8390
8391 1998-11-25 Jesse Thilo <jthilo@gnu.org>
8392
8393 * Makefile.am:
8394 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
8395
8396 * configure.in, version.cin:
8397 Build version.c automatically.
8398
8399 * AUTHORS: Add AUTHORS file.
8400
8401 * README: Update bug report address.
8402
8403 * bison.simple:
8404 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
8405
8406 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
8407 Add automake stuff.
8408
8409 1998-11-25 Jesse Thilo <jthilo@gnu.org>
8410
8411 * doc/bison.texinfo: Clean up some formatting.
8412
8413 1998-05-05 Richard Stallman <rms@gnu.org>
8414
8415 * doc/bison.texinfo:
8416 Explain better why to make a pure parser.
8417
8418 1998-01-05 Richard Stallman <rms@gnu.org>
8419
8420 * src/files.c (openfiles):
8421 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
8422 find a temporary directory, if possible. Do not unlink files while
8423 they are open.
8424
8425 1997-08-25 Richard Stallman <rms@gnu.org>
8426
8427 * src/reader.c (stack_offset;):
8428 Change some warni to warns.
8429
8430 * src/lex.c (literalchar): Use warns, not warni.
8431
8432 1997-06-28 Richard Stallman <rms@gnu.org>
8433
8434 * src/bison.s1: Add a Bison version comment.
8435
8436 * src/main.c (fatal, warn, berror):
8437 Use program_name.
8438
8439 1997-06-28 Richard Stallman <rms@gnu.org>
8440
8441 * Makefile.in (bison_version): New variable.
8442 (dist): Use that variable.
8443 (bison.s1): Substitute the Bison version into bison.simple.
8444
8445 * bison.simple: Add a Bison version comment.
8446
8447 1997-06-18 Richard Stallman <rms@gnu.org>
8448
8449 * src/main.c (fatal, warn, berror):
8450 Make error messages standard.
8451 (toomany): Improve error message text.
8452
8453 * src/LR0.c, src/closure.c, src/conflicts.c, src/derives.c, src/files.c, src/lalr.c, src/lex.c, src/nullable.c, src/output.c, src/print.c, src/reader.c, src/reduce.c, src/symtab.c:
8454 new.h renamed to alloc.h.
8455
8456 1997-06-18 Richard Stallman <rms@gnu.org>
8457
8458 * Makefile.in: new.h renamed to alloc.h.
8459
8460 1997-05-24 Richard Stallman <rms@gnu.org>
8461
8462 * src/lex.c (literalchar):
8463 Fix the code for escaping \, " and '.
8464
8465 (lex): Avoid trouble when there are many chars
8466 to discard in a char literal with just several chars in it.
8467
8468 1997-05-17 Richard Stallman <rms@gnu.org>
8469
8470 * src/bison.s1:
8471 Use malloc, if using alloca is troublesome.
8472 (YYSTACK_USE_ALLOCA): New flag macro.
8473 Define it for some systems and compilers.
8474 (YYSTACK_ALLOC): New macro.
8475 (yyparse): Use YYSTACK_ALLOC to allocate stack.
8476 If it was malloc'd, free it.
8477
8478 1997-05-17 Richard Stallman <rms@gnu.org>
8479
8480 * bison.simple:
8481 Use malloc, if using alloca is troublesome.
8482 (YYSTACK_USE_ALLOCA): New flag macro.
8483 Define it for some systems and compilers.
8484 (YYSTACK_ALLOC): New macro.
8485 (yyparse): Use YYSTACK_ALLOC to allocate stack.
8486 If it was malloc'd, free it.
8487
8488 1997-04-23 Richard Stallman <rms@gnu.org>
8489
8490 * src/bison.s1:
8491 (alloca) [__hpux]: Always define as __builtin_alloca.
8492
8493 1997-04-23 Richard Stallman <rms@gnu.org>
8494
8495 * bison.simple:
8496 (alloca) [__hpux]: Always define as __builtin_alloca.
8497
8498 1997-04-22 Richard Stallman <rms@gnu.org>
8499
8500 * src/bison.s1:
8501 [__hpux]: Include alloca.h (right for HPUX 10)
8502 instead of declaring alloca (right for HPUX 9).
8503
8504 * src/bison.s1 (__yy_memcpy):
8505 Declare arg `count' as unsigned int.
8506 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
8507
8508 1997-04-22 Richard Stallman <rms@gnu.org>
8509
8510 * bison.simple:
8511 [__hpux]: Include alloca.h (right for HPUX 10)
8512 instead of declaring alloca (right for HPUX 9).
8513
8514 * bison.simple (__yy_memcpy):
8515 Declare arg `count' as unsigned int.
8516 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
8517
8518 1997-01-03 Richard Stallman <rms@gnu.org>
8519
8520 * src/allocate.c: [__STDC__ or _MSC_VER]:
8521 Declare calloc and realloc to return void *.
8522
8523 1997-01-02 Richard Stallman <rms@gnu.org>
8524
8525 * src/system.h:
8526 [_MSC_VER]: Include stdlib.h and process.h.
8527 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
8528
8529 * src/main.c (main): Return FAILURE as a value.
8530 (printable_version): Declare arg as int, not char.
8531
8532 1997-01-02 Richard Stallman <rms@gnu.org>
8533
8534 * Makefile.in (dist):
8535 Explicitly check for symlinks, and copy them.
8536
8537 1996-12-19 Richard Stallman <rms@gnu.org>
8538
8539 * src/files.c:
8540 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
8541
8542 1996-12-18 Paul Eggert <eggert@gnu.org>
8543
8544 * src/bison.s1 (yyparse):
8545 If __GNUC__ and YYPARSE_PARAM are both defined,
8546 declare yyparse to have a void * argument.
8547
8548 1996-12-18 Paul Eggert <eggert@gnu.org>
8549
8550 * bison.simple (yyparse):
8551 If __GNUC__ and YYPARSE_PARAM are both defined,
8552 declare yyparse to have a void * argument.
8553
8554 1996-12-17 Richard Stallman <rms@gnu.org>
8555
8556 * src/reduce.c (nbits): Add some casts.
8557
8558 1996-08-12 Richard Stallman <rms@gnu.org>
8559
8560 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
8561
8562 1996-08-12 Richard Stallman <rms@gnu.org>
8563
8564 * bison.simple: Test _MSDOS as well as _MSDOS_.
8565
8566 1996-07-31 Richard Stallman <rms@gnu.org>
8567
8568 * src/bison.s1:
8569 [__sun && __i386]: Include alloca.h.
8570
8571 1996-07-31 Richard Stallman <rms@gnu.org>
8572
8573 * bison.simple:
8574 [__sun && __i386]: Include alloca.h.
8575
8576 1996-07-30 Richard Stallman <rms@gnu.org>
8577
8578 * src/bison.s1: Comment change.
8579
8580 * src/bison.s1: Test _MSDOS_, not MSDOS.
8581
8582 1996-07-30 Richard Stallman <rms@gnu.org>
8583
8584 * bison.simple: Comment change.
8585
8586 * bison.simple: Test _MSDOS_, not MSDOS.
8587
8588 1996-06-01 Richard Stallman <rms@gnu.org>
8589
8590 * src/reduce.c, src/reader.c, src/print.c, src/output.c, src/nullable.c, src/lex.c, src/lalr.c, src/getargs.c, src/derives.c, src/conflicts.c, src/closure.c, src/allocate.c:
8591 Insert `_' macro around many string constants.
8592
8593 * src/main.c:
8594 Insert `_' macro around many string constants.
8595
8596 (main): Call setlocale, bindtextdomain and textdomain.
8597
8598 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
8599 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
8600 [ENABLE_NLS]: Include libintl.h.
8601 [ENABLE_NLS] (gettext): Define.
8602 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
8603 (N_, PACKAGE, LOCALEDIR): New macros.
8604
8605 1996-06-01 Richard Stallman <rms@gnu.org>
8606
8607 * POTFILES.in: New file.
8608
8609 * Makefile.in (allocate.o):
8610 Define target explicitly.
8611
8612 * Makefile.in (CFLAGS): Set to @CFLAGS@.
8613 (LDFLAGS): Set to @LDFLAGS@.
8614 (configure): Run autoconf only if preceding `cd' succeeds.
8615 (bison.s1): Redirect output to temporary file then move the
8616 temporary to the target, rather than redirecting directly to bison.s1.
8617 (clean): Remove config.status and config.log.
8618 (distclean): Don't remove config.status here.
8619
8620 1996-05-12 Richard Stallman <rms@gnu.org>
8621
8622 * src/bison.s1:
8623 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
8624
8625 1996-05-12 Richard Stallman <rms@gnu.org>
8626
8627 * bison.simple:
8628 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
8629
8630 1996-05-11 Richard Stallman <rms@gnu.org>
8631
8632 * src/bison.s1 (__yy_memcpy):
8633 Really reorder the args, as was supposedly done on Feb 14 1995.
8634 (yyparse): Calls changed accordingly.
8635
8636 1996-05-11 Richard Stallman <rms@gnu.org>
8637
8638 * Makefile.in (dist): Don't use $(srcdir).
8639
8640 * bison.simple (__yy_memcpy):
8641 Really reorder the args, as was supposedly done on Feb 14 1995.
8642 (yyparse): Calls changed accordingly.
8643
8644 1996-01-27 Richard Stallman <rms@gnu.org>
8645
8646 * src/output.c (output_rule_data):
8647 Test YYERROR_VERBOSE in the conditional
8648 around the definition of ttyname.
8649
8650 1995-12-29 Richard Stallman <rms@gnu.org>
8651
8652 * src/bison.s1:
8653 Fix line numbers in #line commands.
8654
8655 1995-12-29 Richard Stallman <rms@gnu.org>
8656
8657 * bison.simple:
8658 Fix line numbers in #line commands.
8659
8660 1995-12-27 Richard Stallman <rms@gnu.org>
8661
8662 * src/bison.s1 (YYPARSE_PARAM_DECL):
8663 In C++, make it always null.
8664 (YYPARSE_PARAM_ARG): New macro.
8665 (yyparse): Use YYPARSE_PARAM_ARG.
8666
8667 1995-12-27 Richard Stallman <rms@gnu.org>
8668
8669 * bison.simple (YYPARSE_PARAM_DECL):
8670 In C++, make it always null.
8671 (YYPARSE_PARAM_ARG): New macro.
8672 (yyparse): Use YYPARSE_PARAM_ARG.
8673
8674 1995-11-29 Richard Stallman <rms@gnu.org>
8675
8676 * doc/bison.texinfo:
8677 Describe literal string tokens, %raw, %no_lines, %token_table.
8678
8679 1995-11-29 Daniel Hagerty <hag@gnu.org>
8680
8681 * doc/bison.texinfo: Fixed update date
8682
8683 1995-10-16 Richard Stallman <rms@gnu.org>
8684
8685 * src/version.c: Version 1.25.
8686
8687 1995-10-16 Richard Stallman <rms@gnu.org>
8688
8689 * NEWS: *** empty log message ***
8690
8691 1995-10-16 Richard Stallman <rms@gnu.org>
8692
8693 * doc/bison.1, doc/bison.rnh:
8694 Add new options.
8695
8696 1995-10-15 Richard Stallman <rms@gnu.org>
8697
8698 * src/vmsgetargs.c, src/getargs.c:
8699 Added -n, -k, and -raw switches.
8700 (noparserflag, toknumflag, rawtoknumflag): New variables.
8701
8702 * src/symtab.h (SALIAS):
8703 New #define for adding aliases to %token.
8704 (struct bucket): Added `alias' field.
8705
8706 * src/reduce.c (reduce_grammar):
8707 Revise error message.
8708 (print_notices): Remove final `.' from error message.
8709
8710 * src/reader.c (reader_output_yylsp):
8711 New function.
8712 (readgram): Use `#if 0' around code that accepted %command
8713 inside grammar rules: The documentation doesn't allow it,
8714 and it will fail since the %command processors scan for the next %.
8715 (parse_token_decl): Extended the %token
8716 declaration to allow a multi-character symbol as an alias.
8717 (parse_thong_decl): New function.
8718 (read_declarations): Added %thong declarations.
8719 (read_declarations): Handle NOOP to deal with allowing
8720 % declarations as another means to specify the flags.
8721 (readgram): Allow %prec prior to semantics embedded in a rule.
8722 (skip_to_char, read_declarations, copy_definition)
8723 (parse_token_decl, parse_start_decl, parse_type_decl)
8724 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
8725 (get_type_name, copy_guard, copy_action, readgram)
8726 (get_type, packsymbols): Revised most error messages.
8727 Changed `fatal' to `warnxxx' to avoid aborting for error.
8728 Revised and use multiple warnxxx functions to avoid using VARARGS1.
8729 (read_declarations): Improve the error message for
8730 an invalid character. Do not abort.
8731 (read_declarations, copy_guard, copy_action): Use
8732 printable_version to avoid unprintable characters in printed output.
8733 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
8734 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
8735 Allow the type of a non-terminal can be given
8736 more than once, as long as all specifications give the same type.
8737
8738 * src/output.c:
8739 (output_headers, output_trailers, output, output_gram)
8740 (output_rule_data): Implement noparserflag variable.
8741 Implement toknumflag variable.
8742 (output): Call reader_output_yylsp to output LTYPESTR.
8743
8744 * src/main.c (main):
8745 If reader sees an error, don't process the grammar.
8746 (fatals): Updated to not use VARARGS1.
8747 (printable_version, int_to_string, warn, warni, warns, warnss)
8748 (warnsss): New error reporting functions. Avoid abort for error.
8749
8750 * src/lex.h:
8751 Added THONG and NOOP for alias processing.
8752 Added SETOPT for the new code that allows setting options with %flags.
8753
8754 * src/lex.c:
8755 Include getopt.h. Add some extern decls.
8756 (safegetc): New function to deal with EOF gracefully.
8757 (literalchar); new function to deal with reading \ escapes.
8758 (lex): Use literalchar.
8759 (lex): Implemented "..." tokens.
8760 (literalchar, lex, parse_percent_token): Made tokenbuffer
8761 always contain the token. This includes growing the token
8762 buffer while reading an integer.
8763 (parse_percent_token): Replaced if-else statement with percent_table.
8764 (parse_percent_token): Added % declarations as another
8765 way to specify the flags -n, -l, and -r. Also added hooks for
8766 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
8767 major changes to files.c.
8768 (lex) Retain in the incoming stream a character following
8769 an incorrect '/'.
8770 (skip_white_space, lex): Revised most error messages
8771 and changed fatal to warn to avoid aborting.
8772 (percent_table): Added %thong declarations.
8773
8774 * src/gram.h: Comment changes.
8775
8776 * src/files.c (openfiles, open_extra_files, done):
8777 Add faction flag
8778 and actfile file. Handle noparserflag. Both for -n switch.
8779
8780 * src/conflicts.c (resolve_sr_conflict):
8781 Remove use of alloca.
8782
8783 1995-06-01 Jim Meyering <meyering@gnu.org>
8784
8785 * doc/bison.texinfo: *** empty log message ***
8786
8787 1995-05-06 Richard Stallman <rms@gnu.org>
8788
8789 * src/bison.s1: Comment change.
8790
8791 1995-05-06 Richard Stallman <rms@gnu.org>
8792
8793 * bison.simple: Comment change.
8794
8795 1995-05-03 Richard Stallman <rms@gnu.org>
8796
8797 * src/version.c: Version now 1.24.
8798
8799 * src/bison.s1: Change distribution terms.
8800
8801 * src/version.c: Version now 1.23.
8802
8803 1995-05-03 Richard Stallman <rms@gnu.org>
8804
8805 * doc/bison.texinfo:
8806 Rewrite "Conditions for Using Bison".
8807 Update version to 1.24.
8808
8809 1995-05-03 Richard Stallman <rms@gnu.org>
8810
8811 * bison.simple: Change distribution terms.
8812
8813 1995-02-23 Richard Stallman <rms@gnu.org>
8814
8815 * src/files.c: Test __VMS_POSIX as well as VMS.
8816
8817 1995-02-14 Jim Meyering <meyering@gnu.org>
8818
8819 * src/bison.s1 (__yy_memcpy):
8820 Renamed from __yy_bcopy to avoid
8821 confusion. Reverse FROM and TO arguments to be consistent with
8822 those of memcpy.
8823
8824 1995-02-14 Jim Meyering <meyering@gnu.org>
8825
8826 * bison.simple (__yy_memcpy):
8827 Renamed from __yy_bcopy to avoid
8828 confusion. Reverse FROM and TO arguments to be consistent with
8829 those of memcpy.
8830
8831 1994-11-10 David J. MacKenzie <djm@gnu.org>
8832
8833 * NEWS: reformat
8834
8835 * NEWS: New file.
8836
8837 * Makefile.in (DISTFILES): Include NEWS.
8838
8839 * Makefile.in (DISTFILES):
8840 Include install-sh, not install.sh.
8841
8842 * configure.in: Update to Autoconf v2 macro names.
8843
8844 1994-10-05 David J. MacKenzie <djm@gnu.org>
8845
8846 * Makefile.in: fix typo
8847
8848 * Makefile.in (prefix, exec_prefix):
8849 Let configure set them.
8850
8851 1994-09-28 David J. MacKenzie <djm@gnu.org>
8852
8853 * Makefile.in: Set datadir to $(prefix)/share.
8854
8855 1994-09-15 Richard Stallman <rms@gnu.org>
8856
8857 * src/bison.s1:
8858 Update copyright notice and GPL version.
8859
8860 1994-09-15 Richard Stallman <rms@gnu.org>
8861
8862 * bison.simple:
8863 Update copyright notice and GPL version.
8864
8865 1994-07-12 Richard Stallman <rms@gnu.org>
8866
8867 * src/reduce.c, src/reader.c:
8868 entered into RCS
8869
8870 1994-05-05 David J. MacKenzie <djm@gnu.org>
8871
8872 * Makefile.in: entered into RCS
8873
8874 1994-03-26 Richard Stallman <rms@gnu.org>
8875
8876 * src/bison.s1: entered into RCS
8877
8878 1994-03-26 Richard Stallman <rms@gnu.org>
8879
8880 * bison.simple: entered into RCS
8881
8882 1994-03-25 Richard Stallman <rms@gnu.org>
8883
8884 * src/main.c: entered into RCS
8885
8886 1994-03-24 Richard Stallman <rms@gnu.org>
8887
8888 * src/conflicts.c: entered into RCS
8889
8890 1994-01-02 Richard Stallman <rms@gnu.org>
8891
8892 * Makefile.in: *** empty log message ***
8893
8894 1993-11-21 Richard Stallman <rms@gnu.org>
8895
8896 * src/bison.s1: *** empty log message ***
8897
8898 1993-11-21 Richard Stallman <rms@gnu.org>
8899
8900 * doc/bison.texinfo: entered into RCS
8901
8902 * doc/bison.texinfo: *** empty log message ***
8903
8904 1993-11-21 Richard Stallman <rms@gnu.org>
8905
8906 * bison.simple: *** empty log message ***
8907
8908 1993-10-25 David J. MacKenzie <djm@gnu.org>
8909
8910 * doc/bison.texinfo: *** empty log message ***
8911
8912 1993-10-19 Richard Stallman <rms@gnu.org>
8913
8914 * src/bison.s1: *** empty log message ***
8915
8916 1993-10-19 Richard Stallman <rms@gnu.org>
8917
8918 * bison.simple: *** empty log message ***
8919
8920 1993-10-14 Richard Stallman <rms@gnu.org>
8921
8922 * src/bison.s1: *** empty log message ***
8923
8924 1993-10-14 Richard Stallman <rms@gnu.org>
8925
8926 * bison.simple: *** empty log message ***
8927
8928 1993-09-14 David J. MacKenzie <djm@gnu.org>
8929
8930 * doc/bison.texinfo: *** empty log message ***
8931
8932 1993-09-13 Noah Friedman <friedman@gnu.org>
8933
8934 * Makefile.in: *** empty log message ***
8935
8936 1993-09-10 Richard Stallman <rms@gnu.org>
8937
8938 * src/conflicts.c: *** empty log message ***
8939
8940 * src/system.h: entered into RCS
8941
8942 1993-09-10 Richard Stallman <rms@gnu.org>
8943
8944 * doc/bison.1: entered into RCS
8945
8946 1993-09-06 Noah Friedman <friedman@gnu.org>
8947
8948 * src/version.c: entered into RCS
8949
8950 1993-09-06 Noah Friedman <friedman@gnu.org>
8951
8952 * Makefile.in: *** empty log message ***
8953
8954 1993-07-30 David J. MacKenzie <djm@gnu.org>
8955
8956 * Makefile.in: *** empty log message ***
8957
8958 1993-07-24 Richard Stallman <rms@gnu.org>
8959
8960 * src/bison.s1: *** empty log message ***
8961
8962 1993-07-24 Richard Stallman <rms@gnu.org>
8963
8964 * bison.simple: *** empty log message ***
8965
8966 1993-07-08 David J. MacKenzie <djm@gnu.org>
8967
8968 * Makefile.in: *** empty log message ***
8969
8970 1993-07-04 Richard Stallman <rms@gnu.org>
8971
8972 * src/bison.s1: *** empty log message ***
8973
8974 1993-07-04 Richard Stallman <rms@gnu.org>
8975
8976 * bison.simple: *** empty log message ***
8977
8978 1993-06-26 David J. MacKenzie <djm@gnu.org>
8979
8980 * src/getargs.c: entered into RCS
8981
8982 1993-06-26 David J. MacKenzie <djm@gnu.org>
8983
8984 * doc/bison.texinfo: *** empty log message ***
8985
8986 * doc/bison.1: New file.
8987
8988 1993-06-25 Richard Stallman <rms@gnu.org>
8989
8990 * src/getargs.c: New file.
8991
8992 1993-06-16 Richard Stallman <rms@gnu.org>
8993
8994 * src/bison.s1: *** empty log message ***
8995
8996 1993-06-16 Richard Stallman <rms@gnu.org>
8997
8998 * bison.simple: *** empty log message ***
8999
9000 1993-06-03 Richard Stallman <rms@gnu.org>
9001
9002 * src/bison.s1: New file.
9003
9004 1993-06-03 Richard Stallman <rms@gnu.org>
9005
9006 * doc/bison.texinfo: *** empty log message ***
9007
9008 1993-06-03 Richard Stallman <rms@gnu.org>
9009
9010 * bison.simple: New file.
9011
9012 1993-05-19 Richard Stallman <rms@gnu.org>
9013
9014 * doc/bison.texinfo: New file.
9015
9016 1993-05-07 Noah Friedman <friedman@gnu.org>
9017
9018 * Makefile.in: *** empty log message ***
9019
9020 1993-04-28 Noah Friedman <friedman@gnu.org>
9021
9022 * src/reader.c: *** empty log message ***
9023
9024 1993-04-23 Noah Friedman <friedman@gnu.org>
9025
9026 * src/alloc.h: entered into RCS
9027
9028 1993-04-20 David J. MacKenzie <djm@gnu.org>
9029
9030 * src/version.c: *** empty log message ***
9031
9032 * src/files.c, src/allocate.c:
9033 entered into RCS
9034
9035 * src/reader.c: *** empty log message ***
9036
9037 * src/lex.c: entered into RCS
9038
9039 * src/conflicts.c: New file.
9040
9041 * src/symtab.c: entered into RCS
9042
9043 * src/alloc.h: New file.
9044
9045 * src/LR0.c: entered into RCS
9046
9047 1993-04-18 Noah Friedman <friedman@gnu.org>
9048
9049 * src/reader.c: New file.
9050
9051 * src/version.c: *** empty log message ***
9052
9053 1993-04-18 Noah Friedman <friedman@gnu.org>
9054
9055 * Makefile.in: *** empty log message ***
9056
9057 1993-04-17 Noah Friedman <friedman@gnu.org>
9058
9059 * Makefile.in: *** empty log message ***
9060
9061 1993-04-15 Richard Stallman <rms@gnu.org>
9062
9063 * src/main.c, src/files.c:
9064 New file.
9065
9066 1993-04-15 Noah Friedman <friedman@gnu.org>
9067
9068 * configure.in: entered into RCS
9069
9070 * configure.in: *** empty log message ***
9071
9072 * configure.in: New file.
9073
9074 1993-04-14 Richard Stallman <rms@gnu.org>
9075
9076 * Makefile.in: New file.
9077
9078 1993-04-13 Richard Stallman <rms@gnu.org>
9079
9080 * src/version.c: New file.
9081
9082 1993-03-25 Richard Stallman <rms@gnu.org>
9083
9084 * src/output.c: entered into RCS
9085
9086 1992-09-25 Richard Stallman <rms@gnu.org>
9087
9088 * configure.bat: entered into RCS
9089
9090 1992-06-22 Richard Stallman <rms@gnu.org>
9091
9092 * src/vmsgetargs.c: entered into RCS
9093
9094 1992-06-22 Richard Stallman <rms@gnu.org>
9095
9096 * doc/bison.rnh: entered into RCS
9097
9098 1992-04-20 David J. MacKenzie <djm@gnu.org>
9099
9100 * README: entered into RCS
9101
9102 1992-01-22 Richard Stallman <rms@gnu.org>
9103
9104 * src/machine.h: entered into RCS
9105
9106 1991-12-21 Richard Stallman <rms@gnu.org>
9107
9108 * src/lalr.c, src/closure.c:
9109 entered into RCS
9110
9111 1991-12-20 Richard Stallman <rms@gnu.org>
9112
9113 * src/state.h: entered into RCS
9114
9115 1991-12-18 Richard Stallman <rms@gnu.org>
9116
9117 * src/print.c, src/nullable.c, src/derives.c:
9118 entered into RCS
9119
9120 1991-11-03 David J. MacKenzie <djm@gnu.org>
9121
9122 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
9123 entered into RCS
9124
9125 1988-09-09 Richard Stallman <rms@gnu.org>
9126
9127 * src/bison.hairy: entered into RCS
9128
9129 1987-12-16 Richard Stallman <rms@gnu.org>
9130
9131 * REFERENCES: entered into RCS
9132 -----
9133
9134 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
9135
9136 This file is part of GNU Bison.
9137
9138 GNU Bison is free software; you can redistribute it and/or modify
9139 it under the terms of the GNU General Public License as published by
9140 the Free Software Foundation; either version 2, or (at your option)
9141 any later version.
9142
9143 GNU Bison is distributed in the hope that it will be useful,
9144 but WITHOUT ANY WARRANTY; without even the implied warranty of
9145 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9146 GNU General Public License for more details.
9147
9148 You should have received a copy of the GNU General Public License
9149 along with GNU Bison; see the file COPYING. If not, write to
9150 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
9151 Boston, MA 02111-1307, USA.