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