]> git.saurik.com Git - bison.git/blame - ChangeLog
* tests/regression.at (Invalid input): Remove, duplicate with
[bison.git] / ChangeLog
CommitLineData
e4d3d4de
AD
12001-11-12 Akim Demaille <akim@epita.fr>
2
3 * tests/regression.at (Invalid input): Remove, duplicate with
4 ``Invalid input: 1''.
5
6
6d7d248e
AD
72001-11-12 Akim Demaille <akim@epita.fr>
8
9 * tests/torture.at (AT_DATA_STACK_TORTURE)
10 (Exploding the Stack Size with Alloca)
11 (Exploding the Stack Size with Malloc): New.
12
e9e4c321
AD
132001-11-12 Akim Demaille <akim@epita.fr>
14
15 * src/bison.simple (YYSTACK_REALLOC): New.
16 (yyparse) [!yyoverflow]: Use it and free the old stack.
17 Reported by FIXME: Who.
18
5f7e0832
AD
192001-11-12 Pascal Bart <pascal.bart@epita.fr>
20
21 * src/bison.simple: Define type yystype instead of YYSTYPE, and
22 define CPP macro, which substitute YYSTYPE by yystype.
23 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
24 with yyltype/YYLTYPE. This allows inclusion of the generated
25 header within the parser if the compiler, such as GGC, accepts
26 multiple equivalent #defines.
27 From Akim.
28
e3f1699f
AD
292001-11-05 Akim Demaille <akim@epita.fr>
30
31 * src/reader.c (symbols_output): New, extracted from...
32 (packsymbols): here.
33 (reader): Adjust.
34
65be0866
AD
352001-11-05 Akim Demaille <akim@epita.fr>
36
37 * src/lex.c (parse_percent_token): s/quotearg/quote/.
38
e4d910bf
AD
392001-11-05 Akim Demaille <akim@epita.fr>
40
41 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
42 pattern.
43
951366c1
AD
442001-11-05 Akim Demaille <akim@epita.fr>
45
46 * src/options.h (struct option_table_struct): set_flags is void*.
47 * src/options.c (longopts): Support `--output' and `%output'.
48 (usage): Adjust.
49 * src/lex.h (tok_setopt): Remove, replaced with...
50 (tok_intopt, tok_stropt): these new guys.
51 * src/lex.c (getopt.h): Not needed.
52 (token_buffer, unlexed_token_buffer): Not const.
53 (percent_table): Promote `-' over `_' in directive names.
54 Active `%name-prefix', `file-prefix', and `output'.
55 (parse_percent_token): Accept possible arguments to directives.
56 Promote `-' over `_' in directive names.
57
d8988b2f
AD
582001-11-04 Akim Demaille <akim@epita.fr>
59
60 * doc/bison.texinfo (Decl Summary): Split the list into
61 `directives for grammars' and `directives for bison'.
62 Sort'em.
63 Add description of `%name-prefix', `file-prefix', and `output'.
64 Promote `-' over `_' in directive names.
65 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
66 Simplify the description of `--name-prefix'.
67 Promote `-' over `_' in directive names.
68 Promote `--output' over `--output-file'.
69 Fix the description of `--defines'.
70 * tests/output.at: Exercise %file-prefix and %output.
71
6468d18e
AD
722001-11-02 Akim Demaille <akim@epita.fr>
73
74 * doc/refcard.tex: Update.
75
6b7e85b9
AD
762001-11-02 Akim Demaille <akim@epita.fr>
77
78 * src/symtab.h (SUNDEF): New.
79 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
80 stand for `uninitialized', instead of 0.
81 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
82 * src/lex.c (lex): Adjust.
83
84 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
85 Number it 0.
86 Let yylex return it instead of a plain 0.
87 Reported by Dick Streefland.
88
cd5aafcf
AD
892001-11-02 Akim Demaille <akim@epita.fr>
90
91 * tests/regression.at (Mixing %token styles): New test.
92
037ca2f1
AD
932001-11-02 Akim Demaille <akim@epita.fr>
94
95 * src/reader.c (parse_thong_decl): Formatting changes.
96 (token_translations_init): New, extracted from...
97 (packsymbols): Here.
98 Adjust.
99
270a173c
AD
1002001-11-01 Akim Demaille <akim@epita.fr>
101
102 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
103 Check that `9foo.y' produces correct cpp guards.
104 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
105 guards.
106 Reported by Wwp.
107
561f9a30
AD
1082001-11-01 Akim Demaille <akim@epita.fr>
109
110 * tests/regression.at (Invalid input: 2): New.
111 * src/lex.c (unlexed_token_buffer): New.
112 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
113 too.
114 Reported by Wwp.
115
f987e9d2
AD
1162001-11-01 Akim Demaille <akim@epita.fr>
117
118 * tests/calc.at: Catch up with 1.30.
119 * configure.in: Bump to 1.49a.
120 Adjust to newer Autotest.
121
0846f581
PB
1222001-10-19 Pascal Bart <pascal.bart@epita.fr>
123
124 * src/conflicts.c: Move global variables rrc_total and src_total ...
125 (print_conflicts): here.
126 * src/output.c (output): Free global variable user_toknums.
127 * src/lex.c (token_obstack): Become static.
128
3c1a79b3
AD
1292001-10-18 Akim Demaille <akim@epita.fr>
130
131 * tests/atlocal.in (GCC): Add.
132 * tests/calc.at: s/m4_match/m4_bmatch/.
133 s/m4_patsubst/m4_bpatsubst/.
134 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
135 * configure.in: AC_SUBST(GCC).
136
5d52e7d0
MA
1372001-10-14 Marc Autret <autret_m@epita.fr>
138
139 * src/options.c (create_long_option_table): Fix.
140
631aa1d3
AD
1412001-10-10 Akim Demaille <akim@epita.fr>
142
143 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
144
f6ec6d13
AD
1452001-10-04 Akim Demaille <akim@epita.fr>
146
147 * src/reader.c (parse_union_decl): Push the caracters in
148 union_obstack, not attrs_obstack.
149
342b8b6e
AD
1502001-10-04 Akim Demaille <akim@epita.fr>
151
152 Merge in the branch 1.29.
153
154 * src/reader.c (packsymbols): Use a temporary obstack for
155 `%%tokendef', since output_stack is already used elsewhere.
156
157 2001-10-02 Akim Demaille <akim@epita.fr>
158
159 Bump 1.29d.
160
161 2001-10-02 Akim Demaille <akim@epita.fr>
162
163 Version 1.29c.
164
165 2001-10-02 Akim Demaille <akim@epita.fr>
166
167 * tests/regression.at (Invalid CPP headers): New.
168 From Alexander Belopolsky.
169 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
170
171 2001-10-02 Akim Demaille <akim@epita.fr>
172
173 * tests/regression.at (Invalid input): New.
174 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
175 Reported by Shura.
176
177 2001-10-02 Akim Demaille <akim@epita.fr>
178
179 * tests/calc.at: Now that --debug works, the tests must be adjusted.
180
181 2001-10-02 Akim Demaille <akim@epita.fr>
182
183 * src/output.c (output_parser): Assert `skeleton'.
184 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
185 systems.
186 From Shura.
187
188 2001-10-01 Marc Autret <autret_m@epita.fr>
189
190 * src/lex.h: Echo modifications.
191 * src/lex.c (unlex): Parameter is now token_t.
192 From Hans Aberg.
193
194 2001-10-01 Marc Autret <autret_m@epita.fr>
195
196 * src/main.c: Include lex.h.
197 From Hans Aberg.
198
199 2001-09-29 Akim Demaille <akim@epita.fr>
200
201 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
202
203 2001-09-28 Akim Demaille <akim@epita.fr>
204
205 * tests/testsuite.at: Update to newer Autotest.
206 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
207
208 2001-09-27 Akim Demaille <akim@epita.fr>
209
210 Position independent wrapper.
211
212 * tests/bison: Remove.
213 * tests/bison.in: New.
214 * configure.in: Adjust.
215
216 2001-09-27 Paul Eggert <eggert@twinsun.com>
217
218 Port quotearg fixes from tar 1.13.24.
219
220 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
221 tm to be declared.
222 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
223 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
224
225 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
226 * m4/mbrtowc.m4: New file.
227 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
228 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
229
230 2001-09-27 Akim Demaille <akim@epita.fr>
231
232 Bump to 1.29c.
233
234 2001-09-27 Akim Demaille <akim@epita.fr>
235
236 Version 1.29b.
237
238 2001-09-25 Akim Demaille <akim@epita.fr>
239
240 * src/system.h: Include `xalloc.h'.
241 Remove it from the C files.
242 * src/files.c (output_files): Free the obstacks.
243 * src/lex.c (init_lex): Rename as...
244 (lex_init): this.
245 (lex_free): New.
246 * src/main.c (main): Use it.
247
248 2001-09-24 Marc Autret <autret_m@epita.fr>
249
250 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
251 to output informations in fout (FILE*).
252 (open_graph, close_graph): Likewise.
253 (output_graph, output_edge, output_node): Likewise.
254 * src/vcg.h: Update function prototypes.
255 * src/print_graph.c (print_graph): Open output graph file.
256 (print_actions): Adjust.
257 * src/files.h: Remove extern declaration.
258 * src/files.c: Remove graph_obstack declaration.
259 (open_files): Remove graph_obstack initialization.
260 (output_files): Remove graph_obstack saving.
261
262 2001-09-24 Marc Autret <autret_m@epita.fr>
263
264 * src/files.c (compute_output_file_names): Fix.
265
266 2001-09-24 Marc Autret <autret_m@epita.fr>,
267 Akim Demaille <akim@epita.fr>
268
269 * src/reader.c (reader): Remove call to free_symtab ().
270 * src/main.c (main): Call it here.
271 Include symtab.h.
272 * src/conflicts.c (initialize_conflicts): Rename as...
273 (solve_conflicts): this.
274 * src/print.c (print_core, print_actions, print_state)
275 (print_grammar): Dump to a file instead a `output_obstack'.
276 (print_results): Dump `output_obstack', and then proceed with the
277 FILE *.
278 * src/files.c (compute_output_file_names, close_files): New.
279 (output_files): Adjust.
280 * src/main.c (main): Adjust.
281
282 2001-09-23 Marc Autret <autret_m@epita.fr>
283
284 * src/files.c (compute_header_macro): Computes header macro name
285 from spec_defines_file when given.
286
287 2001-09-23 Marc Autret <autret_m@epita.fr>
288
289 * src/files.c (output_files): Add default extensions.
290
291 2001-09-22 Akim Demaille <akim@epita.fr>
292
293 * src/conflicts.c (finalize_conflicts): Rename as...
294 (free_conflicts): this.
295
296 2001-09-22 Akim Demaille <akim@epita.fr>
297
298 * src/gram.c (gram_free): Rename back as...
299 (dummy): this.
300 (output_token_translations): Free `token_translations'.
301 * src/symtab.c (free_symtab): Free the tag field.
302
303 2001-09-22 Akim Demaille <akim@epita.fr>
304
305 Remove `translations' as it is always set to true.
306
307 * src/gram.h: Adjust.
308 * src/reader.c (packsymbols, parse_token_decl): Adjust
309 * src/print.c (print_grammar): Adjust.
310 * src/output.c (output_token_translations): Adjust.
311 * src/lex.c (lex): Adjust.
312 * src/gram.c: Be sure the set pointers to NULL.
313 (dummy): Rename as...
314 (gram_free): this.
315
316 2001-09-22 Akim Demaille <akim@epita.fr>
317
318 * configure.in: Invoke AM_LIB_DMALLOC.
319 * src/system.h: Use dmalloc.
320 * src/LR0.c: Be sure to have pointers initialized to NULL.
321 (allocate_itemsets): Allocate kernel_items only if needed.
322
323 2001-09-22 Akim Demaille <akim@epita.fr>
324
325 * configure.in: Bump to 1.29b.
326 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
327 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
328 need xmalloc.c in calc.y.
329 From Pascal Bart.
330
331 2001-09-21 Akim Demaille <akim@epita.fr>
332
333 Version 1.29a.
334 * Makefile.maint, config/config.guess, config/config.sub,
335 * config/missing: Update from masters.
336 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
337 upon package.m4.
338 * configure.in (ALL_LINGUAS): Add `tr'.
339
340 2001-09-21 Akim Demaille <akim@epita.fr>
341
342 * tests/Makefile.am (package.m4): Move to...
343 ($(srcdir)/$(TESTSUITE)): here.
344
345 2001-09-20 Akim Demaille <akim@epita.fr>
346
347 * src/complain.c: No longer try to be standalone: use system.h.
348 Don't assume __STDC__ is defined to 1. Just test if it is defined.
349 * src/complain.h: Likewise.
350 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
351 Remove the unused variable `n'.
352 From Albert Chin-A-Young.
353
354 2001-09-18 Marc Autret <autret_m@epita.fr>
355
356 * doc/bison.1: Update.
357 * doc/bison.texinfo (Bison Options): Update --defines and --graph
358 descriptions.
359 (Option Cross Key): Update.
360 Add --graph.
361
362 2001-09-18 Marc Autret <autret_m@epita.fr>
363
364 * tests/regression.at: New test (comment in %union).
365
366 2001-09-18 Marc Autret <autret_m@epita.fr>
367
368 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
369 do that.
370 Reported by Keith Browne.
371
372 2001-09-18 Marc Autret <autret_m@epita.fr>
373
374 * tests/output.at: Add tests for --defines and --graph.
375
376 2001-09-18 Marc Autret <autret_m@epita.fr>
377
378 * tests/output.at: Removes tests of %{header,src}_extension features.
379
380 2001-09-18 Akim Demaille <akim@epita.fr>
381
382 * tests/Makefile.am (package.m4): New.
383 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
384 (_AT_CHECK_CALC_ERROR): Likewise.
385 Factor the `, ' part of verbose error messages.
386
387 2001-09-18 Marc Autret <autret_m@epita.fr>
388
389 * src/getargs.c (longopts): Declare --defines and --graph as options
390 with optional arguments.
391 * src/files.h: Add extern declarations.
392 * src/files.c (spec_graph_file, spec_defines_file): New.
393 (output_files): Update.
394 Remove CPP-outed code.
395
396 2001-09-18 Marc Autret <autret_m@epita.fr>
397
398 Turn off %{source,header}_extension feature.
399
400 * src/files.c (compute_exts_from_gf): Update.
401 (compute_exts_from_src): Update.
402 (output_files): CPP-out useless code.
403 * src/files.h: Remove {header,source}_extension extern declarations.
404 * src/reader.c (parse_dquoted_param): CPP-out.
405 (parse_header_extension_decl): Remove.
406 (parse_source_extension_decl): Remove.
407 (read_declarations): Remove cases tok_{hdrext,srcext}.
408 * src/lex.c (percent_table): Remove {header,source}_extension entries.
409 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
410
411 2001-09-10 Akim Demaille <akim@epita.fr>
412
413 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
414 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
415 (AT_CHECK_OUTPUT): this.
416 Merely check ls' exit status, its output is useless.
417
418 2001-09-10 Akim Demaille <akim@epita.fr>
419
420 * tests/calc.at: Use m4_match.
421 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
422
423 2001-09-10 Marc Autret <autret_m@epita.fr>,
424 Akim Demaille <akim@epita.fr>
425
426 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
427 enum color_e.
428 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
429 to `normal'.
430 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
431 * src/lex.h: Adjust prototype.
432 (token_t): Add `tok_undef'.
433 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
434 (parse_percent_token): Now returns token_t.
435 Add default statement in switch.
436 (lex): Separate `c' as an input variable, from the token_t result
437 part.
438 (unlexed): Is a token_t.
439
440 2001-09-10 Akim Demaille <akim@epita.fr>
441
442 * configure.in: Bump to 1.29a.
443
444 2001-09-07 Akim Demaille <akim@epita.fr>
445
446 Version 1.29.
447
448 2001-08-30 Akim Demaille <akim@epita.fr>
449
450 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
451 * m4/atconfig.m4: Remove.
452 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
453 * tests/bison: New.
454 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
455 m4_if, m4_patsubst, and m4_regexp.
456 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
457 `input' file instead of echo.
458
459 2001-08-29 Akim Demaille <akim@epita.fr>
460
461 Bump to 1.28e.
462
463 2001-08-29 Akim Demaille <akim@epita.fr>
464
465 Version 1.28d.
466
467 2001-08-29 Paul Eggert <eggert@twinsun.com>
468
469 * src/bison.simple (yyparse): Don't take the address of an
470 item before the start of an array, as that doesn't conform to
471 the C Standard.
472
473 2001-08-29 Robert Anisko <anisko_r@epita.fr>
474
475 * doc/bison.texinfo (Location Tracking Calc): New node.
476
477 2001-08-29 Paul Eggert <eggert@twinsun.com>
478
479 * src/output.c (output): Do not define const, as this now
480 causes more problems than it cures.
481
482 2001-08-29 Akim Demaille <akim@epita.fr>
483
484 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
485 the nodes.
486 Be sure to tag the `detailmenu'.
487
488 2001-08-29 Akim Demaille <akim@epita.fr>
489
490 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
491 download in a tmp dir.
492
493 2001-08-28 Marc Autret <autret_m@epita.fr>
494
495 * config/depcomp: New file.
496
497 2001-08-28 Marc Autret <autret_m@epita.fr>
498
499 * doc/bison.1 (mandoc): Adjust.
500 From Juan Manuel Guerrero.
501
502 2001-08-28 Marc Autret <autret_m@epita.fr>
503
504 * src/print_graph.c (print_state): Fix.
505
506 2001-08-27 Marc Autret <autret_m@epita.fr>
507
508 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
509 char * members.
510 Echo modifications to the functions prototypes.
511 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
512
513 2001-08-27 Marc Autret <autret_m@epita.fr>
514
515 * src/vcg.c: Include `xalloc.h'.
516 (add_colorentry): New.
517 (add_classname): New.
518 (add_infoname): New.
519 * src/vcg.h: Add new prototypes.
520
521 2001-08-27 Akim Demaille <akim@epita.fr>
522
523 * Makefile.maint: Sync. again with CVS Autoconf.
524
525 2001-08-27 Akim Demaille <akim@epita.fr>
526
527 * Makefile.maint: Formatting changes.
528 (po-update, cvs-update, update): New targets.
529 (AMTAR): Remove.
530
531 2001-08-27 Akim Demaille <akim@epita.fr>
532
533 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
534 * Makefile.maint: Sync. with CVS Autoconf.
535
536 2001-08-27 Marc Autret <autret_m@epita.fr>
537
538 * src/vcg.h (struct infoname_s): New.
539 (struct colorentry_s): New.
540 (graph_s): New fields {vertical,horizontal}_order in structure.
541 Add `infoname' field.
542 Add `colorentry' field;
543 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
544 (G_HORIZONTAL_ORDER): New.
545 (G_INFONAME): New.
546 (G_COLORENTRY): New.
547 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
548 Add output of `infoname'.
549 Add output of `colorentry'.
550
551 2001-08-27 Marc Autret <autret_m@epita.fr>
552
553 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
554 This one shadowed a global parameter.
555
556 2001-08-24 Marc Autret <autret_m@epita.fr>
557
558 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
559 instead of `unsigned'.
560 (print_state): Do not call obstack_object_size () in obstack_grow ()
561 to avoid macro variables shadowing.
562
563 2001-08-23 Marc Autret <autret_m@epita.fr>
564
565 * src/lex.c (percent_table): Typo: s/naem/name/.
566 Add graph option.
567 Normalize new options declarations.
568
569 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
570
571 * tests/suite.at: Exercise %header_extension and %source_extension.
572
573 2001-08-16 Marc Autret <autret_m@epita.fr>
574
575 * src/reader.c (parse_dquoted_param): New.
576 (parse_header_extension_decl): Use it.
577 (parse_source_extension_decl): Likewise.
578
579 2001-08-16 Marc Autret <autret_m@epita.fr>
580
581 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
582 (get_xxxx_str): Use assert () instead of complain ().
583 Remove return invokations in default cases.
584 (get_decision_str): Modify default behaviour. Remove second argument.
585 Echo modifications on calls.
586 (output_graph): Fix.
587
588 2001-08-16 Marc Autret <autret_m@epita.fr>
589
590 * src/getargs.c (usage): Update with ``-g, --graph''.
591
592 2001-08-16 Marc Autret <autret_m@epita.fr>
593
594 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
595 (Option Cross Key): Likewise.
596 * doc/bison.1: Update.
597
1c8c2190
PB
5982001-09-25 Pascal Bart <pascal.bart@epita.fr>
599
600 * src/output.c (output_master_parser): Don't finish action_obstack.
601 (output_parser): Don't care about the muscle action, here.
602 (prepare): Copy the action_obstack in the action muscle.
603 (output): Free action_obstack.
604
180d45ba
PB
6052001-09-23 Pascal Bart <pascal.bart@epita.fr>
606
607 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
608 will contain `%union' declaration.
609 (parse_union_decl): Delete #line directive output.
610 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
611 informations about %union.
612 (parse_union_decl): Copy the union_obstack in the muscle stype.
613 * src/bison.simple: Add new #line directive.
614 Add typdef %%stype YYSTYPE.
615
c51d1a19
PB
6162001-09-23 Pascal Bart <pascal.bart@epita.fr>
617
618 * src/bison.simple: Add new `#line' directive.
619
6f9344da
PB
6202001-09-22 Pascal Bart <pascal.bart@epita.fr>
621
622 * src/bison.simple: New `#line' directive.
623 * src/output.c (output_parser): Support new dynamic muscle input_line.
624
652def80
MA
6252001-09-22 Marc Autret <autret_m@epita.fr>
626
627 * src/output.c (output_master_parser): New.
628 (output_parser): Be more re-entrant.
629
25b222fa
MA
6302001-09-21 Marc Autret <autret_m@epita.fr>
631
632 * src/reader.c (copy_definition, parse_union_decl): Update and use
633 `linef' muscle.
634 (copy_action): Likewise.
635 Use obstack_1grow ().
636 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
637
6bc35ae5
MA
6382001-09-21 Marc Autret <autret_m@epita.fr>
639
640 * src/options.c (option_table): Adjust.
641 * src/lex.c (parse_percent_token): Fix.
642
c0629aa1
PB
6432001-09-20 Pascal Bart <pascal.bart@epita.fr>
644
645 * src/options.c (symtab.h): Include it, need by lex.h.
342b8b6e 646
82b6d266
PB
6472001-09-20 Pascal Bart <pascal.bart@epita.fr>
648
649 * src/lex.c (parse_percent_token): Change type of variable `tx', which
650 is now an option_table_struct*.
651 (option_strcmp): New function option_strcmp.
652 (parse_percent_token): Call option_strcmp.
653 * src/getargs.c (xalloc.h, options.h): Include it.
654 (getargs): Call create_long_option_table.
655 (getargs): Free longopts at the end of the function.
656 (shortopts): Move in options.c.
657 * src/options.c (create_long_option_table): New function. Convert
658 information from option_table to option structure.
659 * src/reader.c (options.h): Include it.
660
661 * src/Makefile.am: Adjust.
662 * src/options.c (option_table): Create from longopts and percent_table.
663 * src/getargs.c (longopts): Delete.
664 * src/lex.c (struct percent_table_struct): Delete.
665 (percent_table): Delete.
666 (options.h): Include it.
667 * src/options.c: Create.
668 * src/options.h: Create.
669 Declare enum opt_access_e.
670 Define struct option_table_struct.
671
75f5aaea
MA
6722001-09-20 Marc Autret <autret_m@epita.fr>
673
674 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
675 sections of Bison.
676
f508cb0a
PB
6772001-09-19 Pascal Bart <pascal.bart@epita.fr>
678
679 * src/bison.simple: s/%%filename/%%skeleton.
680 * src/muscle_tab.c (getargs.h): Include it.
681 (muscle_init): Insert new muscle skeleton.
682
13105fc1
PB
6832001-09-18 Pascal Bart <pascal.bart@epita.fr>
684
685 * src/output.c (output_parser): Delete unused variable actions_dumped.
686
b0c4483e
PB
6872001-09-07 Pascal Bart <pascal.bart@epita.fr>
688
689 * src/output.c (output): Delete call to reader_output_yylsp.
690 * src/reader.c (reader): Likewise.
691 * src/reader.h: Delete declaration of reader_output_yylsp.
342b8b6e 692
11d82f03
MA
6932001-09-02 Marc Autret <autret_m@epita.fr>
694
695 * src/reader.c: Include muscle_tab.h.
696 (parse_union_decl): Update.
697 (parse_macro_decl): Rename parse_muscle_decl.
698 Update to use renamed functions and variable.
699 (read_declarations, copy_action, read_additionnal_code, : Updated
700 with correct variables and functions names.
701 (packsymbols, reader): Likewise.
342b8b6e 702
11d82f03 703 * src/reader.h (muscle_obstack): Extern declaration update.
342b8b6e 704
11d82f03
MA
705 * src/output.c: Include muscle_tab.h
706 In all functions using macro_insert, change by using muscle_insert ().
707 (macro_obstack): Rename muscle_obstack.
708 Echo modifications in the whole file.
709 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
710 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
711 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
712
713 * src/muscle_tab.h: Update double inclusion macros.
714 (macro_entry_s): Rename muscle_entry_s.
715 Update prototypes.
342b8b6e 716
11d82f03
MA
717 * src/muscle_tab.c: Include muscle_tab.h.
718 Rename macro_tabble to muscle_table.
719 (mhash1, mhash2, mcmp): Use muscle_entry.
720 (macro_init): Rename muscle_init. Update.
721 (macro_insert): Rename muscle_insert. Update.
722 (macro_find): Rename muscle_find. Update.
723
724 * src/main.c: Include muscle_tab.h.
725 (main): Call muscle_init ().
726 * src/Makefile.am (bison_SOURCES): Echo modifications.
727
93a37297
MA
7282001-09-02 Marc Autret <autret_m@epita.fr>
729
f753cd62 730 Now the files macro_tab.[ch] are named muscle_tab.[ch].
342b8b6e 731
f753cd62
MA
732 * src/muscle_tab.c, src/muscle_tab.h: Add files.
733
7342001-09-02 Marc Autret <autret_m@epita.fr>
735
736 * src/macrotab.c, src/macrotab.h: Remove.
93a37297 737
682d48cd
PB
7382001-09-01 Pascal Bart <pascal.bart@epita.fr>
739
342b8b6e 740 * src/reader.c (copy_guard): Use muscle to specify the `#line'
682d48cd
PB
741 filename.
742
087c8fda
MA
7432001-09-01 Marc Autret <autret_m@epita.fr>
744
745 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
746 to an explicit value to activate the feature. We do it here.
747
dda680cb
PB
7482001-08-31 Pascal Bart <pascal.bart@epita.fr>
749
750 * src/output.c (prepare): Delete the `filename' muscule insertion.
751 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
752 (parse_union_decl): Likewise.
753 * src/macrotab.c (macro_init): Initialize filename by infile.
754
9e644e64
MA
7552001-08-31 Marc Autret <autret_m@epita.fr>
756
757 * src/bison.simple (YYLSP_NEEDED): New definition.
758 * src/output.c (prepare): Add macro insertion of `locations_flag'
759
17da6427
PB
7602001-08-31 Pascal Bart <pascal.bart@epita.fr>
761
762 * src/output.c (prepare): Delete insertion of previous muscles,
763 and insert the `prefix' muscles.
764 * src/macrotab.c (macro_init): Likewise.
765 (macro_init): Initialization prefix directive by `yy'.
342b8b6e 766 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
17da6427
PB
767 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
768 yylval, yydebug, yyerror, yynerrs and yyparse.
342b8b6e 769 New directive `#define' to substitute yydebug, ... with option
17da6427
PB
770 name_prefix.
771
e8cb70b9
PB
7722001-08-31 Pascal Bart <pascal.bart@epita.fr>
773
774 * src/main.c (main): Standardize.
775 * src/output.c (output_table_data, output_parser): Likewise.
776 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
777
63c2d5de
MA
7782001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
779
342b8b6e 780 * src/reader.c (read_additionnal_code): Rename %%user_code to
63c2d5de
MA
781 %%epilogue.
782 * src/output.c (output): Rename %%declarations to %%prologue.
783 * src/bison.simple: Echo modifications.
342b8b6e 784
d8cb5183
MA
7852001-08-31 Marc Autret <autret_m@epita.fr>
786
787 * src/reader.c (readgram): CleanUp.
788 (output_token_defines): Likewise.
789 (packsymbols): Likewise.
790 (reader): Likewise.
791 * src/output.c (output): CPP-out useless code.
792
6c686258
PB
7932001-08-31 Pascal Bart <pascal.bart@epita.fr>
794
342b8b6e 795 * src/reader.c (reader): Delete obsolete call to function
6c686258
PB
796 output_trailers and output_headers.
797 * src/output.h: Remove obsolete functions prototypes of output_headers
798 and output_trailers.
799
8f451ef7
PB
8002001-08-30 Pascal Bart <pascal.bart@epita.fr>
801
802 * src/main.c: Include macrotab.h.
342b8b6e 803 * src/macrotab.h (macro_entry_s): Constify fields.
8f451ef7
PB
804 Adjust functions prototypes.
805 * src/macrotab.c (macro_insert): Constify key and value.
806 (macro_find): Constify key.
807 (macro_insert): Include 'xalloc.h'
808 (macro_insert): Use XMALLOC.
809 (macro_find): Constify return value.
810 * src/output.c (output_table_data): Rename table to table_data.
811 (output_parser): Constify macro_key, macro_value.
812
997b6fd0 8132001-08-30 Marc Autret <autret_m@epita.fr>
2ba3b73c
MA
814
815 * src/reader.c (parse_skel_decl): New.
342b8b6e 816 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2ba3b73c
MA
817 * src/lex.h (token_t): New token `tok_skel'.
818 * src/lex.c (percent_table): Add skeleton option entry.
819 Standardize.
820
ff48177d
MA
8212001-08-29 Marc Autret <autret_m@epita.fr>
822
823 * src/bison.simple: Add %%user_code directive at the end.
824 * src/reader.c (read_additionnal_code): New.
825 (reader): Use it.
826 * src/output.c (output_program): Remove.
827 (output): Update.
828
b33160bf
MA
8292001-08-28 Marc Autret <autret_m@epita.fr>
830
831 * src/output.c (output_actions): Clean up.
4e5caae2 832 (output_gram): CPP-out useless code.
b33160bf
MA
833 * src/reader.c (reader): Clean up, CPP-out useless code.
834
d1a2daf7
PB
8352001-08-28 Pascal Bart <pascal.bart@epita.fr>
836
342b8b6e 837 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
535c0e75 838 directive.
d1a2daf7
PB
839 * src/bison.simple: Add `%%definitions'.
840
2b763dfe
MA
8412001-08-28 Marc Autret <autret_m@epita.fr>
842
843 * config/depcomp: New file.
844
f1a87ef6
PE
8452001-08-27 Paul Eggert <eggert@twinsun.com>
846
847 * src/bison.simple (yyparse): Don't take the address of an
848 item before the start of an array, as that doesn't conform to
849 the C Standard.
850
82e236e2
RA
8512001-08-27 Robert Anisko <robert.anisko@epita.fr>
852
f1a87ef6 853 * src/output.c (output): Remove the initialization of the macro
82e236e2
RA
854 obstack. It was done too late here.
855
856 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
857 completely wrong.
858 (reader): Initialize the macro obstack here, since we need it to grow
859 '%define' directives.
860
861 * src/reader.h: Declare the macro obstack as extern.
862
b0cfa28a
RA
8632001-08-27 Robert Anisko <robert.anisko@epita.fr>
864
865 * src/output.c (output_parser): Fix. Store single '%' characters in
866 the output obstack instead of throwing them away.
867
6fc74234
AD
8682001-08-27 Akim Demaille <akim@epita.fr>
869
870 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
871
9c76d118
RA
8722001-08-25 Robert Anisko <robert.anisko@epita.fr>
873
874 * lib/Makefile.am: Adjust.
875
a8289c62
RA
8762001-08-25 Robert Anisko <robert.anisko@epita.fr>
877
878 * src/bison.simple: Update and add '%%' directives.
879
b6610515
RA
8802001-08-25 Robert Anisko <robert.anisko@epita.fr>
881
882 * src/reader.c (reader): Remove calls to 'output_headers' and
883 'output_trailers'. Remove some C output.
884 (readgram): Disable a piece of code that was writing a default
885 definition for 'YYSTYPE'.
886 (reader_output_yylsp): Remove.
887 (packsymbols): Output token defintions to a macro.
888 (copy_definition): Disable C output.
6fc74234 889
b6610515
RA
890 * src/reader.c (parse_macro_decl): New function used to parse macro
891 declarations.
892 (copy_string2): Put the body of copy_string into this new function.
893 Add a parameter to let the caller choose whether he wants to copy the
894 string delimiters or not.
895 (copy_string): Be a simple call to copy_string2 with the last argument
896 bound to true.
897 (read_declarations): Add case for macro definition.
898 (copy_identifier): New.
6fc74234 899 (parse_macro_decl): Read macro identifiers using copy_identifier
b6610515
RA
900 rather than lex.
901
26f609ff
RA
9022001-08-25 Robert Anisko <robert.anisko@epita.fr>
903
904 * src/output.c (prepare): Add prefixed names.
905 (output_parser): Output semantic actions.
906 (output_parser): Fix bug on '%%line' directives.
6fc74234 907
26f609ff
RA
908 * src/output.c (output_headers): Remove. The C code printed by this
909 function should now be in the skeletons.
910 (output_trailers): Remove.
911 (output): Disable call to 'reader_output_yylsp'.
912 (output_rule_data): Do not output tables to the table obstack.
913
914 * src/output.c: Remove some C dedicated output.
915 Improve the use of macro and output obstacks.
916 (output_defines): Remove.
6fc74234 917
26f609ff
RA
918 * src/output.c (output_token_translations): Associate 'translate'
919 table with a macro. No output to the table obstack.
920 (output_gram): Same for 'rhs' and 'prhs'.
921 (output_stos): Same for 'stos'.
922 (output_rule_data): Same for 'r1' and 'r2'.
923 (token_actions): Same for 'defact'.
924 (goto_actions): Same for 'defgoto'.
925 (output_base): Same for 'pact' and 'pgoto'.
926 (output_table): Same for 'table'.
927 (output_check): Same for 'check'.
6fc74234 928
26f609ff
RA
929 * src/output.c (output_table_data): New function.
930 (output_short_table): Remove.
931 (output_short_or_char_table): Remove.
6fc74234 932
26f609ff
RA
933 * src/output.c (output_parser): Replace most of the skeleton copy code
934 with something new. Skeletons are now processed character by character
935 rather than line by line, and Bison looks for '%%' macros. This is the
936 first step in making Bison's output process (a lot) more flexible.
937 (output_parser): Use the macro table.
938
6f43b113
RA
9392001-08-25 Robert Anisko <robert.anisko@epita.fr>
940
941 * src/main.c (main): Initialize the macro table.
942
dd3127cf
RA
9432001-08-25 Robert Anisko <robert.anisko@epita.fr>
944
945 * src/lex.c (percent_table): Add tok_define.
946 * src/lex.h: Add tok_define.
947
aa321494
RA
9482001-08-25 Robert Anisko <robert.anisko@epita.fr>
949
950 * src/macrotab.c: New file.
951 * src/macrotab.h: New file.
952 * src/Makefile.am: Update.
953
68bd3b6b
RA
9542001-08-25 Robert Anisko <robert.anisko@epita.fr>
955
956 * lib/hash.c: New file.
957 * lib/hash.h: New file.
958 * lib/Makefile.am: Update.
959
45f8dd1e
AD
9602001-08-15 Akim Demaille <akim@epita.fr>
961
962 Version 1.28c.
963
40a64a7a 9642001-08-15 Marc Autret <autret_m@epita.fr>
0b8afb77
AD
965
966 * src/reader.c (readgram): Indent output macro YYSTYPE.
967 (packsymbols): Likewise.
968 (output_token_defines): Likewise.
969 * src/files.c: Standardize.
970 (compute_header_macro): New.
971 (defines_obstack_save): New. Use compute_header_macro.
972 (output_files): Update. Use defines_obstack_save.
973
f9a8293a
AD
9742001-08-15 Akim Demaille <akim@epita.fr>
975
976 * doc/bison.texinfo (Table of Symbols): Document
977 YYSTACK_USE_ALLOCA.
978
150ca7a7
AD
9792001-08-15 Akim Demaille <akim@epita.fr>
980
981 * missing: Update from CVS Automake.
982 * config/config.guess, config/config.sub, config/texinfo.tex:
983 Update from gnu.org.
984
69b5cec4
AD
9852001-08-15 Akim Demaille <akim@epita.fr>
986
987 * Makefile.maint: Sync with CVS Autoconf.
988
f2b5126e
PB
9892001-08-14 Pascal Bart <pascal.bart@epita.fr>
990
69b5cec4 991 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
992 `fdl.texi'.
993 * doc/fdl.texi: Add to package.
994
4ecbf796
MA
9952001-08-14 Marc Autret <autret_m@epita.fr>
996
997 Turn on %{source,header}_extension features.
998
69b5cec4 999 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
1000 source_extension.
1001 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 1002 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
1003 between options.
1004
95fb5662
MA
10052001-08-14 Marc Autret <autret_m@epita.fr>
1006
1007 * src/files.c (compute_base_names): Add extensions computing when
1008 `--file-prefix' used.
1009 Standardize function calls.
1010
78d09da9
MA
10112001-08-13 Marc Autret <autret_m@epita.fr>
1012
69b5cec4 1013 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
1014 defining it (defined but null disables alloca).
1015
5a009f2c
MA
10162001-08-13 Marc Autret <autret_m@epita.fr>
1017
1018 * src/bison.simple (_yy_memcpy): CPP reformat.
1019
1e41465a
PB
10202001-08-13 Pascal Bart <pascal.bart@epita.fr>
1021
1022 * tests/atconfig.in (CPPFLAGS): Fix.
1023
c67a198d
PB
10242001-08-10 Pascal Bart <pascal.bart@epita.fr>
1025
79282c6c 1026 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
1027 `gpl.texi'.
1028 * doc/gpl.texi: Add to package.
1029
09a6de7e
MA
10302001-08-10 Marc Autret <autret_m@epita.fr>
1031
1032 * src/print_graph.h: Fix.
1033 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1034
b77b9ee0
AD
10352001-08-10 Akim Demaille <akim@epita.fr>
1036
1037 * src/system.h: Provide default declarations for stpcpy, strndup,
1038 and strnlen.
1039
3e259915
MA
10402001-08-10 Robert Anisko <anisko_r@epita.fr>
1041
1042 * doc/bison.texinfo (Locations): Update @$ stuff.
1043
ca96bc2d
MA
10442001-08-09 Robert Anisko <anisko_r@epita.fr>
1045
1046 * src/bison.simple (YYLLOC_DEFAULT): Update.
1047 (yyparse): Adjust.
1048
fdc6758b
MA
10492001-08-08 Marc Autret <autret_m@epita.fr>
1050
b77b9ee0 1051 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
1052 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1053 Reported by Fabrice Bauzac.
957d4dbf 1054
600cad3b
MA
10552001-08-08 Marc Autret <autret_m@epita.fr>
1056
1057 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1058 * src/vcg.c (output_node): Fix.
1059 * src/vcg.h: Cleanup.
1060 * src/print_graph.c: Add comments.
b77b9ee0 1061 (node_output_size): New global variable. Simplify the formatting of
600cad3b 1062 the VCG graph output.
b77b9ee0 1063 (print_actions): Unused code is now used. It notifies the final state
600cad3b 1064 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 1065 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
1066 blue.
1067 Get the current node name and node_obstack by argument.
1068 (node_obstack): New variable.
1069 (print_state): Manage node_obstack.
1070 (print_core): Use node_obstack given by argument.
1071 A node is not only computed here but in print_actions also.
1072 (print_graph): CPP out useless code instead of commenting it.
1073
976e528f
AD
10742001-08-07 Pascal Bart <pascal.bart@epita.fr>
1075
1076 * tests/atconfig.in (CPPFLAGS): Fix.
1077
20e8e5ca
AD
10782001-08-07 Akim Demaille <akim@epita.fr>
1079
1080 * src/print_graph.c (quote): New.
1081 (print_core): Use it.
1082
957d4dbf 10832001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 1084
3e3da797
AD
1085 * src/vcg.c (complain.h): Include it.
1086 Unepitaize `return' invocations.
c4b66126 1087 [NDEBUG] (main): Remove.
79282c6c 1088 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
1089 * src/files.c (open_files): Initialize graph_obstack.
1090 * src/print_graph.c (print_actions): CPP out useless code.
1091 (print_core): Don't output the last `\n' in labels.
1092 Use `quote'.
1093 * src/files.c (output_files): Output the VCG file.
1094 * src/main.c (main): Invoke print_graph ();
3e3da797 1095
957d4dbf 10962001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
1097
1098 Automaton VCG graph output.
1099 Using option ``-g'' or long option ``--graph'', you can generate
1100 a gram_filename.vcg file containing a VCG description of the LALR (1)
1101 automaton of your grammar.
1102
1103 * src/main.c: Call to print_graph() function.
1104 * src/getargs.h: Update.
1105 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1106 (graph_flag): New flag.
1107 (longopts): Update.
1108 (getargs): Add case `g'.
1109 * src/files.c (graph_obstack): New obstack struct.
1110 (open_files): Initialize new obstack.
1111 (output_files): Saves graph_obstack if required.
1112 * src/files.h (graph_obstack): New extern declaration.
1113 * src/Makefile.am: Add new source files.
1114
957d4dbf 11152001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
1116
1117 * src/print_graph.c, src/print_graph.h (graph): New.
1118 * src/vcg.h: New file.
1119 * src/vcg.c: New file, VCG graph handling.
1120
7333d403
AD
11212001-08-06 Marc Autret <autret_m@epita.fr>
1122
1123 Add of %source_extension and %header_extension which specify
1124 the source or/and the header output file extension.
1125
1126 * src/files.c (compute_base_names): Remove initialisation of
1127 src_extension and header_extension.
1128 (compute_exts_from_gf): Update.
1129 (compute_exts_from_src): Update.
1130 (output_files): Update.
1131 * src/reader.c (parse_header_extension_decl): New.
1132 (parse_source_extension_decl): New.
1133 (read_declarations): New case statements for the new tokens.
1134 * src/lex.c (percent_table): Add entries for %source_extension
1135 and %header_extension.
1136 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1137
84163231
AD
11382001-08-06 Marc Autret <autret_m@epita.fr>
1139
1140 * configure.in: Bump to 1.28c.
1141 * doc/bison.texinfo: Texinfo thingies.
1142
8303fc42
AD
11432001-08-04 Pascal Bart <pascal.bart@epita.fr>
1144
1145 * tests/atconfig.in (CPPFLAGS): Add.
1146 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1147
70a84437
AD
11482001-08-03 Akim Demaille <akim@epita.fr>
1149
1150 Version 1.28b.
1151
2ce10144
AD
11522001-08-03 Akim Demaille <akim@epita.fr>
1153
1154 * tests/Makefile.am (check-local): Ship testsuite.
1155 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1156 Include `string.h'.
1157
1e3e4bc1
AD
11582001-08-03 Akim Demaille <akim@epita.fr>
1159
1160 * configure.in: Try using -Wformat when compiling.
1161
42b45b7f
AD
11622001-08-03 Akim Demaille <akim@epita.fr>
1163
1164 * configure.in: Bump to 1.28b.
1165
8f13fe33
AD
11662001-08-03 Akim Demaille <akim@epita.fr>
1167
1168 * src/complain.c: Adjust strerror_r portability issues.
1169
b37ba92c
AD
11702001-08-03 Akim Demaille <akim@epita.fr>
1171
1172 Version 1.28a.
1173
b0ce6046
AD
11742001-08-03 Akim Demaille <akim@epita.fr>
1175
1176 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1177 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1178 * src/getargs.c: Include complain.h.
1179 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1180 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1181
d01c415b
AD
11822001-08-03 Akim Demaille <akim@epita.fr>
1183
1184 * src/reader.c (readgram): Display hidden chars in error messages.
1185
459dd1a6
AD
11862001-08-03 Akim Demaille <akim@epita.fr>
1187
1188 Update to gettext 0.10.39.
1189
53b74c0c
AD
11902001-08-03 Akim Demaille <akim@epita.fr>
1191
1192 * lib/strspn.c: New.
1193
234a3be3
AD
11942001-08-01 Marc Autret <autret_m@epita.fr>
1195
1196 * doc/bison.texinfo: Update.
1197 * doc/bison.1 (mandoc): Update.
1198 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1199 * src/files.c: Support output files extensions computing.
1200 (src_extension): New static variable.
1201 (header_extension): New static variable.
1202 (tr): New function.
1203 (get_extension_index): New function, gets the index of an extension
1204 filename in a string.
1205 (compute_exts_from_gf): New function, computes extensions from the
1206 grammar file extension.
1207 (compute_exts_from_src): New functions, computes extensions from the
1208 C source file extension, file given by ``-o'' option.
1209 (compute_base_names): Update.
1210 (output_files): Update.
1211
847bf1f5
AD
12122001-08-01 Robert Anisko <anisko_r@epita.fr>
1213
d995fee7 1214 * doc/bison.texi: Document @$.
847bf1f5
AD
1215 (Locations): New section.
1216
d074a105
AD
12172001-07-18 Akim Demaille <akim@epita.fr>
1218
1219 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1220 * config/prev-version.txt, config/move-if-change: New.
1221 * Makefile.am: Adjust.
1222
3419715d
AD
12232001-07-08 Pascal Bart <pascal.bart@epita.fr>
1224
1225 * src/bison.simple (yyparse): Suppress warning `comparaison
1226 between signed and unsigned'.
1227
62ab6972
AD
12282001-07-05 Pascal Bart <pascal.bart@epita.fr>
1229
1230 * src/getargs.h (raw_flag): Remove.
1231 * src/getargs.c: Die on `-r'/`--raw'.
1232 * src/lex.c (parse_percent_token): Die on `%raw'.
1233 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1234 * tests/calc.at: Suppress test with option `--raw'.
1235
1e24cc5b
AD
12362001-07-14 Akim Demaille <akim@epita.fr>
1237
1238 * config/: New.
1239 * configure.in: Require Autoconf 2.50.
1240 Update to gettext 0.10.38.
1241
32dfccf8
AD
12422001-03-16 Akim Demaille <akim@epita.fr>
1243
1244 * doc/bison.texinfo: ANSIfy the examples.
1245
cd5bd6ac
AD
12462001-03-16 Akim Demaille <akim@epita.fr>
1247
1248 * getargs.c (skeleton): New variable.
1249 (longopts): --skeleton is a new option.
1250 (shortopts, getargs): -S is a new option.
1251 * getargs.h: Declare skeleton.
1252 * output.c (output_parser): Use it.
1253
5141b016
AD
12542001-03-16 Akim Demaille <akim@epita.fr>
1255
1256 * m4/strerror_r.m4: New.
1257 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1258 * lib/error.h, lib/error.c: Update.
1259
447992b9
AD
12602001-03-16 Akim Demaille <akim@epita.fr>
1261
1262 * src/getargs.c (longopts): Clean up.
1263
274d42ce
AD
12642001-02-21 Akim Demaille <akim@epita.fr>
1265
1266 * src/reader.c (gensym): `gensym_count' is your own.
1267 Use a static buf to create the symbol name, as token_buffer is no
1268 longer a buffer.
1269
22c821f3
AD
12702001-02-08 Akim Demaille <akim@epita.fr>
1271
1272 * src/conflicts.c (conflict_report): Be sure not to append to res
1273 between two calls, which could happen if both first sprintf were
1274 skipped, but not the first cp += strlen.
1275
18569462
AD
12762001-02-08 Akim Demaille <akim@epita.fr>
1277
1278 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1279 New, from fileutils 4.0.37.
1280 * configure.in: Require Autoconf 2.49c. I took some time before
1281 making this decision. This is the only way out for portability
1282 issues in Bison, it would mean way too much duplicate effort to
1283 import in Bison features implemented in 2.49c since 2.13.
1284 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1285
0d8f3c8a
AD
12862001-02-02 Akim Demaille <akim@epita.fr>
1287
1288 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 1289 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 1290
f17bcd1f
AD
12912001-01-19 Akim Demaille <akim@epita.fr>
1292
1293 Get rid of the ad hoc handling of token_buffer in the scanner: use
1294 the obstacks.
1295
1296 * src/lex.c (token_obstack): New.
1297 (init_lex): Initialize it. No longer call...
1298 (grow_token_buffer): this. Remove it.
1299 Adjust all the places which used it to use the obstack.
1300
511e79b3
AD
13012001-01-19 Akim Demaille <akim@epita.fr>
1302
1303 * src/lex.h: Rename all the tokens:
1304 s/\bENDFILE\b/tok_eof/g;
1305 s/\bIDENTIFIER\b/tok_identifier/g;
1306 etc.
1307 Let them be enums, not #define, to ease debugging.
1308 Adjust all the code.
1309
0d6508ef
AD
13102001-01-18 Akim Demaille <akim@epita.fr>
1311
1312 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1313 * src/lex.c (maxtoken, grow_token_buffer): Static.
1314
6deb4447
AD
13152001-01-18 Akim Demaille <akim@epita.fr>
1316
1317 Since we now use obstacks, more % directives can be enabled.
1318
1319 * src/lex.c (percent_table): Also accept `%yacc',
1320 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1321 `%debug'.
1322 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1323 instead of returning a token.
1324 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1325 * src/reader.c (read_declarations): Adjust.
1326 * src/files.c (open_files): Don't call `compute_base_names', don't
1327 compute `attrsfile' since they depend upon data which might be
1328 *in* the input file now.
1329 (output_files): Do it here.
1330 * src/output.c (output_headers): Document the fact that this patch
1331 introduces a guaranteed SEGV for semantic parsers.
1332 * doc/bison.texinfo: Document them.
1333 * tests/suite.at: Exercise these %options.
1334
ff4423cc
AD
13352000-12-20 Akim Demaille <akim@epita.fr>
1336
1337 Also handle the output file (--verbose) with obstacks.
1338
1339 * files.c (foutput): Remove.
1340 (output_obstack): New.
1341 Adjust all dependencies.
1342 * src/conflicts.c: Return a string.
1343 * src/system.h (obstack_grow_string): Rename as...
1344 (obstack_sgrow): this. Be ready to work with non literals.
1345 (obstack_fgrow4): New.
1346
956dba3a
AD
13472000-12-20 Akim Demaille <akim@epita.fr>
1348
1349 * src/files.c (open_files): Fix the computation of short_base_name
1350 in the case of `-o foo.tab.c'.
1351
337bab46
AD
13522000-12-20 Akim Demaille <akim@epita.fr>
1353
1354 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1355 (copy_dollar): Now that everything uses obstacks, get rid of the
1356 FILE * parameters.
1357
5d3214b8
AD
13582000-12-20 Akim Demaille <akim@epita.fr>
1359
1360 * src/files.c (open_files): Actually the `.output' file is based
1361 on the short_base_name, not base_name.
1362 * tests/suite.at (Checking output file names): Adjust.
1363
29092a57
AD
13642000-12-20 Akim Demaille <akim@epita.fr>
1365
1366 * src/bison.s1: Remove, we now use directly...
1367 * src/bison.simple: this.
1368 * src/Makefile.am: Use pkgdata instead of data.
1369
ea5607fd
AD
13702000-12-20 Akim Demaille <akim@epita.fr>
1371
1372 * src/files.c (guard_obstack): New.
1373 (open_files): Initialize it.
1374 (output_files): Dump it...
1375 * src/files.h: Export it.
1376 * src/reader.c (copy_guard): Use it.
1377
27110317
AD
13782000-12-19 Akim Demaille <akim@epita.fr>
1379
1380 * src/files.c (outfile, defsfile, actfile): Removed as global
1381 vars.
1382 (open_files): Don't compute them.
1383 (output_files): Adjust.
1384 (base_name, short_base_name): Be global.
1385 Adjust dependencies.
1386
19c50364
AD
13872000-12-19 Akim Demaille <akim@epita.fr>
1388
1389 * src/files.c (strsuffix): New.
1390 (stringappend): Be just like strcat but allocate.
1391 (base_names): Eve out from open_files.
1392 Try to simplify the rather hairy computation of base_name and
1393 short_base_name.
1394 (open_files): Use it.
1395 * tests/suite.at (Checking output file names): New test.
1396
573c1d9f
AD
13972000-12-19 Akim Demaille <akim@epita.fr>
1398
1399 * src/system.h (obstack_grow_literal_string): Rename as...
1400 (obstack_grow_string): this.
1401 * src/output.c (output_parser): Recognize `%% actions' instead of
1402 `$'.
1403 * src/bison.s1: s/$/%% actions/.
1404 * src/bison.hairy: Likewise.
1405
ef7ddedd
AD
14062000-12-19 Akim Demaille <akim@epita.fr>
1407
1408 * src/output.c (output_parser): Compute the `#line' lines when
1409 there are.
1410 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1411 Suggested by Hans Aberg.
1412
ff61dabd
AD
14132000-12-19 Akim Demaille <akim@epita.fr>
1414
1415 Let the handling of the skeleton files be local to the procedures
1416 that use it.
1417
1418 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1419 longer static.
1420 (fparser, open_extra_files): Remove.
1421 (open_files, output_files): Don't take care of fparser.
1422 * src/files.h: Adjust.
1423 * src/output.c (output_parser): Open and close the file to the
1424 skeleton.
1425 * src/reader.c (read_declarations): When %semantic_parser, open
1426 fguard.
1427
55b96341
AD
14282000-12-19 Akim Demaille <akim@epita.fr>
1429
1430 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1431 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1432
358c15b7
AD
14332000-12-19 Akim Demaille <akim@epita.fr>
1434
1435 * src/files.c (open_files): Yipee! We no longer need all the code
1436 looking for `/tmp' since we have no tmp file.
1437
7de3329e
AD
14382000-12-19 Akim Demaille <akim@epita.fr>
1439
1440 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1441 New macros.
1442 * src/files.c (open_files): Less dependency on MSDOS etc.
1443
3abcd459
AD
14442000-12-14 Akim Demaille <akim@epita.fr>
1445
1446 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1447 Provide a default definition.
1448 Use it when executing the default @ action.
1449 * src/reader.c (reader_output_yylsp): No longer include
1450 `timestamp' and `text' in the default YYLTYPE.
1451
2a91a95e
AD
14522000-12-12 Akim Demaille <akim@epita.fr>
1453
1454 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1455 (copy_guard): Quote the file names.
1456 Reported by Laurent Mascherpa.
1457
14d3eb9b
AD
14582000-12-12 Akim Demaille <akim@epita.fr>
1459
1460 * src/output.c (output_headers, output_program, output): Be sure
1461 to escape special characters when outputting filenames.
1462 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1463 (output_headers): Don't depend on them, Use ACTSTR.
1464
d7045ec6
AD
14652000-11-17 Akim Demaille <akim@epita.fr>
1466
1467 * lib/obstack.h: Formatting changes.
1468 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1469 prevents type checking.
1470 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1471 cast the value to (void *): assigning a `foo *' to a `void *'
1472 variable is valid.
1473 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1474 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1475 append characters.
1476
6fd54b73
AD
14772000-11-17 Akim Demaille <akim@epita.fr>
1478
1479 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1480 as...
1481 (suite.m4, regression.m4, calc.m4): these.
1482 * tests/atgeneral.m4: Update from CVS Autoconf.
1483
4c50eae6
AD
14842000-11-17 Akim Demaille <akim@epita.fr>
1485
1486 * tests/regression.m4 (%union and --defines): New test,
1487 demonstrating a current bug in the obstack implementation.
1488
a35f64ea
AD
14892000-11-17 Akim Demaille <akim@epita.fr>
1490
1491 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1492 macros.
1493 Use them to declare the variables which are global or local to
1494 `yyparse'.
1495
7de23534
AD
14962000-11-17 Akim Demaille <akim@epita.fr>
1497
1498 * acconfig.h: Remove, no longer used.
1499
aa7815f5
AD
15002000-11-07 Akim Demaille <akim@epita.fr>
1501
1502 * src: s/Copyright (C)/Copyright/g.
1503
5af1f549
AD
15042000-11-07 Akim Demaille <akim@epita.fr>
1505
1506 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1507 defining.
1508 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1509
553e2b22
AD
15102000-11-07 Akim Demaille <akim@epita.fr>
1511
1512 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1513 Merge in a single CPP if/else.
1514
8a4f41d6
AD
15152000-11-07 Akim Demaille <akim@epita.fr>
1516
1517 * src/output.c (output): Remove useless variables.
1518 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1519 argument `data' for consistency with the prototypes.
1520 Qualify it `const'.
1521 (obstack_copy, obstack_copy0): Rename the second argument as
1522 `address' for consistency. Qualify it `const'.
1523 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1524 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1525 `const' their input argument (`data' or `address').
1526 Adjust the corresponding macros to include `const' in casts.
1527
095a3fb5
AD
15282000-11-03 Akim Demaille <akim@epita.fr>
1529
1530 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1531 s/PFILE1/BISON_HAIRY/.
1532 Adjust dependencies.
1533
d1cdce7c
AD
15342000-11-03 Akim Demaille <akim@epita.fr>
1535
090c5ebf 1536 For some reason, this was not applied.
d1cdce7c
AD
1537
1538 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1539 `unlink': it's no longer used.
1540
9311529b
AD
15412000-11-03 Akim Demaille <akim@epita.fr>
1542
1543 * src/files.c (skeleton_find): New function, eved out of...
1544 (open_files, open_extra_files): here.
1545
d8880f69
AD
15462000-11-03 Akim Demaille <akim@epita.fr>
1547
1548 Don't use `atexit'.
1549
1550 * src/files.c (obstack_save): New function.
1551 (done): Rename as...
1552 (output_files): this.
1553 Use `obstack_save'.
1554 * src/main.c (main): Don't use `atexit' to register `done', since
1555 it no longer has to remove tmp files, just call `output_files'
1556 when there are no errors.
1557
0dbb648e
AD
15582000-11-02 Akim Demaille <akim@epita.fr>
1559
1560 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1561 `unlink': it's no longer used.
1562 * src/files.h: Formatting changes.
1563
896fe5c1
AD
15642000-11-02 Akim Demaille <akim@epita.fr>
1565
1566 Remove the last uses of mktemp and unlink/delete.
1567
1568 * src/files.c (fdefines, ftable): Removed.
1569 (defines_ostack, table_obstack): New.
1570 Adjust dependencies of the former into uses of the latter.
1571 * src/output.c (output_short_or_char_table, output_short_table):
1572 Convert to using obstacks.
1573 * src/reader.c (copy_comment2): Accept one FILE * and two
1574 obstacks.
1575 (output_token_defines, reader_output_yylsp): Use obstacks.
1576 * src/system.h (obstack_fgrow3): New.
1577
dd60faec
AD
15782000-11-01 Akim Demaille <akim@epita.fr>
1579
1580 Change each use of `fattrs' into a use of `attrs_obstack'.
1581
1582 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1583 * src/files.c (fattrs): Remove.
1584 (attrs_obstack): New.
1585 Adjust all dependencies.
1586 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1587
8c7ebe49
AD
15882000-11-01 Akim Demaille <akim@epita.fr>
1589
1590 Introduce obstacks.
1591 Change each use of `faction' into a use of `action_obstack'.
1592
1593 * lib/obstack.h, lib/obstack.c: New files.
1594 * src/files.c (faction): Remove.
1595 (action_obstack): New.
1596 Adjust all dependencies.
1597
77aee789
AD
15982000-10-20 Akim Demaille <akim@epita.fr>
1599
1600 * lib/quote.h (PARAMS): New macro. Use it.
1601
43591cec
AD
16022000-10-16 Akim Demaille <akim@epita.fr>
1603
1604 * src/output.c (output_short_or_char_table): New function.
1605 (output_short_table, output_token_translations): Use it.
1606 (goto_actions): Use output_short_table.
1607
1e9798d5
AD
16082000-10-16 Akim Demaille <akim@epita.fr>
1609
1610 * src/symtab.c (bucket_new): New function.
1611 (getsym): Use it.
1612
1613 * src/output.c (output_short_table): New argument to display the
1614 comment associated with the table.
1615 Adjust dependencies.
1616 (output_gram): Use it.
1617 (output_rule_data): Nicer output layout for YYTNAME.
1618
f282676b
AD
16192000-10-16 Akim Demaille <akim@epita.fr>
1620
1621 * src/lex.c (read_typename): New function.
1622 (lex): Use it.
1623 * src/reader.c (copy_dollar): Likewise.
1624
550a72a3
AD
16252000-10-16 Akim Demaille <akim@epita.fr>
1626
1627 * src/reader.c (copy_comment2): Expect the input stream to be on
1628 the `/' which is suspected to open a comment, instead of being
1629 called after `//' or `/*' was read.
1630 (copy_comment, copy_definition, parse_union_decl, copy_action)
1631 (copy_guard): Adjust.
1632
131e2fef
AD
16332000-10-16 Akim Demaille <akim@epita.fr>
1634
1635 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1636 `read_signed_integer'.
1637
79282c5a
AD
16382000-10-16 Akim Demaille <akim@epita.fr>
1639
1640 * src/reader.c (copy_dollar): New function.
1641 (copy_guard, copy_action): Use it.
1642
ff4a34be
AD
16432000-10-16 Akim Demaille <akim@epita.fr>
1644
1645 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1646 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1647 New files, from Fileutils 4.0.27.
1648 * src/main.c (printable_version): Remove.
1649 * src/lex.c, src/reader.c: Use `quote'.
1650
16512000-10-04 Akim Demaille <akim@epita.fr>
1652
1653 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1654
14ded682
AD
16552000-10-04 Akim Demaille <akim@epita.fr>
1656
1657 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1658
8e03724b
AD
16592000-10-04 Akim Demaille <akim@epita.fr>
1660
1661 When a literal string is used to define two different tokens,
1662 `bison -v' segfaults.
1663 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1664
1665 * tests/regression.m4: New file.
1666 Include the core of the sample provided by Piotr Gackiewicz.
1667 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1668 properly.
1669
a9e64249
AD
16702000-10-04 Akim Demaille <akim@epita.fr>
1671
1672 * src/reader.c (parse_expect_decl): Keep `count' within the size
1673 of `buffer'.
1674 From Neil Booth.
1675
da9abf43
AD
16762000-10-02 Paul Eggert <eggert@twinsun.com>
1677
1678 * bison.s1 (yyparse): Assign the default value
1679 unconditionally, to avoid a GCC warning and make the parser a
1680 tad smaller.
1681
c33638bb
AD
16822000-10-02 Akim Demaille <akim@epita.fr>
1683
1684 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1685 options.
1686
444c570a
AD
16872000-10-02 Akim Demaille <akim@epita.fr>
1688
1689 * src/derives.c, src/print.c, src/reduce.c: To ease the
1690 translation, move some `\n' out of the translated strings.
1691
89cab50d
AD
16922000-10-02 Akim Demaille <akim@epita.fr>
1693
1694 The location tracking mechanism is precious for parse error
1695 messages. Nevertheless, it is enabled only when `@n' is used in
1696 the grammar, which is a different issue (you can use it in error
1697 message, but not in the grammar per se). Therefore, there should
1698 be another means to enable it.
1699
1700 * src/getargs.c (getargs): Support `--locations'.
1701 (usage): Report it.
1702 * src/getargs.h (locationsflag): Export it.
1703 * src/lex.c (percent_table): Support `%locations'.
1704 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1705 with `locationsflag'.
1706 * doc/bison.texinfo: Document `--locations' and `%locations'.
1707 Sort the options.
1708 * tests/calc.m4: Test it.
1709
1710 For regularity of the names, replace each
1711 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1712 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1713 In addition replace each `flag' with `_flag'.
1714
d6c2cba0
AD
17152000-10-02 Akim Demaille <akim@epita.fr>
1716
1717 Also test parse error messages, including with YYERROR_VERBOSE.
1718
1719 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1720 associative).
1721 Use it to check the computations.
1722 Use it to check `nonassoc' is honored.
1723 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1724 `--yyerror-verbose'.
1725 (_AT_CHECK_CALC): Adjust to this option.
1726 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1727
5a35a6cb
AD
17282000-10-02 Akim Demaille <akim@epita.fr>
1729
1730 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1731 the latter demonstrates a flaw in the handling of non debugging
1732 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1733 was used in order to simplify:
1734
1735 #if YYDEBUG
1736 if (yydebug)
1737 {
1738 ...
1739 }
1740 #endif
1741
1742 into
1743
1744 if (yydebug)
1745 {
1746 ...
1747 }
1748
1749 unfortunately this leads to a CPP conflict when
1750 `--name-prefix=foo' is used since it produces `#define yydebug
1751 foodebug'.
1752
1753 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1754 (YYDPRINTF): New macro.
1755 Spread its use.
1756 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1757 the bison options.
1758 Also test `--verbose', `--defines' and `--name-prefix'.
1759
71da9eea
AD
17602000-10-02 Akim Demaille <akim@epita.fr>
1761
1762 Improve the readability of the produced parsers.
1763
1764 * src/bison.s1: Formatting changes.
1765 Improve the comment related to the `$' mark.
1766 (yydefault): Don't fall through to `yyresume': `goto' there.
1767 * src/output.c (output_parser): When the `$' is met, skip the end
1768 of its line.
1769 New variable, `number_of_dollar_signs', to check there's exactly
1770 one `$' in the parser skeleton.
1771
95e36146
AD
17722000-10-02 Akim Demaille <akim@epita.fr>
1773
1774 * lib/xstrdup.c: New file, from the fileutils.
1775 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1776 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1777 instead of strlen + xmalloc + strcpy.
1778 * src/symtab.c (copys): Remove, use xstrdup instead.
1779
d7020c20
AD
17802000-10-02 Akim Demaille <akim@epita.fr>
1781
1782 * src/gram.h (associativity): New enum type which replaces the
1783 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1784 `right_assoc', `left_assoc' and `non_assoc'.
1785 Adjust all dependencies.
1786 * src/reader.c: Formatting changes.
1787 (LTYPESTR): Don't define it, use it as a literal in
1788 `reader_output_yylsp'.
1789 * src/symtab.h (symbol_class): New enum type which replaces the
1790 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1791 `sunknown', `stoken and `snterm'.
1792
1916f98e
AD
17932000-10-02 Akim Demaille <akim@epita.fr>
1794
1795 * src/getargs.c (fixed_outfiles): Rename as...
1796 (yaccflag): for consistency and accuracy.
1797 Adjust dependencies.
1798
d7913476
AD
17992000-10-02 Akim Demaille <akim@epita.fr>
1800
1801 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1802 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1803 difficult and introduced a lot of core dump. It turns out that
1804 Bison used an implementation of `xmalloc' based on `calloc', and
1805 at various places it does depend upon the initialization to 0. I
1806 have not tried to isolate the pertinent places, and all the former
1807 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1808 someone should address this issue.
1809
1810 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1811 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1812 files.
1813 Adjust dependencies.
1814 * src/warshall.h: New file.
1815 Propagate.
1816
340ef489
AD
18172000-10-02 Akim Demaille <akim@epita.fr>
1818
1819 Various anti-`extern in *.c' changes.
1820
1821 * src/system.h: Include `assert.h'.
1822
b2ca4022
AD
18232000-10-02 Akim Demaille <akim@epita.fr>
1824
1825 * src/state.h (nstates, final_state, first_state, first_shift)
1826 (first_reduction): Move their exportation from here...
1827 * src/LR0.h: to here.
1828 Adjust dependencies.
1829 * src/getargs.c (statisticsflag): New variable.
1830 Add support for `--statistics'.
1831 Adjust dependencies.
1832
1833 Remove a lot of now useless `extern' statements in most files.
1834
403b315b
AD
18352000-10-02 Akim Demaille <akim@epita.fr>
1836
1837 * src/LR0.h: New file.
1838 Propagate its use.
1839
07a58c13
AD
18402000-10-02 Akim Demaille <akim@epita.fr>
1841
1842 * src/print.h: New file.
1843 Propagate its use.
1844 * src/print.c: Formatting and ordering changes.
1845 (verbose, terse): Replace with...
1846 (print_results): this new function.
1847 Adjust dependencies.
1848
0619caf0
AD
18492000-10-02 Akim Demaille <akim@epita.fr>
1850
1851 * src/conflicts.c (conflict_report): New function.
1852 (conflict_log, verbose_conflict_log): Replace with...
1853 (print_conflicts): this function.
1854 Adjust dependencies.
1855 * src/conflicts.h: New file.
1856 Propagate its inclusion.
1857
3519ec76
AD
18582000-10-02 Akim Demaille <akim@epita.fr>
1859
1860 * src/nullable.h: New file.
1861 Propagate its inclusion.
1862 * src/nullable.c: Formatting changes.
1863
015acc48
AD
18642000-10-02 Akim Demaille <akim@epita.fr>
1865
1866 * src/reduce.h: New file.
1867 Propagate its inclusion.
1868 * src/reduce.c: Topological sort and other formatting changes.
1869 (bool, TRUE, FALSE): Move their definition to...
1870 * src/system.h: here.
1871
8963a27b
AD
18722000-10-02 Akim Demaille <akim@epita.fr>
1873
1874 * src/files.c: Formatting changes.
1875 (tryopen, tryclose, openfiles): Rename as...
1876 (xfopen, xfclose, open_files): this.
1877 (stringappend): static.
1878 * src/files.h: Complete the list of exported symbols.
1879 Propagate its use.
1880
a70083a3
AD
18812000-10-02 Akim Demaille <akim@epita.fr>
1882
1883 * src/reader.h: New file.
1884 Propagate its use instead of tedious list of `extern' and
1885 prototypes.
1886 * src/reader.c: Formatting changes, topological sort,
1887 s/register//.
1888
abadc117
AD
18892000-10-02 Akim Demaille <akim@epita.fr>
1890
1891 * src/lex.h: Prototype `lex.c' exported functions.
1892 * src/reader.c: Adjust.
1893 * src/lex.c: Formatting changes.
1894 (safegetc): Rename as...
1895 (xgetc): this.
1896
720d742f
AD
18972000-10-02 Akim Demaille <akim@epita.fr>
1898
1899 * src/lalr.h: New file.
1900 Propagate its inclusion instead of prototypes and `extern'.
1901 * src/lalr.c: Formatting changes, topological sorting etc.
1902
f2acea59
AD
19032000-10-02 Akim Demaille <akim@epita.fr>
1904
1905 * src/output.c (token_actions): Introduce a temporary array,
1906 YYDEFACT, that makes it possible for this function to use
1907 output_short_table.
1908
d019d655
AD
19092000-10-02 Akim Demaille <akim@epita.fr>
1910
1911 `user_toknums' is output as a `short[]' in `output.c', while it is
1912 defined as a `int[]' in `reader.c'. For consistency with the
1913 other output tables, `user_toknums' is now defined as a table of
1914 shorts.
1915
1916 * src/reader.c (user_toknums): Be a short table instead of an int
1917 table.
1918 Adjust dependencies.
1919
1920 Factor the short table outputs.
1921
1922 * src/output.c (output_short_table): New function.
1923 * src/output.c (output_gram, output_stos, output_rule_data)
1924 (output_base, output_table, output_check): Use it.
1925
6c89f1c1
AD
19262000-10-02 Akim Demaille <akim@epita.fr>
1927
1928 * src/output.c (output): Topological sort of the functions, in
1929 order to get rid of the `static' prototypes.
1930 No longer use `register'.
1931 * src/output.h: New file.
1932 Propagate its inclusion in files explicitly prototyping functions
1933 from output.c.
1934
d9efd181
AD
19352000-09-21 Akim Demaille <akim@epita.fr>
1936
1937 * src/atgeneral.m4: Update from Autoconf.
1938
c29240e7 19392000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
1940
1941 * src/closure.h: New file.
1942 * src/closure.c: Formatting changes, topological sort over the
1943 functions, use of closure.h.
1944 (initialize_closure, finalize_closure): Rename as...
1945 (new_closure, free_closure): these. Adjust dependencies.
1946 * src/LR0.c: Formatting changes, topological sort, use of
1947 cloture.h.
1948 (initialize_states): Rename as...
1949 (new_states): this.
1950 * src/Makefile.am (noinst_HEADERS): Adjust.
1951
499daa50
AD
19522000-09-20 Akim Demaille <akim@epita.fr>
1953
1954 * src/acconfig.h: Don't protect config.h against multiple
1955 inclusion.
1956 Don't define PARAMS.
1957 * src/system.h: Define PARAMS.
1958 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1959 purpose of config.h. system.h must not try to fix wrong
1960 definitions in config.h.
1961
cc84fd5d
AD
19622000-09-20 Akim Demaille <akim@epita.fr>
1963
1964 * src/derives.h: New file.
1965 * src/main.c, src/derives.h: Use it.
1966 Formatting changes.
1967 * src/Makefile.am (noinst_HEADERS): Adjust.
1968
db5b3a89
AD
19692000-09-20 Akim Demaille <akim@epita.fr>
1970
1971 * tests/atgeneral.m4: Update from Autoconf.
1972 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1973 (AT_CHECK_CALC): New macros.
1974 Use these macros to test bison with options `', `--raw',
1975 `--debug', `--yacc', `--yacc --debug'.
1976
ceed8467
AD
19772000-09-19 Akim Demaille <akim@epita.fr>
1978
1979 * src/output.c: Formatting changes.
1980 * src/machine.h: Remove, leaving its contents in...
1981 * src/system.h: here.
1982 Include stdio.h.
1983 Adjust all dependencies on stdio.h and machine.h.
1984 * src/getargs.h: New file.
1985 Let all `extern' declarations about getargs.c be replaced with
1986 inclusion of `getargs.h'.
1987 * src/Makefile.am (noinst_HEADERS): Adjust.
1988
1989 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1990 scope.
1991 (yyerror): Returns void, not int.
1992 * doc/bison.texinfo: Formatting changes.
1993
05a1d24b
AD
19942000-09-19 Akim Demaille <akim@epita.fr>
1995
1996 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1997 portable.
1998
cbd25751
AD
19992000-09-18 Akim Demaille <akim@epita.fr>
2000
2001 * configure.in: Append WARNING_CFLAGS to CFLAGS.
2002 * src/Makefile.am (INCLUDES): Don't.
2003 Be ready to fetch headers in lib/.
2004
13863333
AD
20052000-09-18 Akim Demaille <akim@epita.fr>
2006
2007 * doc/bison.texinfo: Update the copyright.
2008 ANSIfy and GNUify the examples.
2009 Remove the old menu.
2010
0d533154
AD
20112000-09-18 Akim Demaille <akim@epita.fr>
2012
2013 First set of tests: use the `calc' example from the documentation.
2014
2015 * src/bison.s1 (yyparse): Condition the code using `yytname' which
2016 is defined only when YYDEBUG is.
2017 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
2018 * src/files.c (tryopen, tryclose): Formatting changes.
2019 Move to the top and be static.
2020 * src/reader.c (read_signed_integer): Likewise.
2021 * tests/calc.m4: New file.
2022 * Makefile.am, suite.m4: Adjust.
2023 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
2024
e79137ac
AD
20252000-09-18 Akim Demaille <akim@epita.fr>
2026
2027 Add support for an Autotest test suite for Bison.
2028
2029 * m4/m4.m4, m4/atconfig.m4: New files.
2030 * m4/Makefile.am (EXTRA_DIST): Adjust.
2031 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2032 files.
2033 * src/getargs.c: Display a more standard --version message.
2034 * src/reader.c (reader): Formatting changes.
2035 No longer depend upon VERSION_STRING.
2036 * configure.in: No longer use `dnl'.
2037 Set up the test suite and the new directory `tests/.
2038 (VERSION_STRING): Remove.
2039
27821bff
AD
20402000-04-14 Akim Demaille <akim@epita.fr>
2041
2042 * src/reader.c (copy_comment2): New function, same as former
2043 `copy_comment', but outputs into two FILE *.
2044 (copy_comment): Use it.
2045 (parse_union_decl): Use it.
2046 (get_type, parse_start_decl): Use the same `invalid' message.
2047 (parse_start_decl, parse_union_decl): Use the same `multiple'
2048 message.
2049 (parse_union_decl, copy_guard, copy_action): Use the same
2050 `unmatched' message.
2051 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2052
cfe5fbc0
AD
20532000-03-31 Akim Demaille <akim@epita.fr>
2054
2055 * src/files.c (tryopen, tryclose): Move to the top.
2056 Be static.
2057
cb7db13e
AD
20582000-03-31 Akim Demaille <akim@epita.fr>
2059
2060 * src/main.c (main): Don't call `done', exit does it.
2061
a0f6b076
AD
20622000-03-31 Akim Demaille <akim@epita.fr>
2063
36281465
AD
2064 * allocate.c: s/return (foo)/return foo/.
2065 * lalr.c: Likewise.
2066 * LR0.c: Likewise.
2067 * output.c: Likewise.
2068 * reader.c: Likewise.
2069 * symtab.c: Likewise.
2070 * vmsgetargs.c: Likewise.
2071
20722000-03-31 Akim Demaille <akim@epita.fr>
2073
2074 Clean up the error reporting functions.
a0f6b076
AD
2075
2076 * src/report.c: New file.
2077 * src/report.h: Likewise.
2078 * src/Makefile.am: Adjust.
2079 * m4/error.m4: New file.
2080 * m4/Makefile.am: Adjust.
2081 * configure.in (jm_PREREQ_ERROR): Call it.
2082 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2083 Remove.
2084 (fatal, fatals): Remove. All callers use complain.c::fatal.
2085 (warn, warni, warns, warnss, warnss): Remove. All callers use
2086 complain.c::complain.
2087 (toomany): Remove, use fatal instead.
2088 * src/files.c (done): No argument, use complain_message_count.
2089 * src/main.c (main): Register `done' to `atexit'.
2090
2091 * src/getargs.c (usage): More `fputs', less `fprintf'.
2092
18539825
AD
20932000-03-28 Akim Demaille <akim@epita.fr>
2094
2095 * lib/: New directory.
2096 * Makefile.am (SUBDIRS): Adjust.
2097 * configure.in: Adjust.
2098 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2099 useless.
2100 * src/alloca.c: Moved to lib/.
2101 * src/getopt.c: Likewise.
2102 * src/getopt1.c: Likewise.
2103 * src/getopt.h: Likewise.
2104 * src/ansi2knr.c: Likewise.
2105 * src/ansi2knr.1: Likewise.
2106 * src/Makefile.am: Adjust.
2107 * lib/Makefile.am: New file.
2108
9f306f2a
AD
21092000-03-28 Akim Demaille <akim@epita.fr>
2110
2111 * src/getargs.c (usage): Refresh the help message.
2112
0ba347b6
AD
21132000-03-17 Akim Demaille <akim@epita.fr>
2114
2115 * src/getopt1.c: Updated from textutils 2.0e
2116 * src/getopt.c: Likewise.
2117 * src/getopt.h: Likewise.
2118
dbe7f271
AD
21192000-03-17 Akim Demaille <akim@epita.fr>
2120
2121 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2122 the file name, not the whole `#line LINE FILE'.
2123
75bbe78d
AD
21242000-03-17 Akim Demaille <akim@epita.fr>
2125
2126 On syntax errors, report the token on which we choked.
2127
aa5fd0ee
AD
2128 * src/bison.s1 (yyparse): In the label yyerrlab, when
2129 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 2130
7b306f52
AD
21312000-03-17 Akim Demaille <akim@epita.fr>
2132
aa5fd0ee 2133 * src/reader.c (copy_at): New function.
7b306f52
AD
2134 (copy_guard): Use it.
2135 (copy_action): Use it.
2136
e87b5700
AD
21372000-03-17 Akim Demaille <akim@epita.fr>
2138
2139 Be kind to translators, save some useless translations.
2140
aa5fd0ee 2141 * src/main.c (banner): New function.
e87b5700
AD
2142 (fatal_banner): Use it.
2143 (warn_banner): Use it.
2144
ae3c3164
AD
21452000-03-17 Akim Demaille <akim@epita.fr>
2146
aa5fd0ee
AD
2147 * src/reader.c (copy_definition): Use copy_string and
2148 copy_comment. Removed now unused `match', `ended',
2149 `cplus_comment'.
ae3c3164
AD
2150 (copy_comment, copy_string): Moved, to be visible from
2151 copy_definition.
2152
4dc58e7c
AD
21532000-03-17 Akim Demaille <akim@epita.fr>
2154
aa5fd0ee
AD
2155 * src/reader.c (copy_string): Declare `static inline'. No
2156 problems with inline, since it is checked by configure.
4dc58e7c
AD
2157 (copy_comment): Likewise.
2158
0a6384c4
AD
21592000-03-17 Akim Demaille <akim@epita.fr>
2160
aa5fd0ee 2161 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 2162
3cef001a
AD
21632000-03-17 Akim Demaille <akim@epita.fr>
2164
aa5fd0ee 2165 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
2166 (copy_action): Use it. Removed now unused `match', `ended',
2167 `cplus_comment'.
2168 (copy_guard): Likewise.
2169
ca36d2ef
AD
21702000-03-17 Akim Demaille <akim@epita.fr>
2171
aa5fd0ee 2172 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
2173 (copy_action): Use it.
2174 (copy_guard): Likewise.
2175
6666f98f
AD
21762000-03-17 Akim Demaille <akim@epita.fr>
2177
2178 Change the handling of @s so that they behave exactly like $s.
2179 There is now a pseudo variable @$ (readble and writable), location
2180 of the lhs of the rule (by default ranging from the location of
2181 the first symbol of the rhs, to the location of the last symbol,
2182 or, if the rhs is empty, YYLLOC).
2183
2184 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2185 yyval.
2186 (yyparse): When providing a default semantic action, provide a
2187 default location action.
2188 (after the $): No longer change `*YYLSP', just stack YYLOC the
2189 same way you stack YYVAL.
2190 * src/reader.c (read_declarations): Use warns.
2191 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2192 (copy_action, case '@'): Likewise.
2193 Use a standard error message, to save useless work from
2194 translators.
2195
41aca2e0
AD
21962000-03-17 Akim Demaille <akim@epita.fr>
2197
aa5fd0ee
AD
2198 * src/bison.s1: Formatting and cosmetics changes.
2199 * src/reader.c: Likewise.
41aca2e0
AD
2200 Update the Copyright notice.
2201
dc08c1d5
AD
22022000-03-17 Akim Demaille <akim@epita.fr>
2203
aa5fd0ee
AD
2204 * src/bison.s1 (#line): All set to `#line' only, since the
2205 Makefile now handles them.
dc08c1d5 2206
9ee3c97b
AD
22072000-03-16 Akim Demaille <akim@epita.fr>
2208
2209 * src/output.c (output_rule_data): Output the documentation of
2210 some of the tables.
2211 (Copyright notice): Update.
2212 Formatting changes.
2213
0de741ca
AD
22142000-03-16 Akim Demaille <akim@epita.fr>
2215
2216 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2217 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2218 One `#if YYDEBUG' remains, since it uses variables which are
2219 defined only if `YYDEBUG != 0'.
2220
bb10be54
AD
22212000-03-16 Akim Demaille <akim@epita.fr>
2222
2223 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2224 and related variables so that the similarities are highlighted.
2225
b07b484a
AD
22262000-03-16 Akim Demaille <akim@epita.fr>
2227
2228 * src/bison.s1: Properly indent CPP directives.
2229
361f60b3
AD
22302000-03-16 Akim Demaille <akim@epita.fr>
2231
2232 * src/bison.s1: Properly indent the `alloca' CPP section.
2233
8c44d3ec
AD
22342000-03-16 Akim Demaille <akim@epita.fr>
2235
2236 Do not hard code values of directories in `configure.in'.
2237 Update the `configure' tool chain.
2238
2239 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2240 src/makefile.am.
2241 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2242 (AC_OUTPUT): Add m4/Makefile.
2243 Bump to bison 1.28a, 1.29 has never been released.
2244 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2245 handled via src/Makefile.am.
2246 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2247 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2248 autoheader.
2249 * Makefile.am (SUBDIRS): Add m4.
2250 (ACLOCAL_AM_FLAGS): New variable.
2251 (AUTOMAKE_OPTIONS): Add check-news.
2252 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2253 the proper line number and file name.
2254 (DEFS): Propagate the location of bison library files and of the
2255 locale files.
2256 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2257 builddir.
2258 * acinclude.m4: Remove, replaced by the directory m4.
2259 * m4/Makefile.am (EXTRA_DIST): New variable.
2260 * m4/gettext.m4: New file, from the fileutils.
2261 * m4/lcmessage.m4: Likewise
2262 * m4/progtest.m4: Likewise.
2263 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2264
f95997e7
AD
22652000-03-10 Akim Demaille <akim@epita.fr>
2266
2267 * src/closure.c:
2268 Formatting changes of various comments.
2269 Respect the GNU coding standards at various places.
2270 Don't use `_()' when no translation is needed.
2271
22721999-12-13 Jesse Thilo <jthilo@gnu.org>
2273
2274 * src/files.c:
2275 OS/2 honors TMPDIR environment variable.
2276
22771999-12-13 Jesse Thilo <jthilo@gnu.org>
2278
2279 * doc/bison.texinfo: Tweaked spelling and grammar.
2280 Updated ISBN.
2281 Removed reference to price of printed copy.
2282 Mention BISON_SIMPLE and BISON_HAIRY.
2283
22841999-12-13 Jesse Thilo <jthilo@gnu.org>
2285
2286 * configure.in, NEWS:
2287 Bison 1.29 released.
2288
22891999-10-27 Jesse Thilo <jthilo@gnu.org>
2290
2291 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2292 Added reference card.
2293
22941999-07-26 Jesse Thilo <jthilo@gnu.org>
2295
2296 * po/ru.po: Added Russian translation.
2297
22981999-07-26 Jesse Thilo <jthilo@gnu.org>
2299
2300 * configure.in: Added Russian translation.
2301
23021999-07-06 Jesse Thilo <jthilo@gnu.org>
2303
2304 * configure.in, NEWS, README:
2305 Released version 1.28.
2306
23071999-06-14 Jesse Thilo <jthilo@gnu.org>
2308
2309 * src/system.h:
2310 Squashed redefinition warning on some systems.
2311
2312 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2313 Have configure build version string instead of relying on ANSI string
2314 concatentation.
2315
23161999-06-14 Jesse Thilo <jthilo@gnu.org>
2317
2318 * po/POTFILES.in: Got rid of version.c.
2319
23201999-06-14 Jesse Thilo <jthilo@gnu.org>
2321
2322 * acconfig.h, configure.in:
2323 Have configure build version string instead of relying on ANSI string
2324 concatentation.
2325
23261999-06-08 Jesse Thilo <jthilo@gnu.org>
2327
2328 * doc/bison.1:
2329 Dropped mention of `+' for long-named options.
2330
23311999-05-30 Jesse Thilo <jthilo@gnu.org>
2332
2333 * src/files.c: Added <unistd.h> for unlink().
2334
2335 * src/Makefile.am, src/system.h:
2336 I18n fixes.
2337
23381999-05-30 Jesse Thilo <jthilo@gnu.org>
2339
2340 * README: Added a FAQ list.
2341
2342 * configure.in, acconfig.h:
2343 I18n fixes.
2344
23451999-05-30 Jesse Thilo <jthilo@gnu.org>
2346
2347 * doc/FAQ, doc/Makefile.am:
2348 Added a FAQ list.
2349
23501999-05-19 Jesse Thilo <jthilo@gnu.org>
2351
2352 * src/alloc.h, src/symtab.h, src/version.c:
2353 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2354
23551999-04-18 Jesse Thilo <jthilo@gnu.org>
2356
2357 * src/.cvsignore, src/Makefile.am:
2358 Reorganized: sources in `src', documentation in `doc'.
2359
2360 * src/lex.c (literalchar):
2361 fixed the code for escaping double quotes (thanks
2362 Jonathan Czisny.)
2363
23641999-04-18 Jesse Thilo <jthilo@gnu.org>
2365
2366 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2367 Adjusted paths to reflect directory reorganization.
2368
23691999-04-18 Jesse Thilo <jthilo@gnu.org>
2370
2371 * doc/.cvsignore, doc/Makefile.am:
2372 Reorganized: sources in `src', documentation in `doc'.
2373
23741999-04-18 Jesse Thilo <jthilo@gnu.org>
2375
2376 * configure.in:
2377 Updated AC_INIT file to reflect directory reorganization.
2378
2379 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2380 Reorganized: sources in `src', documentation in `doc'.
2381
23821999-04-13 Jesse Thilo <jthilo@gnu.org>
2383
2384 * src/allocate.c:
2385 Don't declare calloc() and realloc() if not necessary.
2386
23871999-04-13 Jesse Thilo <jthilo@gnu.org>
2388
2389 * configure.in, acconfig.h, acinclude.m4:
2390 Don't declare calloc() and realloc() if not necessary.
2391
23921999-03-23 Jesse Thilo <jthilo@gnu.org>
2393
2394 * po/.cvsignore: Added i18n support.
2395
23961999-03-23 Jesse Thilo <jthilo@gnu.org>
2397
2398 * acconfig.h, configure.in, Makefile.am:
2399 Added i18n support.
2400
24011999-03-22 Jesse Thilo <jthilo@gnu.org>
2402
2403 * src/bison.s1: Fixed #line numbers.
2404
24051999-03-15 Jesse Thilo <jthilo@gnu.org>
2406
2407 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2408 Added PO files from Translation Project.
2409
24101999-03-03 Jesse Thilo <jthilo@gnu.org>
2411
2412 * Makefile.am:
2413 Added support for non-ANSI compilers (ansi2knr).
2414
24151999-02-16 Jesse Thilo <jthilo@gnu.org>
2416
2417 * configure.in: Bumped version number to 1.27.
2418
2419 * Makefile.am:
2420 Added `bison.simple' to list of files removed by `make distclean'.
2421
24221999-02-12 Jesse Thilo <jthilo@gnu.org>
2423
2424 * src/files.c, src/files.h:
2425 Defined locations of parser files in config.h instead of Makefile.
2426
24271999-02-12 Jesse Thilo <jthilo@gnu.org>
2428
2429 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2430 Defined locations of parser files in config.h instead of Makefile.
2431
24321999-02-09 Jesse Thilo <jthilo@gnu.org>
2433
2434 * Makefile.am:
2435 Removed inappropriate use of $< macro.
2436
24371999-02-05 Jesse Thilo <jthilo@gnu.org>
2438
2439 * po/Makefile.in.in, po/POTFILES.in:
2440 Add `po' directory skeleton.
2441
24421999-01-27 Jesse Thilo <jthilo@gnu.org>
2443
2444 * README: Document help-bison list.
2445
2446 * configure.in: Add check for mkstemp().
2447
24481999-01-20 Jesse Thilo <jthilo@gnu.org>
2449
2450 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2451 Hush a few compiler warnings.
2452
2453 * src/files.c:
2454 Add tryclose(), which verifies that fclose was successful.
2455 Hush a couple of compiler warnings.
2456
24571999-01-20 Jesse Thilo <jthilo@gnu.org>
2458
2459 * Makefile.am, OChangeLog:
2460 ChangeLog is now automatically generated. Include the old version as
2461 OChangeLog.
2462
24631999-01-14 Jesse Thilo <jthilo@gnu.org>
2464
2465 * 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:
2466 Update FSF address.
2467
24681999-01-14 Jesse Thilo <jthilo@gnu.org>
2469
2470 * doc/bison.texinfo: Fix formatting glitch.
2471
2472 * doc/bison.texinfo: Update FSF address.
2473
24741999-01-14 Jesse Thilo <jthilo@gnu.org>
2475
2476 * acconfig.h: Update FSF address.
2477
24781999-01-08 Jesse Thilo <jthilo@gnu.org>
2479
2480 * src/system.h:
2481 Don't define PACKAGE here, since config.h defines it.
2482
24831998-12-30 Jesse Thilo <jthilo@gnu.org>
2484
2485 * src/reader.c: Update copyright date.
2486
2487 * src/main.c:
2488 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2489 favor of output directly to stderr (avoids buffer overruns).
2490
2491 * src/reader.c: Some checks for premature EOF.
2492
2493 * 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:
2494 Use prototypes if the compiler understands them.
2495
2496 * src/files.c: Honor TMPDIR on Unix hosts.
2497 Use prototypes if the compiler understands them.
2498
2499 * src/reader.c:
2500 Fix a couple of buffer overrun bugs.
2501 Use prototypes if the compiler understands them.
2502
2503 * src/system.h: Include unistd.h and ctype.h.
2504 Use #ifdef instead of #if for NLS symbols.
2505
25061998-12-30 Jesse Thilo <jthilo@gnu.org>
2507
2508 * doc/bison.texinfo:
2509 Delete comment "consider using @set for edition number, etc..." since
2510 we now are doing so.
2511
25121998-12-30 Jesse Thilo <jthilo@gnu.org>
2513
2514 * configure.in:
2515 Use prototypes if the compiler understands them.
2516
2517 * NEWS: Document 1.26 highlights.
2518
2519 * Makefile.am: Require Automake 1.3 or later.
2520
2521 * acconfig.h:
2522 Use prototypes if the compiler understands them.
2523
25241998-12-29 Jesse Thilo <jthilo@gnu.org>
2525
2526 * src/version.c:
2527 Use VERSION symbol from automake for version number.
2528
25291998-12-29 Jesse Thilo <jthilo@gnu.org>
2530
2531 * acconfig.h, configure.in, version.cin:
2532 Use VERSION symbol from automake for version number.
2533
25341998-11-28 Jesse Thilo <jthilo@gnu.org>
2535
2536 * Makefile.am:
2537 Distribute original version of simple parser (bison.s1), not built
2538 version (bison.simple).
2539
25401998-11-28 Jesse Thilo <jthilo@gnu.org>
2541
2542 * doc/bison.texinfo: Add info dir entry.
2543
2544 * doc/bison.texinfo:
2545 Let automake put version number into documentation.
2546
25471998-11-26 Jesse Thilo <jthilo@gnu.org>
2548
2549 * src/bison.cld, src/build.com, src/vmshlp.mar:
2550 Add non-RCS files from /gd/gnu/bison.
2551
25521998-11-26 Jesse Thilo <jthilo@gnu.org>
2553
2554 * doc/bison.1:
2555 Document the BISON_HAIRY and BISON_SIMPLE variables.
2556
25571998-11-25 Jesse Thilo <jthilo@gnu.org>
2558
2559 * src/version.c: Build version.c automatically.
2560
2561 * src/reader.c:
2562 Fix token numbering (used to start at 258, not 257).
2563
2564 * src/system.h: Include config.h.
2565
2566 * src/getargs.c: Update bug report address.
2567
2568 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2569 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2570
25711998-11-25 Jesse Thilo <jthilo@gnu.org>
2572
2573 * Makefile.am:
2574 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2575
2576 * configure.in, version.cin:
2577 Build version.c automatically.
2578
2579 * AUTHORS: Add AUTHORS file.
2580
2581 * README: Update bug report address.
2582
2583 * bison.simple:
2584 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2585
2586 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2587 Add automake stuff.
2588
25891998-11-25 Jesse Thilo <jthilo@gnu.org>
2590
2591 * doc/bison.texinfo: Clean up some formatting.
2592
25931998-05-05 Richard Stallman <rms@gnu.org>
2594
2595 * doc/bison.texinfo:
2596 Explain better why to make a pure parser.
2597
25981998-01-05 Richard Stallman <rms@gnu.org>
2599
2600 * src/files.c (openfiles):
2601 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2602 find a temporary directory, if possible. Do not unlink files while
2603 they are open.
2604
26051997-08-25 Richard Stallman <rms@gnu.org>
2606
2607 * src/reader.c (stack_offset;):
2608 Change some warni to warns.
2609
2610 * src/lex.c (literalchar): Use warns, not warni.
2611
26121997-06-28 Richard Stallman <rms@gnu.org>
2613
2614 * src/bison.s1: Add a Bison version comment.
2615
2616 * src/main.c (fatal, warn, berror):
2617 Use program_name.
2618
26191997-06-28 Richard Stallman <rms@gnu.org>
2620
2621 * Makefile.in (bison_version): New variable.
2622 (dist): Use that variable.
2623 (bison.s1): Substitute the Bison version into bison.simple.
2624
2625 * bison.simple: Add a Bison version comment.
2626
26271997-06-18 Richard Stallman <rms@gnu.org>
2628
2629 * src/main.c (fatal, warn, berror):
2630 Make error messages standard.
2631 (toomany): Improve error message text.
2632
2633 * 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:
2634 new.h renamed to alloc.h.
2635
26361997-06-18 Richard Stallman <rms@gnu.org>
2637
2638 * Makefile.in: new.h renamed to alloc.h.
2639
26401997-05-24 Richard Stallman <rms@gnu.org>
2641
2642 * src/lex.c (literalchar):
2643 Fix the code for escaping \, " and '.
2644
2645 (lex): Avoid trouble when there are many chars
2646 to discard in a char literal with just several chars in it.
2647
26481997-05-17 Richard Stallman <rms@gnu.org>
2649
2650 * src/bison.s1:
2651 Use malloc, if using alloca is troublesome.
2652 (YYSTACK_USE_ALLOCA): New flag macro.
2653 Define it for some systems and compilers.
2654 (YYSTACK_ALLOC): New macro.
2655 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2656 If it was malloc'd, free it.
2657
26581997-05-17 Richard Stallman <rms@gnu.org>
2659
2660 * bison.simple:
2661 Use malloc, if using alloca is troublesome.
2662 (YYSTACK_USE_ALLOCA): New flag macro.
2663 Define it for some systems and compilers.
2664 (YYSTACK_ALLOC): New macro.
2665 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2666 If it was malloc'd, free it.
2667
26681997-04-23 Richard Stallman <rms@gnu.org>
2669
2670 * src/bison.s1:
2671 (alloca) [__hpux]: Always define as __builtin_alloca.
2672
26731997-04-23 Richard Stallman <rms@gnu.org>
2674
2675 * bison.simple:
2676 (alloca) [__hpux]: Always define as __builtin_alloca.
2677
26781997-04-22 Richard Stallman <rms@gnu.org>
2679
2680 * src/bison.s1:
2681 [__hpux]: Include alloca.h (right for HPUX 10)
2682 instead of declaring alloca (right for HPUX 9).
2683
2684 * src/bison.s1 (__yy_memcpy):
2685 Declare arg `count' as unsigned int.
2686 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2687
26881997-04-22 Richard Stallman <rms@gnu.org>
2689
2690 * bison.simple:
2691 [__hpux]: Include alloca.h (right for HPUX 10)
2692 instead of declaring alloca (right for HPUX 9).
2693
2694 * bison.simple (__yy_memcpy):
2695 Declare arg `count' as unsigned int.
2696 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2697
26981997-01-03 Richard Stallman <rms@gnu.org>
2699
2700 * src/allocate.c: [__STDC__ or _MSC_VER]:
2701 Declare calloc and realloc to return void *.
2702
27031997-01-02 Richard Stallman <rms@gnu.org>
2704
2705 * src/system.h:
2706 [_MSC_VER]: Include stdlib.h and process.h.
2707 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2708
2709 * src/main.c (main): Return FAILURE as a value.
2710 (printable_version): Declare arg as int, not char.
2711
27121997-01-02 Richard Stallman <rms@gnu.org>
2713
2714 * Makefile.in (dist):
2715 Explicitly check for symlinks, and copy them.
2716
27171996-12-19 Richard Stallman <rms@gnu.org>
2718
2719 * src/files.c:
2720 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2721
27221996-12-18 Paul Eggert <eggert@gnu.org>
2723
2724 * src/bison.s1 (yyparse):
2725 If __GNUC__ and YYPARSE_PARAM are both defined,
2726 declare yyparse to have a void * argument.
2727
27281996-12-18 Paul Eggert <eggert@gnu.org>
2729
2730 * bison.simple (yyparse):
2731 If __GNUC__ and YYPARSE_PARAM are both defined,
2732 declare yyparse to have a void * argument.
2733
27341996-12-17 Richard Stallman <rms@gnu.org>
2735
2736 * src/reduce.c (nbits): Add some casts.
2737
27381996-08-12 Richard Stallman <rms@gnu.org>
2739
2740 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2741
27421996-08-12 Richard Stallman <rms@gnu.org>
2743
2744 * bison.simple: Test _MSDOS as well as _MSDOS_.
2745
27461996-07-31 Richard Stallman <rms@gnu.org>
2747
2748 * src/bison.s1:
2749 [__sun && __i386]: Include alloca.h.
2750
27511996-07-31 Richard Stallman <rms@gnu.org>
2752
2753 * bison.simple:
2754 [__sun && __i386]: Include alloca.h.
2755
27561996-07-30 Richard Stallman <rms@gnu.org>
2757
2758 * src/bison.s1: Comment change.
2759
2760 * src/bison.s1: Test _MSDOS_, not MSDOS.
2761
27621996-07-30 Richard Stallman <rms@gnu.org>
2763
2764 * bison.simple: Comment change.
2765
2766 * bison.simple: Test _MSDOS_, not MSDOS.
2767
27681996-06-01 Richard Stallman <rms@gnu.org>
2769
2770 * 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:
2771 Insert `_' macro around many string constants.
2772
2773 * src/main.c:
2774 Insert `_' macro around many string constants.
2775
2776 (main): Call setlocale, bindtextdomain and textdomain.
2777
2778 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2779 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2780 [ENABLE_NLS]: Include libintl.h.
2781 [ENABLE_NLS] (gettext): Define.
2782 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2783 (N_, PACKAGE, LOCALEDIR): New macros.
2784
27851996-06-01 Richard Stallman <rms@gnu.org>
2786
2787 * POTFILES.in: New file.
2788
2789 * Makefile.in (allocate.o):
2790 Define target explicitly.
2791
2792 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2793 (LDFLAGS): Set to @LDFLAGS@.
2794 (configure): Run autoconf only if preceding `cd' succeeds.
2795 (bison.s1): Redirect output to temporary file then move the
2796 temporary to the target, rather than redirecting directly to bison.s1.
2797 (clean): Remove config.status and config.log.
2798 (distclean): Don't remove config.status here.
2799
28001996-05-12 Richard Stallman <rms@gnu.org>
2801
2802 * src/bison.s1:
2803 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2804
28051996-05-12 Richard Stallman <rms@gnu.org>
2806
2807 * bison.simple:
2808 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2809
28101996-05-11 Richard Stallman <rms@gnu.org>
2811
2812 * src/bison.s1 (__yy_memcpy):
2813 Really reorder the args, as was supposedly done on Feb 14 1995.
2814 (yyparse): Calls changed accordingly.
2815
28161996-05-11 Richard Stallman <rms@gnu.org>
2817
2818 * Makefile.in (dist): Don't use $(srcdir).
2819
2820 * bison.simple (__yy_memcpy):
2821 Really reorder the args, as was supposedly done on Feb 14 1995.
2822 (yyparse): Calls changed accordingly.
2823
28241996-01-27 Richard Stallman <rms@gnu.org>
2825
2826 * src/output.c (output_rule_data):
2827 Test YYERROR_VERBOSE in the conditional
2828 around the definition of ttyname.
2829
28301995-12-29 Richard Stallman <rms@gnu.org>
2831
2832 * src/bison.s1:
2833 Fix line numbers in #line commands.
2834
28351995-12-29 Richard Stallman <rms@gnu.org>
2836
2837 * bison.simple:
2838 Fix line numbers in #line commands.
2839
28401995-12-27 Richard Stallman <rms@gnu.org>
2841
2842 * src/bison.s1 (YYPARSE_PARAM_DECL):
2843 In C++, make it always null.
2844 (YYPARSE_PARAM_ARG): New macro.
2845 (yyparse): Use YYPARSE_PARAM_ARG.
2846
28471995-12-27 Richard Stallman <rms@gnu.org>
2848
2849 * bison.simple (YYPARSE_PARAM_DECL):
2850 In C++, make it always null.
2851 (YYPARSE_PARAM_ARG): New macro.
2852 (yyparse): Use YYPARSE_PARAM_ARG.
2853
28541995-11-29 Richard Stallman <rms@gnu.org>
2855
2856 * doc/bison.texinfo:
2857 Describe literal string tokens, %raw, %no_lines, %token_table.
2858
28591995-11-29 Daniel Hagerty <hag@gnu.org>
2860
2861 * doc/bison.texinfo: Fixed update date
2862
28631995-10-16 Richard Stallman <rms@gnu.org>
2864
2865 * src/version.c: Version 1.25.
2866
28671995-10-16 Richard Stallman <rms@gnu.org>
2868
2869 * NEWS: *** empty log message ***
2870
28711995-10-16 Richard Stallman <rms@gnu.org>
2872
2873 * doc/bison.1, doc/bison.rnh:
2874 Add new options.
2875
28761995-10-15 Richard Stallman <rms@gnu.org>
2877
2878 * src/vmsgetargs.c, src/getargs.c:
2879 Added -n, -k, and -raw switches.
2880 (noparserflag, toknumflag, rawtoknumflag): New variables.
2881
2882 * src/symtab.h (SALIAS):
2883 New #define for adding aliases to %token.
2884 (struct bucket): Added `alias' field.
2885
2886 * src/reduce.c (reduce_grammar):
2887 Revise error message.
2888 (print_notices): Remove final `.' from error message.
2889
2890 * src/reader.c (reader_output_yylsp):
2891 New function.
2892 (readgram): Use `#if 0' around code that accepted %command
2893 inside grammar rules: The documentation doesn't allow it,
2894 and it will fail since the %command processors scan for the next %.
2895 (parse_token_decl): Extended the %token
2896 declaration to allow a multi-character symbol as an alias.
2897 (parse_thong_decl): New function.
2898 (read_declarations): Added %thong declarations.
2899 (read_declarations): Handle NOOP to deal with allowing
2900 % declarations as another means to specify the flags.
2901 (readgram): Allow %prec prior to semantics embedded in a rule.
2902 (skip_to_char, read_declarations, copy_definition)
2903 (parse_token_decl, parse_start_decl, parse_type_decl)
2904 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2905 (get_type_name, copy_guard, copy_action, readgram)
2906 (get_type, packsymbols): Revised most error messages.
2907 Changed `fatal' to `warnxxx' to avoid aborting for error.
2908 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2909 (read_declarations): Improve the error message for
2910 an invalid character. Do not abort.
2911 (read_declarations, copy_guard, copy_action): Use
2912 printable_version to avoid unprintable characters in printed output.
2913 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2914 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2915 Allow the type of a non-terminal can be given
2916 more than once, as long as all specifications give the same type.
2917
2918 * src/output.c:
2919 (output_headers, output_trailers, output, output_gram)
2920 (output_rule_data): Implement noparserflag variable.
2921 Implement toknumflag variable.
2922 (output): Call reader_output_yylsp to output LTYPESTR.
2923
2924 * src/main.c (main):
2925 If reader sees an error, don't process the grammar.
2926 (fatals): Updated to not use VARARGS1.
2927 (printable_version, int_to_string, warn, warni, warns, warnss)
2928 (warnsss): New error reporting functions. Avoid abort for error.
2929
2930 * src/lex.h:
2931 Added THONG and NOOP for alias processing.
2932 Added SETOPT for the new code that allows setting options with %flags.
2933
2934 * src/lex.c:
2935 Include getopt.h. Add some extern decls.
2936 (safegetc): New function to deal with EOF gracefully.
2937 (literalchar); new function to deal with reading \ escapes.
2938 (lex): Use literalchar.
2939 (lex): Implemented "..." tokens.
2940 (literalchar, lex, parse_percent_token): Made tokenbuffer
2941 always contain the token. This includes growing the token
2942 buffer while reading an integer.
2943 (parse_percent_token): Replaced if-else statement with percent_table.
2944 (parse_percent_token): Added % declarations as another
2945 way to specify the flags -n, -l, and -r. Also added hooks for
2946 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2947 major changes to files.c.
2948 (lex) Retain in the incoming stream a character following
2949 an incorrect '/'.
2950 (skip_white_space, lex): Revised most error messages
2951 and changed fatal to warn to avoid aborting.
2952 (percent_table): Added %thong declarations.
2953
2954 * src/gram.h: Comment changes.
2955
2956 * src/files.c (openfiles, open_extra_files, done):
2957 Add faction flag
2958 and actfile file. Handle noparserflag. Both for -n switch.
2959
2960 * src/conflicts.c (resolve_sr_conflict):
2961 Remove use of alloca.
2962
29631995-06-01 Jim Meyering <meyering@gnu.org>
2964
2965 * doc/bison.texinfo: *** empty log message ***
2966
29671995-05-06 Richard Stallman <rms@gnu.org>
2968
2969 * src/bison.s1: Comment change.
2970
29711995-05-06 Richard Stallman <rms@gnu.org>
2972
2973 * bison.simple: Comment change.
2974
29751995-05-03 Richard Stallman <rms@gnu.org>
2976
2977 * src/version.c: Version now 1.24.
2978
2979 * src/bison.s1: Change distribution terms.
2980
2981 * src/version.c: Version now 1.23.
2982
29831995-05-03 Richard Stallman <rms@gnu.org>
2984
2985 * doc/bison.texinfo:
2986 Rewrite "Conditions for Using Bison".
2987 Update version to 1.24.
2988
29891995-05-03 Richard Stallman <rms@gnu.org>
2990
2991 * bison.simple: Change distribution terms.
2992
29931995-02-23 Richard Stallman <rms@gnu.org>
2994
2995 * src/files.c: Test __VMS_POSIX as well as VMS.
2996
29971995-02-14 Jim Meyering <meyering@gnu.org>
2998
2999 * src/bison.s1 (__yy_memcpy):
3000 Renamed from __yy_bcopy to avoid
3001 confusion. Reverse FROM and TO arguments to be consistent with
3002 those of memcpy.
3003
30041995-02-14 Jim Meyering <meyering@gnu.org>
3005
3006 * bison.simple (__yy_memcpy):
3007 Renamed from __yy_bcopy to avoid
3008 confusion. Reverse FROM and TO arguments to be consistent with
3009 those of memcpy.
3010
30111994-11-10 David J. MacKenzie <djm@gnu.org>
3012
3013 * NEWS: reformat
3014
3015 * NEWS: New file.
3016
3017 * Makefile.in (DISTFILES): Include NEWS.
3018
3019 * Makefile.in (DISTFILES):
3020 Include install-sh, not install.sh.
3021
3022 * configure.in: Update to Autoconf v2 macro names.
3023
30241994-10-05 David J. MacKenzie <djm@gnu.org>
3025
3026 * Makefile.in: fix typo
3027
3028 * Makefile.in (prefix, exec_prefix):
3029 Let configure set them.
3030
30311994-09-28 David J. MacKenzie <djm@gnu.org>
3032
3033 * Makefile.in: Set datadir to $(prefix)/share.
3034
30351994-09-15 Richard Stallman <rms@gnu.org>
3036
3037 * src/bison.s1:
3038 Update copyright notice and GPL version.
3039
30401994-09-15 Richard Stallman <rms@gnu.org>
3041
3042 * bison.simple:
3043 Update copyright notice and GPL version.
3044
30451994-07-12 Richard Stallman <rms@gnu.org>
3046
3047 * src/reduce.c, src/reader.c:
3048 entered into RCS
3049
30501994-05-05 David J. MacKenzie <djm@gnu.org>
3051
3052 * Makefile.in: entered into RCS
3053
30541994-03-26 Richard Stallman <rms@gnu.org>
3055
3056 * src/bison.s1: entered into RCS
3057
30581994-03-26 Richard Stallman <rms@gnu.org>
3059
3060 * bison.simple: entered into RCS
3061
30621994-03-25 Richard Stallman <rms@gnu.org>
3063
3064 * src/main.c: entered into RCS
3065
30661994-03-24 Richard Stallman <rms@gnu.org>
3067
3068 * src/conflicts.c: entered into RCS
3069
30701994-01-02 Richard Stallman <rms@gnu.org>
3071
3072 * Makefile.in: *** empty log message ***
3073
30741993-11-21 Richard Stallman <rms@gnu.org>
3075
3076 * src/bison.s1: *** empty log message ***
3077
30781993-11-21 Richard Stallman <rms@gnu.org>
3079
3080 * doc/bison.texinfo: entered into RCS
3081
3082 * doc/bison.texinfo: *** empty log message ***
3083
30841993-11-21 Richard Stallman <rms@gnu.org>
3085
3086 * bison.simple: *** empty log message ***
3087
30881993-10-25 David J. MacKenzie <djm@gnu.org>
3089
3090 * doc/bison.texinfo: *** empty log message ***
3091
30921993-10-19 Richard Stallman <rms@gnu.org>
3093
3094 * src/bison.s1: *** empty log message ***
3095
30961993-10-19 Richard Stallman <rms@gnu.org>
3097
3098 * bison.simple: *** empty log message ***
3099
31001993-10-14 Richard Stallman <rms@gnu.org>
3101
3102 * src/bison.s1: *** empty log message ***
3103
31041993-10-14 Richard Stallman <rms@gnu.org>
3105
3106 * bison.simple: *** empty log message ***
3107
31081993-09-14 David J. MacKenzie <djm@gnu.org>
3109
3110 * doc/bison.texinfo: *** empty log message ***
3111
31121993-09-13 Noah Friedman <friedman@gnu.org>
3113
3114 * Makefile.in: *** empty log message ***
3115
31161993-09-10 Richard Stallman <rms@gnu.org>
3117
3118 * src/conflicts.c: *** empty log message ***
3119
3120 * src/system.h: entered into RCS
3121
31221993-09-10 Richard Stallman <rms@gnu.org>
3123
3124 * doc/bison.1: entered into RCS
3125
31261993-09-06 Noah Friedman <friedman@gnu.org>
3127
3128 * src/version.c: entered into RCS
3129
31301993-09-06 Noah Friedman <friedman@gnu.org>
3131
3132 * Makefile.in: *** empty log message ***
3133
31341993-07-30 David J. MacKenzie <djm@gnu.org>
3135
3136 * Makefile.in: *** empty log message ***
3137
31381993-07-24 Richard Stallman <rms@gnu.org>
3139
3140 * src/bison.s1: *** empty log message ***
3141
31421993-07-24 Richard Stallman <rms@gnu.org>
3143
3144 * bison.simple: *** empty log message ***
3145
31461993-07-08 David J. MacKenzie <djm@gnu.org>
3147
3148 * Makefile.in: *** empty log message ***
3149
31501993-07-04 Richard Stallman <rms@gnu.org>
3151
3152 * src/bison.s1: *** empty log message ***
3153
31541993-07-04 Richard Stallman <rms@gnu.org>
3155
3156 * bison.simple: *** empty log message ***
3157
31581993-06-26 David J. MacKenzie <djm@gnu.org>
3159
3160 * src/getargs.c: entered into RCS
3161
31621993-06-26 David J. MacKenzie <djm@gnu.org>
3163
3164 * doc/bison.texinfo: *** empty log message ***
3165
3166 * doc/bison.1: New file.
3167
31681993-06-25 Richard Stallman <rms@gnu.org>
3169
3170 * src/getargs.c: New file.
3171
31721993-06-16 Richard Stallman <rms@gnu.org>
3173
3174 * src/bison.s1: *** empty log message ***
3175
31761993-06-16 Richard Stallman <rms@gnu.org>
3177
3178 * bison.simple: *** empty log message ***
3179
31801993-06-03 Richard Stallman <rms@gnu.org>
3181
3182 * src/bison.s1: New file.
3183
31841993-06-03 Richard Stallman <rms@gnu.org>
3185
3186 * doc/bison.texinfo: *** empty log message ***
3187
31881993-06-03 Richard Stallman <rms@gnu.org>
3189
3190 * bison.simple: New file.
3191
31921993-05-19 Richard Stallman <rms@gnu.org>
3193
3194 * doc/bison.texinfo: New file.
3195
31961993-05-07 Noah Friedman <friedman@gnu.org>
3197
3198 * Makefile.in: *** empty log message ***
3199
32001993-04-28 Noah Friedman <friedman@gnu.org>
3201
3202 * src/reader.c: *** empty log message ***
3203
32041993-04-23 Noah Friedman <friedman@gnu.org>
3205
3206 * src/alloc.h: entered into RCS
3207
32081993-04-20 David J. MacKenzie <djm@gnu.org>
3209
3210 * src/version.c: *** empty log message ***
3211
3212 * src/files.c, src/allocate.c:
3213 entered into RCS
3214
3215 * src/reader.c: *** empty log message ***
3216
3217 * src/lex.c: entered into RCS
3218
3219 * src/conflicts.c: New file.
3220
3221 * src/symtab.c: entered into RCS
3222
3223 * src/alloc.h: New file.
3224
3225 * src/LR0.c: entered into RCS
3226
32271993-04-18 Noah Friedman <friedman@gnu.org>
3228
3229 * src/reader.c: New file.
3230
3231 * src/version.c: *** empty log message ***
3232
32331993-04-18 Noah Friedman <friedman@gnu.org>
3234
3235 * Makefile.in: *** empty log message ***
3236
32371993-04-17 Noah Friedman <friedman@gnu.org>
3238
3239 * Makefile.in: *** empty log message ***
3240
32411993-04-15 Richard Stallman <rms@gnu.org>
3242
3243 * src/main.c, src/files.c:
3244 New file.
3245
32461993-04-15 Noah Friedman <friedman@gnu.org>
3247
3248 * configure.in: entered into RCS
3249
3250 * configure.in: *** empty log message ***
3251
3252 * configure.in: New file.
3253
32541993-04-14 Richard Stallman <rms@gnu.org>
3255
3256 * Makefile.in: New file.
3257
32581993-04-13 Richard Stallman <rms@gnu.org>
3259
3260 * src/version.c: New file.
3261
32621993-03-25 Richard Stallman <rms@gnu.org>
3263
3264 * src/output.c: entered into RCS
3265
32661992-09-25 Richard Stallman <rms@gnu.org>
3267
3268 * configure.bat: entered into RCS
3269
32701992-06-22 Richard Stallman <rms@gnu.org>
3271
3272 * src/vmsgetargs.c: entered into RCS
3273
32741992-06-22 Richard Stallman <rms@gnu.org>
3275
3276 * doc/bison.rnh: entered into RCS
3277
32781992-04-20 David J. MacKenzie <djm@gnu.org>
3279
3280 * README: entered into RCS
3281
32821992-01-22 Richard Stallman <rms@gnu.org>
3283
3284 * src/machine.h: entered into RCS
3285
32861991-12-21 Richard Stallman <rms@gnu.org>
3287
3288 * src/lalr.c, src/closure.c:
3289 entered into RCS
3290
32911991-12-20 Richard Stallman <rms@gnu.org>
3292
3293 * src/state.h: entered into RCS
3294
32951991-12-18 Richard Stallman <rms@gnu.org>
3296
3297 * src/print.c, src/nullable.c, src/derives.c:
3298 entered into RCS
3299
33001991-11-03 David J. MacKenzie <djm@gnu.org>
3301
3302 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3303 entered into RCS
3304
33051988-09-09 Richard Stallman <rms@gnu.org>
3306
3307 * src/bison.hairy: entered into RCS
3308
33091987-12-16 Richard Stallman <rms@gnu.org>
3310
3311 * REFERENCES: entered into RCS