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