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