]> git.saurik.com Git - bison.git/blob - ChangeLog
10cfebb7662008ea195c2f207e97ea6fb878b948
[bison.git] / ChangeLog
1 2001-12-05 Akim Demaille <akim@epita.fr>
2
3 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
4 what it was!).
5 * src/warshall.h: Remove accidental duplication of the content.
6
7
8 2001-12-05 Akim Demaille <akim@epita.fr>
9
10 * src/closure.c (set_fderives): De-obfuscate.
11
12
13 2001-12-05 Akim Demaille <akim@epita.fr>
14
15 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
16
17
18 2001-12-05 Akim Demaille <akim@epita.fr>
19
20 * src/closure.c (set_firsts): De-obfuscate.
21
22 2001-12-05 Akim Demaille <akim@epita.fr>
23
24 * src/output.c (action_row): De-obfuscate
25 using the good o' techniques: arrays not pointers, variable
26 locality, BITISSET, RESETBIT etc.
27
28
29 2001-12-05 Akim Demaille <akim@epita.fr>
30
31 Pessimize the code to simplify it: from now on, all the states
32 have a valid SHIFTS, which NSHIFTS is possibly 0.
33
34 * src/LR0.c (shifts_new): Be global and move to..
35 * src/state.c, src/state.h: here.
36 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
37 * src/print_graph: Adjust.
38
39 2001-12-05 Akim Demaille <akim@epita.fr>
40
41 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
42 * src/conflicts.c: Use it.
43 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
44 incorrectly ``simplified''.
45
46 2001-12-05 Akim Demaille <akim@epita.fr>
47
48 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
49 using the good o' techniques: arrays not pointers, variable
50 locality, BITISSET, RESETBIT etc.
51
52 2001-12-05 Akim Demaille <akim@epita.fr>
53
54 * src/state.h (SHIFT_SYMBOL): New.
55 * src/conflicts.c: Use it to deobfuscate.
56
57 2001-12-05 Akim Demaille <akim@epita.fr>
58
59 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
60 (print_reductions): De-obfuscate using the good o' techniques:
61 arrays not pointers, variable locality, BITISSET.
62
63 2001-12-05 Akim Demaille <akim@epita.fr>
64
65 * src/conflicts.c (print_reductions): Arrays, not pointers.
66 Use BITISSET.
67
68 2001-12-05 Akim Demaille <akim@epita.fr>
69
70 * src/conflicts.c (print_reductions): Pessimize, but clarify.
71
72 2001-12-05 Akim Demaille <akim@epita.fr>
73
74 * src/conflicts.c (print_reductions): Improve variable locality.
75
76 2001-12-05 Akim Demaille <akim@epita.fr>
77
78 * src/conflicts.c (print_reductions): Pessimize, but clarify.
79
80 2001-12-05 Akim Demaille <akim@epita.fr>
81
82 * src/conflicts.c (print_reductions): Improve variable locality.
83
84 2001-12-05 Akim Demaille <akim@epita.fr>
85
86 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
87 * src/lalr.c: Use them.
88
89 2001-12-05 Akim Demaille <akim@epita.fr>
90
91 * src/LR0.c (augment_automaton): Formatting changes.
92 Better variable locality.
93
94 2001-12-05 Akim Demaille <akim@epita.fr>
95
96 * src/lalr.c (matrix_print): New.
97 (transpose): Use it.
98 Use arrays instead of pointers.
99
100 2001-12-05 Akim Demaille <akim@epita.fr>
101
102 * src/lalr.c (maxrhs): Move to...
103 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
104 * src/lalr.c (build_relations): Adjust.
105
106 2001-12-05 Akim Demaille <akim@epita.fr>
107
108 * src/lalr.c (transpose): Free the memory allocated to the
109 argument, as it is replaced by the results by the unique caller.
110 (build_relations): Merely invoke transpose: it handles the memory
111 deallocation.
112 Improve variable locality.
113 Avoid variables used as mere abbreviations.
114 (compute_lookaheads): Use arrays instead of pointers.
115
116 2001-12-05 Akim Demaille <akim@epita.fr>
117
118 * src/lalr.c (initialize_F): Improve variable locality.
119 Avoid variables used as mere abbreviations.
120
121 2001-12-05 Akim Demaille <akim@epita.fr>
122
123 * src/derives.c (print_derives): Display the ruleno.
124 * src/lalr.c (initialize_F, transpose): Better variable locality
125 to improve readability.
126 Avoid variables used as mere abbreviations.
127
128 2001-12-05 Akim Demaille <akim@epita.fr>
129
130 * src/lalr.c (traverse): Use arrays instead of pointers.
131
132 2001-12-05 Akim Demaille <akim@epita.fr>
133
134 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
135 the handling of squeue.
136 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
137
138 2001-12-05 Akim Demaille <akim@epita.fr>
139
140 Because useless nonterminals are now kept alive (instead of being
141 `destroyed'), we now sometimes examine them, and store information
142 related to them. Hence we need to know their number, and adjust
143 memory allocations.
144
145 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
146 static.
147 * src/LR0.c (allocate_itemsets): The memory allocated to
148 `symbol_count' was used for two different purpose: once to count
149 the number of occurrences of each symbol, and later reassigned to
150 `shift_symbol', containing the symbol that can be shifted from a
151 given state.
152 Deobfuscate, i.e., allocate, use and free `symbol_count' here
153 only, and...
154 (new_itemsets): Allocate `shift_symbol' here.
155 (allocate_itemsets): symbol_count includes useless nonterminals.
156 Make room for them.
157 (free_storage): Use `free', not `XFREE', for pointers that cannot
158 be null.
159
160 2001-12-05 Akim Demaille <akim@epita.fr>
161
162 * src/nullable.c (set_nullable): Deobfuscate the handling of
163 ritem.
164 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
165
166 2001-12-05 Akim Demaille <akim@epita.fr>
167
168 * src/gram.c, src/gram.h (ritem_print): New.
169 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
170 (This useless function was defined only to work around VMS linkers
171 that can't handle compilation units with variables only).
172 * src/reduce.c (dump_grammar): Use it to trace the construction of
173 ritem.
174
175 2001-12-04 Paul Eggert <eggert@twinsun.com>
176
177 * src/bison.simple (union yyalloc): Change member names
178 to be the same as the stack names.
179 (yyparse): yyptr is now union yyalloc *, not char *.
180 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
181 and may generate better code on some machines.
182 (yystpcpy): Use prototype if __STDC__ is defined, not just
183 if __cplusplus is defined.
184
185 2001-11-30 Akim Demaille <akim@epita.fr>
186
187 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
188 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
189 Gettext doesn't compile cleanly, and dies with -Werror.
190 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
191 Include WARNING_CFLAGS here.
192 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
193 before being defined.
194
195 2001-11-27 Paul Eggert <eggert@twinsun.com>
196
197 * lib/quotearg.h (quotearg_n, quotearg_n_style):
198 First arg is int, not unsigned.
199 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
200 (SIZE_MAX, UINT_MAX): New macros.
201 (quotearg_n_options): Abort if N is negative.
202 Avoid overflow check on hosts where size_t is 64 bits and int
203 is 32 bits, as overflow is impossible there.
204 Fix off-by-one typo that caused unnecessary reallocation.
205
206 2001-11-29 Paul Eggert <eggert@twinsun.com>
207
208 Name space cleanup in generated parser.
209
210 * doc/bison.texinfo (Bison Parser): Discuss system headers
211 and their effect on the user name space.
212
213 * src/bison.simple:
214 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
215 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
216 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
217
218 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
219 on user names when possible.
220
221 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
222 Simplify test for whather <alloca.h> exists.
223
224 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
225
226 (<stdio.h>): Include if YYDEBUG.
227
228 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
229 ! defined (yyoverflow) && ! defined (yymemcpy).
230
231 (yymemcpy, yyparse): Rename local variables as needed so that
232 they all begin with 'yy'.
233
234 (yystrlen, yystpcpy): New functions.
235
236 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
237 All uses changed.
238
239 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
240 instead of relying on string.h functions. Use YYSTACK_ALLOC
241 and YYSTACK_FREE instead of malloc and free.
242
243 2001-11-30 Akim Demaille <akim@epita.fr>
244
245 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
246 before their first uses.
247 (YYBISON, YYPURE): Move to the top of the output.
248
249 2001-11-30 Akim Demaille <akim@epita.fr>
250
251 * tests/reduce.at (Useless Nonterminals): Fix.
252
253 2001-11-30 Akim Demaille <akim@epita.fr>
254
255 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
256 if body instead of `;' to pacify GCC's warnings.
257
258 2001-11-30 Akim Demaille <akim@epita.fr>
259
260 Instead of mapping the LHS of unused rules to -1, keep the LHS
261 valid, but flag the rules as invalid.
262
263 * src/gram.h (rule_t): `useful' is a new member.
264 * src/print.c (print_grammar): Adjust.
265 * src/derives.c (set_derives): Likewise.
266 * src/reader.c (packgram, reduce_output): Likewise.
267 * src/reduce.c (reduce_grammar_tables): Likewise.
268 * tests/reduce.at (Underivable Rules, Useless Rules): New.
269
270 2001-11-30 Akim Demaille <akim@epita.fr>
271
272 * src/reduce.c (reduce_output): Formatting changes.
273 * src/print.c (print_results, print_grammar): Likewise.
274 * tests/regression.at (Rule Line Numbers)
275 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
276
277 2001-11-30 Akim Demaille <akim@epita.fr>
278
279 * src/reduce.c (nonterminals_reduce): Instead of throwing away
280 useless nonterminals, move them at the end of the symbol arrays.
281 (reduce_output): Adjust.
282 * tests/reduce.at (Useless Nonterminals): Adjust.
283
284 2001-11-30 Akim Demaille <akim@epita.fr>
285
286 * src/reduce.c: Various comment/formatting changes.
287 (nonterminals_reduce): New, extracted from...
288 (reduce_grammar_tables): here.
289 (reduce_grammar): Call nonterminals_reduce.
290
291 2001-11-29 Paul Eggert <eggert@twinsun.com>
292
293 * src/bison.simple (YYSTACK_REALLOC): Remove.
294 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
295 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
296 New macros.
297 (union yyalloc): New type.
298 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
299 an arbitrary restriction on hosts where size_t is wider than int.
300
301 (yyparse): Don't dump core if alloca or malloc fails; instead, report
302 a parser stack overflow. Allocate just one block of memory for all
303 three stacks, instead of allocating three blocks; this typically is
304 faster and reduces fragmentation.
305
306 Do not limit the number of items in the stack to a value that fits
307 in 'int', as this is an arbitrary limit on hosts with 64-bit
308 size_t and 32-bit int.
309
310 2001-11-29 Marc Autret <autret_m@epita.fr>
311
312 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
313 of defining YYERROR_VERBOSE.
314 [AT_DATA]: $4 is now out of C declarations in the prologue.
315
316 2001-11-28 Marc Autret <autret_m@epita.fr>
317
318 * src/reader.c (parse_dquoted_param): New.
319 (parse_skel_decl): Use it.
320 * src/lex.h: Add its prototype.
321 * src/lex.c (literalchar): Become not static.
322
323 2001-11-28 Marc Autret <autret_m@epita.fr>
324
325 * src/output.h: And put its extern declaration here.
326 * src/output.c (error_verbose): Define here.
327 (prepare): Echo name modification.
328 * src/getargs.h: Clean its extern declaration.
329 * src/getargs.c (error_verbose_flag): Remove.
330 (getargs): Remove case 'e'.
331 * src/options.c (option_table): 'error-verbose' is now seen as simple
332 percent option.
333 Include output.h.
334
335 * src/reader.c (read_declarations): Remove case tok_include.
336 (parse_include_decl): Remove.
337 * src/lex.h (token_t): Remove tok_include.
338 * src/options.c (option_table): 'include' is now a simple command line
339 option.
340
341 2001-11-28 Marc Autret <autret_m@epita.fr>
342
343 * src/bison.simple: Adjust muscle names.
344 * src/muscle_tab.c (muscle_init): Also rename the muscles.
345 * src/output.c (prepare): s/_/-/ for the muscles names.
346 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
347
348 2001-11-28 Marc Autret <autret_m@epita.fr>
349
350 * src/bison.simple: Fix debug.
351 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
352
353 2001-11-28 Akim Demaille <akim@epita.fr>
354
355 * src/LR0.c (shifts_new): New.
356 (save_shifts, insert_start_shift, augment_automaton): Use it.
357
358 2001-11-28 Akim Demaille <akim@epita.fr>
359
360 * src/closure.c (closure): `b' and `ruleno' denote the same value:
361 keep ruleno only.
362
363 2001-11-28 Akim Demaille <akim@epita.fr>
364
365 * src/closure.c (closure): Instead of looping over word in array
366 then bits in words, loop over bits in array.
367
368 2001-11-28 Akim Demaille <akim@epita.fr>
369
370 * src/closure.c (closure): No longer optimize the special case
371 where all the bits of `ruleset[r]' are set to 0, to make the code
372 clearer.
373
374 2001-11-28 Akim Demaille <akim@epita.fr>
375
376 * src/closure.c (closure): `r' and `c' are new variables, used to
377 de-obfuscate accesses to RULESET and CORE.
378
379 2001-11-28 Akim Demaille <akim@epita.fr>
380
381 * src/reduce.c (reduce_print): Use ngettext.
382 (dump_grammar): Improve the trace accuracy.
383
384 2001-11-28 Akim Demaille <akim@epita.fr>
385
386 * src/reduce.c (dump_grammar): Don't translate trace messages.
387
388 2001-11-28 Akim Demaille <akim@epita.fr>
389
390 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
391 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
392 as all tags are free'ed afterwards.
393 From Enrico Scholz.
394
395 2001-11-27 Paul Eggert <eggert@twinsun.com>
396
397 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
398 use alloca when we didn't want to, and vice versa.
399
400 2001-11-27 Marc Autret <autret_m@epita.fr>
401
402 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
403 initialization.
404 * src/output.c (prepare): Remove its update.
405
406 2001-11-27 Marc Autret <autret_m@epita.fr>
407
408 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
409 Use %error-verbose.
410
411 2001-11-27 Marc Autret <autret_m@epita.fr>
412
413 * src/bison.simple: Remove YYERROR_VERBOSE using.
414 Use %%error_verbose.
415 (yyparse): Likewise.
416 * src/output.c (prepare): Give its final value.
417 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
418 * src/getargs.h: Add its extern declaration.
419 * src/getargs.c (error_verbose_flag): New int.
420 (getargs): Update to catch new case.
421 * src/options.c (option_table): 'error-verbose' is a new option.
422 (shortopts): Update.
423
424 2001-11-27 Akim Demaille <akim@epita.fr>
425
426 * src/system.h: Use intl/libgettext.h.
427 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
428
429 2001-11-27 Akim Demaille <akim@epita.fr>
430
431 * tests/torture.at (Exploding the Stack Size with Malloc):
432 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
433
434 2001-11-27 Akim Demaille <akim@epita.fr>
435
436 * src/files.c: Include error.h.
437 Reported by Hans Aberg.
438
439 2001-11-26 Marc Autret <autret_m@epita.fr>
440
441 * src/reader.c (parse_include_decl): New, not yet implemented.
442 (read_declarations): Add case tok_include.
443 * src/getargs.h (include): Add its extern definition.
444 * src/getargs.c (include): New const char *.
445 (getargs): Add case '-I'.
446 * src/options.c (option_table): Add include as command line and
447 percent option.
448 * src/lex.h (token_t): Add tok_include.
449
450 2001-11-26 Akim Demaille <akim@epita.fr>
451
452 * src/reader.c (readgram): Make sure rules for mid-rule actions
453 have a lineno equal to that of their host rule.
454 Reported by Hans Aberg.
455 * tests/regression.at (Rule Line Numbers): New.
456
457 2001-11-26 Akim Demaille <akim@epita.fr>
458
459 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
460 size_ts.
461
462 2001-11-26 Akim Demaille <akim@epita.fr>
463
464 * src/complain.c, src/complain.h (error): Remove, provided by
465 lib/error.[ch].
466
467 2001-11-26 Akim Demaille <akim@epita.fr>
468
469 * src/reader.c (read_declarations): Don't abort on tok_illegal,
470 issue an error message.
471 * tests/regression.at (Invalid %directive): New.
472 Reported by Hans Aberg.
473
474 2001-11-26 Akim Demaille <akim@epita.fr>
475
476 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
477 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
478
479 2001-11-26 Akim Demaille <akim@epita.fr>
480
481 * src/conflicts.c (conflicts_print): Don't complain at all when
482 there are no reduce/reduce conflicts, and as many shift/reduce
483 conflicts as expected.
484 * tests/regression.at (%expect right): Adjust.
485
486 2001-11-23 Akim Demaille <akim@epita.fr>
487
488 * lib/alloca.c: Update, from fileutils.
489
490 2001-11-23 Akim Demaille <akim@epita.fr>
491
492 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
493
494 2001-11-23 Akim Demaille <akim@epita.fr>
495
496 * src/system.h: Include alloca.h.
497 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
498
499 2001-11-23 Akim Demaille <akim@epita.fr>
500
501 * src/print_graph.c (print_actions): Remove `rule', unused.
502 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
503 pacify GCC's signed < unsigned warnings.
504 * src/closure.c (itemsetsize): Likewise.
505 * src/reader.c (symbol_list_new): Static.
506
507 2001-11-23 Akim Demaille <akim@epita.fr>
508
509 Attaching lineno to buckets is stupid, since only one copy of each
510 symbol is kept, only the line of the first occurrence is kept too.
511
512 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
513 * src/reader.c (rline_allocated): Remove, unused.
514 (symbol_list): Have a `line' member.
515 (symbol_list_new): New.
516 (readgram): Use it.
517 * src/print.c (print_grammar): Output the rule line numbers.
518 * tests/regression.at (Solved SR Conflicts)
519 (Unresolved SR Conflicts): Adjust.
520 Reported by Hans Aberg.
521
522 2001-11-22 Marc Autret <autret_m@epita.fr>
523
524 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
525
526 2001-11-22 Marc Autret <autret_m@epita.fr>
527
528 * src/muscle_tab.c (muscle_init): Remove initialization of
529 skeleton muscle.
530 * src/output.c (output_master_parser): Do it here.
531
532 2001-11-20 Akim Demaille <akim@epita.fr>
533
534 * po/sv.po: New.
535 * configure.in (ALL_LINGUAS): Adjust.
536 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
537 longer contains strings to translate.
538
539 2001-11-19 Akim Demaille <akim@epita.fr>
540
541 * src/conflicts.c (conflicts_print): Add a missing \n.
542
543 2001-11-19 Akim Demaille <akim@epita.fr>
544
545 * src/nullable.c (nullable_print): New.
546 (set_nullable): Call it when tracing.
547 Better locality of variables.
548
549 2001-11-19 Akim Demaille <akim@epita.fr>
550
551 * src/print.c (print_actions): Better locality of variables.
552
553 2001-11-19 Akim Demaille <akim@epita.fr>
554
555 * src/derives.c (print_derives): Fix and enrich.
556 * src/closure.c (print_fderives): Likewise.
557
558 2001-11-19 Akim Demaille <akim@epita.fr>
559
560 * src/closure.c (itemsetend): Remove, replaced with...
561 (itemsetsize): new.
562
563 2001-11-19 Akim Demaille <akim@epita.fr>
564
565 * src/LR0.c (kernel_end): Remove, replaced with...
566 (kernel_size): new.
567
568 2001-11-19 Akim Demaille <akim@epita.fr>
569
570 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
571 to clarify.
572
573 2001-11-19 Akim Demaille <akim@epita.fr>
574
575 * src/closure.c (closure): Use arrays instead of pointers to clarify.
576
577 2001-11-19 Akim Demaille <akim@epita.fr>
578
579 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
580 trace messages.
581 * src/LR0.c: Likewise.
582 (allocate_itemsets): Use arrays instead of pointers to clarify.
583
584 2001-11-19 Akim Demaille <akim@epita.fr>
585
586 * src/getargs.c (statistics_flag): Replace with...
587 (trace_flag): New.
588 (longopts): Accept --trace instead of --statistics.
589 * src/getargs.h, src/options.c: Adjust.
590 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
591 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
592
593 2001-11-19 Akim Demaille <akim@epita.fr>
594
595 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
596 pointers to clarify the code.
597 (save_reductions, save_shifts): Factor common parts of alternatives.
598
599 2001-11-19 Akim Demaille <akim@epita.fr>
600
601 * src/LR0.c (new_state, get_state): Complete TRACE code.
602 * src/closure.c: Include `reader.h' to get `tags', needed by the
603 trace code.
604 Rename the conditional DEBUG as TRACE.
605 Output consistently TRACEs to stderr, not stdout.
606 * src/derives.c: Likewise.
607 * src/reduce.c: (inaccessable_symbols): Using if is better style
608 than goto.
609 Use `#if TRACE' instead of `#if 0' for tracing code.
610
611 2001-11-19 Akim Demaille <akim@epita.fr>
612
613 * src/system.h (LIST_FREE, shortcpy): New.
614 * src/LR0.c: Use them.
615 * src/output.c (free_itemsets, free_reductions, free_shifts):
616 Remove, replaced by LIST_FREE.
617
618 2001-11-19 Akim Demaille <akim@epita.fr>
619
620 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
621 (REDUCTIONS_ALLOC): New.
622 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
623 allocation.
624
625 2001-11-19 Akim Demaille <akim@epita.fr>
626
627 * src/LR0.c (new_state): Complete trace code.
628 * src/nullable.c (set_nullable): Don't translate traces.
629
630 2001-11-19 Akim Demaille <akim@epita.fr>
631
632 * src/print_graph.c (print_core): Better locality of variables.
633 * src/print.c (print_core): Likewise.
634
635 2001-11-19 Akim Demaille <akim@epita.fr>
636
637 * src/vcg.c: You do the output, so you are responsible of the
638 handling of VCG syntax, in particular: use quotearg.
639 * src/print_graph.c: Don't.
640 (print_actions): Don't output the actions as part of the nodes,
641 since that's the job of the edges.
642 (print_state): Don't output by hand: fill the node description,
643 and ask for its output.
644
645 2001-11-19 Akim Demaille <akim@epita.fr>
646
647 * src/bison.simple (yyparse): When verbosely reporting an error,
648 no longer put additional quotes around token names.
649 * tests/calc.at: Adjust.
650
651 2001-11-19 Akim Demaille <akim@epita.fr>
652
653 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
654 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
655 * src/output.c: Adjust.
656
657 2001-11-19 Akim Demaille <akim@epita.fr>
658
659 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
660 (rule_t): this.
661 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
662
663 2001-11-19 Akim Demaille <akim@epita.fr>
664
665 * src/gram.h (rule_t): New.
666 (rule_table): New.
667 (rrhs, rlhs): Remove, part of state_t.
668 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
669 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
670 * src/reader.c, src/reduce.c: Adjust.
671
672 2001-11-19 Akim Demaille <akim@epita.fr>
673
674 * src/reader.c (symbols_output): New, extracted from...
675 (packsymbols): Here.
676 (reader): Call it.
677
678 2001-11-19 Akim Demaille <akim@epita.fr>
679
680 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
681 (maxrhs): this new function.
682
683 2001-11-19 Akim Demaille <akim@epita.fr>
684
685 * src/lalr.c (F): New macro to access the variable F.
686 Adjust.
687
688 2001-11-19 Akim Demaille <akim@epita.fr>
689
690 * src/lalr.h (LA): New macro to access the variable LA.
691 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
692 * src/lalr.c: Adjust.
693
694 2001-11-19 Akim Demaille <akim@epita.fr>
695
696 * src/lalr.c (initialize_LA): Only initialize LA. Let...
697 (set_state_table): handle the `lookaheads' members.
698
699 2001-11-19 Akim Demaille <akim@epita.fr>
700
701 * src/lalr.h (lookaheads): Removed array, whose contents is now
702 a member of...
703 (state_t): this structure.
704 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
705 Adjust.
706
707 2001-11-19 Akim Demaille <akim@epita.fr>
708
709 * src/lalr.h (consistent): Removed array, whose contents is now
710 a member of...
711 (state_t): this structure.
712 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
713 Adjust.
714
715 2001-11-19 Akim Demaille <akim@epita.fr>
716
717 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
718 contents are now members of...
719 (state_t): this structure.
720 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
721 Adjust.
722
723 2001-11-19 Akim Demaille <akim@epita.fr>
724
725 * src/lalr.h (state_t): New.
726 (state_table): Be a state_t * instead of a core **.
727 (accessing_symbol): Remove, part of state_t.
728 * src/lalr.c: Adjust.
729 (set_accessing_symbol): Merge into...
730 (set_state_table): this.
731 * src/print_graph.c, src/conflicts.c: Adjust.
732
733 2001-11-14 Akim Demaille <akim@epita.fr>
734
735 * tests/calc.at, tests/output.at, tests/regression.at,
736 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
737 now the tests are run in private dirs, therefore AC_CLEANUP and
738 family can be simplified to 0-ary.
739 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
740 use abs. path to find config.h.
741 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
742 stderr, there can be way too much random noise.
743 Instead pass -Werror to GCC and rely on the exit status.
744 Reported by Wolfram Wagner.
745
746 2001-11-14 Akim Demaille <akim@epita.fr>
747
748 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
749 defined only if yyoverflow is defined, to avoid `warning: unused
750 variable `yyvs1''.
751 Reported by The Test Suite.
752
753 2001-11-14 Akim Demaille <akim@epita.fr>
754
755 * src/print.c: Include reduce.h.
756 Reported by Hans Aberg.
757
758 2001-11-14 Akim Demaille <akim@epita.fr>
759
760 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
761 Revert a previous patch: these are really const.
762 * src/conflicts.c (conflict_report): Additional useless pair of
763 braces to pacify GCC's warnings for `if () if () {} else {}'.
764 * src/lex.c (parse_percent_token): Replace equal_offset with
765 arg_offset.
766 arg is const.
767 Be sure to strdup `arg' when used, since there is no reason for
768 token_buffer not to change.
769
770 2001-11-14 Akim Demaille <akim@epita.fr>
771
772 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
773 definition.
774 * src/main.c (main): Use them.
775 Suggested by Hans Aberg.
776
777 2001-11-12 Akim Demaille <akim@epita.fr>
778
779 * src/system.h (ngettext): Now that we use ngettext, be sure to
780 provide a default definition when NLS are not used.
781
782 2001-11-12 Akim Demaille <akim@epita.fr>
783
784 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
785 Use @kbd to denote user input.
786 (Language and Grammar): ANSIfy the example.
787 Adjust its layout for info/notinfo.
788 (Location Tracking Calc): Output error messages to stderr.
789 Output locations in a more GNUtically correct way.
790 Fix a couple of Englishos.
791 Adjust @group/@end group pairs.
792
793 2001-11-12 Akim Demaille <akim@epita.fr>
794
795 %expext was not functioning at all.
796
797 * src/conflicts.c (expected_conflicts): Set to -1.
798 (conflict_report): Use ngettext.
799 (conflicts_print): Check %expect and make its violation an error.
800 * doc/bison.texinfo (Expect Decl): Adjust.
801 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
802 * tests/regression.at (%expect not enough, %expect right)
803 (%expect too much): New.
804
805 2001-11-12 Akim Demaille <akim@epita.fr>
806
807 * tests/regression.at (Conflicts): Rename as...
808 (Unresolved SR Conflicts): this.
809 (Solved SR Conflicts): New.
810
811 2001-11-12 Akim Demaille <akim@epita.fr>
812
813 * src/reduce.c (print_results): Rename as...
814 (reduce_output): This.
815 Output to OUT, passed as argument, instead of output_obstack.
816 (dump_grammar): Likewise.
817 (reduce_free): New.
818 Also free V1.
819 (reduce_grammar): No longer call reduce_output, since...
820 * src/print.c (print_results): do it.
821 * src/main.c (main): Call reduce_free;
822
823 2001-11-12 Akim Demaille <akim@epita.fr>
824
825 * src/conflicts.c (print_reductions): Accept OUT as argument.
826 Output to it, not to output_obstack.
827 * src/print.c (print_actions): Adjust.
828
829 2001-11-12 Akim Demaille <akim@epita.fr>
830
831 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
832 the result instead of using...
833 (src_total, rrc_total, src_count, rrc_count): Remove.
834 (any_conflicts): Remove.
835 (print_conflicts): Split into...
836 (conflicts_print, conflicts_output): New.
837 * src/conflicts.h: Adjust.
838 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
839 * src/print.c (print_grammar): Issue `\n' between two rules.
840 * tests/regression.at (Conflicts): New.
841 Reported by Tom Lane.
842
843 2001-11-12 Akim Demaille <akim@epita.fr>
844
845 * tests/regression.at (Invalid input): Remove, duplicate with
846 ``Invalid input: 1''.
847
848 2001-11-12 Akim Demaille <akim@epita.fr>
849
850 * tests/torture.at (AT_DATA_STACK_TORTURE)
851 (Exploding the Stack Size with Alloca)
852 (Exploding the Stack Size with Malloc): New.
853
854 2001-11-12 Akim Demaille <akim@epita.fr>
855
856 * src/bison.simple (YYSTACK_REALLOC): New.
857 (yyparse) [!yyoverflow]: Use it and free the old stack.
858 Reported by Per Allansson.
859
860 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
861
862 * src/bison.simple: Define type yystype instead of YYSTYPE, and
863 define CPP macro, which substitute YYSTYPE by yystype.
864 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
865 with yyltype/YYLTYPE. This allows inclusion of the generated
866 header within the parser if the compiler, such as GGC, accepts
867 multiple equivalent #defines.
868 From Akim.
869
870 2001-11-05 Akim Demaille <akim@epita.fr>
871
872 * src/reader.c (symbols_output): New, extracted from...
873 (packsymbols): here.
874 (reader): Adjust.
875
876 2001-11-05 Akim Demaille <akim@epita.fr>
877
878 * src/lex.c (parse_percent_token): s/quotearg/quote/.
879
880 2001-11-05 Akim Demaille <akim@epita.fr>
881
882 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
883 pattern.
884
885 2001-11-05 Akim Demaille <akim@epita.fr>
886
887 * src/options.h (struct option_table_struct): set_flags is void*.
888 * src/options.c (longopts): Support `--output' and `%output'.
889 (usage): Adjust.
890 * src/lex.h (tok_setopt): Remove, replaced with...
891 (tok_intopt, tok_stropt): these new guys.
892 * src/lex.c (getopt.h): Not needed.
893 (token_buffer, unlexed_token_buffer): Not const.
894 (percent_table): Promote `-' over `_' in directive names.
895 Active `%name-prefix', `file-prefix', and `output'.
896 (parse_percent_token): Accept possible arguments to directives.
897 Promote `-' over `_' in directive names.
898
899 2001-11-04 Akim Demaille <akim@epita.fr>
900
901 * doc/bison.texinfo (Decl Summary): Split the list into
902 `directives for grammars' and `directives for bison'.
903 Sort'em.
904 Add description of `%name-prefix', `file-prefix', and `output'.
905 Promote `-' over `_' in directive names.
906 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
907 Simplify the description of `--name-prefix'.
908 Promote `-' over `_' in directive names.
909 Promote `--output' over `--output-file'.
910 Fix the description of `--defines'.
911 * tests/output.at: Exercise %file-prefix and %output.
912
913 2001-11-02 Akim Demaille <akim@epita.fr>
914
915 * doc/refcard.tex: Update.
916
917 2001-11-02 Akim Demaille <akim@epita.fr>
918
919 * src/symtab.h (SUNDEF): New.
920 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
921 stand for `uninitialized', instead of 0.
922 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
923 * src/lex.c (lex): Adjust.
924
925 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
926 Number it 0.
927 Let yylex return it instead of a plain 0.
928 Reported by Dick Streefland.
929
930 2001-11-02 Akim Demaille <akim@epita.fr>
931
932 * tests/regression.at (Mixing %token styles): New test.
933
934 2001-11-02 Akim Demaille <akim@epita.fr>
935
936 * src/reader.c (parse_thong_decl): Formatting changes.
937 (token_translations_init): New, extracted from...
938 (packsymbols): Here.
939 Adjust.
940
941 2001-11-01 Akim Demaille <akim@epita.fr>
942
943 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
944 Check that `9foo.y' produces correct cpp guards.
945 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
946 guards.
947 Reported by Wwp.
948
949 2001-11-01 Akim Demaille <akim@epita.fr>
950
951 * tests/regression.at (Invalid input: 2): New.
952 * src/lex.c (unlexed_token_buffer): New.
953 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
954 too.
955 Reported by Wwp.
956
957 2001-11-01 Akim Demaille <akim@epita.fr>
958
959 * tests/calc.at: Catch up with 1.30.
960 * configure.in: Bump to 1.49a.
961 Adjust to newer Autotest.
962
963 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
964
965 * src/conflicts.c: Move global variables rrc_total and src_total ...
966 (print_conflicts): here.
967 * src/output.c (output): Free global variable user_toknums.
968 * src/lex.c (token_obstack): Become static.
969
970 2001-10-18 Akim Demaille <akim@epita.fr>
971
972 * tests/atlocal.in (GCC): Add.
973 * tests/calc.at: s/m4_match/m4_bmatch/.
974 s/m4_patsubst/m4_bpatsubst/.
975 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
976 * configure.in: AC_SUBST(GCC).
977
978 2001-10-14 Marc Autret <autret_m@epita.fr>
979
980 * src/options.c (create_long_option_table): Fix.
981
982 2001-10-10 Akim Demaille <akim@epita.fr>
983
984 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
985
986 2001-10-04 Akim Demaille <akim@epita.fr>
987
988 * src/reader.c (parse_union_decl): Push the caracters in
989 union_obstack, not attrs_obstack.
990
991 2001-10-04 Akim Demaille <akim@epita.fr>
992
993 Merge in the branch 1.29.
994
995 * src/reader.c (packsymbols): Use a temporary obstack for
996 `%%tokendef', since output_stack is already used elsewhere.
997
998 2001-10-02 Akim Demaille <akim@epita.fr>
999
1000 Bump 1.29d.
1001
1002 2001-10-02 Akim Demaille <akim@epita.fr>
1003
1004 Version 1.29c.
1005
1006 2001-10-02 Akim Demaille <akim@epita.fr>
1007
1008 * tests/regression.at (Invalid CPP headers): New.
1009 From Alexander Belopolsky.
1010 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1011
1012 2001-10-02 Akim Demaille <akim@epita.fr>
1013
1014 * tests/regression.at (Invalid input): New.
1015 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1016 Reported by Shura.
1017
1018 2001-10-02 Akim Demaille <akim@epita.fr>
1019
1020 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1021
1022 2001-10-02 Akim Demaille <akim@epita.fr>
1023
1024 * src/output.c (output_parser): Assert `skeleton'.
1025 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1026 systems.
1027 From Shura.
1028
1029 2001-10-01 Marc Autret <autret_m@epita.fr>
1030
1031 * src/lex.h: Echo modifications.
1032 * src/lex.c (unlex): Parameter is now token_t.
1033 From Hans Aberg.
1034
1035 2001-10-01 Marc Autret <autret_m@epita.fr>
1036
1037 * src/main.c: Include lex.h.
1038 From Hans Aberg.
1039
1040 2001-09-29 Akim Demaille <akim@epita.fr>
1041
1042 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1043
1044 2001-09-28 Akim Demaille <akim@epita.fr>
1045
1046 * tests/testsuite.at: Update to newer Autotest.
1047 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1048
1049 2001-09-27 Akim Demaille <akim@epita.fr>
1050
1051 Position independent wrapper.
1052
1053 * tests/bison: Remove.
1054 * tests/bison.in: New.
1055 * configure.in: Adjust.
1056
1057 2001-09-27 Paul Eggert <eggert@twinsun.com>
1058
1059 Port quotearg fixes from tar 1.13.24.
1060
1061 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1062 tm to be declared.
1063 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1064 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1065
1066 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1067 * m4/mbrtowc.m4: New file.
1068 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1069 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1070
1071 2001-09-27 Akim Demaille <akim@epita.fr>
1072
1073 Bump to 1.29c.
1074
1075 2001-09-27 Akim Demaille <akim@epita.fr>
1076
1077 Version 1.29b.
1078
1079 2001-09-25 Akim Demaille <akim@epita.fr>
1080
1081 * src/system.h: Include `xalloc.h'.
1082 Remove it from the C files.
1083 * src/files.c (output_files): Free the obstacks.
1084 * src/lex.c (init_lex): Rename as...
1085 (lex_init): this.
1086 (lex_free): New.
1087 * src/main.c (main): Use it.
1088
1089 2001-09-24 Marc Autret <autret_m@epita.fr>
1090
1091 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1092 to output informations in fout (FILE*).
1093 (open_graph, close_graph): Likewise.
1094 (output_graph, output_edge, output_node): Likewise.
1095 * src/vcg.h: Update function prototypes.
1096 * src/print_graph.c (print_graph): Open output graph file.
1097 (print_actions): Adjust.
1098 * src/files.h: Remove extern declaration.
1099 * src/files.c: Remove graph_obstack declaration.
1100 (open_files): Remove graph_obstack initialization.
1101 (output_files): Remove graph_obstack saving.
1102
1103 2001-09-24 Marc Autret <autret_m@epita.fr>
1104
1105 * src/files.c (compute_output_file_names): Fix.
1106
1107 2001-09-24 Marc Autret <autret_m@epita.fr>,
1108 Akim Demaille <akim@epita.fr>
1109
1110 * src/reader.c (reader): Remove call to free_symtab ().
1111 * src/main.c (main): Call it here.
1112 Include symtab.h.
1113 * src/conflicts.c (initialize_conflicts): Rename as...
1114 (solve_conflicts): this.
1115 * src/print.c (print_core, print_actions, print_state)
1116 (print_grammar): Dump to a file instead a `output_obstack'.
1117 (print_results): Dump `output_obstack', and then proceed with the
1118 FILE *.
1119 * src/files.c (compute_output_file_names, close_files): New.
1120 (output_files): Adjust.
1121 * src/main.c (main): Adjust.
1122
1123 2001-09-23 Marc Autret <autret_m@epita.fr>
1124
1125 * src/files.c (compute_header_macro): Computes header macro name
1126 from spec_defines_file when given.
1127
1128 2001-09-23 Marc Autret <autret_m@epita.fr>
1129
1130 * src/files.c (output_files): Add default extensions.
1131
1132 2001-09-22 Akim Demaille <akim@epita.fr>
1133
1134 * src/conflicts.c (finalize_conflicts): Rename as...
1135 (free_conflicts): this.
1136
1137 2001-09-22 Akim Demaille <akim@epita.fr>
1138
1139 * src/gram.c (gram_free): Rename back as...
1140 (dummy): this.
1141 (output_token_translations): Free `token_translations'.
1142 * src/symtab.c (free_symtab): Free the tag field.
1143
1144 2001-09-22 Akim Demaille <akim@epita.fr>
1145
1146 Remove `translations' as it is always set to true.
1147
1148 * src/gram.h: Adjust.
1149 * src/reader.c (packsymbols, parse_token_decl): Adjust
1150 * src/print.c (print_grammar): Adjust.
1151 * src/output.c (output_token_translations): Adjust.
1152 * src/lex.c (lex): Adjust.
1153 * src/gram.c: Be sure the set pointers to NULL.
1154 (dummy): Rename as...
1155 (gram_free): this.
1156
1157 2001-09-22 Akim Demaille <akim@epita.fr>
1158
1159 * configure.in: Invoke AM_LIB_DMALLOC.
1160 * src/system.h: Use dmalloc.
1161 * src/LR0.c: Be sure to have pointers initialized to NULL.
1162 (allocate_itemsets): Allocate kernel_items only if needed.
1163
1164 2001-09-22 Akim Demaille <akim@epita.fr>
1165
1166 * configure.in: Bump to 1.29b.
1167 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1168 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1169 need xmalloc.c in calc.y.
1170 From Pascal Bart.
1171
1172 2001-09-21 Akim Demaille <akim@epita.fr>
1173
1174 Version 1.29a.
1175 * Makefile.maint, config/config.guess, config/config.sub,
1176 * config/missing: Update from masters.
1177 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1178 upon package.m4.
1179 * configure.in (ALL_LINGUAS): Add `tr'.
1180
1181 2001-09-21 Akim Demaille <akim@epita.fr>
1182
1183 * tests/Makefile.am (package.m4): Move to...
1184 ($(srcdir)/$(TESTSUITE)): here.
1185
1186 2001-09-20 Akim Demaille <akim@epita.fr>
1187
1188 * src/complain.c: No longer try to be standalone: use system.h.
1189 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1190 * src/complain.h: Likewise.
1191 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1192 Remove the unused variable `n'.
1193 From Albert Chin-A-Young.
1194
1195 2001-09-18 Marc Autret <autret_m@epita.fr>
1196
1197 * doc/bison.1: Update.
1198 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1199 descriptions.
1200 (Option Cross Key): Update.
1201 Add --graph.
1202
1203 2001-09-18 Marc Autret <autret_m@epita.fr>
1204
1205 * tests/regression.at: New test (comment in %union).
1206
1207 2001-09-18 Marc Autret <autret_m@epita.fr>
1208
1209 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1210 do that.
1211 Reported by Keith Browne.
1212
1213 2001-09-18 Marc Autret <autret_m@epita.fr>
1214
1215 * tests/output.at: Add tests for --defines and --graph.
1216
1217 2001-09-18 Marc Autret <autret_m@epita.fr>
1218
1219 * tests/output.at: Removes tests of %{header,src}_extension features.
1220
1221 2001-09-18 Akim Demaille <akim@epita.fr>
1222
1223 * tests/Makefile.am (package.m4): New.
1224 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1225 (_AT_CHECK_CALC_ERROR): Likewise.
1226 Factor the `, ' part of verbose error messages.
1227
1228 2001-09-18 Marc Autret <autret_m@epita.fr>
1229
1230 * src/getargs.c (longopts): Declare --defines and --graph as options
1231 with optional arguments.
1232 * src/files.h: Add extern declarations.
1233 * src/files.c (spec_graph_file, spec_defines_file): New.
1234 (output_files): Update.
1235 Remove CPP-outed code.
1236
1237 2001-09-18 Marc Autret <autret_m@epita.fr>
1238
1239 Turn off %{source,header}_extension feature.
1240
1241 * src/files.c (compute_exts_from_gf): Update.
1242 (compute_exts_from_src): Update.
1243 (output_files): CPP-out useless code.
1244 * src/files.h: Remove {header,source}_extension extern declarations.
1245 * src/reader.c (parse_dquoted_param): CPP-out.
1246 (parse_header_extension_decl): Remove.
1247 (parse_source_extension_decl): Remove.
1248 (read_declarations): Remove cases tok_{hdrext,srcext}.
1249 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1250 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1251
1252 2001-09-10 Akim Demaille <akim@epita.fr>
1253
1254 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1255 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1256 (AT_CHECK_OUTPUT): this.
1257 Merely check ls' exit status, its output is useless.
1258
1259 2001-09-10 Akim Demaille <akim@epita.fr>
1260
1261 * tests/calc.at: Use m4_match.
1262 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1263
1264 2001-09-10 Marc Autret <autret_m@epita.fr>,
1265 Akim Demaille <akim@epita.fr>
1266
1267 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1268 enum color_e.
1269 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1270 to `normal'.
1271 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1272 * src/lex.h: Adjust prototype.
1273 (token_t): Add `tok_undef'.
1274 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1275 (parse_percent_token): Now returns token_t.
1276 Add default statement in switch.
1277 (lex): Separate `c' as an input variable, from the token_t result
1278 part.
1279 (unlexed): Is a token_t.
1280
1281 2001-09-10 Akim Demaille <akim@epita.fr>
1282
1283 * configure.in: Bump to 1.29a.
1284
1285 2001-09-07 Akim Demaille <akim@epita.fr>
1286
1287 Version 1.29.
1288
1289 2001-08-30 Akim Demaille <akim@epita.fr>
1290
1291 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1292 * m4/atconfig.m4: Remove.
1293 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1294 * tests/bison: New.
1295 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1296 m4_if, m4_patsubst, and m4_regexp.
1297 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1298 `input' file instead of echo.
1299
1300 2001-08-29 Akim Demaille <akim@epita.fr>
1301
1302 Bump to 1.28e.
1303
1304 2001-08-29 Akim Demaille <akim@epita.fr>
1305
1306 Version 1.28d.
1307
1308 2001-08-29 Paul Eggert <eggert@twinsun.com>
1309
1310 * src/bison.simple (yyparse): Don't take the address of an
1311 item before the start of an array, as that doesn't conform to
1312 the C Standard.
1313
1314 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1315
1316 * doc/bison.texinfo (Location Tracking Calc): New node.
1317
1318 2001-08-29 Paul Eggert <eggert@twinsun.com>
1319
1320 * src/output.c (output): Do not define const, as this now
1321 causes more problems than it cures.
1322
1323 2001-08-29 Akim Demaille <akim@epita.fr>
1324
1325 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1326 the nodes.
1327 Be sure to tag the `detailmenu'.
1328
1329 2001-08-29 Akim Demaille <akim@epita.fr>
1330
1331 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1332 download in a tmp dir.
1333
1334 2001-08-28 Marc Autret <autret_m@epita.fr>
1335
1336 * config/depcomp: New file.
1337
1338 2001-08-28 Marc Autret <autret_m@epita.fr>
1339
1340 * doc/bison.1 (mandoc): Adjust.
1341 From Juan Manuel Guerrero.
1342
1343 2001-08-28 Marc Autret <autret_m@epita.fr>
1344
1345 * src/print_graph.c (print_state): Fix.
1346
1347 2001-08-27 Marc Autret <autret_m@epita.fr>
1348
1349 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1350 char * members.
1351 Echo modifications to the functions prototypes.
1352 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1353
1354 2001-08-27 Marc Autret <autret_m@epita.fr>
1355
1356 * src/vcg.c: Include `xalloc.h'.
1357 (add_colorentry): New.
1358 (add_classname): New.
1359 (add_infoname): New.
1360 * src/vcg.h: Add new prototypes.
1361
1362 2001-08-27 Akim Demaille <akim@epita.fr>
1363
1364 * Makefile.maint: Sync. again with CVS Autoconf.
1365
1366 2001-08-27 Akim Demaille <akim@epita.fr>
1367
1368 * Makefile.maint: Formatting changes.
1369 (po-update, cvs-update, update): New targets.
1370 (AMTAR): Remove.
1371
1372 2001-08-27 Akim Demaille <akim@epita.fr>
1373
1374 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1375 * Makefile.maint: Sync. with CVS Autoconf.
1376
1377 2001-08-27 Marc Autret <autret_m@epita.fr>
1378
1379 * src/vcg.h (struct infoname_s): New.
1380 (struct colorentry_s): New.
1381 (graph_s): New fields {vertical,horizontal}_order in structure.
1382 Add `infoname' field.
1383 Add `colorentry' field;
1384 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
1385 (G_HORIZONTAL_ORDER): New.
1386 (G_INFONAME): New.
1387 (G_COLORENTRY): New.
1388 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
1389 Add output of `infoname'.
1390 Add output of `colorentry'.
1391
1392 2001-08-27 Marc Autret <autret_m@epita.fr>
1393
1394 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
1395 This one shadowed a global parameter.
1396
1397 2001-08-24 Marc Autret <autret_m@epita.fr>
1398
1399 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
1400 instead of `unsigned'.
1401 (print_state): Do not call obstack_object_size () in obstack_grow ()
1402 to avoid macro variables shadowing.
1403
1404 2001-08-23 Marc Autret <autret_m@epita.fr>
1405
1406 * src/lex.c (percent_table): Typo: s/naem/name/.
1407 Add graph option.
1408 Normalize new options declarations.
1409
1410 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
1411
1412 * tests/suite.at: Exercise %header_extension and %source_extension.
1413
1414 2001-08-16 Marc Autret <autret_m@epita.fr>
1415
1416 * src/reader.c (parse_dquoted_param): New.
1417 (parse_header_extension_decl): Use it.
1418 (parse_source_extension_decl): Likewise.
1419
1420 2001-08-16 Marc Autret <autret_m@epita.fr>
1421
1422 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
1423 (get_xxxx_str): Use assert () instead of complain ().
1424 Remove return invokations in default cases.
1425 (get_decision_str): Modify default behaviour. Remove second argument.
1426 Echo modifications on calls.
1427 (output_graph): Fix.
1428
1429 2001-08-16 Marc Autret <autret_m@epita.fr>
1430
1431 * src/getargs.c (usage): Update with ``-g, --graph''.
1432
1433 2001-08-16 Marc Autret <autret_m@epita.fr>
1434
1435 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
1436 (Option Cross Key): Likewise.
1437 * doc/bison.1: Update.
1438
1439 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
1440
1441 * src/output.c (output_master_parser): Don't finish action_obstack.
1442 (output_parser): Don't care about the muscle action, here.
1443 (prepare): Copy the action_obstack in the action muscle.
1444 (output): Free action_obstack.
1445
1446 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1447
1448 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
1449 will contain `%union' declaration.
1450 (parse_union_decl): Delete #line directive output.
1451 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
1452 informations about %union.
1453 (parse_union_decl): Copy the union_obstack in the muscle stype.
1454 * src/bison.simple: Add new #line directive.
1455 Add typdef %%stype YYSTYPE.
1456
1457 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
1458
1459 * src/bison.simple: Add new `#line' directive.
1460
1461 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
1462
1463 * src/bison.simple: New `#line' directive.
1464 * src/output.c (output_parser): Support new dynamic muscle input_line.
1465
1466 2001-09-22 Marc Autret <autret_m@epita.fr>
1467
1468 * src/output.c (output_master_parser): New.
1469 (output_parser): Be more re-entrant.
1470
1471 2001-09-21 Marc Autret <autret_m@epita.fr>
1472
1473 * src/reader.c (copy_definition, parse_union_decl): Update and use
1474 `linef' muscle.
1475 (copy_action): Likewise.
1476 Use obstack_1grow ().
1477 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
1478
1479 2001-09-21 Marc Autret <autret_m@epita.fr>
1480
1481 * src/options.c (option_table): Adjust.
1482 * src/lex.c (parse_percent_token): Fix.
1483
1484 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1485
1486 * src/options.c (symtab.h): Include it, need by lex.h.
1487
1488 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
1489
1490 * src/lex.c (parse_percent_token): Change type of variable `tx', which
1491 is now an option_table_struct*.
1492 (option_strcmp): New function option_strcmp.
1493 (parse_percent_token): Call option_strcmp.
1494 * src/getargs.c (xalloc.h, options.h): Include it.
1495 (getargs): Call create_long_option_table.
1496 (getargs): Free longopts at the end of the function.
1497 (shortopts): Move in options.c.
1498 * src/options.c (create_long_option_table): New function. Convert
1499 information from option_table to option structure.
1500 * src/reader.c (options.h): Include it.
1501
1502 * src/Makefile.am: Adjust.
1503 * src/options.c (option_table): Create from longopts and percent_table.
1504 * src/getargs.c (longopts): Delete.
1505 * src/lex.c (struct percent_table_struct): Delete.
1506 (percent_table): Delete.
1507 (options.h): Include it.
1508 * src/options.c: Create.
1509 * src/options.h: Create.
1510 Declare enum opt_access_e.
1511 Define struct option_table_struct.
1512
1513 2001-09-20 Marc Autret <autret_m@epita.fr>
1514
1515 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
1516 sections of Bison.
1517
1518 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
1519
1520 * src/bison.simple: s/%%filename/%%skeleton.
1521 * src/muscle_tab.c (getargs.h): Include it.
1522 (muscle_init): Insert new muscle skeleton.
1523
1524 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
1525
1526 * src/output.c (output_parser): Delete unused variable actions_dumped.
1527
1528 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
1529
1530 * src/output.c (output): Delete call to reader_output_yylsp.
1531 * src/reader.c (reader): Likewise.
1532 * src/reader.h: Delete declaration of reader_output_yylsp.
1533
1534 2001-09-02 Marc Autret <autret_m@epita.fr>
1535
1536 * src/reader.c: Include muscle_tab.h.
1537 (parse_union_decl): Update.
1538 (parse_macro_decl): Rename parse_muscle_decl.
1539 Update to use renamed functions and variable.
1540 (read_declarations, copy_action, read_additionnal_code, : Updated
1541 with correct variables and functions names.
1542 (packsymbols, reader): Likewise.
1543
1544 * src/reader.h (muscle_obstack): Extern declaration update.
1545
1546 * src/output.c: Include muscle_tab.h
1547 In all functions using macro_insert, change by using muscle_insert ().
1548 (macro_obstack): Rename muscle_obstack.
1549 Echo modifications in the whole file.
1550 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
1551 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
1552 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
1553
1554 * src/muscle_tab.h: Update double inclusion macros.
1555 (macro_entry_s): Rename muscle_entry_s.
1556 Update prototypes.
1557
1558 * src/muscle_tab.c: Include muscle_tab.h.
1559 Rename macro_tabble to muscle_table.
1560 (mhash1, mhash2, mcmp): Use muscle_entry.
1561 (macro_init): Rename muscle_init. Update.
1562 (macro_insert): Rename muscle_insert. Update.
1563 (macro_find): Rename muscle_find. Update.
1564
1565 * src/main.c: Include muscle_tab.h.
1566 (main): Call muscle_init ().
1567 * src/Makefile.am (bison_SOURCES): Echo modifications.
1568
1569 2001-09-02 Marc Autret <autret_m@epita.fr>
1570
1571 Now the files macro_tab.[ch] are named muscle_tab.[ch].
1572
1573 * src/muscle_tab.c, src/muscle_tab.h: Add files.
1574
1575 2001-09-02 Marc Autret <autret_m@epita.fr>
1576
1577 * src/macrotab.c, src/macrotab.h: Remove.
1578
1579 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
1580
1581 * src/reader.c (copy_guard): Use muscle to specify the `#line'
1582 filename.
1583
1584 2001-09-01 Marc Autret <autret_m@epita.fr>
1585
1586 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
1587 to an explicit value to activate the feature. We do it here.
1588
1589 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1590
1591 * src/output.c (prepare): Delete the `filename' muscule insertion.
1592 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
1593 (parse_union_decl): Likewise.
1594 * src/macrotab.c (macro_init): Initialize filename by infile.
1595
1596 2001-08-31 Marc Autret <autret_m@epita.fr>
1597
1598 * src/bison.simple (YYLSP_NEEDED): New definition.
1599 * src/output.c (prepare): Add macro insertion of `locations_flag'
1600
1601 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1602
1603 * src/output.c (prepare): Delete insertion of previous muscles,
1604 and insert the `prefix' muscles.
1605 * src/macrotab.c (macro_init): Likewise.
1606 (macro_init): Initialization prefix directive by `yy'.
1607 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
1608 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
1609 yylval, yydebug, yyerror, yynerrs and yyparse.
1610 New directive `#define' to substitute yydebug, ... with option
1611 name_prefix.
1612
1613 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1614
1615 * src/main.c (main): Standardize.
1616 * src/output.c (output_table_data, output_parser): Likewise.
1617 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
1618
1619 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
1620
1621 * src/reader.c (read_additionnal_code): Rename %%user_code to
1622 %%epilogue.
1623 * src/output.c (output): Rename %%declarations to %%prologue.
1624 * src/bison.simple: Echo modifications.
1625
1626 2001-08-31 Marc Autret <autret_m@epita.fr>
1627
1628 * src/reader.c (readgram): CleanUp.
1629 (output_token_defines): Likewise.
1630 (packsymbols): Likewise.
1631 (reader): Likewise.
1632 * src/output.c (output): CPP-out useless code.
1633
1634 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
1635
1636 * src/reader.c (reader): Delete obsolete call to function
1637 output_trailers and output_headers.
1638 * src/output.h: Remove obsolete functions prototypes of output_headers
1639 and output_trailers.
1640
1641 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
1642
1643 * src/main.c: Include macrotab.h.
1644 * src/macrotab.h (macro_entry_s): Constify fields.
1645 Adjust functions prototypes.
1646 * src/macrotab.c (macro_insert): Constify key and value.
1647 (macro_find): Constify key.
1648 (macro_insert): Include 'xalloc.h'
1649 (macro_insert): Use XMALLOC.
1650 (macro_find): Constify return value.
1651 * src/output.c (output_table_data): Rename table to table_data.
1652 (output_parser): Constify macro_key, macro_value.
1653
1654 2001-08-30 Marc Autret <autret_m@epita.fr>
1655
1656 * src/reader.c (parse_skel_decl): New.
1657 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
1658 * src/lex.h (token_t): New token `tok_skel'.
1659 * src/lex.c (percent_table): Add skeleton option entry.
1660 Standardize.
1661
1662 2001-08-29 Marc Autret <autret_m@epita.fr>
1663
1664 * src/bison.simple: Add %%user_code directive at the end.
1665 * src/reader.c (read_additionnal_code): New.
1666 (reader): Use it.
1667 * src/output.c (output_program): Remove.
1668 (output): Update.
1669
1670 2001-08-28 Marc Autret <autret_m@epita.fr>
1671
1672 * src/output.c (output_actions): Clean up.
1673 (output_gram): CPP-out useless code.
1674 * src/reader.c (reader): Clean up, CPP-out useless code.
1675
1676 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
1677
1678 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
1679 directive.
1680 * src/bison.simple: Add `%%definitions'.
1681
1682 2001-08-28 Marc Autret <autret_m@epita.fr>
1683
1684 * config/depcomp: New file.
1685
1686 2001-08-27 Paul Eggert <eggert@twinsun.com>
1687
1688 * src/bison.simple (yyparse): Don't take the address of an
1689 item before the start of an array, as that doesn't conform to
1690 the C Standard.
1691
1692 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1693
1694 * src/output.c (output): Remove the initialization of the macro
1695 obstack. It was done too late here.
1696
1697 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
1698 completely wrong.
1699 (reader): Initialize the macro obstack here, since we need it to grow
1700 '%define' directives.
1701
1702 * src/reader.h: Declare the macro obstack as extern.
1703
1704 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
1705
1706 * src/output.c (output_parser): Fix. Store single '%' characters in
1707 the output obstack instead of throwing them away.
1708
1709 2001-08-27 Akim Demaille <akim@epita.fr>
1710
1711 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
1712
1713 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1714
1715 * lib/Makefile.am: Adjust.
1716
1717 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1718
1719 * src/bison.simple: Update and add '%%' directives.
1720
1721 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1722
1723 * src/reader.c (reader): Remove calls to 'output_headers' and
1724 'output_trailers'. Remove some C output.
1725 (readgram): Disable a piece of code that was writing a default
1726 definition for 'YYSTYPE'.
1727 (reader_output_yylsp): Remove.
1728 (packsymbols): Output token defintions to a macro.
1729 (copy_definition): Disable C output.
1730
1731 * src/reader.c (parse_macro_decl): New function used to parse macro
1732 declarations.
1733 (copy_string2): Put the body of copy_string into this new function.
1734 Add a parameter to let the caller choose whether he wants to copy the
1735 string delimiters or not.
1736 (copy_string): Be a simple call to copy_string2 with the last argument
1737 bound to true.
1738 (read_declarations): Add case for macro definition.
1739 (copy_identifier): New.
1740 (parse_macro_decl): Read macro identifiers using copy_identifier
1741 rather than lex.
1742
1743 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1744
1745 * src/output.c (prepare): Add prefixed names.
1746 (output_parser): Output semantic actions.
1747 (output_parser): Fix bug on '%%line' directives.
1748
1749 * src/output.c (output_headers): Remove. The C code printed by this
1750 function should now be in the skeletons.
1751 (output_trailers): Remove.
1752 (output): Disable call to 'reader_output_yylsp'.
1753 (output_rule_data): Do not output tables to the table obstack.
1754
1755 * src/output.c: Remove some C dedicated output.
1756 Improve the use of macro and output obstacks.
1757 (output_defines): Remove.
1758
1759 * src/output.c (output_token_translations): Associate 'translate'
1760 table with a macro. No output to the table obstack.
1761 (output_gram): Same for 'rhs' and 'prhs'.
1762 (output_stos): Same for 'stos'.
1763 (output_rule_data): Same for 'r1' and 'r2'.
1764 (token_actions): Same for 'defact'.
1765 (goto_actions): Same for 'defgoto'.
1766 (output_base): Same for 'pact' and 'pgoto'.
1767 (output_table): Same for 'table'.
1768 (output_check): Same for 'check'.
1769
1770 * src/output.c (output_table_data): New function.
1771 (output_short_table): Remove.
1772 (output_short_or_char_table): Remove.
1773
1774 * src/output.c (output_parser): Replace most of the skeleton copy code
1775 with something new. Skeletons are now processed character by character
1776 rather than line by line, and Bison looks for '%%' macros. This is the
1777 first step in making Bison's output process (a lot) more flexible.
1778 (output_parser): Use the macro table.
1779
1780 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1781
1782 * src/main.c (main): Initialize the macro table.
1783
1784 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1785
1786 * src/lex.c (percent_table): Add tok_define.
1787 * src/lex.h: Add tok_define.
1788
1789 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1790
1791 * src/macrotab.c: New file.
1792 * src/macrotab.h: New file.
1793 * src/Makefile.am: Update.
1794
1795 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
1796
1797 * lib/hash.c: New file.
1798 * lib/hash.h: New file.
1799 * lib/Makefile.am: Update.
1800
1801 2001-08-15 Akim Demaille <akim@epita.fr>
1802
1803 Version 1.28c.
1804
1805 2001-08-15 Marc Autret <autret_m@epita.fr>
1806
1807 * src/reader.c (readgram): Indent output macro YYSTYPE.
1808 (packsymbols): Likewise.
1809 (output_token_defines): Likewise.
1810 * src/files.c: Standardize.
1811 (compute_header_macro): New.
1812 (defines_obstack_save): New. Use compute_header_macro.
1813 (output_files): Update. Use defines_obstack_save.
1814
1815 2001-08-15 Akim Demaille <akim@epita.fr>
1816
1817 * doc/bison.texinfo (Table of Symbols): Document
1818 YYSTACK_USE_ALLOCA.
1819
1820 2001-08-15 Akim Demaille <akim@epita.fr>
1821
1822 * missing: Update from CVS Automake.
1823 * config/config.guess, config/config.sub, config/texinfo.tex:
1824 Update from gnu.org.
1825
1826 2001-08-15 Akim Demaille <akim@epita.fr>
1827
1828 * Makefile.maint: Sync with CVS Autoconf.
1829
1830 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
1831
1832 * doc/bison.texinfo: Include GNU Free Documentation License from
1833 `fdl.texi'.
1834 * doc/fdl.texi: Add to package.
1835
1836 2001-08-14 Marc Autret <autret_m@epita.fr>
1837
1838 Turn on %{source,header}_extension features.
1839
1840 * src/lex.c (percent_table): Un-CPP out header_extension and
1841 source_extension.
1842 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
1843 (compute_exts_from_src): Remove conditions. It restores priorities
1844 between options.
1845
1846 2001-08-14 Marc Autret <autret_m@epita.fr>
1847
1848 * src/files.c (compute_base_names): Add extensions computing when
1849 `--file-prefix' used.
1850 Standardize function calls.
1851
1852 2001-08-13 Marc Autret <autret_m@epita.fr>
1853
1854 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
1855 defining it (defined but null disables alloca).
1856
1857 2001-08-13 Marc Autret <autret_m@epita.fr>
1858
1859 * src/bison.simple (_yy_memcpy): CPP reformat.
1860
1861 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
1862
1863 * tests/atconfig.in (CPPFLAGS): Fix.
1864
1865 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
1866
1867 * doc/bison.texinfo: Include GNU General Public License from
1868 `gpl.texi'.
1869 * doc/gpl.texi: Add to package.
1870
1871 2001-08-10 Marc Autret <autret_m@epita.fr>
1872
1873 * src/print_graph.h: Fix.
1874 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1875
1876 2001-08-10 Akim Demaille <akim@epita.fr>
1877
1878 * src/system.h: Provide default declarations for stpcpy, strndup,
1879 and strnlen.
1880
1881 2001-08-10 Robert Anisko <anisko_r@epita.fr>
1882
1883 * doc/bison.texinfo (Locations): Update @$ stuff.
1884
1885 2001-08-09 Robert Anisko <anisko_r@epita.fr>
1886
1887 * src/bison.simple (YYLLOC_DEFAULT): Update.
1888 (yyparse): Adjust.
1889
1890 2001-08-08 Marc Autret <autret_m@epita.fr>
1891
1892 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
1893 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1894 Reported by Fabrice Bauzac.
1895
1896 2001-08-08 Marc Autret <autret_m@epita.fr>
1897
1898 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1899 * src/vcg.c (output_node): Fix.
1900 * src/vcg.h: Cleanup.
1901 * src/print_graph.c: Add comments.
1902 (node_output_size): New global variable. Simplify the formatting of
1903 the VCG graph output.
1904 (print_actions): Unused code is now used. It notifies the final state
1905 and no action states in the VCG graph. It also give the reduce actions.
1906 The `shift and goto' edges are red and the `go to state' edges are
1907 blue.
1908 Get the current node name and node_obstack by argument.
1909 (node_obstack): New variable.
1910 (print_state): Manage node_obstack.
1911 (print_core): Use node_obstack given by argument.
1912 A node is not only computed here but in print_actions also.
1913 (print_graph): CPP out useless code instead of commenting it.
1914
1915 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
1916
1917 * tests/atconfig.in (CPPFLAGS): Fix.
1918
1919 2001-08-07 Akim Demaille <akim@epita.fr>
1920
1921 * src/print_graph.c (quote): New.
1922 (print_core): Use it.
1923
1924 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
1925
1926 * src/vcg.c (complain.h): Include it.
1927 Unepitaize `return' invocations.
1928 [NDEBUG] (main): Remove.
1929 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
1930 * src/files.c (open_files): Initialize graph_obstack.
1931 * src/print_graph.c (print_actions): CPP out useless code.
1932 (print_core): Don't output the last `\n' in labels.
1933 Use `quote'.
1934 * src/files.c (output_files): Output the VCG file.
1935 * src/main.c (main): Invoke print_graph ();
1936
1937 2001-08-06 Marc Autret <autret_m@epita.fr>
1938
1939 Automaton VCG graph output.
1940 Using option ``-g'' or long option ``--graph'', you can generate
1941 a gram_filename.vcg file containing a VCG description of the LALR (1)
1942 automaton of your grammar.
1943
1944 * src/main.c: Call to print_graph() function.
1945 * src/getargs.h: Update.
1946 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1947 (graph_flag): New flag.
1948 (longopts): Update.
1949 (getargs): Add case `g'.
1950 * src/files.c (graph_obstack): New obstack struct.
1951 (open_files): Initialize new obstack.
1952 (output_files): Saves graph_obstack if required.
1953 * src/files.h (graph_obstack): New extern declaration.
1954 * src/Makefile.am: Add new source files.
1955
1956 2001-08-06 Marc Autret <autret_m@epita.fr>
1957
1958 * src/print_graph.c, src/print_graph.h (graph): New.
1959 * src/vcg.h: New file.
1960 * src/vcg.c: New file, VCG graph handling.
1961
1962 2001-08-06 Marc Autret <autret_m@epita.fr>
1963
1964 Add of %source_extension and %header_extension which specify
1965 the source or/and the header output file extension.
1966
1967 * src/files.c (compute_base_names): Remove initialisation of
1968 src_extension and header_extension.
1969 (compute_exts_from_gf): Update.
1970 (compute_exts_from_src): Update.
1971 (output_files): Update.
1972 * src/reader.c (parse_header_extension_decl): New.
1973 (parse_source_extension_decl): New.
1974 (read_declarations): New case statements for the new tokens.
1975 * src/lex.c (percent_table): Add entries for %source_extension
1976 and %header_extension.
1977 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1978
1979 2001-08-06 Marc Autret <autret_m@epita.fr>
1980
1981 * configure.in: Bump to 1.28c.
1982 * doc/bison.texinfo: Texinfo thingies.
1983
1984 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
1985
1986 * tests/atconfig.in (CPPFLAGS): Add.
1987 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1988
1989 2001-08-03 Akim Demaille <akim@epita.fr>
1990
1991 Version 1.28b.
1992
1993 2001-08-03 Akim Demaille <akim@epita.fr>
1994
1995 * tests/Makefile.am (check-local): Ship testsuite.
1996 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1997 Include `string.h'.
1998
1999 2001-08-03 Akim Demaille <akim@epita.fr>
2000
2001 * configure.in: Try using -Wformat when compiling.
2002
2003 2001-08-03 Akim Demaille <akim@epita.fr>
2004
2005 * configure.in: Bump to 1.28b.
2006
2007 2001-08-03 Akim Demaille <akim@epita.fr>
2008
2009 * src/complain.c: Adjust strerror_r portability issues.
2010
2011 2001-08-03 Akim Demaille <akim@epita.fr>
2012
2013 Version 1.28a.
2014
2015 2001-08-03 Akim Demaille <akim@epita.fr>
2016
2017 * src/getargs.c, src/getarg.h (skeleton)): Constify.
2018 * src/lex.c (literalchar): Avoid name clashes on `buf'.
2019 * src/getargs.c: Include complain.h.
2020 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
2021 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
2022
2023 2001-08-03 Akim Demaille <akim@epita.fr>
2024
2025 * src/reader.c (readgram): Display hidden chars in error messages.
2026
2027 2001-08-03 Akim Demaille <akim@epita.fr>
2028
2029 Update to gettext 0.10.39.
2030
2031 2001-08-03 Akim Demaille <akim@epita.fr>
2032
2033 * lib/strspn.c: New.
2034
2035 2001-08-01 Marc Autret <autret_m@epita.fr>
2036
2037 * doc/bison.texinfo: Update.
2038 * doc/bison.1 (mandoc): Update.
2039 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
2040 * src/files.c: Support output files extensions computing.
2041 (src_extension): New static variable.
2042 (header_extension): New static variable.
2043 (tr): New function.
2044 (get_extension_index): New function, gets the index of an extension
2045 filename in a string.
2046 (compute_exts_from_gf): New function, computes extensions from the
2047 grammar file extension.
2048 (compute_exts_from_src): New functions, computes extensions from the
2049 C source file extension, file given by ``-o'' option.
2050 (compute_base_names): Update.
2051 (output_files): Update.
2052
2053 2001-08-01 Robert Anisko <anisko_r@epita.fr>
2054
2055 * doc/bison.texi: Document @$.
2056 (Locations): New section.
2057
2058 2001-07-18 Akim Demaille <akim@epita.fr>
2059
2060 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
2061 * config/prev-version.txt, config/move-if-change: New.
2062 * Makefile.am: Adjust.
2063
2064 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2065
2066 * src/bison.simple (yyparse): Suppress warning `comparaison
2067 between signed and unsigned'.
2068
2069 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2070
2071 * src/getargs.h (raw_flag): Remove.
2072 * src/getargs.c: Die on `-r'/`--raw'.
2073 * src/lex.c (parse_percent_token): Die on `%raw'.
2074 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2075 * tests/calc.at: Suppress test with option `--raw'.
2076
2077 2001-07-14 Akim Demaille <akim@epita.fr>
2078
2079 * config/: New.
2080 * configure.in: Require Autoconf 2.50.
2081 Update to gettext 0.10.38.
2082
2083 2001-03-16 Akim Demaille <akim@epita.fr>
2084
2085 * doc/bison.texinfo: ANSIfy the examples.
2086
2087 2001-03-16 Akim Demaille <akim@epita.fr>
2088
2089 * getargs.c (skeleton): New variable.
2090 (longopts): --skeleton is a new option.
2091 (shortopts, getargs): -S is a new option.
2092 * getargs.h: Declare skeleton.
2093 * output.c (output_parser): Use it.
2094
2095 2001-03-16 Akim Demaille <akim@epita.fr>
2096
2097 * m4/strerror_r.m4: New.
2098 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2099 * lib/error.h, lib/error.c: Update.
2100
2101 2001-03-16 Akim Demaille <akim@epita.fr>
2102
2103 * src/getargs.c (longopts): Clean up.
2104
2105 2001-02-21 Akim Demaille <akim@epita.fr>
2106
2107 * src/reader.c (gensym): `gensym_count' is your own.
2108 Use a static buf to create the symbol name, as token_buffer is no
2109 longer a buffer.
2110
2111 2001-02-08 Akim Demaille <akim@epita.fr>
2112
2113 * src/conflicts.c (conflict_report): Be sure not to append to res
2114 between two calls, which could happen if both first sprintf were
2115 skipped, but not the first cp += strlen.
2116
2117 2001-02-08 Akim Demaille <akim@epita.fr>
2118
2119 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2120 New, from fileutils 4.0.37.
2121 * configure.in: Require Autoconf 2.49c. I took some time before
2122 making this decision. This is the only way out for portability
2123 issues in Bison, it would mean way too much duplicate effort to
2124 import in Bison features implemented in 2.49c since 2.13.
2125 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2126
2127 2001-02-02 Akim Demaille <akim@epita.fr>
2128
2129 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2130 * lib/xalloc.h, lib/xmalloc.c: Update.
2131
2132 2001-01-19 Akim Demaille <akim@epita.fr>
2133
2134 Get rid of the ad hoc handling of token_buffer in the scanner: use
2135 the obstacks.
2136
2137 * src/lex.c (token_obstack): New.
2138 (init_lex): Initialize it. No longer call...
2139 (grow_token_buffer): this. Remove it.
2140 Adjust all the places which used it to use the obstack.
2141
2142 2001-01-19 Akim Demaille <akim@epita.fr>
2143
2144 * src/lex.h: Rename all the tokens:
2145 s/\bENDFILE\b/tok_eof/g;
2146 s/\bIDENTIFIER\b/tok_identifier/g;
2147 etc.
2148 Let them be enums, not #define, to ease debugging.
2149 Adjust all the code.
2150
2151 2001-01-18 Akim Demaille <akim@epita.fr>
2152
2153 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2154 * src/lex.c (maxtoken, grow_token_buffer): Static.
2155
2156 2001-01-18 Akim Demaille <akim@epita.fr>
2157
2158 Since we now use obstacks, more % directives can be enabled.
2159
2160 * src/lex.c (percent_table): Also accept `%yacc',
2161 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2162 `%debug'.
2163 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2164 instead of returning a token.
2165 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2166 * src/reader.c (read_declarations): Adjust.
2167 * src/files.c (open_files): Don't call `compute_base_names', don't
2168 compute `attrsfile' since they depend upon data which might be
2169 *in* the input file now.
2170 (output_files): Do it here.
2171 * src/output.c (output_headers): Document the fact that this patch
2172 introduces a guaranteed SEGV for semantic parsers.
2173 * doc/bison.texinfo: Document them.
2174 * tests/suite.at: Exercise these %options.
2175
2176 2000-12-20 Akim Demaille <akim@epita.fr>
2177
2178 Also handle the output file (--verbose) with obstacks.
2179
2180 * files.c (foutput): Remove.
2181 (output_obstack): New.
2182 Adjust all dependencies.
2183 * src/conflicts.c: Return a string.
2184 * src/system.h (obstack_grow_string): Rename as...
2185 (obstack_sgrow): this. Be ready to work with non literals.
2186 (obstack_fgrow4): New.
2187
2188 2000-12-20 Akim Demaille <akim@epita.fr>
2189
2190 * src/files.c (open_files): Fix the computation of short_base_name
2191 in the case of `-o foo.tab.c'.
2192
2193 2000-12-20 Akim Demaille <akim@epita.fr>
2194
2195 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2196 (copy_dollar): Now that everything uses obstacks, get rid of the
2197 FILE * parameters.
2198
2199 2000-12-20 Akim Demaille <akim@epita.fr>
2200
2201 * src/files.c (open_files): Actually the `.output' file is based
2202 on the short_base_name, not base_name.
2203 * tests/suite.at (Checking output file names): Adjust.
2204
2205 2000-12-20 Akim Demaille <akim@epita.fr>
2206
2207 * src/bison.s1: Remove, we now use directly...
2208 * src/bison.simple: this.
2209 * src/Makefile.am: Use pkgdata instead of data.
2210
2211 2000-12-20 Akim Demaille <akim@epita.fr>
2212
2213 * src/files.c (guard_obstack): New.
2214 (open_files): Initialize it.
2215 (output_files): Dump it...
2216 * src/files.h: Export it.
2217 * src/reader.c (copy_guard): Use it.
2218
2219 2000-12-19 Akim Demaille <akim@epita.fr>
2220
2221 * src/files.c (outfile, defsfile, actfile): Removed as global
2222 vars.
2223 (open_files): Don't compute them.
2224 (output_files): Adjust.
2225 (base_name, short_base_name): Be global.
2226 Adjust dependencies.
2227
2228 2000-12-19 Akim Demaille <akim@epita.fr>
2229
2230 * src/files.c (strsuffix): New.
2231 (stringappend): Be just like strcat but allocate.
2232 (base_names): Eve out from open_files.
2233 Try to simplify the rather hairy computation of base_name and
2234 short_base_name.
2235 (open_files): Use it.
2236 * tests/suite.at (Checking output file names): New test.
2237
2238 2000-12-19 Akim Demaille <akim@epita.fr>
2239
2240 * src/system.h (obstack_grow_literal_string): Rename as...
2241 (obstack_grow_string): this.
2242 * src/output.c (output_parser): Recognize `%% actions' instead of
2243 `$'.
2244 * src/bison.s1: s/$/%% actions/.
2245 * src/bison.hairy: Likewise.
2246
2247 2000-12-19 Akim Demaille <akim@epita.fr>
2248
2249 * src/output.c (output_parser): Compute the `#line' lines when
2250 there are.
2251 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2252 Suggested by Hans Aberg.
2253
2254 2000-12-19 Akim Demaille <akim@epita.fr>
2255
2256 Let the handling of the skeleton files be local to the procedures
2257 that use it.
2258
2259 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2260 longer static.
2261 (fparser, open_extra_files): Remove.
2262 (open_files, output_files): Don't take care of fparser.
2263 * src/files.h: Adjust.
2264 * src/output.c (output_parser): Open and close the file to the
2265 skeleton.
2266 * src/reader.c (read_declarations): When %semantic_parser, open
2267 fguard.
2268
2269 2000-12-19 Akim Demaille <akim@epita.fr>
2270
2271 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2272 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2273
2274 2000-12-19 Akim Demaille <akim@epita.fr>
2275
2276 * src/files.c (open_files): Yipee! We no longer need all the code
2277 looking for `/tmp' since we have no tmp file.
2278
2279 2000-12-19 Akim Demaille <akim@epita.fr>
2280
2281 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2282 New macros.
2283 * src/files.c (open_files): Less dependency on MSDOS etc.
2284
2285 2000-12-14 Akim Demaille <akim@epita.fr>
2286
2287 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2288 Provide a default definition.
2289 Use it when executing the default @ action.
2290 * src/reader.c (reader_output_yylsp): No longer include
2291 `timestamp' and `text' in the default YYLTYPE.
2292
2293 2000-12-12 Akim Demaille <akim@epita.fr>
2294
2295 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2296 (copy_guard): Quote the file names.
2297 Reported by Laurent Mascherpa.
2298
2299 2000-12-12 Akim Demaille <akim@epita.fr>
2300
2301 * src/output.c (output_headers, output_program, output): Be sure
2302 to escape special characters when outputting filenames.
2303 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2304 (output_headers): Don't depend on them, Use ACTSTR.
2305
2306 2000-11-17 Akim Demaille <akim@epita.fr>
2307
2308 * lib/obstack.h: Formatting changes.
2309 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2310 prevents type checking.
2311 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2312 cast the value to (void *): assigning a `foo *' to a `void *'
2313 variable is valid.
2314 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2315 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2316 append characters.
2317
2318 2000-11-17 Akim Demaille <akim@epita.fr>
2319
2320 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2321 as...
2322 (suite.m4, regression.m4, calc.m4): these.
2323 * tests/atgeneral.m4: Update from CVS Autoconf.
2324
2325 2000-11-17 Akim Demaille <akim@epita.fr>
2326
2327 * tests/regression.m4 (%union and --defines): New test,
2328 demonstrating a current bug in the obstack implementation.
2329
2330 2000-11-17 Akim Demaille <akim@epita.fr>
2331
2332 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2333 macros.
2334 Use them to declare the variables which are global or local to
2335 `yyparse'.
2336
2337 2000-11-17 Akim Demaille <akim@epita.fr>
2338
2339 * acconfig.h: Remove, no longer used.
2340
2341 2000-11-07 Akim Demaille <akim@epita.fr>
2342
2343 * src: s/Copyright (C)/Copyright/g.
2344
2345 2000-11-07 Akim Demaille <akim@epita.fr>
2346
2347 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2348 defining.
2349 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2350
2351 2000-11-07 Akim Demaille <akim@epita.fr>
2352
2353 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2354 Merge in a single CPP if/else.
2355
2356 2000-11-07 Akim Demaille <akim@epita.fr>
2357
2358 * src/output.c (output): Remove useless variables.
2359 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2360 argument `data' for consistency with the prototypes.
2361 Qualify it `const'.
2362 (obstack_copy, obstack_copy0): Rename the second argument as
2363 `address' for consistency. Qualify it `const'.
2364 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
2365 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
2366 `const' their input argument (`data' or `address').
2367 Adjust the corresponding macros to include `const' in casts.
2368
2369 2000-11-03 Akim Demaille <akim@epita.fr>
2370
2371 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
2372 s/PFILE1/BISON_HAIRY/.
2373 Adjust dependencies.
2374
2375 2000-11-03 Akim Demaille <akim@epita.fr>
2376
2377 For some reason, this was not applied.
2378
2379 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2380 `unlink': it's no longer used.
2381
2382 2000-11-03 Akim Demaille <akim@epita.fr>
2383
2384 * src/files.c (skeleton_find): New function, eved out of...
2385 (open_files, open_extra_files): here.
2386
2387 2000-11-03 Akim Demaille <akim@epita.fr>
2388
2389 Don't use `atexit'.
2390
2391 * src/files.c (obstack_save): New function.
2392 (done): Rename as...
2393 (output_files): this.
2394 Use `obstack_save'.
2395 * src/main.c (main): Don't use `atexit' to register `done', since
2396 it no longer has to remove tmp files, just call `output_files'
2397 when there are no errors.
2398
2399 2000-11-02 Akim Demaille <akim@epita.fr>
2400
2401 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
2402 `unlink': it's no longer used.
2403 * src/files.h: Formatting changes.
2404
2405 2000-11-02 Akim Demaille <akim@epita.fr>
2406
2407 Remove the last uses of mktemp and unlink/delete.
2408
2409 * src/files.c (fdefines, ftable): Removed.
2410 (defines_ostack, table_obstack): New.
2411 Adjust dependencies of the former into uses of the latter.
2412 * src/output.c (output_short_or_char_table, output_short_table):
2413 Convert to using obstacks.
2414 * src/reader.c (copy_comment2): Accept one FILE * and two
2415 obstacks.
2416 (output_token_defines, reader_output_yylsp): Use obstacks.
2417 * src/system.h (obstack_fgrow3): New.
2418
2419 2000-11-01 Akim Demaille <akim@epita.fr>
2420
2421 Change each use of `fattrs' into a use of `attrs_obstack'.
2422
2423 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
2424 * src/files.c (fattrs): Remove.
2425 (attrs_obstack): New.
2426 Adjust all dependencies.
2427 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
2428
2429 2000-11-01 Akim Demaille <akim@epita.fr>
2430
2431 Introduce obstacks.
2432 Change each use of `faction' into a use of `action_obstack'.
2433
2434 * lib/obstack.h, lib/obstack.c: New files.
2435 * src/files.c (faction): Remove.
2436 (action_obstack): New.
2437 Adjust all dependencies.
2438
2439 2000-10-20 Akim Demaille <akim@epita.fr>
2440
2441 * lib/quote.h (PARAMS): New macro. Use it.
2442
2443 2000-10-16 Akim Demaille <akim@epita.fr>
2444
2445 * src/output.c (output_short_or_char_table): New function.
2446 (output_short_table, output_token_translations): Use it.
2447 (goto_actions): Use output_short_table.
2448
2449 2000-10-16 Akim Demaille <akim@epita.fr>
2450
2451 * src/symtab.c (bucket_new): New function.
2452 (getsym): Use it.
2453
2454 * src/output.c (output_short_table): New argument to display the
2455 comment associated with the table.
2456 Adjust dependencies.
2457 (output_gram): Use it.
2458 (output_rule_data): Nicer output layout for YYTNAME.
2459
2460 2000-10-16 Akim Demaille <akim@epita.fr>
2461
2462 * src/lex.c (read_typename): New function.
2463 (lex): Use it.
2464 * src/reader.c (copy_dollar): Likewise.
2465
2466 2000-10-16 Akim Demaille <akim@epita.fr>
2467
2468 * src/reader.c (copy_comment2): Expect the input stream to be on
2469 the `/' which is suspected to open a comment, instead of being
2470 called after `//' or `/*' was read.
2471 (copy_comment, copy_definition, parse_union_decl, copy_action)
2472 (copy_guard): Adjust.
2473
2474 2000-10-16 Akim Demaille <akim@epita.fr>
2475
2476 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
2477 `read_signed_integer'.
2478
2479 2000-10-16 Akim Demaille <akim@epita.fr>
2480
2481 * src/reader.c (copy_dollar): New function.
2482 (copy_guard, copy_action): Use it.
2483
2484 2000-10-16 Akim Demaille <akim@epita.fr>
2485
2486 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
2487 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
2488 New files, from Fileutils 4.0.27.
2489 * src/main.c (printable_version): Remove.
2490 * src/lex.c, src/reader.c: Use `quote'.
2491
2492 2000-10-04 Akim Demaille <akim@epita.fr>
2493
2494 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
2495
2496 2000-10-04 Akim Demaille <akim@epita.fr>
2497
2498 * doc/bison.texinfo: Various typos spotted by Neil Booth.
2499
2500 2000-10-04 Akim Demaille <akim@epita.fr>
2501
2502 When a literal string is used to define two different tokens,
2503 `bison -v' segfaults.
2504 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
2505
2506 * tests/regression.m4: New file.
2507 Include the core of the sample provided by Piotr Gackiewicz.
2508 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
2509 properly.
2510
2511 2000-10-04 Akim Demaille <akim@epita.fr>
2512
2513 * src/reader.c (parse_expect_decl): Keep `count' within the size
2514 of `buffer'.
2515 From Neil Booth.
2516
2517 2000-10-02 Paul Eggert <eggert@twinsun.com>
2518
2519 * bison.s1 (yyparse): Assign the default value
2520 unconditionally, to avoid a GCC warning and make the parser a
2521 tad smaller.
2522
2523 2000-10-02 Akim Demaille <akim@epita.fr>
2524
2525 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
2526 options.
2527
2528 2000-10-02 Akim Demaille <akim@epita.fr>
2529
2530 * src/derives.c, src/print.c, src/reduce.c: To ease the
2531 translation, move some `\n' out of the translated strings.
2532
2533 2000-10-02 Akim Demaille <akim@epita.fr>
2534
2535 The location tracking mechanism is precious for parse error
2536 messages. Nevertheless, it is enabled only when `@n' is used in
2537 the grammar, which is a different issue (you can use it in error
2538 message, but not in the grammar per se). Therefore, there should
2539 be another means to enable it.
2540
2541 * src/getargs.c (getargs): Support `--locations'.
2542 (usage): Report it.
2543 * src/getargs.h (locationsflag): Export it.
2544 * src/lex.c (percent_table): Support `%locations'.
2545 * src/reader.c (yylsp_needed): Remove this variable, now replaced
2546 with `locationsflag'.
2547 * doc/bison.texinfo: Document `--locations' and `%locations'.
2548 Sort the options.
2549 * tests/calc.m4: Test it.
2550
2551 For regularity of the names, replace each
2552 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
2553 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
2554 In addition replace each `flag' with `_flag'.
2555
2556 2000-10-02 Akim Demaille <akim@epita.fr>
2557
2558 Also test parse error messages, including with YYERROR_VERBOSE.
2559
2560 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
2561 associative).
2562 Use it to check the computations.
2563 Use it to check `nonassoc' is honored.
2564 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
2565 `--yyerror-verbose'.
2566 (_AT_CHECK_CALC): Adjust to this option.
2567 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
2568
2569 2000-10-02 Akim Demaille <akim@epita.fr>
2570
2571 Test also `--verbose', `--defines' and `--name-prefix'. Testing
2572 the latter demonstrates a flaw in the handling of non debugging
2573 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
2574 was used in order to simplify:
2575
2576 #if YYDEBUG
2577 if (yydebug)
2578 {
2579 ...
2580 }
2581 #endif
2582
2583 into
2584
2585 if (yydebug)
2586 {
2587 ...
2588 }
2589
2590 unfortunately this leads to a CPP conflict when
2591 `--name-prefix=foo' is used since it produces `#define yydebug
2592 foodebug'.
2593
2594 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
2595 (YYDPRINTF): New macro.
2596 Spread its use.
2597 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
2598 the bison options.
2599 Also test `--verbose', `--defines' and `--name-prefix'.
2600
2601 2000-10-02 Akim Demaille <akim@epita.fr>
2602
2603 Improve the readability of the produced parsers.
2604
2605 * src/bison.s1: Formatting changes.
2606 Improve the comment related to the `$' mark.
2607 (yydefault): Don't fall through to `yyresume': `goto' there.
2608 * src/output.c (output_parser): When the `$' is met, skip the end
2609 of its line.
2610 New variable, `number_of_dollar_signs', to check there's exactly
2611 one `$' in the parser skeleton.
2612
2613 2000-10-02 Akim Demaille <akim@epita.fr>
2614
2615 * lib/xstrdup.c: New file, from the fileutils.
2616 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
2617 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
2618 instead of strlen + xmalloc + strcpy.
2619 * src/symtab.c (copys): Remove, use xstrdup instead.
2620
2621 2000-10-02 Akim Demaille <akim@epita.fr>
2622
2623 * src/gram.h (associativity): New enum type which replaces the
2624 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
2625 `right_assoc', `left_assoc' and `non_assoc'.
2626 Adjust all dependencies.
2627 * src/reader.c: Formatting changes.
2628 (LTYPESTR): Don't define it, use it as a literal in
2629 `reader_output_yylsp'.
2630 * src/symtab.h (symbol_class): New enum type which replaces the
2631 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
2632 `sunknown', `stoken and `snterm'.
2633
2634 2000-10-02 Akim Demaille <akim@epita.fr>
2635
2636 * src/getargs.c (fixed_outfiles): Rename as...
2637 (yaccflag): for consistency and accuracy.
2638 Adjust dependencies.
2639
2640 2000-10-02 Akim Demaille <akim@epita.fr>
2641
2642 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
2643 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
2644 difficult and introduced a lot of core dump. It turns out that
2645 Bison used an implementation of `xmalloc' based on `calloc', and
2646 at various places it does depend upon the initialization to 0. I
2647 have not tried to isolate the pertinent places, and all the former
2648 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
2649 someone should address this issue.
2650
2651 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
2652 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
2653 files.
2654 Adjust dependencies.
2655 * src/warshall.h: New file.
2656 Propagate.
2657
2658 2000-10-02 Akim Demaille <akim@epita.fr>
2659
2660 Various anti-`extern in *.c' changes.
2661
2662 * src/system.h: Include `assert.h'.
2663
2664 2000-10-02 Akim Demaille <akim@epita.fr>
2665
2666 * src/state.h (nstates, final_state, first_state, first_shift)
2667 (first_reduction): Move their exportation from here...
2668 * src/LR0.h: to here.
2669 Adjust dependencies.
2670 * src/getargs.c (statisticsflag): New variable.
2671 Add support for `--statistics'.
2672 Adjust dependencies.
2673
2674 Remove a lot of now useless `extern' statements in most files.
2675
2676 2000-10-02 Akim Demaille <akim@epita.fr>
2677
2678 * src/LR0.h: New file.
2679 Propagate its use.
2680
2681 2000-10-02 Akim Demaille <akim@epita.fr>
2682
2683 * src/print.h: New file.
2684 Propagate its use.
2685 * src/print.c: Formatting and ordering changes.
2686 (verbose, terse): Replace with...
2687 (print_results): this new function.
2688 Adjust dependencies.
2689
2690 2000-10-02 Akim Demaille <akim@epita.fr>
2691
2692 * src/conflicts.c (conflict_report): New function.
2693 (conflict_log, verbose_conflict_log): Replace with...
2694 (print_conflicts): this function.
2695 Adjust dependencies.
2696 * src/conflicts.h: New file.
2697 Propagate its inclusion.
2698
2699 2000-10-02 Akim Demaille <akim@epita.fr>
2700
2701 * src/nullable.h: New file.
2702 Propagate its inclusion.
2703 * src/nullable.c: Formatting changes.
2704
2705 2000-10-02 Akim Demaille <akim@epita.fr>
2706
2707 * src/reduce.h: New file.
2708 Propagate its inclusion.
2709 * src/reduce.c: Topological sort and other formatting changes.
2710 (bool, TRUE, FALSE): Move their definition to...
2711 * src/system.h: here.
2712
2713 2000-10-02 Akim Demaille <akim@epita.fr>
2714
2715 * src/files.c: Formatting changes.
2716 (tryopen, tryclose, openfiles): Rename as...
2717 (xfopen, xfclose, open_files): this.
2718 (stringappend): static.
2719 * src/files.h: Complete the list of exported symbols.
2720 Propagate its use.
2721
2722 2000-10-02 Akim Demaille <akim@epita.fr>
2723
2724 * src/reader.h: New file.
2725 Propagate its use instead of tedious list of `extern' and
2726 prototypes.
2727 * src/reader.c: Formatting changes, topological sort,
2728 s/register//.
2729
2730 2000-10-02 Akim Demaille <akim@epita.fr>
2731
2732 * src/lex.h: Prototype `lex.c' exported functions.
2733 * src/reader.c: Adjust.
2734 * src/lex.c: Formatting changes.
2735 (safegetc): Rename as...
2736 (xgetc): this.
2737
2738 2000-10-02 Akim Demaille <akim@epita.fr>
2739
2740 * src/lalr.h: New file.
2741 Propagate its inclusion instead of prototypes and `extern'.
2742 * src/lalr.c: Formatting changes, topological sorting etc.
2743
2744 2000-10-02 Akim Demaille <akim@epita.fr>
2745
2746 * src/output.c (token_actions): Introduce a temporary array,
2747 YYDEFACT, that makes it possible for this function to use
2748 output_short_table.
2749
2750 2000-10-02 Akim Demaille <akim@epita.fr>
2751
2752 `user_toknums' is output as a `short[]' in `output.c', while it is
2753 defined as a `int[]' in `reader.c'. For consistency with the
2754 other output tables, `user_toknums' is now defined as a table of
2755 shorts.
2756
2757 * src/reader.c (user_toknums): Be a short table instead of an int
2758 table.
2759 Adjust dependencies.
2760
2761 Factor the short table outputs.
2762
2763 * src/output.c (output_short_table): New function.
2764 * src/output.c (output_gram, output_stos, output_rule_data)
2765 (output_base, output_table, output_check): Use it.
2766
2767 2000-10-02 Akim Demaille <akim@epita.fr>
2768
2769 * src/output.c (output): Topological sort of the functions, in
2770 order to get rid of the `static' prototypes.
2771 No longer use `register'.
2772 * src/output.h: New file.
2773 Propagate its inclusion in files explicitly prototyping functions
2774 from output.c.
2775
2776 2000-09-21 Akim Demaille <akim@epita.fr>
2777
2778 * src/atgeneral.m4: Update from Autoconf.
2779
2780 2000-09-21 Akim Demaille <akim@epita.fr>
2781
2782 * src/closure.h: New file.
2783 * src/closure.c: Formatting changes, topological sort over the
2784 functions, use of closure.h.
2785 (initialize_closure, finalize_closure): Rename as...
2786 (new_closure, free_closure): these. Adjust dependencies.
2787 * src/LR0.c: Formatting changes, topological sort, use of
2788 cloture.h.
2789 (initialize_states): Rename as...
2790 (new_states): this.
2791 * src/Makefile.am (noinst_HEADERS): Adjust.
2792
2793 2000-09-20 Akim Demaille <akim@epita.fr>
2794
2795 * src/acconfig.h: Don't protect config.h against multiple
2796 inclusion.
2797 Don't define PARAMS.
2798 * src/system.h: Define PARAMS.
2799 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
2800 purpose of config.h. system.h must not try to fix wrong
2801 definitions in config.h.
2802
2803 2000-09-20 Akim Demaille <akim@epita.fr>
2804
2805 * src/derives.h: New file.
2806 * src/main.c, src/derives.h: Use it.
2807 Formatting changes.
2808 * src/Makefile.am (noinst_HEADERS): Adjust.
2809
2810 2000-09-20 Akim Demaille <akim@epita.fr>
2811
2812 * tests/atgeneral.m4: Update from Autoconf.
2813 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
2814 (AT_CHECK_CALC): New macros.
2815 Use these macros to test bison with options `', `--raw',
2816 `--debug', `--yacc', `--yacc --debug'.
2817
2818 2000-09-19 Akim Demaille <akim@epita.fr>
2819
2820 * src/output.c: Formatting changes.
2821 * src/machine.h: Remove, leaving its contents in...
2822 * src/system.h: here.
2823 Include stdio.h.
2824 Adjust all dependencies on stdio.h and machine.h.
2825 * src/getargs.h: New file.
2826 Let all `extern' declarations about getargs.c be replaced with
2827 inclusion of `getargs.h'.
2828 * src/Makefile.am (noinst_HEADERS): Adjust.
2829
2830 * tests/calc.m4 (yyin): Be initialized in main, not on the global
2831 scope.
2832 (yyerror): Returns void, not int.
2833 * doc/bison.texinfo: Formatting changes.
2834
2835 2000-09-19 Akim Demaille <akim@epita.fr>
2836
2837 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
2838 portable.
2839
2840 2000-09-18 Akim Demaille <akim@epita.fr>
2841
2842 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2843 * src/Makefile.am (INCLUDES): Don't.
2844 Be ready to fetch headers in lib/.
2845
2846 2000-09-18 Akim Demaille <akim@epita.fr>
2847
2848 * doc/bison.texinfo: Update the copyright.
2849 ANSIfy and GNUify the examples.
2850 Remove the old menu.
2851
2852 2000-09-18 Akim Demaille <akim@epita.fr>
2853
2854 First set of tests: use the `calc' example from the documentation.
2855
2856 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2857 is defined only when YYDEBUG is.
2858 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2859 * src/files.c (tryopen, tryclose): Formatting changes.
2860 Move to the top and be static.
2861 * src/reader.c (read_signed_integer): Likewise.
2862 * tests/calc.m4: New file.
2863 * Makefile.am, suite.m4: Adjust.
2864 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2865
2866 2000-09-18 Akim Demaille <akim@epita.fr>
2867
2868 Add support for an Autotest test suite for Bison.
2869
2870 * m4/m4.m4, m4/atconfig.m4: New files.
2871 * m4/Makefile.am (EXTRA_DIST): Adjust.
2872 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2873 files.
2874 * src/getargs.c: Display a more standard --version message.
2875 * src/reader.c (reader): Formatting changes.
2876 No longer depend upon VERSION_STRING.
2877 * configure.in: No longer use `dnl'.
2878 Set up the test suite and the new directory `tests/.
2879 (VERSION_STRING): Remove.
2880
2881 2000-04-14 Akim Demaille <akim@epita.fr>
2882
2883 * src/reader.c (copy_comment2): New function, same as former
2884 `copy_comment', but outputs into two FILE *.
2885 (copy_comment): Use it.
2886 (parse_union_decl): Use it.
2887 (get_type, parse_start_decl): Use the same `invalid' message.
2888 (parse_start_decl, parse_union_decl): Use the same `multiple'
2889 message.
2890 (parse_union_decl, copy_guard, copy_action): Use the same
2891 `unmatched' message.
2892 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2893
2894 2000-03-31 Akim Demaille <akim@epita.fr>
2895
2896 * src/files.c (tryopen, tryclose): Move to the top.
2897 Be static.
2898
2899 2000-03-31 Akim Demaille <akim@epita.fr>
2900
2901 * src/main.c (main): Don't call `done', exit does it.
2902
2903 2000-03-31 Akim Demaille <akim@epita.fr>
2904
2905 * allocate.c: s/return (foo)/return foo/.
2906 * lalr.c: Likewise.
2907 * LR0.c: Likewise.
2908 * output.c: Likewise.
2909 * reader.c: Likewise.
2910 * symtab.c: Likewise.
2911 * vmsgetargs.c: Likewise.
2912
2913 2000-03-31 Akim Demaille <akim@epita.fr>
2914
2915 Clean up the error reporting functions.
2916
2917 * src/report.c: New file.
2918 * src/report.h: Likewise.
2919 * src/Makefile.am: Adjust.
2920 * m4/error.m4: New file.
2921 * m4/Makefile.am: Adjust.
2922 * configure.in (jm_PREREQ_ERROR): Call it.
2923 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2924 Remove.
2925 (fatal, fatals): Remove. All callers use complain.c::fatal.
2926 (warn, warni, warns, warnss, warnss): Remove. All callers use
2927 complain.c::complain.
2928 (toomany): Remove, use fatal instead.
2929 * src/files.c (done): No argument, use complain_message_count.
2930 * src/main.c (main): Register `done' to `atexit'.
2931
2932 * src/getargs.c (usage): More `fputs', less `fprintf'.
2933
2934 2000-03-28 Akim Demaille <akim@epita.fr>
2935
2936 * lib/: New directory.
2937 * Makefile.am (SUBDIRS): Adjust.
2938 * configure.in: Adjust.
2939 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2940 useless.
2941 * src/alloca.c: Moved to lib/.
2942 * src/getopt.c: Likewise.
2943 * src/getopt1.c: Likewise.
2944 * src/getopt.h: Likewise.
2945 * src/ansi2knr.c: Likewise.
2946 * src/ansi2knr.1: Likewise.
2947 * src/Makefile.am: Adjust.
2948 * lib/Makefile.am: New file.
2949
2950 2000-03-28 Akim Demaille <akim@epita.fr>
2951
2952 * src/getargs.c (usage): Refresh the help message.
2953
2954 2000-03-17 Akim Demaille <akim@epita.fr>
2955
2956 * src/getopt1.c: Updated from textutils 2.0e
2957 * src/getopt.c: Likewise.
2958 * src/getopt.h: Likewise.
2959
2960 2000-03-17 Akim Demaille <akim@epita.fr>
2961
2962 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2963 the file name, not the whole `#line LINE FILE'.
2964
2965 2000-03-17 Akim Demaille <akim@epita.fr>
2966
2967 On syntax errors, report the token on which we choked.
2968
2969 * src/bison.s1 (yyparse): In the label yyerrlab, when
2970 YYERROR_VERBOSE, add yychar in msg.
2971
2972 2000-03-17 Akim Demaille <akim@epita.fr>
2973
2974 * src/reader.c (copy_at): New function.
2975 (copy_guard): Use it.
2976 (copy_action): Use it.
2977
2978 2000-03-17 Akim Demaille <akim@epita.fr>
2979
2980 Be kind to translators, save some useless translations.
2981
2982 * src/main.c (banner): New function.
2983 (fatal_banner): Use it.
2984 (warn_banner): Use it.
2985
2986 2000-03-17 Akim Demaille <akim@epita.fr>
2987
2988 * src/reader.c (copy_definition): Use copy_string and
2989 copy_comment. Removed now unused `match', `ended',
2990 `cplus_comment'.
2991 (copy_comment, copy_string): Moved, to be visible from
2992 copy_definition.
2993
2994 2000-03-17 Akim Demaille <akim@epita.fr>
2995
2996 * src/reader.c (copy_string): Declare `static inline'. No
2997 problems with inline, since it is checked by configure.
2998 (copy_comment): Likewise.
2999
3000 2000-03-17 Akim Demaille <akim@epita.fr>
3001
3002 * src/reader.c (packsymbols): Formatting changes.
3003
3004 2000-03-17 Akim Demaille <akim@epita.fr>
3005
3006 * src/reader.c (copy_comment): New function, factored out from:
3007 (copy_action): Use it. Removed now unused `match', `ended',
3008 `cplus_comment'.
3009 (copy_guard): Likewise.
3010
3011 2000-03-17 Akim Demaille <akim@epita.fr>
3012
3013 * src/reader.c (copy_string): New function, factored out from:
3014 (copy_action): Use it.
3015 (copy_guard): Likewise.
3016
3017 2000-03-17 Akim Demaille <akim@epita.fr>
3018
3019 Change the handling of @s so that they behave exactly like $s.
3020 There is now a pseudo variable @$ (readble and writable), location
3021 of the lhs of the rule (by default ranging from the location of
3022 the first symbol of the rhs, to the location of the last symbol,
3023 or, if the rhs is empty, YYLLOC).
3024
3025 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
3026 yyval.
3027 (yyparse): When providing a default semantic action, provide a
3028 default location action.
3029 (after the $): No longer change `*YYLSP', just stack YYLOC the
3030 same way you stack YYVAL.
3031 * src/reader.c (read_declarations): Use warns.
3032 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
3033 (copy_action, case '@'): Likewise.
3034 Use a standard error message, to save useless work from
3035 translators.
3036
3037 2000-03-17 Akim Demaille <akim@epita.fr>
3038
3039 * src/bison.s1: Formatting and cosmetics changes.
3040 * src/reader.c: Likewise.
3041 Update the Copyright notice.
3042
3043 2000-03-17 Akim Demaille <akim@epita.fr>
3044
3045 * src/bison.s1 (#line): All set to `#line' only, since the
3046 Makefile now handles them.
3047
3048 2000-03-16 Akim Demaille <akim@epita.fr>
3049
3050 * src/output.c (output_rule_data): Output the documentation of
3051 some of the tables.
3052 (Copyright notice): Update.
3053 Formatting changes.
3054
3055 2000-03-16 Akim Demaille <akim@epita.fr>
3056
3057 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
3058 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
3059 One `#if YYDEBUG' remains, since it uses variables which are
3060 defined only if `YYDEBUG != 0'.
3061
3062 2000-03-16 Akim Demaille <akim@epita.fr>
3063
3064 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3065 and related variables so that the similarities are highlighted.
3066
3067 2000-03-16 Akim Demaille <akim@epita.fr>
3068
3069 * src/bison.s1: Properly indent CPP directives.
3070
3071 2000-03-16 Akim Demaille <akim@epita.fr>
3072
3073 * src/bison.s1: Properly indent the `alloca' CPP section.
3074
3075 2000-03-16 Akim Demaille <akim@epita.fr>
3076
3077 Do not hard code values of directories in `configure.in'.
3078 Update the `configure' tool chain.
3079
3080 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3081 src/makefile.am.
3082 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3083 (AC_OUTPUT): Add m4/Makefile.
3084 Bump to bison 1.28a, 1.29 has never been released.
3085 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3086 handled via src/Makefile.am.
3087 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3088 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3089 autoheader.
3090 * Makefile.am (SUBDIRS): Add m4.
3091 (ACLOCAL_AM_FLAGS): New variable.
3092 (AUTOMAKE_OPTIONS): Add check-news.
3093 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3094 the proper line number and file name.
3095 (DEFS): Propagate the location of bison library files and of the
3096 locale files.
3097 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3098 builddir.
3099 * acinclude.m4: Remove, replaced by the directory m4.
3100 * m4/Makefile.am (EXTRA_DIST): New variable.
3101 * m4/gettext.m4: New file, from the fileutils.
3102 * m4/lcmessage.m4: Likewise
3103 * m4/progtest.m4: Likewise.
3104 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3105
3106 2000-03-10 Akim Demaille <akim@epita.fr>
3107
3108 * src/closure.c:
3109 Formatting changes of various comments.
3110 Respect the GNU coding standards at various places.
3111 Don't use `_()' when no translation is needed.
3112
3113 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3114
3115 * src/files.c:
3116 OS/2 honors TMPDIR environment variable.
3117
3118 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3119
3120 * doc/bison.texinfo: Tweaked spelling and grammar.
3121 Updated ISBN.
3122 Removed reference to price of printed copy.
3123 Mention BISON_SIMPLE and BISON_HAIRY.
3124
3125 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3126
3127 * configure.in, NEWS:
3128 Bison 1.29 released.
3129
3130 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3131
3132 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3133 Added reference card.
3134
3135 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3136
3137 * po/ru.po: Added Russian translation.
3138
3139 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3140
3141 * configure.in: Added Russian translation.
3142
3143 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3144
3145 * configure.in, NEWS, README:
3146 Released version 1.28.
3147
3148 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3149
3150 * src/system.h:
3151 Squashed redefinition warning on some systems.
3152
3153 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3154 Have configure build version string instead of relying on ANSI string
3155 concatentation.
3156
3157 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3158
3159 * po/POTFILES.in: Got rid of version.c.
3160
3161 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3162
3163 * acconfig.h, configure.in:
3164 Have configure build version string instead of relying on ANSI string
3165 concatentation.
3166
3167 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3168
3169 * doc/bison.1:
3170 Dropped mention of `+' for long-named options.
3171
3172 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3173
3174 * src/files.c: Added <unistd.h> for unlink().
3175
3176 * src/Makefile.am, src/system.h:
3177 I18n fixes.
3178
3179 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3180
3181 * README: Added a FAQ list.
3182
3183 * configure.in, acconfig.h:
3184 I18n fixes.
3185
3186 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3187
3188 * doc/FAQ, doc/Makefile.am:
3189 Added a FAQ list.
3190
3191 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3192
3193 * src/alloc.h, src/symtab.h, src/version.c:
3194 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3195
3196 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3197
3198 * src/.cvsignore, src/Makefile.am:
3199 Reorganized: sources in `src', documentation in `doc'.
3200
3201 * src/lex.c (literalchar):
3202 fixed the code for escaping double quotes (thanks
3203 Jonathan Czisny.)
3204
3205 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3206
3207 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3208 Adjusted paths to reflect directory reorganization.
3209
3210 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3211
3212 * doc/.cvsignore, doc/Makefile.am:
3213 Reorganized: sources in `src', documentation in `doc'.
3214
3215 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3216
3217 * configure.in:
3218 Updated AC_INIT file to reflect directory reorganization.
3219
3220 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3221 Reorganized: sources in `src', documentation in `doc'.
3222
3223 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3224
3225 * src/allocate.c:
3226 Don't declare calloc() and realloc() if not necessary.
3227
3228 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3229
3230 * configure.in, acconfig.h, acinclude.m4:
3231 Don't declare calloc() and realloc() if not necessary.
3232
3233 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3234
3235 * po/.cvsignore: Added i18n support.
3236
3237 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3238
3239 * acconfig.h, configure.in, Makefile.am:
3240 Added i18n support.
3241
3242 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3243
3244 * src/bison.s1: Fixed #line numbers.
3245
3246 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3247
3248 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3249 Added PO files from Translation Project.
3250
3251 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3252
3253 * Makefile.am:
3254 Added support for non-ANSI compilers (ansi2knr).
3255
3256 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3257
3258 * configure.in: Bumped version number to 1.27.
3259
3260 * Makefile.am:
3261 Added `bison.simple' to list of files removed by `make distclean'.
3262
3263 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3264
3265 * src/files.c, src/files.h:
3266 Defined locations of parser files in config.h instead of Makefile.
3267
3268 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3269
3270 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3271 Defined locations of parser files in config.h instead of Makefile.
3272
3273 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3274
3275 * Makefile.am:
3276 Removed inappropriate use of $< macro.
3277
3278 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3279
3280 * po/Makefile.in.in, po/POTFILES.in:
3281 Add `po' directory skeleton.
3282
3283 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3284
3285 * README: Document help-bison list.
3286
3287 * configure.in: Add check for mkstemp().
3288
3289 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3290
3291 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3292 Hush a few compiler warnings.
3293
3294 * src/files.c:
3295 Add tryclose(), which verifies that fclose was successful.
3296 Hush a couple of compiler warnings.
3297
3298 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3299
3300 * Makefile.am, OChangeLog:
3301 ChangeLog is now automatically generated. Include the old version as
3302 OChangeLog.
3303
3304 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3305
3306 * 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:
3307 Update FSF address.
3308
3309 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3310
3311 * doc/bison.texinfo: Fix formatting glitch.
3312
3313 * doc/bison.texinfo: Update FSF address.
3314
3315 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3316
3317 * acconfig.h: Update FSF address.
3318
3319 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3320
3321 * src/system.h:
3322 Don't define PACKAGE here, since config.h defines it.
3323
3324 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3325
3326 * src/reader.c: Update copyright date.
3327
3328 * src/main.c:
3329 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3330 favor of output directly to stderr (avoids buffer overruns).
3331
3332 * src/reader.c: Some checks for premature EOF.
3333
3334 * 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:
3335 Use prototypes if the compiler understands them.
3336
3337 * src/files.c: Honor TMPDIR on Unix hosts.
3338 Use prototypes if the compiler understands them.
3339
3340 * src/reader.c:
3341 Fix a couple of buffer overrun bugs.
3342 Use prototypes if the compiler understands them.
3343
3344 * src/system.h: Include unistd.h and ctype.h.
3345 Use #ifdef instead of #if for NLS symbols.
3346
3347 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3348
3349 * doc/bison.texinfo:
3350 Delete comment "consider using @set for edition number, etc..." since
3351 we now are doing so.
3352
3353 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3354
3355 * configure.in:
3356 Use prototypes if the compiler understands them.
3357
3358 * NEWS: Document 1.26 highlights.
3359
3360 * Makefile.am: Require Automake 1.3 or later.
3361
3362 * acconfig.h:
3363 Use prototypes if the compiler understands them.
3364
3365 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3366
3367 * src/version.c:
3368 Use VERSION symbol from automake for version number.
3369
3370 1998-12-29 Jesse Thilo <jthilo@gnu.org>
3371
3372 * acconfig.h, configure.in, version.cin:
3373 Use VERSION symbol from automake for version number.
3374
3375 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3376
3377 * Makefile.am:
3378 Distribute original version of simple parser (bison.s1), not built
3379 version (bison.simple).
3380
3381 1998-11-28 Jesse Thilo <jthilo@gnu.org>
3382
3383 * doc/bison.texinfo: Add info dir entry.
3384
3385 * doc/bison.texinfo:
3386 Let automake put version number into documentation.
3387
3388 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3389
3390 * src/bison.cld, src/build.com, src/vmshlp.mar:
3391 Add non-RCS files from /gd/gnu/bison.
3392
3393 1998-11-26 Jesse Thilo <jthilo@gnu.org>
3394
3395 * doc/bison.1:
3396 Document the BISON_HAIRY and BISON_SIMPLE variables.
3397
3398 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3399
3400 * src/version.c: Build version.c automatically.
3401
3402 * src/reader.c:
3403 Fix token numbering (used to start at 258, not 257).
3404
3405 * src/system.h: Include config.h.
3406
3407 * src/getargs.c: Update bug report address.
3408
3409 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
3410 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
3411
3412 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3413
3414 * Makefile.am:
3415 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3416
3417 * configure.in, version.cin:
3418 Build version.c automatically.
3419
3420 * AUTHORS: Add AUTHORS file.
3421
3422 * README: Update bug report address.
3423
3424 * bison.simple:
3425 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
3426
3427 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
3428 Add automake stuff.
3429
3430 1998-11-25 Jesse Thilo <jthilo@gnu.org>
3431
3432 * doc/bison.texinfo: Clean up some formatting.
3433
3434 1998-05-05 Richard Stallman <rms@gnu.org>
3435
3436 * doc/bison.texinfo:
3437 Explain better why to make a pure parser.
3438
3439 1998-01-05 Richard Stallman <rms@gnu.org>
3440
3441 * src/files.c (openfiles):
3442 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
3443 find a temporary directory, if possible. Do not unlink files while
3444 they are open.
3445
3446 1997-08-25 Richard Stallman <rms@gnu.org>
3447
3448 * src/reader.c (stack_offset;):
3449 Change some warni to warns.
3450
3451 * src/lex.c (literalchar): Use warns, not warni.
3452
3453 1997-06-28 Richard Stallman <rms@gnu.org>
3454
3455 * src/bison.s1: Add a Bison version comment.
3456
3457 * src/main.c (fatal, warn, berror):
3458 Use program_name.
3459
3460 1997-06-28 Richard Stallman <rms@gnu.org>
3461
3462 * Makefile.in (bison_version): New variable.
3463 (dist): Use that variable.
3464 (bison.s1): Substitute the Bison version into bison.simple.
3465
3466 * bison.simple: Add a Bison version comment.
3467
3468 1997-06-18 Richard Stallman <rms@gnu.org>
3469
3470 * src/main.c (fatal, warn, berror):
3471 Make error messages standard.
3472 (toomany): Improve error message text.
3473
3474 * 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:
3475 new.h renamed to alloc.h.
3476
3477 1997-06-18 Richard Stallman <rms@gnu.org>
3478
3479 * Makefile.in: new.h renamed to alloc.h.
3480
3481 1997-05-24 Richard Stallman <rms@gnu.org>
3482
3483 * src/lex.c (literalchar):
3484 Fix the code for escaping \, " and '.
3485
3486 (lex): Avoid trouble when there are many chars
3487 to discard in a char literal with just several chars in it.
3488
3489 1997-05-17 Richard Stallman <rms@gnu.org>
3490
3491 * src/bison.s1:
3492 Use malloc, if using alloca is troublesome.
3493 (YYSTACK_USE_ALLOCA): New flag macro.
3494 Define it for some systems and compilers.
3495 (YYSTACK_ALLOC): New macro.
3496 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3497 If it was malloc'd, free it.
3498
3499 1997-05-17 Richard Stallman <rms@gnu.org>
3500
3501 * bison.simple:
3502 Use malloc, if using alloca is troublesome.
3503 (YYSTACK_USE_ALLOCA): New flag macro.
3504 Define it for some systems and compilers.
3505 (YYSTACK_ALLOC): New macro.
3506 (yyparse): Use YYSTACK_ALLOC to allocate stack.
3507 If it was malloc'd, free it.
3508
3509 1997-04-23 Richard Stallman <rms@gnu.org>
3510
3511 * src/bison.s1:
3512 (alloca) [__hpux]: Always define as __builtin_alloca.
3513
3514 1997-04-23 Richard Stallman <rms@gnu.org>
3515
3516 * bison.simple:
3517 (alloca) [__hpux]: Always define as __builtin_alloca.
3518
3519 1997-04-22 Richard Stallman <rms@gnu.org>
3520
3521 * src/bison.s1:
3522 [__hpux]: Include alloca.h (right for HPUX 10)
3523 instead of declaring alloca (right for HPUX 9).
3524
3525 * src/bison.s1 (__yy_memcpy):
3526 Declare arg `count' as unsigned int.
3527 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3528
3529 1997-04-22 Richard Stallman <rms@gnu.org>
3530
3531 * bison.simple:
3532 [__hpux]: Include alloca.h (right for HPUX 10)
3533 instead of declaring alloca (right for HPUX 9).
3534
3535 * bison.simple (__yy_memcpy):
3536 Declare arg `count' as unsigned int.
3537 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
3538
3539 1997-01-03 Richard Stallman <rms@gnu.org>
3540
3541 * src/allocate.c: [__STDC__ or _MSC_VER]:
3542 Declare calloc and realloc to return void *.
3543
3544 1997-01-02 Richard Stallman <rms@gnu.org>
3545
3546 * src/system.h:
3547 [_MSC_VER]: Include stdlib.h and process.h.
3548 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
3549
3550 * src/main.c (main): Return FAILURE as a value.
3551 (printable_version): Declare arg as int, not char.
3552
3553 1997-01-02 Richard Stallman <rms@gnu.org>
3554
3555 * Makefile.in (dist):
3556 Explicitly check for symlinks, and copy them.
3557
3558 1996-12-19 Richard Stallman <rms@gnu.org>
3559
3560 * src/files.c:
3561 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
3562
3563 1996-12-18 Paul Eggert <eggert@gnu.org>
3564
3565 * src/bison.s1 (yyparse):
3566 If __GNUC__ and YYPARSE_PARAM are both defined,
3567 declare yyparse to have a void * argument.
3568
3569 1996-12-18 Paul Eggert <eggert@gnu.org>
3570
3571 * bison.simple (yyparse):
3572 If __GNUC__ and YYPARSE_PARAM are both defined,
3573 declare yyparse to have a void * argument.
3574
3575 1996-12-17 Richard Stallman <rms@gnu.org>
3576
3577 * src/reduce.c (nbits): Add some casts.
3578
3579 1996-08-12 Richard Stallman <rms@gnu.org>
3580
3581 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
3582
3583 1996-08-12 Richard Stallman <rms@gnu.org>
3584
3585 * bison.simple: Test _MSDOS as well as _MSDOS_.
3586
3587 1996-07-31 Richard Stallman <rms@gnu.org>
3588
3589 * src/bison.s1:
3590 [__sun && __i386]: Include alloca.h.
3591
3592 1996-07-31 Richard Stallman <rms@gnu.org>
3593
3594 * bison.simple:
3595 [__sun && __i386]: Include alloca.h.
3596
3597 1996-07-30 Richard Stallman <rms@gnu.org>
3598
3599 * src/bison.s1: Comment change.
3600
3601 * src/bison.s1: Test _MSDOS_, not MSDOS.
3602
3603 1996-07-30 Richard Stallman <rms@gnu.org>
3604
3605 * bison.simple: Comment change.
3606
3607 * bison.simple: Test _MSDOS_, not MSDOS.
3608
3609 1996-06-01 Richard Stallman <rms@gnu.org>
3610
3611 * 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:
3612 Insert `_' macro around many string constants.
3613
3614 * src/main.c:
3615 Insert `_' macro around many string constants.
3616
3617 (main): Call setlocale, bindtextdomain and textdomain.
3618
3619 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
3620 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
3621 [ENABLE_NLS]: Include libintl.h.
3622 [ENABLE_NLS] (gettext): Define.
3623 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
3624 (N_, PACKAGE, LOCALEDIR): New macros.
3625
3626 1996-06-01 Richard Stallman <rms@gnu.org>
3627
3628 * POTFILES.in: New file.
3629
3630 * Makefile.in (allocate.o):
3631 Define target explicitly.
3632
3633 * Makefile.in (CFLAGS): Set to @CFLAGS@.
3634 (LDFLAGS): Set to @LDFLAGS@.
3635 (configure): Run autoconf only if preceding `cd' succeeds.
3636 (bison.s1): Redirect output to temporary file then move the
3637 temporary to the target, rather than redirecting directly to bison.s1.
3638 (clean): Remove config.status and config.log.
3639 (distclean): Don't remove config.status here.
3640
3641 1996-05-12 Richard Stallman <rms@gnu.org>
3642
3643 * src/bison.s1:
3644 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3645
3646 1996-05-12 Richard Stallman <rms@gnu.org>
3647
3648 * bison.simple:
3649 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
3650
3651 1996-05-11 Richard Stallman <rms@gnu.org>
3652
3653 * src/bison.s1 (__yy_memcpy):
3654 Really reorder the args, as was supposedly done on Feb 14 1995.
3655 (yyparse): Calls changed accordingly.
3656
3657 1996-05-11 Richard Stallman <rms@gnu.org>
3658
3659 * Makefile.in (dist): Don't use $(srcdir).
3660
3661 * bison.simple (__yy_memcpy):
3662 Really reorder the args, as was supposedly done on Feb 14 1995.
3663 (yyparse): Calls changed accordingly.
3664
3665 1996-01-27 Richard Stallman <rms@gnu.org>
3666
3667 * src/output.c (output_rule_data):
3668 Test YYERROR_VERBOSE in the conditional
3669 around the definition of ttyname.
3670
3671 1995-12-29 Richard Stallman <rms@gnu.org>
3672
3673 * src/bison.s1:
3674 Fix line numbers in #line commands.
3675
3676 1995-12-29 Richard Stallman <rms@gnu.org>
3677
3678 * bison.simple:
3679 Fix line numbers in #line commands.
3680
3681 1995-12-27 Richard Stallman <rms@gnu.org>
3682
3683 * src/bison.s1 (YYPARSE_PARAM_DECL):
3684 In C++, make it always null.
3685 (YYPARSE_PARAM_ARG): New macro.
3686 (yyparse): Use YYPARSE_PARAM_ARG.
3687
3688 1995-12-27 Richard Stallman <rms@gnu.org>
3689
3690 * bison.simple (YYPARSE_PARAM_DECL):
3691 In C++, make it always null.
3692 (YYPARSE_PARAM_ARG): New macro.
3693 (yyparse): Use YYPARSE_PARAM_ARG.
3694
3695 1995-11-29 Richard Stallman <rms@gnu.org>
3696
3697 * doc/bison.texinfo:
3698 Describe literal string tokens, %raw, %no_lines, %token_table.
3699
3700 1995-11-29 Daniel Hagerty <hag@gnu.org>
3701
3702 * doc/bison.texinfo: Fixed update date
3703
3704 1995-10-16 Richard Stallman <rms@gnu.org>
3705
3706 * src/version.c: Version 1.25.
3707
3708 1995-10-16 Richard Stallman <rms@gnu.org>
3709
3710 * NEWS: *** empty log message ***
3711
3712 1995-10-16 Richard Stallman <rms@gnu.org>
3713
3714 * doc/bison.1, doc/bison.rnh:
3715 Add new options.
3716
3717 1995-10-15 Richard Stallman <rms@gnu.org>
3718
3719 * src/vmsgetargs.c, src/getargs.c:
3720 Added -n, -k, and -raw switches.
3721 (noparserflag, toknumflag, rawtoknumflag): New variables.
3722
3723 * src/symtab.h (SALIAS):
3724 New #define for adding aliases to %token.
3725 (struct bucket): Added `alias' field.
3726
3727 * src/reduce.c (reduce_grammar):
3728 Revise error message.
3729 (print_notices): Remove final `.' from error message.
3730
3731 * src/reader.c (reader_output_yylsp):
3732 New function.
3733 (readgram): Use `#if 0' around code that accepted %command
3734 inside grammar rules: The documentation doesn't allow it,
3735 and it will fail since the %command processors scan for the next %.
3736 (parse_token_decl): Extended the %token
3737 declaration to allow a multi-character symbol as an alias.
3738 (parse_thong_decl): New function.
3739 (read_declarations): Added %thong declarations.
3740 (read_declarations): Handle NOOP to deal with allowing
3741 % declarations as another means to specify the flags.
3742 (readgram): Allow %prec prior to semantics embedded in a rule.
3743 (skip_to_char, read_declarations, copy_definition)
3744 (parse_token_decl, parse_start_decl, parse_type_decl)
3745 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
3746 (get_type_name, copy_guard, copy_action, readgram)
3747 (get_type, packsymbols): Revised most error messages.
3748 Changed `fatal' to `warnxxx' to avoid aborting for error.
3749 Revised and use multiple warnxxx functions to avoid using VARARGS1.
3750 (read_declarations): Improve the error message for
3751 an invalid character. Do not abort.
3752 (read_declarations, copy_guard, copy_action): Use
3753 printable_version to avoid unprintable characters in printed output.
3754 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
3755 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
3756 Allow the type of a non-terminal can be given
3757 more than once, as long as all specifications give the same type.
3758
3759 * src/output.c:
3760 (output_headers, output_trailers, output, output_gram)
3761 (output_rule_data): Implement noparserflag variable.
3762 Implement toknumflag variable.
3763 (output): Call reader_output_yylsp to output LTYPESTR.
3764
3765 * src/main.c (main):
3766 If reader sees an error, don't process the grammar.
3767 (fatals): Updated to not use VARARGS1.
3768 (printable_version, int_to_string, warn, warni, warns, warnss)
3769 (warnsss): New error reporting functions. Avoid abort for error.
3770
3771 * src/lex.h:
3772 Added THONG and NOOP for alias processing.
3773 Added SETOPT for the new code that allows setting options with %flags.
3774
3775 * src/lex.c:
3776 Include getopt.h. Add some extern decls.
3777 (safegetc): New function to deal with EOF gracefully.
3778 (literalchar); new function to deal with reading \ escapes.
3779 (lex): Use literalchar.
3780 (lex): Implemented "..." tokens.
3781 (literalchar, lex, parse_percent_token): Made tokenbuffer
3782 always contain the token. This includes growing the token
3783 buffer while reading an integer.
3784 (parse_percent_token): Replaced if-else statement with percent_table.
3785 (parse_percent_token): Added % declarations as another
3786 way to specify the flags -n, -l, and -r. Also added hooks for
3787 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
3788 major changes to files.c.
3789 (lex) Retain in the incoming stream a character following
3790 an incorrect '/'.
3791 (skip_white_space, lex): Revised most error messages
3792 and changed fatal to warn to avoid aborting.
3793 (percent_table): Added %thong declarations.
3794
3795 * src/gram.h: Comment changes.
3796
3797 * src/files.c (openfiles, open_extra_files, done):
3798 Add faction flag
3799 and actfile file. Handle noparserflag. Both for -n switch.
3800
3801 * src/conflicts.c (resolve_sr_conflict):
3802 Remove use of alloca.
3803
3804 1995-06-01 Jim Meyering <meyering@gnu.org>
3805
3806 * doc/bison.texinfo: *** empty log message ***
3807
3808 1995-05-06 Richard Stallman <rms@gnu.org>
3809
3810 * src/bison.s1: Comment change.
3811
3812 1995-05-06 Richard Stallman <rms@gnu.org>
3813
3814 * bison.simple: Comment change.
3815
3816 1995-05-03 Richard Stallman <rms@gnu.org>
3817
3818 * src/version.c: Version now 1.24.
3819
3820 * src/bison.s1: Change distribution terms.
3821
3822 * src/version.c: Version now 1.23.
3823
3824 1995-05-03 Richard Stallman <rms@gnu.org>
3825
3826 * doc/bison.texinfo:
3827 Rewrite "Conditions for Using Bison".
3828 Update version to 1.24.
3829
3830 1995-05-03 Richard Stallman <rms@gnu.org>
3831
3832 * bison.simple: Change distribution terms.
3833
3834 1995-02-23 Richard Stallman <rms@gnu.org>
3835
3836 * src/files.c: Test __VMS_POSIX as well as VMS.
3837
3838 1995-02-14 Jim Meyering <meyering@gnu.org>
3839
3840 * src/bison.s1 (__yy_memcpy):
3841 Renamed from __yy_bcopy to avoid
3842 confusion. Reverse FROM and TO arguments to be consistent with
3843 those of memcpy.
3844
3845 1995-02-14 Jim Meyering <meyering@gnu.org>
3846
3847 * bison.simple (__yy_memcpy):
3848 Renamed from __yy_bcopy to avoid
3849 confusion. Reverse FROM and TO arguments to be consistent with
3850 those of memcpy.
3851
3852 1994-11-10 David J. MacKenzie <djm@gnu.org>
3853
3854 * NEWS: reformat
3855
3856 * NEWS: New file.
3857
3858 * Makefile.in (DISTFILES): Include NEWS.
3859
3860 * Makefile.in (DISTFILES):
3861 Include install-sh, not install.sh.
3862
3863 * configure.in: Update to Autoconf v2 macro names.
3864
3865 1994-10-05 David J. MacKenzie <djm@gnu.org>
3866
3867 * Makefile.in: fix typo
3868
3869 * Makefile.in (prefix, exec_prefix):
3870 Let configure set them.
3871
3872 1994-09-28 David J. MacKenzie <djm@gnu.org>
3873
3874 * Makefile.in: Set datadir to $(prefix)/share.
3875
3876 1994-09-15 Richard Stallman <rms@gnu.org>
3877
3878 * src/bison.s1:
3879 Update copyright notice and GPL version.
3880
3881 1994-09-15 Richard Stallman <rms@gnu.org>
3882
3883 * bison.simple:
3884 Update copyright notice and GPL version.
3885
3886 1994-07-12 Richard Stallman <rms@gnu.org>
3887
3888 * src/reduce.c, src/reader.c:
3889 entered into RCS
3890
3891 1994-05-05 David J. MacKenzie <djm@gnu.org>
3892
3893 * Makefile.in: entered into RCS
3894
3895 1994-03-26 Richard Stallman <rms@gnu.org>
3896
3897 * src/bison.s1: entered into RCS
3898
3899 1994-03-26 Richard Stallman <rms@gnu.org>
3900
3901 * bison.simple: entered into RCS
3902
3903 1994-03-25 Richard Stallman <rms@gnu.org>
3904
3905 * src/main.c: entered into RCS
3906
3907 1994-03-24 Richard Stallman <rms@gnu.org>
3908
3909 * src/conflicts.c: entered into RCS
3910
3911 1994-01-02 Richard Stallman <rms@gnu.org>
3912
3913 * Makefile.in: *** empty log message ***
3914
3915 1993-11-21 Richard Stallman <rms@gnu.org>
3916
3917 * src/bison.s1: *** empty log message ***
3918
3919 1993-11-21 Richard Stallman <rms@gnu.org>
3920
3921 * doc/bison.texinfo: entered into RCS
3922
3923 * doc/bison.texinfo: *** empty log message ***
3924
3925 1993-11-21 Richard Stallman <rms@gnu.org>
3926
3927 * bison.simple: *** empty log message ***
3928
3929 1993-10-25 David J. MacKenzie <djm@gnu.org>
3930
3931 * doc/bison.texinfo: *** empty log message ***
3932
3933 1993-10-19 Richard Stallman <rms@gnu.org>
3934
3935 * src/bison.s1: *** empty log message ***
3936
3937 1993-10-19 Richard Stallman <rms@gnu.org>
3938
3939 * bison.simple: *** empty log message ***
3940
3941 1993-10-14 Richard Stallman <rms@gnu.org>
3942
3943 * src/bison.s1: *** empty log message ***
3944
3945 1993-10-14 Richard Stallman <rms@gnu.org>
3946
3947 * bison.simple: *** empty log message ***
3948
3949 1993-09-14 David J. MacKenzie <djm@gnu.org>
3950
3951 * doc/bison.texinfo: *** empty log message ***
3952
3953 1993-09-13 Noah Friedman <friedman@gnu.org>
3954
3955 * Makefile.in: *** empty log message ***
3956
3957 1993-09-10 Richard Stallman <rms@gnu.org>
3958
3959 * src/conflicts.c: *** empty log message ***
3960
3961 * src/system.h: entered into RCS
3962
3963 1993-09-10 Richard Stallman <rms@gnu.org>
3964
3965 * doc/bison.1: entered into RCS
3966
3967 1993-09-06 Noah Friedman <friedman@gnu.org>
3968
3969 * src/version.c: entered into RCS
3970
3971 1993-09-06 Noah Friedman <friedman@gnu.org>
3972
3973 * Makefile.in: *** empty log message ***
3974
3975 1993-07-30 David J. MacKenzie <djm@gnu.org>
3976
3977 * Makefile.in: *** empty log message ***
3978
3979 1993-07-24 Richard Stallman <rms@gnu.org>
3980
3981 * src/bison.s1: *** empty log message ***
3982
3983 1993-07-24 Richard Stallman <rms@gnu.org>
3984
3985 * bison.simple: *** empty log message ***
3986
3987 1993-07-08 David J. MacKenzie <djm@gnu.org>
3988
3989 * Makefile.in: *** empty log message ***
3990
3991 1993-07-04 Richard Stallman <rms@gnu.org>
3992
3993 * src/bison.s1: *** empty log message ***
3994
3995 1993-07-04 Richard Stallman <rms@gnu.org>
3996
3997 * bison.simple: *** empty log message ***
3998
3999 1993-06-26 David J. MacKenzie <djm@gnu.org>
4000
4001 * src/getargs.c: entered into RCS
4002
4003 1993-06-26 David J. MacKenzie <djm@gnu.org>
4004
4005 * doc/bison.texinfo: *** empty log message ***
4006
4007 * doc/bison.1: New file.
4008
4009 1993-06-25 Richard Stallman <rms@gnu.org>
4010
4011 * src/getargs.c: New file.
4012
4013 1993-06-16 Richard Stallman <rms@gnu.org>
4014
4015 * src/bison.s1: *** empty log message ***
4016
4017 1993-06-16 Richard Stallman <rms@gnu.org>
4018
4019 * bison.simple: *** empty log message ***
4020
4021 1993-06-03 Richard Stallman <rms@gnu.org>
4022
4023 * src/bison.s1: New file.
4024
4025 1993-06-03 Richard Stallman <rms@gnu.org>
4026
4027 * doc/bison.texinfo: *** empty log message ***
4028
4029 1993-06-03 Richard Stallman <rms@gnu.org>
4030
4031 * bison.simple: New file.
4032
4033 1993-05-19 Richard Stallman <rms@gnu.org>
4034
4035 * doc/bison.texinfo: New file.
4036
4037 1993-05-07 Noah Friedman <friedman@gnu.org>
4038
4039 * Makefile.in: *** empty log message ***
4040
4041 1993-04-28 Noah Friedman <friedman@gnu.org>
4042
4043 * src/reader.c: *** empty log message ***
4044
4045 1993-04-23 Noah Friedman <friedman@gnu.org>
4046
4047 * src/alloc.h: entered into RCS
4048
4049 1993-04-20 David J. MacKenzie <djm@gnu.org>
4050
4051 * src/version.c: *** empty log message ***
4052
4053 * src/files.c, src/allocate.c:
4054 entered into RCS
4055
4056 * src/reader.c: *** empty log message ***
4057
4058 * src/lex.c: entered into RCS
4059
4060 * src/conflicts.c: New file.
4061
4062 * src/symtab.c: entered into RCS
4063
4064 * src/alloc.h: New file.
4065
4066 * src/LR0.c: entered into RCS
4067
4068 1993-04-18 Noah Friedman <friedman@gnu.org>
4069
4070 * src/reader.c: New file.
4071
4072 * src/version.c: *** empty log message ***
4073
4074 1993-04-18 Noah Friedman <friedman@gnu.org>
4075
4076 * Makefile.in: *** empty log message ***
4077
4078 1993-04-17 Noah Friedman <friedman@gnu.org>
4079
4080 * Makefile.in: *** empty log message ***
4081
4082 1993-04-15 Richard Stallman <rms@gnu.org>
4083
4084 * src/main.c, src/files.c:
4085 New file.
4086
4087 1993-04-15 Noah Friedman <friedman@gnu.org>
4088
4089 * configure.in: entered into RCS
4090
4091 * configure.in: *** empty log message ***
4092
4093 * configure.in: New file.
4094
4095 1993-04-14 Richard Stallman <rms@gnu.org>
4096
4097 * Makefile.in: New file.
4098
4099 1993-04-13 Richard Stallman <rms@gnu.org>
4100
4101 * src/version.c: New file.
4102
4103 1993-03-25 Richard Stallman <rms@gnu.org>
4104
4105 * src/output.c: entered into RCS
4106
4107 1992-09-25 Richard Stallman <rms@gnu.org>
4108
4109 * configure.bat: entered into RCS
4110
4111 1992-06-22 Richard Stallman <rms@gnu.org>
4112
4113 * src/vmsgetargs.c: entered into RCS
4114
4115 1992-06-22 Richard Stallman <rms@gnu.org>
4116
4117 * doc/bison.rnh: entered into RCS
4118
4119 1992-04-20 David J. MacKenzie <djm@gnu.org>
4120
4121 * README: entered into RCS
4122
4123 1992-01-22 Richard Stallman <rms@gnu.org>
4124
4125 * src/machine.h: entered into RCS
4126
4127 1991-12-21 Richard Stallman <rms@gnu.org>
4128
4129 * src/lalr.c, src/closure.c:
4130 entered into RCS
4131
4132 1991-12-20 Richard Stallman <rms@gnu.org>
4133
4134 * src/state.h: entered into RCS
4135
4136 1991-12-18 Richard Stallman <rms@gnu.org>
4137
4138 * src/print.c, src/nullable.c, src/derives.c:
4139 entered into RCS
4140
4141 1991-11-03 David J. MacKenzie <djm@gnu.org>
4142
4143 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4144 entered into RCS
4145
4146 1988-09-09 Richard Stallman <rms@gnu.org>
4147
4148 * src/bison.hairy: entered into RCS
4149
4150 1987-12-16 Richard Stallman <rms@gnu.org>
4151
4152 * REFERENCES: entered into RCS