]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/reader.c (symbols_output): New, extracted from...
[bison.git] / ChangeLog
CommitLineData
e3f1699f
AD
12001-11-05 Akim Demaille <akim@epita.fr>
2
3 * src/reader.c (symbols_output): New, extracted from...
4 (packsymbols): here.
5 (reader): Adjust.
6
65be0866
AD
72001-11-05 Akim Demaille <akim@epita.fr>
8
9 * src/lex.c (parse_percent_token): s/quotearg/quote/.
10
e4d910bf
AD
112001-11-05 Akim Demaille <akim@epita.fr>
12
13 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
14 pattern.
15
951366c1
AD
162001-11-05 Akim Demaille <akim@epita.fr>
17
18 * src/options.h (struct option_table_struct): set_flags is void*.
19 * src/options.c (longopts): Support `--output' and `%output'.
20 (usage): Adjust.
21 * src/lex.h (tok_setopt): Remove, replaced with...
22 (tok_intopt, tok_stropt): these new guys.
23 * src/lex.c (getopt.h): Not needed.
24 (token_buffer, unlexed_token_buffer): Not const.
25 (percent_table): Promote `-' over `_' in directive names.
26 Active `%name-prefix', `file-prefix', and `output'.
27 (parse_percent_token): Accept possible arguments to directives.
28 Promote `-' over `_' in directive names.
29
d8988b2f
AD
302001-11-04 Akim Demaille <akim@epita.fr>
31
32 * doc/bison.texinfo (Decl Summary): Split the list into
33 `directives for grammars' and `directives for bison'.
34 Sort'em.
35 Add description of `%name-prefix', `file-prefix', and `output'.
36 Promote `-' over `_' in directive names.
37 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
38 Simplify the description of `--name-prefix'.
39 Promote `-' over `_' in directive names.
40 Promote `--output' over `--output-file'.
41 Fix the description of `--defines'.
42 * tests/output.at: Exercise %file-prefix and %output.
43
6468d18e
AD
442001-11-02 Akim Demaille <akim@epita.fr>
45
46 * doc/refcard.tex: Update.
47
6b7e85b9
AD
482001-11-02 Akim Demaille <akim@epita.fr>
49
50 * src/symtab.h (SUNDEF): New.
51 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
52 stand for `uninitialized', instead of 0.
53 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
54 * src/lex.c (lex): Adjust.
55
56 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
57 Number it 0.
58 Let yylex return it instead of a plain 0.
59 Reported by Dick Streefland.
60
cd5aafcf
AD
612001-11-02 Akim Demaille <akim@epita.fr>
62
63 * tests/regression.at (Mixing %token styles): New test.
64
037ca2f1
AD
652001-11-02 Akim Demaille <akim@epita.fr>
66
67 * src/reader.c (parse_thong_decl): Formatting changes.
68 (token_translations_init): New, extracted from...
69 (packsymbols): Here.
70 Adjust.
71
270a173c
AD
722001-11-01 Akim Demaille <akim@epita.fr>
73
74 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
75 Check that `9foo.y' produces correct cpp guards.
76 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
77 guards.
78 Reported by Wwp.
79
561f9a30
AD
802001-11-01 Akim Demaille <akim@epita.fr>
81
82 * tests/regression.at (Invalid input: 2): New.
83 * src/lex.c (unlexed_token_buffer): New.
84 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
85 too.
86 Reported by Wwp.
87
f987e9d2
AD
882001-11-01 Akim Demaille <akim@epita.fr>
89
90 * tests/calc.at: Catch up with 1.30.
91 * configure.in: Bump to 1.49a.
92 Adjust to newer Autotest.
93
0846f581
PB
942001-10-19 Pascal Bart <pascal.bart@epita.fr>
95
96 * src/conflicts.c: Move global variables rrc_total and src_total ...
97 (print_conflicts): here.
98 * src/output.c (output): Free global variable user_toknums.
99 * src/lex.c (token_obstack): Become static.
100
3c1a79b3
AD
1012001-10-18 Akim Demaille <akim@epita.fr>
102
103 * tests/atlocal.in (GCC): Add.
104 * tests/calc.at: s/m4_match/m4_bmatch/.
105 s/m4_patsubst/m4_bpatsubst/.
106 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
107 * configure.in: AC_SUBST(GCC).
108
5d52e7d0
MA
1092001-10-14 Marc Autret <autret_m@epita.fr>
110
111 * src/options.c (create_long_option_table): Fix.
112
631aa1d3
AD
1132001-10-10 Akim Demaille <akim@epita.fr>
114
115 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
116
f6ec6d13
AD
1172001-10-04 Akim Demaille <akim@epita.fr>
118
119 * src/reader.c (parse_union_decl): Push the caracters in
120 union_obstack, not attrs_obstack.
121
342b8b6e
AD
1222001-10-04 Akim Demaille <akim@epita.fr>
123
124 Merge in the branch 1.29.
125
126 * src/reader.c (packsymbols): Use a temporary obstack for
127 `%%tokendef', since output_stack is already used elsewhere.
128
129 2001-10-02 Akim Demaille <akim@epita.fr>
130
131 Bump 1.29d.
132
133 2001-10-02 Akim Demaille <akim@epita.fr>
134
135 Version 1.29c.
136
137 2001-10-02 Akim Demaille <akim@epita.fr>
138
139 * tests/regression.at (Invalid CPP headers): New.
140 From Alexander Belopolsky.
141 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
142
143 2001-10-02 Akim Demaille <akim@epita.fr>
144
145 * tests/regression.at (Invalid input): New.
146 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
147 Reported by Shura.
148
149 2001-10-02 Akim Demaille <akim@epita.fr>
150
151 * tests/calc.at: Now that --debug works, the tests must be adjusted.
152
153 2001-10-02 Akim Demaille <akim@epita.fr>
154
155 * src/output.c (output_parser): Assert `skeleton'.
156 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
157 systems.
158 From Shura.
159
160 2001-10-01 Marc Autret <autret_m@epita.fr>
161
162 * src/lex.h: Echo modifications.
163 * src/lex.c (unlex): Parameter is now token_t.
164 From Hans Aberg.
165
166 2001-10-01 Marc Autret <autret_m@epita.fr>
167
168 * src/main.c: Include lex.h.
169 From Hans Aberg.
170
171 2001-09-29 Akim Demaille <akim@epita.fr>
172
173 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
174
175 2001-09-28 Akim Demaille <akim@epita.fr>
176
177 * tests/testsuite.at: Update to newer Autotest.
178 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
179
180 2001-09-27 Akim Demaille <akim@epita.fr>
181
182 Position independent wrapper.
183
184 * tests/bison: Remove.
185 * tests/bison.in: New.
186 * configure.in: Adjust.
187
188 2001-09-27 Paul Eggert <eggert@twinsun.com>
189
190 Port quotearg fixes from tar 1.13.24.
191
192 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
193 tm to be declared.
194 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
195 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
196
197 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
198 * m4/mbrtowc.m4: New file.
199 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
200 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
201
202 2001-09-27 Akim Demaille <akim@epita.fr>
203
204 Bump to 1.29c.
205
206 2001-09-27 Akim Demaille <akim@epita.fr>
207
208 Version 1.29b.
209
210 2001-09-25 Akim Demaille <akim@epita.fr>
211
212 * src/system.h: Include `xalloc.h'.
213 Remove it from the C files.
214 * src/files.c (output_files): Free the obstacks.
215 * src/lex.c (init_lex): Rename as...
216 (lex_init): this.
217 (lex_free): New.
218 * src/main.c (main): Use it.
219
220 2001-09-24 Marc Autret <autret_m@epita.fr>
221
222 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
223 to output informations in fout (FILE*).
224 (open_graph, close_graph): Likewise.
225 (output_graph, output_edge, output_node): Likewise.
226 * src/vcg.h: Update function prototypes.
227 * src/print_graph.c (print_graph): Open output graph file.
228 (print_actions): Adjust.
229 * src/files.h: Remove extern declaration.
230 * src/files.c: Remove graph_obstack declaration.
231 (open_files): Remove graph_obstack initialization.
232 (output_files): Remove graph_obstack saving.
233
234 2001-09-24 Marc Autret <autret_m@epita.fr>
235
236 * src/files.c (compute_output_file_names): Fix.
237
238 2001-09-24 Marc Autret <autret_m@epita.fr>,
239 Akim Demaille <akim@epita.fr>
240
241 * src/reader.c (reader): Remove call to free_symtab ().
242 * src/main.c (main): Call it here.
243 Include symtab.h.
244 * src/conflicts.c (initialize_conflicts): Rename as...
245 (solve_conflicts): this.
246 * src/print.c (print_core, print_actions, print_state)
247 (print_grammar): Dump to a file instead a `output_obstack'.
248 (print_results): Dump `output_obstack', and then proceed with the
249 FILE *.
250 * src/files.c (compute_output_file_names, close_files): New.
251 (output_files): Adjust.
252 * src/main.c (main): Adjust.
253
254 2001-09-23 Marc Autret <autret_m@epita.fr>
255
256 * src/files.c (compute_header_macro): Computes header macro name
257 from spec_defines_file when given.
258
259 2001-09-23 Marc Autret <autret_m@epita.fr>
260
261 * src/files.c (output_files): Add default extensions.
262
263 2001-09-22 Akim Demaille <akim@epita.fr>
264
265 * src/conflicts.c (finalize_conflicts): Rename as...
266 (free_conflicts): this.
267
268 2001-09-22 Akim Demaille <akim@epita.fr>
269
270 * src/gram.c (gram_free): Rename back as...
271 (dummy): this.
272 (output_token_translations): Free `token_translations'.
273 * src/symtab.c (free_symtab): Free the tag field.
274
275 2001-09-22 Akim Demaille <akim@epita.fr>
276
277 Remove `translations' as it is always set to true.
278
279 * src/gram.h: Adjust.
280 * src/reader.c (packsymbols, parse_token_decl): Adjust
281 * src/print.c (print_grammar): Adjust.
282 * src/output.c (output_token_translations): Adjust.
283 * src/lex.c (lex): Adjust.
284 * src/gram.c: Be sure the set pointers to NULL.
285 (dummy): Rename as...
286 (gram_free): this.
287
288 2001-09-22 Akim Demaille <akim@epita.fr>
289
290 * configure.in: Invoke AM_LIB_DMALLOC.
291 * src/system.h: Use dmalloc.
292 * src/LR0.c: Be sure to have pointers initialized to NULL.
293 (allocate_itemsets): Allocate kernel_items only if needed.
294
295 2001-09-22 Akim Demaille <akim@epita.fr>
296
297 * configure.in: Bump to 1.29b.
298 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
299 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
300 need xmalloc.c in calc.y.
301 From Pascal Bart.
302
303 2001-09-21 Akim Demaille <akim@epita.fr>
304
305 Version 1.29a.
306 * Makefile.maint, config/config.guess, config/config.sub,
307 * config/missing: Update from masters.
308 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
309 upon package.m4.
310 * configure.in (ALL_LINGUAS): Add `tr'.
311
312 2001-09-21 Akim Demaille <akim@epita.fr>
313
314 * tests/Makefile.am (package.m4): Move to...
315 ($(srcdir)/$(TESTSUITE)): here.
316
317 2001-09-20 Akim Demaille <akim@epita.fr>
318
319 * src/complain.c: No longer try to be standalone: use system.h.
320 Don't assume __STDC__ is defined to 1. Just test if it is defined.
321 * src/complain.h: Likewise.
322 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
323 Remove the unused variable `n'.
324 From Albert Chin-A-Young.
325
326 2001-09-18 Marc Autret <autret_m@epita.fr>
327
328 * doc/bison.1: Update.
329 * doc/bison.texinfo (Bison Options): Update --defines and --graph
330 descriptions.
331 (Option Cross Key): Update.
332 Add --graph.
333
334 2001-09-18 Marc Autret <autret_m@epita.fr>
335
336 * tests/regression.at: New test (comment in %union).
337
338 2001-09-18 Marc Autret <autret_m@epita.fr>
339
340 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
341 do that.
342 Reported by Keith Browne.
343
344 2001-09-18 Marc Autret <autret_m@epita.fr>
345
346 * tests/output.at: Add tests for --defines and --graph.
347
348 2001-09-18 Marc Autret <autret_m@epita.fr>
349
350 * tests/output.at: Removes tests of %{header,src}_extension features.
351
352 2001-09-18 Akim Demaille <akim@epita.fr>
353
354 * tests/Makefile.am (package.m4): New.
355 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
356 (_AT_CHECK_CALC_ERROR): Likewise.
357 Factor the `, ' part of verbose error messages.
358
359 2001-09-18 Marc Autret <autret_m@epita.fr>
360
361 * src/getargs.c (longopts): Declare --defines and --graph as options
362 with optional arguments.
363 * src/files.h: Add extern declarations.
364 * src/files.c (spec_graph_file, spec_defines_file): New.
365 (output_files): Update.
366 Remove CPP-outed code.
367
368 2001-09-18 Marc Autret <autret_m@epita.fr>
369
370 Turn off %{source,header}_extension feature.
371
372 * src/files.c (compute_exts_from_gf): Update.
373 (compute_exts_from_src): Update.
374 (output_files): CPP-out useless code.
375 * src/files.h: Remove {header,source}_extension extern declarations.
376 * src/reader.c (parse_dquoted_param): CPP-out.
377 (parse_header_extension_decl): Remove.
378 (parse_source_extension_decl): Remove.
379 (read_declarations): Remove cases tok_{hdrext,srcext}.
380 * src/lex.c (percent_table): Remove {header,source}_extension entries.
381 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
382
383 2001-09-10 Akim Demaille <akim@epita.fr>
384
385 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
386 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
387 (AT_CHECK_OUTPUT): this.
388 Merely check ls' exit status, its output is useless.
389
390 2001-09-10 Akim Demaille <akim@epita.fr>
391
392 * tests/calc.at: Use m4_match.
393 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
394
395 2001-09-10 Marc Autret <autret_m@epita.fr>,
396 Akim Demaille <akim@epita.fr>
397
398 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
399 enum color_e.
400 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
401 to `normal'.
402 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
403 * src/lex.h: Adjust prototype.
404 (token_t): Add `tok_undef'.
405 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
406 (parse_percent_token): Now returns token_t.
407 Add default statement in switch.
408 (lex): Separate `c' as an input variable, from the token_t result
409 part.
410 (unlexed): Is a token_t.
411
412 2001-09-10 Akim Demaille <akim@epita.fr>
413
414 * configure.in: Bump to 1.29a.
415
416 2001-09-07 Akim Demaille <akim@epita.fr>
417
418 Version 1.29.
419
420 2001-08-30 Akim Demaille <akim@epita.fr>
421
422 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
423 * m4/atconfig.m4: Remove.
424 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
425 * tests/bison: New.
426 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
427 m4_if, m4_patsubst, and m4_regexp.
428 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
429 `input' file instead of echo.
430
431 2001-08-29 Akim Demaille <akim@epita.fr>
432
433 Bump to 1.28e.
434
435 2001-08-29 Akim Demaille <akim@epita.fr>
436
437 Version 1.28d.
438
439 2001-08-29 Paul Eggert <eggert@twinsun.com>
440
441 * src/bison.simple (yyparse): Don't take the address of an
442 item before the start of an array, as that doesn't conform to
443 the C Standard.
444
445 2001-08-29 Robert Anisko <anisko_r@epita.fr>
446
447 * doc/bison.texinfo (Location Tracking Calc): New node.
448
449 2001-08-29 Paul Eggert <eggert@twinsun.com>
450
451 * src/output.c (output): Do not define const, as this now
452 causes more problems than it cures.
453
454 2001-08-29 Akim Demaille <akim@epita.fr>
455
456 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
457 the nodes.
458 Be sure to tag the `detailmenu'.
459
460 2001-08-29 Akim Demaille <akim@epita.fr>
461
462 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
463 download in a tmp dir.
464
465 2001-08-28 Marc Autret <autret_m@epita.fr>
466
467 * config/depcomp: New file.
468
469 2001-08-28 Marc Autret <autret_m@epita.fr>
470
471 * doc/bison.1 (mandoc): Adjust.
472 From Juan Manuel Guerrero.
473
474 2001-08-28 Marc Autret <autret_m@epita.fr>
475
476 * src/print_graph.c (print_state): Fix.
477
478 2001-08-27 Marc Autret <autret_m@epita.fr>
479
480 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
481 char * members.
482 Echo modifications to the functions prototypes.
483 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
484
485 2001-08-27 Marc Autret <autret_m@epita.fr>
486
487 * src/vcg.c: Include `xalloc.h'.
488 (add_colorentry): New.
489 (add_classname): New.
490 (add_infoname): New.
491 * src/vcg.h: Add new prototypes.
492
493 2001-08-27 Akim Demaille <akim@epita.fr>
494
495 * Makefile.maint: Sync. again with CVS Autoconf.
496
497 2001-08-27 Akim Demaille <akim@epita.fr>
498
499 * Makefile.maint: Formatting changes.
500 (po-update, cvs-update, update): New targets.
501 (AMTAR): Remove.
502
503 2001-08-27 Akim Demaille <akim@epita.fr>
504
505 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
506 * Makefile.maint: Sync. with CVS Autoconf.
507
508 2001-08-27 Marc Autret <autret_m@epita.fr>
509
510 * src/vcg.h (struct infoname_s): New.
511 (struct colorentry_s): New.
512 (graph_s): New fields {vertical,horizontal}_order in structure.
513 Add `infoname' field.
514 Add `colorentry' field;
515 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
516 (G_HORIZONTAL_ORDER): New.
517 (G_INFONAME): New.
518 (G_COLORENTRY): New.
519 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
520 Add output of `infoname'.
521 Add output of `colorentry'.
522
523 2001-08-27 Marc Autret <autret_m@epita.fr>
524
525 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
526 This one shadowed a global parameter.
527
528 2001-08-24 Marc Autret <autret_m@epita.fr>
529
530 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
531 instead of `unsigned'.
532 (print_state): Do not call obstack_object_size () in obstack_grow ()
533 to avoid macro variables shadowing.
534
535 2001-08-23 Marc Autret <autret_m@epita.fr>
536
537 * src/lex.c (percent_table): Typo: s/naem/name/.
538 Add graph option.
539 Normalize new options declarations.
540
541 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
542
543 * tests/suite.at: Exercise %header_extension and %source_extension.
544
545 2001-08-16 Marc Autret <autret_m@epita.fr>
546
547 * src/reader.c (parse_dquoted_param): New.
548 (parse_header_extension_decl): Use it.
549 (parse_source_extension_decl): Likewise.
550
551 2001-08-16 Marc Autret <autret_m@epita.fr>
552
553 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
554 (get_xxxx_str): Use assert () instead of complain ().
555 Remove return invokations in default cases.
556 (get_decision_str): Modify default behaviour. Remove second argument.
557 Echo modifications on calls.
558 (output_graph): Fix.
559
560 2001-08-16 Marc Autret <autret_m@epita.fr>
561
562 * src/getargs.c (usage): Update with ``-g, --graph''.
563
564 2001-08-16 Marc Autret <autret_m@epita.fr>
565
566 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
567 (Option Cross Key): Likewise.
568 * doc/bison.1: Update.
569
1c8c2190
PB
5702001-09-25 Pascal Bart <pascal.bart@epita.fr>
571
572 * src/output.c (output_master_parser): Don't finish action_obstack.
573 (output_parser): Don't care about the muscle action, here.
574 (prepare): Copy the action_obstack in the action muscle.
575 (output): Free action_obstack.
576
180d45ba
PB
5772001-09-23 Pascal Bart <pascal.bart@epita.fr>
578
579 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
580 will contain `%union' declaration.
581 (parse_union_decl): Delete #line directive output.
582 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
583 informations about %union.
584 (parse_union_decl): Copy the union_obstack in the muscle stype.
585 * src/bison.simple: Add new #line directive.
586 Add typdef %%stype YYSTYPE.
587
c51d1a19
PB
5882001-09-23 Pascal Bart <pascal.bart@epita.fr>
589
590 * src/bison.simple: Add new `#line' directive.
591
6f9344da
PB
5922001-09-22 Pascal Bart <pascal.bart@epita.fr>
593
594 * src/bison.simple: New `#line' directive.
595 * src/output.c (output_parser): Support new dynamic muscle input_line.
596
652def80
MA
5972001-09-22 Marc Autret <autret_m@epita.fr>
598
599 * src/output.c (output_master_parser): New.
600 (output_parser): Be more re-entrant.
601
25b222fa
MA
6022001-09-21 Marc Autret <autret_m@epita.fr>
603
604 * src/reader.c (copy_definition, parse_union_decl): Update and use
605 `linef' muscle.
606 (copy_action): Likewise.
607 Use obstack_1grow ().
608 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
609
6bc35ae5
MA
6102001-09-21 Marc Autret <autret_m@epita.fr>
611
612 * src/options.c (option_table): Adjust.
613 * src/lex.c (parse_percent_token): Fix.
614
c0629aa1
PB
6152001-09-20 Pascal Bart <pascal.bart@epita.fr>
616
617 * src/options.c (symtab.h): Include it, need by lex.h.
342b8b6e 618
82b6d266
PB
6192001-09-20 Pascal Bart <pascal.bart@epita.fr>
620
621 * src/lex.c (parse_percent_token): Change type of variable `tx', which
622 is now an option_table_struct*.
623 (option_strcmp): New function option_strcmp.
624 (parse_percent_token): Call option_strcmp.
625 * src/getargs.c (xalloc.h, options.h): Include it.
626 (getargs): Call create_long_option_table.
627 (getargs): Free longopts at the end of the function.
628 (shortopts): Move in options.c.
629 * src/options.c (create_long_option_table): New function. Convert
630 information from option_table to option structure.
631 * src/reader.c (options.h): Include it.
632
633 * src/Makefile.am: Adjust.
634 * src/options.c (option_table): Create from longopts and percent_table.
635 * src/getargs.c (longopts): Delete.
636 * src/lex.c (struct percent_table_struct): Delete.
637 (percent_table): Delete.
638 (options.h): Include it.
639 * src/options.c: Create.
640 * src/options.h: Create.
641 Declare enum opt_access_e.
642 Define struct option_table_struct.
643
75f5aaea
MA
6442001-09-20 Marc Autret <autret_m@epita.fr>
645
646 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
647 sections of Bison.
648
f508cb0a
PB
6492001-09-19 Pascal Bart <pascal.bart@epita.fr>
650
651 * src/bison.simple: s/%%filename/%%skeleton.
652 * src/muscle_tab.c (getargs.h): Include it.
653 (muscle_init): Insert new muscle skeleton.
654
13105fc1
PB
6552001-09-18 Pascal Bart <pascal.bart@epita.fr>
656
657 * src/output.c (output_parser): Delete unused variable actions_dumped.
658
b0c4483e
PB
6592001-09-07 Pascal Bart <pascal.bart@epita.fr>
660
661 * src/output.c (output): Delete call to reader_output_yylsp.
662 * src/reader.c (reader): Likewise.
663 * src/reader.h: Delete declaration of reader_output_yylsp.
342b8b6e 664
11d82f03
MA
6652001-09-02 Marc Autret <autret_m@epita.fr>
666
667 * src/reader.c: Include muscle_tab.h.
668 (parse_union_decl): Update.
669 (parse_macro_decl): Rename parse_muscle_decl.
670 Update to use renamed functions and variable.
671 (read_declarations, copy_action, read_additionnal_code, : Updated
672 with correct variables and functions names.
673 (packsymbols, reader): Likewise.
342b8b6e 674
11d82f03 675 * src/reader.h (muscle_obstack): Extern declaration update.
342b8b6e 676
11d82f03
MA
677 * src/output.c: Include muscle_tab.h
678 In all functions using macro_insert, change by using muscle_insert ().
679 (macro_obstack): Rename muscle_obstack.
680 Echo modifications in the whole file.
681 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
682 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
683 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
684
685 * src/muscle_tab.h: Update double inclusion macros.
686 (macro_entry_s): Rename muscle_entry_s.
687 Update prototypes.
342b8b6e 688
11d82f03
MA
689 * src/muscle_tab.c: Include muscle_tab.h.
690 Rename macro_tabble to muscle_table.
691 (mhash1, mhash2, mcmp): Use muscle_entry.
692 (macro_init): Rename muscle_init. Update.
693 (macro_insert): Rename muscle_insert. Update.
694 (macro_find): Rename muscle_find. Update.
695
696 * src/main.c: Include muscle_tab.h.
697 (main): Call muscle_init ().
698 * src/Makefile.am (bison_SOURCES): Echo modifications.
699
93a37297
MA
7002001-09-02 Marc Autret <autret_m@epita.fr>
701
f753cd62 702 Now the files macro_tab.[ch] are named muscle_tab.[ch].
342b8b6e 703
f753cd62
MA
704 * src/muscle_tab.c, src/muscle_tab.h: Add files.
705
7062001-09-02 Marc Autret <autret_m@epita.fr>
707
708 * src/macrotab.c, src/macrotab.h: Remove.
93a37297 709
682d48cd
PB
7102001-09-01 Pascal Bart <pascal.bart@epita.fr>
711
342b8b6e 712 * src/reader.c (copy_guard): Use muscle to specify the `#line'
682d48cd
PB
713 filename.
714
087c8fda
MA
7152001-09-01 Marc Autret <autret_m@epita.fr>
716
717 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
718 to an explicit value to activate the feature. We do it here.
719
dda680cb
PB
7202001-08-31 Pascal Bart <pascal.bart@epita.fr>
721
722 * src/output.c (prepare): Delete the `filename' muscule insertion.
723 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
724 (parse_union_decl): Likewise.
725 * src/macrotab.c (macro_init): Initialize filename by infile.
726
9e644e64
MA
7272001-08-31 Marc Autret <autret_m@epita.fr>
728
729 * src/bison.simple (YYLSP_NEEDED): New definition.
730 * src/output.c (prepare): Add macro insertion of `locations_flag'
731
17da6427
PB
7322001-08-31 Pascal Bart <pascal.bart@epita.fr>
733
734 * src/output.c (prepare): Delete insertion of previous muscles,
735 and insert the `prefix' muscles.
736 * src/macrotab.c (macro_init): Likewise.
737 (macro_init): Initialization prefix directive by `yy'.
342b8b6e 738 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
17da6427
PB
739 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
740 yylval, yydebug, yyerror, yynerrs and yyparse.
342b8b6e 741 New directive `#define' to substitute yydebug, ... with option
17da6427
PB
742 name_prefix.
743
e8cb70b9
PB
7442001-08-31 Pascal Bart <pascal.bart@epita.fr>
745
746 * src/main.c (main): Standardize.
747 * src/output.c (output_table_data, output_parser): Likewise.
748 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
749
63c2d5de
MA
7502001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
751
342b8b6e 752 * src/reader.c (read_additionnal_code): Rename %%user_code to
63c2d5de
MA
753 %%epilogue.
754 * src/output.c (output): Rename %%declarations to %%prologue.
755 * src/bison.simple: Echo modifications.
342b8b6e 756
d8cb5183
MA
7572001-08-31 Marc Autret <autret_m@epita.fr>
758
759 * src/reader.c (readgram): CleanUp.
760 (output_token_defines): Likewise.
761 (packsymbols): Likewise.
762 (reader): Likewise.
763 * src/output.c (output): CPP-out useless code.
764
6c686258
PB
7652001-08-31 Pascal Bart <pascal.bart@epita.fr>
766
342b8b6e 767 * src/reader.c (reader): Delete obsolete call to function
6c686258
PB
768 output_trailers and output_headers.
769 * src/output.h: Remove obsolete functions prototypes of output_headers
770 and output_trailers.
771
8f451ef7
PB
7722001-08-30 Pascal Bart <pascal.bart@epita.fr>
773
774 * src/main.c: Include macrotab.h.
342b8b6e 775 * src/macrotab.h (macro_entry_s): Constify fields.
8f451ef7
PB
776 Adjust functions prototypes.
777 * src/macrotab.c (macro_insert): Constify key and value.
778 (macro_find): Constify key.
779 (macro_insert): Include 'xalloc.h'
780 (macro_insert): Use XMALLOC.
781 (macro_find): Constify return value.
782 * src/output.c (output_table_data): Rename table to table_data.
783 (output_parser): Constify macro_key, macro_value.
784
997b6fd0 7852001-08-30 Marc Autret <autret_m@epita.fr>
2ba3b73c
MA
786
787 * src/reader.c (parse_skel_decl): New.
342b8b6e 788 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2ba3b73c
MA
789 * src/lex.h (token_t): New token `tok_skel'.
790 * src/lex.c (percent_table): Add skeleton option entry.
791 Standardize.
792
ff48177d
MA
7932001-08-29 Marc Autret <autret_m@epita.fr>
794
795 * src/bison.simple: Add %%user_code directive at the end.
796 * src/reader.c (read_additionnal_code): New.
797 (reader): Use it.
798 * src/output.c (output_program): Remove.
799 (output): Update.
800
b33160bf
MA
8012001-08-28 Marc Autret <autret_m@epita.fr>
802
803 * src/output.c (output_actions): Clean up.
4e5caae2 804 (output_gram): CPP-out useless code.
b33160bf
MA
805 * src/reader.c (reader): Clean up, CPP-out useless code.
806
d1a2daf7
PB
8072001-08-28 Pascal Bart <pascal.bart@epita.fr>
808
342b8b6e 809 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
535c0e75 810 directive.
d1a2daf7
PB
811 * src/bison.simple: Add `%%definitions'.
812
2b763dfe
MA
8132001-08-28 Marc Autret <autret_m@epita.fr>
814
815 * config/depcomp: New file.
816
f1a87ef6
PE
8172001-08-27 Paul Eggert <eggert@twinsun.com>
818
819 * src/bison.simple (yyparse): Don't take the address of an
820 item before the start of an array, as that doesn't conform to
821 the C Standard.
822
82e236e2
RA
8232001-08-27 Robert Anisko <robert.anisko@epita.fr>
824
f1a87ef6 825 * src/output.c (output): Remove the initialization of the macro
82e236e2
RA
826 obstack. It was done too late here.
827
828 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
829 completely wrong.
830 (reader): Initialize the macro obstack here, since we need it to grow
831 '%define' directives.
832
833 * src/reader.h: Declare the macro obstack as extern.
834
b0cfa28a
RA
8352001-08-27 Robert Anisko <robert.anisko@epita.fr>
836
837 * src/output.c (output_parser): Fix. Store single '%' characters in
838 the output obstack instead of throwing them away.
839
6fc74234
AD
8402001-08-27 Akim Demaille <akim@epita.fr>
841
842 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
843
9c76d118
RA
8442001-08-25 Robert Anisko <robert.anisko@epita.fr>
845
846 * lib/Makefile.am: Adjust.
847
a8289c62
RA
8482001-08-25 Robert Anisko <robert.anisko@epita.fr>
849
850 * src/bison.simple: Update and add '%%' directives.
851
b6610515
RA
8522001-08-25 Robert Anisko <robert.anisko@epita.fr>
853
854 * src/reader.c (reader): Remove calls to 'output_headers' and
855 'output_trailers'. Remove some C output.
856 (readgram): Disable a piece of code that was writing a default
857 definition for 'YYSTYPE'.
858 (reader_output_yylsp): Remove.
859 (packsymbols): Output token defintions to a macro.
860 (copy_definition): Disable C output.
6fc74234 861
b6610515
RA
862 * src/reader.c (parse_macro_decl): New function used to parse macro
863 declarations.
864 (copy_string2): Put the body of copy_string into this new function.
865 Add a parameter to let the caller choose whether he wants to copy the
866 string delimiters or not.
867 (copy_string): Be a simple call to copy_string2 with the last argument
868 bound to true.
869 (read_declarations): Add case for macro definition.
870 (copy_identifier): New.
6fc74234 871 (parse_macro_decl): Read macro identifiers using copy_identifier
b6610515
RA
872 rather than lex.
873
26f609ff
RA
8742001-08-25 Robert Anisko <robert.anisko@epita.fr>
875
876 * src/output.c (prepare): Add prefixed names.
877 (output_parser): Output semantic actions.
878 (output_parser): Fix bug on '%%line' directives.
6fc74234 879
26f609ff
RA
880 * src/output.c (output_headers): Remove. The C code printed by this
881 function should now be in the skeletons.
882 (output_trailers): Remove.
883 (output): Disable call to 'reader_output_yylsp'.
884 (output_rule_data): Do not output tables to the table obstack.
885
886 * src/output.c: Remove some C dedicated output.
887 Improve the use of macro and output obstacks.
888 (output_defines): Remove.
6fc74234 889
26f609ff
RA
890 * src/output.c (output_token_translations): Associate 'translate'
891 table with a macro. No output to the table obstack.
892 (output_gram): Same for 'rhs' and 'prhs'.
893 (output_stos): Same for 'stos'.
894 (output_rule_data): Same for 'r1' and 'r2'.
895 (token_actions): Same for 'defact'.
896 (goto_actions): Same for 'defgoto'.
897 (output_base): Same for 'pact' and 'pgoto'.
898 (output_table): Same for 'table'.
899 (output_check): Same for 'check'.
6fc74234 900
26f609ff
RA
901 * src/output.c (output_table_data): New function.
902 (output_short_table): Remove.
903 (output_short_or_char_table): Remove.
6fc74234 904
26f609ff
RA
905 * src/output.c (output_parser): Replace most of the skeleton copy code
906 with something new. Skeletons are now processed character by character
907 rather than line by line, and Bison looks for '%%' macros. This is the
908 first step in making Bison's output process (a lot) more flexible.
909 (output_parser): Use the macro table.
910
6f43b113
RA
9112001-08-25 Robert Anisko <robert.anisko@epita.fr>
912
913 * src/main.c (main): Initialize the macro table.
914
dd3127cf
RA
9152001-08-25 Robert Anisko <robert.anisko@epita.fr>
916
917 * src/lex.c (percent_table): Add tok_define.
918 * src/lex.h: Add tok_define.
919
aa321494
RA
9202001-08-25 Robert Anisko <robert.anisko@epita.fr>
921
922 * src/macrotab.c: New file.
923 * src/macrotab.h: New file.
924 * src/Makefile.am: Update.
925
68bd3b6b
RA
9262001-08-25 Robert Anisko <robert.anisko@epita.fr>
927
928 * lib/hash.c: New file.
929 * lib/hash.h: New file.
930 * lib/Makefile.am: Update.
931
45f8dd1e
AD
9322001-08-15 Akim Demaille <akim@epita.fr>
933
934 Version 1.28c.
935
40a64a7a 9362001-08-15 Marc Autret <autret_m@epita.fr>
0b8afb77
AD
937
938 * src/reader.c (readgram): Indent output macro YYSTYPE.
939 (packsymbols): Likewise.
940 (output_token_defines): Likewise.
941 * src/files.c: Standardize.
942 (compute_header_macro): New.
943 (defines_obstack_save): New. Use compute_header_macro.
944 (output_files): Update. Use defines_obstack_save.
945
f9a8293a
AD
9462001-08-15 Akim Demaille <akim@epita.fr>
947
948 * doc/bison.texinfo (Table of Symbols): Document
949 YYSTACK_USE_ALLOCA.
950
150ca7a7
AD
9512001-08-15 Akim Demaille <akim@epita.fr>
952
953 * missing: Update from CVS Automake.
954 * config/config.guess, config/config.sub, config/texinfo.tex:
955 Update from gnu.org.
956
69b5cec4
AD
9572001-08-15 Akim Demaille <akim@epita.fr>
958
959 * Makefile.maint: Sync with CVS Autoconf.
960
f2b5126e
PB
9612001-08-14 Pascal Bart <pascal.bart@epita.fr>
962
69b5cec4 963 * doc/bison.texinfo: Include GNU Free Documentation License from
f2b5126e
PB
964 `fdl.texi'.
965 * doc/fdl.texi: Add to package.
966
4ecbf796
MA
9672001-08-14 Marc Autret <autret_m@epita.fr>
968
969 Turn on %{source,header}_extension features.
970
69b5cec4 971 * src/lex.c (percent_table): Un-CPP out header_extension and
4ecbf796
MA
972 source_extension.
973 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
69b5cec4 974 (compute_exts_from_src): Remove conditions. It restores priorities
4ecbf796
MA
975 between options.
976
95fb5662
MA
9772001-08-14 Marc Autret <autret_m@epita.fr>
978
979 * src/files.c (compute_base_names): Add extensions computing when
980 `--file-prefix' used.
981 Standardize function calls.
982
78d09da9
MA
9832001-08-13 Marc Autret <autret_m@epita.fr>
984
69b5cec4 985 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
78d09da9
MA
986 defining it (defined but null disables alloca).
987
5a009f2c
MA
9882001-08-13 Marc Autret <autret_m@epita.fr>
989
990 * src/bison.simple (_yy_memcpy): CPP reformat.
991
1e41465a
PB
9922001-08-13 Pascal Bart <pascal.bart@epita.fr>
993
994 * tests/atconfig.in (CPPFLAGS): Fix.
995
c67a198d
PB
9962001-08-10 Pascal Bart <pascal.bart@epita.fr>
997
79282c6c 998 * doc/bison.texinfo: Include GNU General Public License from
c67a198d
PB
999 `gpl.texi'.
1000 * doc/gpl.texi: Add to package.
1001
09a6de7e
MA
10022001-08-10 Marc Autret <autret_m@epita.fr>
1003
1004 * src/print_graph.h: Fix.
1005 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
1006
b77b9ee0
AD
10072001-08-10 Akim Demaille <akim@epita.fr>
1008
1009 * src/system.h: Provide default declarations for stpcpy, strndup,
1010 and strnlen.
1011
3e259915
MA
10122001-08-10 Robert Anisko <anisko_r@epita.fr>
1013
1014 * doc/bison.texinfo (Locations): Update @$ stuff.
1015
ca96bc2d
MA
10162001-08-09 Robert Anisko <anisko_r@epita.fr>
1017
1018 * src/bison.simple (YYLLOC_DEFAULT): Update.
1019 (yyparse): Adjust.
1020
fdc6758b
MA
10212001-08-08 Marc Autret <autret_m@epita.fr>
1022
b77b9ee0 1023 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
1024 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
1025 Reported by Fabrice Bauzac.
957d4dbf 1026
600cad3b
MA
10272001-08-08 Marc Autret <autret_m@epita.fr>
1028
1029 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
1030 * src/vcg.c (output_node): Fix.
1031 * src/vcg.h: Cleanup.
1032 * src/print_graph.c: Add comments.
b77b9ee0 1033 (node_output_size): New global variable. Simplify the formatting of
600cad3b 1034 the VCG graph output.
b77b9ee0 1035 (print_actions): Unused code is now used. It notifies the final state
600cad3b 1036 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 1037 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
1038 blue.
1039 Get the current node name and node_obstack by argument.
1040 (node_obstack): New variable.
1041 (print_state): Manage node_obstack.
1042 (print_core): Use node_obstack given by argument.
1043 A node is not only computed here but in print_actions also.
1044 (print_graph): CPP out useless code instead of commenting it.
1045
976e528f
AD
10462001-08-07 Pascal Bart <pascal.bart@epita.fr>
1047
1048 * tests/atconfig.in (CPPFLAGS): Fix.
1049
20e8e5ca
AD
10502001-08-07 Akim Demaille <akim@epita.fr>
1051
1052 * src/print_graph.c (quote): New.
1053 (print_core): Use it.
1054
957d4dbf 10552001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 1056
3e3da797
AD
1057 * src/vcg.c (complain.h): Include it.
1058 Unepitaize `return' invocations.
c4b66126 1059 [NDEBUG] (main): Remove.
79282c6c 1060 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
c4b66126
AD
1061 * src/files.c (open_files): Initialize graph_obstack.
1062 * src/print_graph.c (print_actions): CPP out useless code.
1063 (print_core): Don't output the last `\n' in labels.
1064 Use `quote'.
1065 * src/files.c (output_files): Output the VCG file.
1066 * src/main.c (main): Invoke print_graph ();
3e3da797 1067
957d4dbf 10682001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
1069
1070 Automaton VCG graph output.
1071 Using option ``-g'' or long option ``--graph'', you can generate
1072 a gram_filename.vcg file containing a VCG description of the LALR (1)
1073 automaton of your grammar.
1074
1075 * src/main.c: Call to print_graph() function.
1076 * src/getargs.h: Update.
1077 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
1078 (graph_flag): New flag.
1079 (longopts): Update.
1080 (getargs): Add case `g'.
1081 * src/files.c (graph_obstack): New obstack struct.
1082 (open_files): Initialize new obstack.
1083 (output_files): Saves graph_obstack if required.
1084 * src/files.h (graph_obstack): New extern declaration.
1085 * src/Makefile.am: Add new source files.
1086
957d4dbf 10872001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
1088
1089 * src/print_graph.c, src/print_graph.h (graph): New.
1090 * src/vcg.h: New file.
1091 * src/vcg.c: New file, VCG graph handling.
1092
7333d403
AD
10932001-08-06 Marc Autret <autret_m@epita.fr>
1094
1095 Add of %source_extension and %header_extension which specify
1096 the source or/and the header output file extension.
1097
1098 * src/files.c (compute_base_names): Remove initialisation of
1099 src_extension and header_extension.
1100 (compute_exts_from_gf): Update.
1101 (compute_exts_from_src): Update.
1102 (output_files): Update.
1103 * src/reader.c (parse_header_extension_decl): New.
1104 (parse_source_extension_decl): New.
1105 (read_declarations): New case statements for the new tokens.
1106 * src/lex.c (percent_table): Add entries for %source_extension
1107 and %header_extension.
1108 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
1109
84163231
AD
11102001-08-06 Marc Autret <autret_m@epita.fr>
1111
1112 * configure.in: Bump to 1.28c.
1113 * doc/bison.texinfo: Texinfo thingies.
1114
8303fc42
AD
11152001-08-04 Pascal Bart <pascal.bart@epita.fr>
1116
1117 * tests/atconfig.in (CPPFLAGS): Add.
1118 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
1119
70a84437
AD
11202001-08-03 Akim Demaille <akim@epita.fr>
1121
1122 Version 1.28b.
1123
2ce10144
AD
11242001-08-03 Akim Demaille <akim@epita.fr>
1125
1126 * tests/Makefile.am (check-local): Ship testsuite.
1127 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
1128 Include `string.h'.
1129
1e3e4bc1
AD
11302001-08-03 Akim Demaille <akim@epita.fr>
1131
1132 * configure.in: Try using -Wformat when compiling.
1133
42b45b7f
AD
11342001-08-03 Akim Demaille <akim@epita.fr>
1135
1136 * configure.in: Bump to 1.28b.
1137
8f13fe33
AD
11382001-08-03 Akim Demaille <akim@epita.fr>
1139
1140 * src/complain.c: Adjust strerror_r portability issues.
1141
b37ba92c
AD
11422001-08-03 Akim Demaille <akim@epita.fr>
1143
1144 Version 1.28a.
1145
b0ce6046
AD
11462001-08-03 Akim Demaille <akim@epita.fr>
1147
1148 * src/getargs.c, src/getarg.h (skeleton)): Constify.
1149 * src/lex.c (literalchar): Avoid name clashes on `buf'.
1150 * src/getargs.c: Include complain.h.
1151 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
1152 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
1153
d01c415b
AD
11542001-08-03 Akim Demaille <akim@epita.fr>
1155
1156 * src/reader.c (readgram): Display hidden chars in error messages.
1157
459dd1a6
AD
11582001-08-03 Akim Demaille <akim@epita.fr>
1159
1160 Update to gettext 0.10.39.
1161
53b74c0c
AD
11622001-08-03 Akim Demaille <akim@epita.fr>
1163
1164 * lib/strspn.c: New.
1165
234a3be3
AD
11662001-08-01 Marc Autret <autret_m@epita.fr>
1167
1168 * doc/bison.texinfo: Update.
1169 * doc/bison.1 (mandoc): Update.
1170 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
1171 * src/files.c: Support output files extensions computing.
1172 (src_extension): New static variable.
1173 (header_extension): New static variable.
1174 (tr): New function.
1175 (get_extension_index): New function, gets the index of an extension
1176 filename in a string.
1177 (compute_exts_from_gf): New function, computes extensions from the
1178 grammar file extension.
1179 (compute_exts_from_src): New functions, computes extensions from the
1180 C source file extension, file given by ``-o'' option.
1181 (compute_base_names): Update.
1182 (output_files): Update.
1183
847bf1f5
AD
11842001-08-01 Robert Anisko <anisko_r@epita.fr>
1185
d995fee7 1186 * doc/bison.texi: Document @$.
847bf1f5
AD
1187 (Locations): New section.
1188
d074a105
AD
11892001-07-18 Akim Demaille <akim@epita.fr>
1190
1191 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
1192 * config/prev-version.txt, config/move-if-change: New.
1193 * Makefile.am: Adjust.
1194
3419715d
AD
11952001-07-08 Pascal Bart <pascal.bart@epita.fr>
1196
1197 * src/bison.simple (yyparse): Suppress warning `comparaison
1198 between signed and unsigned'.
1199
62ab6972
AD
12002001-07-05 Pascal Bart <pascal.bart@epita.fr>
1201
1202 * src/getargs.h (raw_flag): Remove.
1203 * src/getargs.c: Die on `-r'/`--raw'.
1204 * src/lex.c (parse_percent_token): Die on `%raw'.
1205 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
1206 * tests/calc.at: Suppress test with option `--raw'.
1207
1e24cc5b
AD
12082001-07-14 Akim Demaille <akim@epita.fr>
1209
1210 * config/: New.
1211 * configure.in: Require Autoconf 2.50.
1212 Update to gettext 0.10.38.
1213
32dfccf8
AD
12142001-03-16 Akim Demaille <akim@epita.fr>
1215
1216 * doc/bison.texinfo: ANSIfy the examples.
1217
cd5bd6ac
AD
12182001-03-16 Akim Demaille <akim@epita.fr>
1219
1220 * getargs.c (skeleton): New variable.
1221 (longopts): --skeleton is a new option.
1222 (shortopts, getargs): -S is a new option.
1223 * getargs.h: Declare skeleton.
1224 * output.c (output_parser): Use it.
1225
5141b016
AD
12262001-03-16 Akim Demaille <akim@epita.fr>
1227
1228 * m4/strerror_r.m4: New.
1229 * m4/error.m4: Run AC_FUNC_STRERROR_R.
1230 * lib/error.h, lib/error.c: Update.
1231
447992b9
AD
12322001-03-16 Akim Demaille <akim@epita.fr>
1233
1234 * src/getargs.c (longopts): Clean up.
1235
274d42ce
AD
12362001-02-21 Akim Demaille <akim@epita.fr>
1237
1238 * src/reader.c (gensym): `gensym_count' is your own.
1239 Use a static buf to create the symbol name, as token_buffer is no
1240 longer a buffer.
1241
22c821f3
AD
12422001-02-08 Akim Demaille <akim@epita.fr>
1243
1244 * src/conflicts.c (conflict_report): Be sure not to append to res
1245 between two calls, which could happen if both first sprintf were
1246 skipped, but not the first cp += strlen.
1247
18569462
AD
12482001-02-08 Akim Demaille <akim@epita.fr>
1249
1250 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
1251 New, from fileutils 4.0.37.
1252 * configure.in: Require Autoconf 2.49c. I took some time before
1253 making this decision. This is the only way out for portability
1254 issues in Bison, it would mean way too much duplicate effort to
1255 import in Bison features implemented in 2.49c since 2.13.
1256 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
1257
0d8f3c8a
AD
12582001-02-02 Akim Demaille <akim@epita.fr>
1259
1260 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 1261 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 1262
f17bcd1f
AD
12632001-01-19 Akim Demaille <akim@epita.fr>
1264
1265 Get rid of the ad hoc handling of token_buffer in the scanner: use
1266 the obstacks.
1267
1268 * src/lex.c (token_obstack): New.
1269 (init_lex): Initialize it. No longer call...
1270 (grow_token_buffer): this. Remove it.
1271 Adjust all the places which used it to use the obstack.
1272
511e79b3
AD
12732001-01-19 Akim Demaille <akim@epita.fr>
1274
1275 * src/lex.h: Rename all the tokens:
1276 s/\bENDFILE\b/tok_eof/g;
1277 s/\bIDENTIFIER\b/tok_identifier/g;
1278 etc.
1279 Let them be enums, not #define, to ease debugging.
1280 Adjust all the code.
1281
0d6508ef
AD
12822001-01-18 Akim Demaille <akim@epita.fr>
1283
1284 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
1285 * src/lex.c (maxtoken, grow_token_buffer): Static.
1286
6deb4447
AD
12872001-01-18 Akim Demaille <akim@epita.fr>
1288
1289 Since we now use obstacks, more % directives can be enabled.
1290
1291 * src/lex.c (percent_table): Also accept `%yacc',
1292 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
1293 `%debug'.
1294 Handle the actions for `%semantic_parser' and `%pure_parser' here,
1295 instead of returning a token.
1296 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
1297 * src/reader.c (read_declarations): Adjust.
1298 * src/files.c (open_files): Don't call `compute_base_names', don't
1299 compute `attrsfile' since they depend upon data which might be
1300 *in* the input file now.
1301 (output_files): Do it here.
1302 * src/output.c (output_headers): Document the fact that this patch
1303 introduces a guaranteed SEGV for semantic parsers.
1304 * doc/bison.texinfo: Document them.
1305 * tests/suite.at: Exercise these %options.
1306
ff4423cc
AD
13072000-12-20 Akim Demaille <akim@epita.fr>
1308
1309 Also handle the output file (--verbose) with obstacks.
1310
1311 * files.c (foutput): Remove.
1312 (output_obstack): New.
1313 Adjust all dependencies.
1314 * src/conflicts.c: Return a string.
1315 * src/system.h (obstack_grow_string): Rename as...
1316 (obstack_sgrow): this. Be ready to work with non literals.
1317 (obstack_fgrow4): New.
1318
956dba3a
AD
13192000-12-20 Akim Demaille <akim@epita.fr>
1320
1321 * src/files.c (open_files): Fix the computation of short_base_name
1322 in the case of `-o foo.tab.c'.
1323
337bab46
AD
13242000-12-20 Akim Demaille <akim@epita.fr>
1325
1326 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
1327 (copy_dollar): Now that everything uses obstacks, get rid of the
1328 FILE * parameters.
1329
5d3214b8
AD
13302000-12-20 Akim Demaille <akim@epita.fr>
1331
1332 * src/files.c (open_files): Actually the `.output' file is based
1333 on the short_base_name, not base_name.
1334 * tests/suite.at (Checking output file names): Adjust.
1335
29092a57
AD
13362000-12-20 Akim Demaille <akim@epita.fr>
1337
1338 * src/bison.s1: Remove, we now use directly...
1339 * src/bison.simple: this.
1340 * src/Makefile.am: Use pkgdata instead of data.
1341
ea5607fd
AD
13422000-12-20 Akim Demaille <akim@epita.fr>
1343
1344 * src/files.c (guard_obstack): New.
1345 (open_files): Initialize it.
1346 (output_files): Dump it...
1347 * src/files.h: Export it.
1348 * src/reader.c (copy_guard): Use it.
1349
27110317
AD
13502000-12-19 Akim Demaille <akim@epita.fr>
1351
1352 * src/files.c (outfile, defsfile, actfile): Removed as global
1353 vars.
1354 (open_files): Don't compute them.
1355 (output_files): Adjust.
1356 (base_name, short_base_name): Be global.
1357 Adjust dependencies.
1358
19c50364
AD
13592000-12-19 Akim Demaille <akim@epita.fr>
1360
1361 * src/files.c (strsuffix): New.
1362 (stringappend): Be just like strcat but allocate.
1363 (base_names): Eve out from open_files.
1364 Try to simplify the rather hairy computation of base_name and
1365 short_base_name.
1366 (open_files): Use it.
1367 * tests/suite.at (Checking output file names): New test.
1368
573c1d9f
AD
13692000-12-19 Akim Demaille <akim@epita.fr>
1370
1371 * src/system.h (obstack_grow_literal_string): Rename as...
1372 (obstack_grow_string): this.
1373 * src/output.c (output_parser): Recognize `%% actions' instead of
1374 `$'.
1375 * src/bison.s1: s/$/%% actions/.
1376 * src/bison.hairy: Likewise.
1377
ef7ddedd
AD
13782000-12-19 Akim Demaille <akim@epita.fr>
1379
1380 * src/output.c (output_parser): Compute the `#line' lines when
1381 there are.
1382 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
1383 Suggested by Hans Aberg.
1384
ff61dabd
AD
13852000-12-19 Akim Demaille <akim@epita.fr>
1386
1387 Let the handling of the skeleton files be local to the procedures
1388 that use it.
1389
1390 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
1391 longer static.
1392 (fparser, open_extra_files): Remove.
1393 (open_files, output_files): Don't take care of fparser.
1394 * src/files.h: Adjust.
1395 * src/output.c (output_parser): Open and close the file to the
1396 skeleton.
1397 * src/reader.c (read_declarations): When %semantic_parser, open
1398 fguard.
1399
55b96341
AD
14002000-12-19 Akim Demaille <akim@epita.fr>
1401
1402 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
1403 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
1404
358c15b7
AD
14052000-12-19 Akim Demaille <akim@epita.fr>
1406
1407 * src/files.c (open_files): Yipee! We no longer need all the code
1408 looking for `/tmp' since we have no tmp file.
1409
7de3329e
AD
14102000-12-19 Akim Demaille <akim@epita.fr>
1411
1412 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
1413 New macros.
1414 * src/files.c (open_files): Less dependency on MSDOS etc.
1415
3abcd459
AD
14162000-12-14 Akim Demaille <akim@epita.fr>
1417
1418 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
1419 Provide a default definition.
1420 Use it when executing the default @ action.
1421 * src/reader.c (reader_output_yylsp): No longer include
1422 `timestamp' and `text' in the default YYLTYPE.
1423
2a91a95e
AD
14242000-12-12 Akim Demaille <akim@epita.fr>
1425
1426 * src/reader.c (copy_definition, parse_union_decl, copy_action)
1427 (copy_guard): Quote the file names.
1428 Reported by Laurent Mascherpa.
1429
14d3eb9b
AD
14302000-12-12 Akim Demaille <akim@epita.fr>
1431
1432 * src/output.c (output_headers, output_program, output): Be sure
1433 to escape special characters when outputting filenames.
1434 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
1435 (output_headers): Don't depend on them, Use ACTSTR.
1436
d7045ec6
AD
14372000-11-17 Akim Demaille <akim@epita.fr>
1438
1439 * lib/obstack.h: Formatting changes.
1440 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
1441 prevents type checking.
1442 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
1443 cast the value to (void *): assigning a `foo *' to a `void *'
1444 variable is valid.
1445 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
1446 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
1447 append characters.
1448
6fd54b73
AD
14492000-11-17 Akim Demaille <akim@epita.fr>
1450
1451 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
1452 as...
1453 (suite.m4, regression.m4, calc.m4): these.
1454 * tests/atgeneral.m4: Update from CVS Autoconf.
1455
4c50eae6
AD
14562000-11-17 Akim Demaille <akim@epita.fr>
1457
1458 * tests/regression.m4 (%union and --defines): New test,
1459 demonstrating a current bug in the obstack implementation.
1460
a35f64ea
AD
14612000-11-17 Akim Demaille <akim@epita.fr>
1462
1463 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
1464 macros.
1465 Use them to declare the variables which are global or local to
1466 `yyparse'.
1467
7de23534
AD
14682000-11-17 Akim Demaille <akim@epita.fr>
1469
1470 * acconfig.h: Remove, no longer used.
1471
aa7815f5
AD
14722000-11-07 Akim Demaille <akim@epita.fr>
1473
1474 * src: s/Copyright (C)/Copyright/g.
1475
5af1f549
AD
14762000-11-07 Akim Demaille <akim@epita.fr>
1477
1478 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
1479 defining.
1480 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
1481
553e2b22
AD
14822000-11-07 Akim Demaille <akim@epita.fr>
1483
1484 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
1485 Merge in a single CPP if/else.
1486
8a4f41d6
AD
14872000-11-07 Akim Demaille <akim@epita.fr>
1488
1489 * src/output.c (output): Remove useless variables.
1490 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
1491 argument `data' for consistency with the prototypes.
1492 Qualify it `const'.
1493 (obstack_copy, obstack_copy0): Rename the second argument as
1494 `address' for consistency. Qualify it `const'.
1495 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
1496 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
1497 `const' their input argument (`data' or `address').
1498 Adjust the corresponding macros to include `const' in casts.
1499
095a3fb5
AD
15002000-11-03 Akim Demaille <akim@epita.fr>
1501
1502 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
1503 s/PFILE1/BISON_HAIRY/.
1504 Adjust dependencies.
1505
d1cdce7c
AD
15062000-11-03 Akim Demaille <akim@epita.fr>
1507
090c5ebf 1508 For some reason, this was not applied.
d1cdce7c
AD
1509
1510 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1511 `unlink': it's no longer used.
1512
9311529b
AD
15132000-11-03 Akim Demaille <akim@epita.fr>
1514
1515 * src/files.c (skeleton_find): New function, eved out of...
1516 (open_files, open_extra_files): here.
1517
d8880f69
AD
15182000-11-03 Akim Demaille <akim@epita.fr>
1519
1520 Don't use `atexit'.
1521
1522 * src/files.c (obstack_save): New function.
1523 (done): Rename as...
1524 (output_files): this.
1525 Use `obstack_save'.
1526 * src/main.c (main): Don't use `atexit' to register `done', since
1527 it no longer has to remove tmp files, just call `output_files'
1528 when there are no errors.
1529
0dbb648e
AD
15302000-11-02 Akim Demaille <akim@epita.fr>
1531
1532 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
1533 `unlink': it's no longer used.
1534 * src/files.h: Formatting changes.
1535
896fe5c1
AD
15362000-11-02 Akim Demaille <akim@epita.fr>
1537
1538 Remove the last uses of mktemp and unlink/delete.
1539
1540 * src/files.c (fdefines, ftable): Removed.
1541 (defines_ostack, table_obstack): New.
1542 Adjust dependencies of the former into uses of the latter.
1543 * src/output.c (output_short_or_char_table, output_short_table):
1544 Convert to using obstacks.
1545 * src/reader.c (copy_comment2): Accept one FILE * and two
1546 obstacks.
1547 (output_token_defines, reader_output_yylsp): Use obstacks.
1548 * src/system.h (obstack_fgrow3): New.
1549
dd60faec
AD
15502000-11-01 Akim Demaille <akim@epita.fr>
1551
1552 Change each use of `fattrs' into a use of `attrs_obstack'.
1553
1554 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
1555 * src/files.c (fattrs): Remove.
1556 (attrs_obstack): New.
1557 Adjust all dependencies.
1558 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
1559
8c7ebe49
AD
15602000-11-01 Akim Demaille <akim@epita.fr>
1561
1562 Introduce obstacks.
1563 Change each use of `faction' into a use of `action_obstack'.
1564
1565 * lib/obstack.h, lib/obstack.c: New files.
1566 * src/files.c (faction): Remove.
1567 (action_obstack): New.
1568 Adjust all dependencies.
1569
77aee789
AD
15702000-10-20 Akim Demaille <akim@epita.fr>
1571
1572 * lib/quote.h (PARAMS): New macro. Use it.
1573
43591cec
AD
15742000-10-16 Akim Demaille <akim@epita.fr>
1575
1576 * src/output.c (output_short_or_char_table): New function.
1577 (output_short_table, output_token_translations): Use it.
1578 (goto_actions): Use output_short_table.
1579
1e9798d5
AD
15802000-10-16 Akim Demaille <akim@epita.fr>
1581
1582 * src/symtab.c (bucket_new): New function.
1583 (getsym): Use it.
1584
1585 * src/output.c (output_short_table): New argument to display the
1586 comment associated with the table.
1587 Adjust dependencies.
1588 (output_gram): Use it.
1589 (output_rule_data): Nicer output layout for YYTNAME.
1590
f282676b
AD
15912000-10-16 Akim Demaille <akim@epita.fr>
1592
1593 * src/lex.c (read_typename): New function.
1594 (lex): Use it.
1595 * src/reader.c (copy_dollar): Likewise.
1596
550a72a3
AD
15972000-10-16 Akim Demaille <akim@epita.fr>
1598
1599 * src/reader.c (copy_comment2): Expect the input stream to be on
1600 the `/' which is suspected to open a comment, instead of being
1601 called after `//' or `/*' was read.
1602 (copy_comment, copy_definition, parse_union_decl, copy_action)
1603 (copy_guard): Adjust.
1604
131e2fef
AD
16052000-10-16 Akim Demaille <akim@epita.fr>
1606
1607 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
1608 `read_signed_integer'.
1609
79282c5a
AD
16102000-10-16 Akim Demaille <akim@epita.fr>
1611
1612 * src/reader.c (copy_dollar): New function.
1613 (copy_guard, copy_action): Use it.
1614
ff4a34be
AD
16152000-10-16 Akim Demaille <akim@epita.fr>
1616
1617 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
1618 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
1619 New files, from Fileutils 4.0.27.
1620 * src/main.c (printable_version): Remove.
1621 * src/lex.c, src/reader.c: Use `quote'.
1622
16232000-10-04 Akim Demaille <akim@epita.fr>
1624
1625 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
1626
14ded682
AD
16272000-10-04 Akim Demaille <akim@epita.fr>
1628
1629 * doc/bison.texinfo: Various typos spotted by Neil Booth.
1630
8e03724b
AD
16312000-10-04 Akim Demaille <akim@epita.fr>
1632
1633 When a literal string is used to define two different tokens,
1634 `bison -v' segfaults.
1635 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
1636
1637 * tests/regression.m4: New file.
1638 Include the core of the sample provided by Piotr Gackiewicz.
1639 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
1640 properly.
1641
a9e64249
AD
16422000-10-04 Akim Demaille <akim@epita.fr>
1643
1644 * src/reader.c (parse_expect_decl): Keep `count' within the size
1645 of `buffer'.
1646 From Neil Booth.
1647
da9abf43
AD
16482000-10-02 Paul Eggert <eggert@twinsun.com>
1649
1650 * bison.s1 (yyparse): Assign the default value
1651 unconditionally, to avoid a GCC warning and make the parser a
1652 tad smaller.
1653
c33638bb
AD
16542000-10-02 Akim Demaille <akim@epita.fr>
1655
1656 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
1657 options.
1658
444c570a
AD
16592000-10-02 Akim Demaille <akim@epita.fr>
1660
1661 * src/derives.c, src/print.c, src/reduce.c: To ease the
1662 translation, move some `\n' out of the translated strings.
1663
89cab50d
AD
16642000-10-02 Akim Demaille <akim@epita.fr>
1665
1666 The location tracking mechanism is precious for parse error
1667 messages. Nevertheless, it is enabled only when `@n' is used in
1668 the grammar, which is a different issue (you can use it in error
1669 message, but not in the grammar per se). Therefore, there should
1670 be another means to enable it.
1671
1672 * src/getargs.c (getargs): Support `--locations'.
1673 (usage): Report it.
1674 * src/getargs.h (locationsflag): Export it.
1675 * src/lex.c (percent_table): Support `%locations'.
1676 * src/reader.c (yylsp_needed): Remove this variable, now replaced
1677 with `locationsflag'.
1678 * doc/bison.texinfo: Document `--locations' and `%locations'.
1679 Sort the options.
1680 * tests/calc.m4: Test it.
1681
1682 For regularity of the names, replace each
1683 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
1684 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
1685 In addition replace each `flag' with `_flag'.
1686
d6c2cba0
AD
16872000-10-02 Akim Demaille <akim@epita.fr>
1688
1689 Also test parse error messages, including with YYERROR_VERBOSE.
1690
1691 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
1692 associative).
1693 Use it to check the computations.
1694 Use it to check `nonassoc' is honored.
1695 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
1696 `--yyerror-verbose'.
1697 (_AT_CHECK_CALC): Adjust to this option.
1698 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
1699
5a35a6cb
AD
17002000-10-02 Akim Demaille <akim@epita.fr>
1701
1702 Test also `--verbose', `--defines' and `--name-prefix'. Testing
1703 the latter demonstrates a flaw in the handling of non debugging
1704 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
1705 was used in order to simplify:
1706
1707 #if YYDEBUG
1708 if (yydebug)
1709 {
1710 ...
1711 }
1712 #endif
1713
1714 into
1715
1716 if (yydebug)
1717 {
1718 ...
1719 }
1720
1721 unfortunately this leads to a CPP conflict when
1722 `--name-prefix=foo' is used since it produces `#define yydebug
1723 foodebug'.
1724
1725 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
1726 (YYDPRINTF): New macro.
1727 Spread its use.
1728 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
1729 the bison options.
1730 Also test `--verbose', `--defines' and `--name-prefix'.
1731
71da9eea
AD
17322000-10-02 Akim Demaille <akim@epita.fr>
1733
1734 Improve the readability of the produced parsers.
1735
1736 * src/bison.s1: Formatting changes.
1737 Improve the comment related to the `$' mark.
1738 (yydefault): Don't fall through to `yyresume': `goto' there.
1739 * src/output.c (output_parser): When the `$' is met, skip the end
1740 of its line.
1741 New variable, `number_of_dollar_signs', to check there's exactly
1742 one `$' in the parser skeleton.
1743
95e36146
AD
17442000-10-02 Akim Demaille <akim@epita.fr>
1745
1746 * lib/xstrdup.c: New file, from the fileutils.
1747 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
1748 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
1749 instead of strlen + xmalloc + strcpy.
1750 * src/symtab.c (copys): Remove, use xstrdup instead.
1751
d7020c20
AD
17522000-10-02 Akim Demaille <akim@epita.fr>
1753
1754 * src/gram.h (associativity): New enum type which replaces the
1755 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
1756 `right_assoc', `left_assoc' and `non_assoc'.
1757 Adjust all dependencies.
1758 * src/reader.c: Formatting changes.
1759 (LTYPESTR): Don't define it, use it as a literal in
1760 `reader_output_yylsp'.
1761 * src/symtab.h (symbol_class): New enum type which replaces the
1762 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
1763 `sunknown', `stoken and `snterm'.
1764
1916f98e
AD
17652000-10-02 Akim Demaille <akim@epita.fr>
1766
1767 * src/getargs.c (fixed_outfiles): Rename as...
1768 (yaccflag): for consistency and accuracy.
1769 Adjust dependencies.
1770
d7913476
AD
17712000-10-02 Akim Demaille <akim@epita.fr>
1772
1773 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
1774 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
1775 difficult and introduced a lot of core dump. It turns out that
1776 Bison used an implementation of `xmalloc' based on `calloc', and
1777 at various places it does depend upon the initialization to 0. I
1778 have not tried to isolate the pertinent places, and all the former
1779 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
1780 someone should address this issue.
1781
1782 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
1783 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
1784 files.
1785 Adjust dependencies.
1786 * src/warshall.h: New file.
1787 Propagate.
1788
340ef489
AD
17892000-10-02 Akim Demaille <akim@epita.fr>
1790
1791 Various anti-`extern in *.c' changes.
1792
1793 * src/system.h: Include `assert.h'.
1794
b2ca4022
AD
17952000-10-02 Akim Demaille <akim@epita.fr>
1796
1797 * src/state.h (nstates, final_state, first_state, first_shift)
1798 (first_reduction): Move their exportation from here...
1799 * src/LR0.h: to here.
1800 Adjust dependencies.
1801 * src/getargs.c (statisticsflag): New variable.
1802 Add support for `--statistics'.
1803 Adjust dependencies.
1804
1805 Remove a lot of now useless `extern' statements in most files.
1806
403b315b
AD
18072000-10-02 Akim Demaille <akim@epita.fr>
1808
1809 * src/LR0.h: New file.
1810 Propagate its use.
1811
07a58c13
AD
18122000-10-02 Akim Demaille <akim@epita.fr>
1813
1814 * src/print.h: New file.
1815 Propagate its use.
1816 * src/print.c: Formatting and ordering changes.
1817 (verbose, terse): Replace with...
1818 (print_results): this new function.
1819 Adjust dependencies.
1820
0619caf0
AD
18212000-10-02 Akim Demaille <akim@epita.fr>
1822
1823 * src/conflicts.c (conflict_report): New function.
1824 (conflict_log, verbose_conflict_log): Replace with...
1825 (print_conflicts): this function.
1826 Adjust dependencies.
1827 * src/conflicts.h: New file.
1828 Propagate its inclusion.
1829
3519ec76
AD
18302000-10-02 Akim Demaille <akim@epita.fr>
1831
1832 * src/nullable.h: New file.
1833 Propagate its inclusion.
1834 * src/nullable.c: Formatting changes.
1835
015acc48
AD
18362000-10-02 Akim Demaille <akim@epita.fr>
1837
1838 * src/reduce.h: New file.
1839 Propagate its inclusion.
1840 * src/reduce.c: Topological sort and other formatting changes.
1841 (bool, TRUE, FALSE): Move their definition to...
1842 * src/system.h: here.
1843
8963a27b
AD
18442000-10-02 Akim Demaille <akim@epita.fr>
1845
1846 * src/files.c: Formatting changes.
1847 (tryopen, tryclose, openfiles): Rename as...
1848 (xfopen, xfclose, open_files): this.
1849 (stringappend): static.
1850 * src/files.h: Complete the list of exported symbols.
1851 Propagate its use.
1852
a70083a3
AD
18532000-10-02 Akim Demaille <akim@epita.fr>
1854
1855 * src/reader.h: New file.
1856 Propagate its use instead of tedious list of `extern' and
1857 prototypes.
1858 * src/reader.c: Formatting changes, topological sort,
1859 s/register//.
1860
abadc117
AD
18612000-10-02 Akim Demaille <akim@epita.fr>
1862
1863 * src/lex.h: Prototype `lex.c' exported functions.
1864 * src/reader.c: Adjust.
1865 * src/lex.c: Formatting changes.
1866 (safegetc): Rename as...
1867 (xgetc): this.
1868
720d742f
AD
18692000-10-02 Akim Demaille <akim@epita.fr>
1870
1871 * src/lalr.h: New file.
1872 Propagate its inclusion instead of prototypes and `extern'.
1873 * src/lalr.c: Formatting changes, topological sorting etc.
1874
f2acea59
AD
18752000-10-02 Akim Demaille <akim@epita.fr>
1876
1877 * src/output.c (token_actions): Introduce a temporary array,
1878 YYDEFACT, that makes it possible for this function to use
1879 output_short_table.
1880
d019d655
AD
18812000-10-02 Akim Demaille <akim@epita.fr>
1882
1883 `user_toknums' is output as a `short[]' in `output.c', while it is
1884 defined as a `int[]' in `reader.c'. For consistency with the
1885 other output tables, `user_toknums' is now defined as a table of
1886 shorts.
1887
1888 * src/reader.c (user_toknums): Be a short table instead of an int
1889 table.
1890 Adjust dependencies.
1891
1892 Factor the short table outputs.
1893
1894 * src/output.c (output_short_table): New function.
1895 * src/output.c (output_gram, output_stos, output_rule_data)
1896 (output_base, output_table, output_check): Use it.
1897
6c89f1c1
AD
18982000-10-02 Akim Demaille <akim@epita.fr>
1899
1900 * src/output.c (output): Topological sort of the functions, in
1901 order to get rid of the `static' prototypes.
1902 No longer use `register'.
1903 * src/output.h: New file.
1904 Propagate its inclusion in files explicitly prototyping functions
1905 from output.c.
1906
d9efd181
AD
19072000-09-21 Akim Demaille <akim@epita.fr>
1908
1909 * src/atgeneral.m4: Update from Autoconf.
1910
c29240e7 19112000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
1912
1913 * src/closure.h: New file.
1914 * src/closure.c: Formatting changes, topological sort over the
1915 functions, use of closure.h.
1916 (initialize_closure, finalize_closure): Rename as...
1917 (new_closure, free_closure): these. Adjust dependencies.
1918 * src/LR0.c: Formatting changes, topological sort, use of
1919 cloture.h.
1920 (initialize_states): Rename as...
1921 (new_states): this.
1922 * src/Makefile.am (noinst_HEADERS): Adjust.
1923
499daa50
AD
19242000-09-20 Akim Demaille <akim@epita.fr>
1925
1926 * src/acconfig.h: Don't protect config.h against multiple
1927 inclusion.
1928 Don't define PARAMS.
1929 * src/system.h: Define PARAMS.
1930 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
1931 purpose of config.h. system.h must not try to fix wrong
1932 definitions in config.h.
1933
cc84fd5d
AD
19342000-09-20 Akim Demaille <akim@epita.fr>
1935
1936 * src/derives.h: New file.
1937 * src/main.c, src/derives.h: Use it.
1938 Formatting changes.
1939 * src/Makefile.am (noinst_HEADERS): Adjust.
1940
db5b3a89
AD
19412000-09-20 Akim Demaille <akim@epita.fr>
1942
1943 * tests/atgeneral.m4: Update from Autoconf.
1944 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
1945 (AT_CHECK_CALC): New macros.
1946 Use these macros to test bison with options `', `--raw',
1947 `--debug', `--yacc', `--yacc --debug'.
1948
ceed8467
AD
19492000-09-19 Akim Demaille <akim@epita.fr>
1950
1951 * src/output.c: Formatting changes.
1952 * src/machine.h: Remove, leaving its contents in...
1953 * src/system.h: here.
1954 Include stdio.h.
1955 Adjust all dependencies on stdio.h and machine.h.
1956 * src/getargs.h: New file.
1957 Let all `extern' declarations about getargs.c be replaced with
1958 inclusion of `getargs.h'.
1959 * src/Makefile.am (noinst_HEADERS): Adjust.
1960
1961 * tests/calc.m4 (yyin): Be initialized in main, not on the global
1962 scope.
1963 (yyerror): Returns void, not int.
1964 * doc/bison.texinfo: Formatting changes.
1965
05a1d24b
AD
19662000-09-19 Akim Demaille <akim@epita.fr>
1967
1968 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
1969 portable.
1970
cbd25751
AD
19712000-09-18 Akim Demaille <akim@epita.fr>
1972
1973 * configure.in: Append WARNING_CFLAGS to CFLAGS.
1974 * src/Makefile.am (INCLUDES): Don't.
1975 Be ready to fetch headers in lib/.
1976
13863333
AD
19772000-09-18 Akim Demaille <akim@epita.fr>
1978
1979 * doc/bison.texinfo: Update the copyright.
1980 ANSIfy and GNUify the examples.
1981 Remove the old menu.
1982
0d533154
AD
19832000-09-18 Akim Demaille <akim@epita.fr>
1984
1985 First set of tests: use the `calc' example from the documentation.
1986
1987 * src/bison.s1 (yyparse): Condition the code using `yytname' which
1988 is defined only when YYDEBUG is.
1989 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
1990 * src/files.c (tryopen, tryclose): Formatting changes.
1991 Move to the top and be static.
1992 * src/reader.c (read_signed_integer): Likewise.
1993 * tests/calc.m4: New file.
1994 * Makefile.am, suite.m4: Adjust.
1995 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
1996
e79137ac
AD
19972000-09-18 Akim Demaille <akim@epita.fr>
1998
1999 Add support for an Autotest test suite for Bison.
2000
2001 * m4/m4.m4, m4/atconfig.m4: New files.
2002 * m4/Makefile.am (EXTRA_DIST): Adjust.
2003 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
2004 files.
2005 * src/getargs.c: Display a more standard --version message.
2006 * src/reader.c (reader): Formatting changes.
2007 No longer depend upon VERSION_STRING.
2008 * configure.in: No longer use `dnl'.
2009 Set up the test suite and the new directory `tests/.
2010 (VERSION_STRING): Remove.
2011
27821bff
AD
20122000-04-14 Akim Demaille <akim@epita.fr>
2013
2014 * src/reader.c (copy_comment2): New function, same as former
2015 `copy_comment', but outputs into two FILE *.
2016 (copy_comment): Use it.
2017 (parse_union_decl): Use it.
2018 (get_type, parse_start_decl): Use the same `invalid' message.
2019 (parse_start_decl, parse_union_decl): Use the same `multiple'
2020 message.
2021 (parse_union_decl, copy_guard, copy_action): Use the same
2022 `unmatched' message.
2023 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
2024
cfe5fbc0
AD
20252000-03-31 Akim Demaille <akim@epita.fr>
2026
2027 * src/files.c (tryopen, tryclose): Move to the top.
2028 Be static.
2029
cb7db13e
AD
20302000-03-31 Akim Demaille <akim@epita.fr>
2031
2032 * src/main.c (main): Don't call `done', exit does it.
2033
a0f6b076
AD
20342000-03-31 Akim Demaille <akim@epita.fr>
2035
36281465
AD
2036 * allocate.c: s/return (foo)/return foo/.
2037 * lalr.c: Likewise.
2038 * LR0.c: Likewise.
2039 * output.c: Likewise.
2040 * reader.c: Likewise.
2041 * symtab.c: Likewise.
2042 * vmsgetargs.c: Likewise.
2043
20442000-03-31 Akim Demaille <akim@epita.fr>
2045
2046 Clean up the error reporting functions.
a0f6b076
AD
2047
2048 * src/report.c: New file.
2049 * src/report.h: Likewise.
2050 * src/Makefile.am: Adjust.
2051 * m4/error.m4: New file.
2052 * m4/Makefile.am: Adjust.
2053 * configure.in (jm_PREREQ_ERROR): Call it.
2054 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
2055 Remove.
2056 (fatal, fatals): Remove. All callers use complain.c::fatal.
2057 (warn, warni, warns, warnss, warnss): Remove. All callers use
2058 complain.c::complain.
2059 (toomany): Remove, use fatal instead.
2060 * src/files.c (done): No argument, use complain_message_count.
2061 * src/main.c (main): Register `done' to `atexit'.
2062
2063 * src/getargs.c (usage): More `fputs', less `fprintf'.
2064
18539825
AD
20652000-03-28 Akim Demaille <akim@epita.fr>
2066
2067 * lib/: New directory.
2068 * Makefile.am (SUBDIRS): Adjust.
2069 * configure.in: Adjust.
2070 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
2071 useless.
2072 * src/alloca.c: Moved to lib/.
2073 * src/getopt.c: Likewise.
2074 * src/getopt1.c: Likewise.
2075 * src/getopt.h: Likewise.
2076 * src/ansi2knr.c: Likewise.
2077 * src/ansi2knr.1: Likewise.
2078 * src/Makefile.am: Adjust.
2079 * lib/Makefile.am: New file.
2080
9f306f2a
AD
20812000-03-28 Akim Demaille <akim@epita.fr>
2082
2083 * src/getargs.c (usage): Refresh the help message.
2084
0ba347b6
AD
20852000-03-17 Akim Demaille <akim@epita.fr>
2086
2087 * src/getopt1.c: Updated from textutils 2.0e
2088 * src/getopt.c: Likewise.
2089 * src/getopt.h: Likewise.
2090
dbe7f271
AD
20912000-03-17 Akim Demaille <akim@epita.fr>
2092
2093 * src/Makefile.am (bison.simple): Fix the awk program: quote only
2094 the file name, not the whole `#line LINE FILE'.
2095
75bbe78d
AD
20962000-03-17 Akim Demaille <akim@epita.fr>
2097
2098 On syntax errors, report the token on which we choked.
2099
aa5fd0ee
AD
2100 * src/bison.s1 (yyparse): In the label yyerrlab, when
2101 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 2102
7b306f52
AD
21032000-03-17 Akim Demaille <akim@epita.fr>
2104
aa5fd0ee 2105 * src/reader.c (copy_at): New function.
7b306f52
AD
2106 (copy_guard): Use it.
2107 (copy_action): Use it.
2108
e87b5700
AD
21092000-03-17 Akim Demaille <akim@epita.fr>
2110
2111 Be kind to translators, save some useless translations.
2112
aa5fd0ee 2113 * src/main.c (banner): New function.
e87b5700
AD
2114 (fatal_banner): Use it.
2115 (warn_banner): Use it.
2116
ae3c3164
AD
21172000-03-17 Akim Demaille <akim@epita.fr>
2118
aa5fd0ee
AD
2119 * src/reader.c (copy_definition): Use copy_string and
2120 copy_comment. Removed now unused `match', `ended',
2121 `cplus_comment'.
ae3c3164
AD
2122 (copy_comment, copy_string): Moved, to be visible from
2123 copy_definition.
2124
4dc58e7c
AD
21252000-03-17 Akim Demaille <akim@epita.fr>
2126
aa5fd0ee
AD
2127 * src/reader.c (copy_string): Declare `static inline'. No
2128 problems with inline, since it is checked by configure.
4dc58e7c
AD
2129 (copy_comment): Likewise.
2130
0a6384c4
AD
21312000-03-17 Akim Demaille <akim@epita.fr>
2132
aa5fd0ee 2133 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 2134
3cef001a
AD
21352000-03-17 Akim Demaille <akim@epita.fr>
2136
aa5fd0ee 2137 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
2138 (copy_action): Use it. Removed now unused `match', `ended',
2139 `cplus_comment'.
2140 (copy_guard): Likewise.
2141
ca36d2ef
AD
21422000-03-17 Akim Demaille <akim@epita.fr>
2143
aa5fd0ee 2144 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
2145 (copy_action): Use it.
2146 (copy_guard): Likewise.
2147
6666f98f
AD
21482000-03-17 Akim Demaille <akim@epita.fr>
2149
2150 Change the handling of @s so that they behave exactly like $s.
2151 There is now a pseudo variable @$ (readble and writable), location
2152 of the lhs of the rule (by default ranging from the location of
2153 the first symbol of the rhs, to the location of the last symbol,
2154 or, if the rhs is empty, YYLLOC).
2155
2156 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
2157 yyval.
2158 (yyparse): When providing a default semantic action, provide a
2159 default location action.
2160 (after the $): No longer change `*YYLSP', just stack YYLOC the
2161 same way you stack YYVAL.
2162 * src/reader.c (read_declarations): Use warns.
2163 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
2164 (copy_action, case '@'): Likewise.
2165 Use a standard error message, to save useless work from
2166 translators.
2167
41aca2e0
AD
21682000-03-17 Akim Demaille <akim@epita.fr>
2169
aa5fd0ee
AD
2170 * src/bison.s1: Formatting and cosmetics changes.
2171 * src/reader.c: Likewise.
41aca2e0
AD
2172 Update the Copyright notice.
2173
dc08c1d5
AD
21742000-03-17 Akim Demaille <akim@epita.fr>
2175
aa5fd0ee
AD
2176 * src/bison.s1 (#line): All set to `#line' only, since the
2177 Makefile now handles them.
dc08c1d5 2178
9ee3c97b
AD
21792000-03-16 Akim Demaille <akim@epita.fr>
2180
2181 * src/output.c (output_rule_data): Output the documentation of
2182 some of the tables.
2183 (Copyright notice): Update.
2184 Formatting changes.
2185
0de741ca
AD
21862000-03-16 Akim Demaille <akim@epita.fr>
2187
2188 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
2189 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
2190 One `#if YYDEBUG' remains, since it uses variables which are
2191 defined only if `YYDEBUG != 0'.
2192
bb10be54
AD
21932000-03-16 Akim Demaille <akim@epita.fr>
2194
2195 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
2196 and related variables so that the similarities are highlighted.
2197
b07b484a
AD
21982000-03-16 Akim Demaille <akim@epita.fr>
2199
2200 * src/bison.s1: Properly indent CPP directives.
2201
361f60b3
AD
22022000-03-16 Akim Demaille <akim@epita.fr>
2203
2204 * src/bison.s1: Properly indent the `alloca' CPP section.
2205
8c44d3ec
AD
22062000-03-16 Akim Demaille <akim@epita.fr>
2207
2208 Do not hard code values of directories in `configure.in'.
2209 Update the `configure' tool chain.
2210
2211 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
2212 src/makefile.am.
2213 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
2214 (AC_OUTPUT): Add m4/Makefile.
2215 Bump to bison 1.28a, 1.29 has never been released.
2216 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
2217 handled via src/Makefile.am.
2218 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
2219 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
2220 autoheader.
2221 * Makefile.am (SUBDIRS): Add m4.
2222 (ACLOCAL_AM_FLAGS): New variable.
2223 (AUTOMAKE_OPTIONS): Add check-news.
2224 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
2225 the proper line number and file name.
2226 (DEFS): Propagate the location of bison library files and of the
2227 locale files.
2228 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
2229 builddir.
2230 * acinclude.m4: Remove, replaced by the directory m4.
2231 * m4/Makefile.am (EXTRA_DIST): New variable.
2232 * m4/gettext.m4: New file, from the fileutils.
2233 * m4/lcmessage.m4: Likewise
2234 * m4/progtest.m4: Likewise.
2235 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
2236
f95997e7
AD
22372000-03-10 Akim Demaille <akim@epita.fr>
2238
2239 * src/closure.c:
2240 Formatting changes of various comments.
2241 Respect the GNU coding standards at various places.
2242 Don't use `_()' when no translation is needed.
2243
22441999-12-13 Jesse Thilo <jthilo@gnu.org>
2245
2246 * src/files.c:
2247 OS/2 honors TMPDIR environment variable.
2248
22491999-12-13 Jesse Thilo <jthilo@gnu.org>
2250
2251 * doc/bison.texinfo: Tweaked spelling and grammar.
2252 Updated ISBN.
2253 Removed reference to price of printed copy.
2254 Mention BISON_SIMPLE and BISON_HAIRY.
2255
22561999-12-13 Jesse Thilo <jthilo@gnu.org>
2257
2258 * configure.in, NEWS:
2259 Bison 1.29 released.
2260
22611999-10-27 Jesse Thilo <jthilo@gnu.org>
2262
2263 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
2264 Added reference card.
2265
22661999-07-26 Jesse Thilo <jthilo@gnu.org>
2267
2268 * po/ru.po: Added Russian translation.
2269
22701999-07-26 Jesse Thilo <jthilo@gnu.org>
2271
2272 * configure.in: Added Russian translation.
2273
22741999-07-06 Jesse Thilo <jthilo@gnu.org>
2275
2276 * configure.in, NEWS, README:
2277 Released version 1.28.
2278
22791999-06-14 Jesse Thilo <jthilo@gnu.org>
2280
2281 * src/system.h:
2282 Squashed redefinition warning on some systems.
2283
2284 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
2285 Have configure build version string instead of relying on ANSI string
2286 concatentation.
2287
22881999-06-14 Jesse Thilo <jthilo@gnu.org>
2289
2290 * po/POTFILES.in: Got rid of version.c.
2291
22921999-06-14 Jesse Thilo <jthilo@gnu.org>
2293
2294 * acconfig.h, configure.in:
2295 Have configure build version string instead of relying on ANSI string
2296 concatentation.
2297
22981999-06-08 Jesse Thilo <jthilo@gnu.org>
2299
2300 * doc/bison.1:
2301 Dropped mention of `+' for long-named options.
2302
23031999-05-30 Jesse Thilo <jthilo@gnu.org>
2304
2305 * src/files.c: Added <unistd.h> for unlink().
2306
2307 * src/Makefile.am, src/system.h:
2308 I18n fixes.
2309
23101999-05-30 Jesse Thilo <jthilo@gnu.org>
2311
2312 * README: Added a FAQ list.
2313
2314 * configure.in, acconfig.h:
2315 I18n fixes.
2316
23171999-05-30 Jesse Thilo <jthilo@gnu.org>
2318
2319 * doc/FAQ, doc/Makefile.am:
2320 Added a FAQ list.
2321
23221999-05-19 Jesse Thilo <jthilo@gnu.org>
2323
2324 * src/alloc.h, src/symtab.h, src/version.c:
2325 Protected inclusion of "config.h" with HAVE_CONFIG_H.
2326
23271999-04-18 Jesse Thilo <jthilo@gnu.org>
2328
2329 * src/.cvsignore, src/Makefile.am:
2330 Reorganized: sources in `src', documentation in `doc'.
2331
2332 * src/lex.c (literalchar):
2333 fixed the code for escaping double quotes (thanks
2334 Jonathan Czisny.)
2335
23361999-04-18 Jesse Thilo <jthilo@gnu.org>
2337
2338 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
2339 Adjusted paths to reflect directory reorganization.
2340
23411999-04-18 Jesse Thilo <jthilo@gnu.org>
2342
2343 * doc/.cvsignore, doc/Makefile.am:
2344 Reorganized: sources in `src', documentation in `doc'.
2345
23461999-04-18 Jesse Thilo <jthilo@gnu.org>
2347
2348 * configure.in:
2349 Updated AC_INIT file to reflect directory reorganization.
2350
2351 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
2352 Reorganized: sources in `src', documentation in `doc'.
2353
23541999-04-13 Jesse Thilo <jthilo@gnu.org>
2355
2356 * src/allocate.c:
2357 Don't declare calloc() and realloc() if not necessary.
2358
23591999-04-13 Jesse Thilo <jthilo@gnu.org>
2360
2361 * configure.in, acconfig.h, acinclude.m4:
2362 Don't declare calloc() and realloc() if not necessary.
2363
23641999-03-23 Jesse Thilo <jthilo@gnu.org>
2365
2366 * po/.cvsignore: Added i18n support.
2367
23681999-03-23 Jesse Thilo <jthilo@gnu.org>
2369
2370 * acconfig.h, configure.in, Makefile.am:
2371 Added i18n support.
2372
23731999-03-22 Jesse Thilo <jthilo@gnu.org>
2374
2375 * src/bison.s1: Fixed #line numbers.
2376
23771999-03-15 Jesse Thilo <jthilo@gnu.org>
2378
2379 * po/es.po, po/fr.po, po/nl.po, po/de.po:
2380 Added PO files from Translation Project.
2381
23821999-03-03 Jesse Thilo <jthilo@gnu.org>
2383
2384 * Makefile.am:
2385 Added support for non-ANSI compilers (ansi2knr).
2386
23871999-02-16 Jesse Thilo <jthilo@gnu.org>
2388
2389 * configure.in: Bumped version number to 1.27.
2390
2391 * Makefile.am:
2392 Added `bison.simple' to list of files removed by `make distclean'.
2393
23941999-02-12 Jesse Thilo <jthilo@gnu.org>
2395
2396 * src/files.c, src/files.h:
2397 Defined locations of parser files in config.h instead of Makefile.
2398
23991999-02-12 Jesse Thilo <jthilo@gnu.org>
2400
2401 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
2402 Defined locations of parser files in config.h instead of Makefile.
2403
24041999-02-09 Jesse Thilo <jthilo@gnu.org>
2405
2406 * Makefile.am:
2407 Removed inappropriate use of $< macro.
2408
24091999-02-05 Jesse Thilo <jthilo@gnu.org>
2410
2411 * po/Makefile.in.in, po/POTFILES.in:
2412 Add `po' directory skeleton.
2413
24141999-01-27 Jesse Thilo <jthilo@gnu.org>
2415
2416 * README: Document help-bison list.
2417
2418 * configure.in: Add check for mkstemp().
2419
24201999-01-20 Jesse Thilo <jthilo@gnu.org>
2421
2422 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
2423 Hush a few compiler warnings.
2424
2425 * src/files.c:
2426 Add tryclose(), which verifies that fclose was successful.
2427 Hush a couple of compiler warnings.
2428
24291999-01-20 Jesse Thilo <jthilo@gnu.org>
2430
2431 * Makefile.am, OChangeLog:
2432 ChangeLog is now automatically generated. Include the old version as
2433 OChangeLog.
2434
24351999-01-14 Jesse Thilo <jthilo@gnu.org>
2436
2437 * 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:
2438 Update FSF address.
2439
24401999-01-14 Jesse Thilo <jthilo@gnu.org>
2441
2442 * doc/bison.texinfo: Fix formatting glitch.
2443
2444 * doc/bison.texinfo: Update FSF address.
2445
24461999-01-14 Jesse Thilo <jthilo@gnu.org>
2447
2448 * acconfig.h: Update FSF address.
2449
24501999-01-08 Jesse Thilo <jthilo@gnu.org>
2451
2452 * src/system.h:
2453 Don't define PACKAGE here, since config.h defines it.
2454
24551998-12-30 Jesse Thilo <jthilo@gnu.org>
2456
2457 * src/reader.c: Update copyright date.
2458
2459 * src/main.c:
2460 Ditch sprintf to statically-sized buffers in fatal/warn functions in
2461 favor of output directly to stderr (avoids buffer overruns).
2462
2463 * src/reader.c: Some checks for premature EOF.
2464
2465 * 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:
2466 Use prototypes if the compiler understands them.
2467
2468 * src/files.c: Honor TMPDIR on Unix hosts.
2469 Use prototypes if the compiler understands them.
2470
2471 * src/reader.c:
2472 Fix a couple of buffer overrun bugs.
2473 Use prototypes if the compiler understands them.
2474
2475 * src/system.h: Include unistd.h and ctype.h.
2476 Use #ifdef instead of #if for NLS symbols.
2477
24781998-12-30 Jesse Thilo <jthilo@gnu.org>
2479
2480 * doc/bison.texinfo:
2481 Delete comment "consider using @set for edition number, etc..." since
2482 we now are doing so.
2483
24841998-12-30 Jesse Thilo <jthilo@gnu.org>
2485
2486 * configure.in:
2487 Use prototypes if the compiler understands them.
2488
2489 * NEWS: Document 1.26 highlights.
2490
2491 * Makefile.am: Require Automake 1.3 or later.
2492
2493 * acconfig.h:
2494 Use prototypes if the compiler understands them.
2495
24961998-12-29 Jesse Thilo <jthilo@gnu.org>
2497
2498 * src/version.c:
2499 Use VERSION symbol from automake for version number.
2500
25011998-12-29 Jesse Thilo <jthilo@gnu.org>
2502
2503 * acconfig.h, configure.in, version.cin:
2504 Use VERSION symbol from automake for version number.
2505
25061998-11-28 Jesse Thilo <jthilo@gnu.org>
2507
2508 * Makefile.am:
2509 Distribute original version of simple parser (bison.s1), not built
2510 version (bison.simple).
2511
25121998-11-28 Jesse Thilo <jthilo@gnu.org>
2513
2514 * doc/bison.texinfo: Add info dir entry.
2515
2516 * doc/bison.texinfo:
2517 Let automake put version number into documentation.
2518
25191998-11-26 Jesse Thilo <jthilo@gnu.org>
2520
2521 * src/bison.cld, src/build.com, src/vmshlp.mar:
2522 Add non-RCS files from /gd/gnu/bison.
2523
25241998-11-26 Jesse Thilo <jthilo@gnu.org>
2525
2526 * doc/bison.1:
2527 Document the BISON_HAIRY and BISON_SIMPLE variables.
2528
25291998-11-25 Jesse Thilo <jthilo@gnu.org>
2530
2531 * src/version.c: Build version.c automatically.
2532
2533 * src/reader.c:
2534 Fix token numbering (used to start at 258, not 257).
2535
2536 * src/system.h: Include config.h.
2537
2538 * src/getargs.c: Update bug report address.
2539
2540 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
2541 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
2542
25431998-11-25 Jesse Thilo <jthilo@gnu.org>
2544
2545 * Makefile.am:
2546 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2547
2548 * configure.in, version.cin:
2549 Build version.c automatically.
2550
2551 * AUTHORS: Add AUTHORS file.
2552
2553 * README: Update bug report address.
2554
2555 * bison.simple:
2556 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
2557
2558 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
2559 Add automake stuff.
2560
25611998-11-25 Jesse Thilo <jthilo@gnu.org>
2562
2563 * doc/bison.texinfo: Clean up some formatting.
2564
25651998-05-05 Richard Stallman <rms@gnu.org>
2566
2567 * doc/bison.texinfo:
2568 Explain better why to make a pure parser.
2569
25701998-01-05 Richard Stallman <rms@gnu.org>
2571
2572 * src/files.c (openfiles):
2573 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
2574 find a temporary directory, if possible. Do not unlink files while
2575 they are open.
2576
25771997-08-25 Richard Stallman <rms@gnu.org>
2578
2579 * src/reader.c (stack_offset;):
2580 Change some warni to warns.
2581
2582 * src/lex.c (literalchar): Use warns, not warni.
2583
25841997-06-28 Richard Stallman <rms@gnu.org>
2585
2586 * src/bison.s1: Add a Bison version comment.
2587
2588 * src/main.c (fatal, warn, berror):
2589 Use program_name.
2590
25911997-06-28 Richard Stallman <rms@gnu.org>
2592
2593 * Makefile.in (bison_version): New variable.
2594 (dist): Use that variable.
2595 (bison.s1): Substitute the Bison version into bison.simple.
2596
2597 * bison.simple: Add a Bison version comment.
2598
25991997-06-18 Richard Stallman <rms@gnu.org>
2600
2601 * src/main.c (fatal, warn, berror):
2602 Make error messages standard.
2603 (toomany): Improve error message text.
2604
2605 * 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:
2606 new.h renamed to alloc.h.
2607
26081997-06-18 Richard Stallman <rms@gnu.org>
2609
2610 * Makefile.in: new.h renamed to alloc.h.
2611
26121997-05-24 Richard Stallman <rms@gnu.org>
2613
2614 * src/lex.c (literalchar):
2615 Fix the code for escaping \, " and '.
2616
2617 (lex): Avoid trouble when there are many chars
2618 to discard in a char literal with just several chars in it.
2619
26201997-05-17 Richard Stallman <rms@gnu.org>
2621
2622 * src/bison.s1:
2623 Use malloc, if using alloca is troublesome.
2624 (YYSTACK_USE_ALLOCA): New flag macro.
2625 Define it for some systems and compilers.
2626 (YYSTACK_ALLOC): New macro.
2627 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2628 If it was malloc'd, free it.
2629
26301997-05-17 Richard Stallman <rms@gnu.org>
2631
2632 * bison.simple:
2633 Use malloc, if using alloca is troublesome.
2634 (YYSTACK_USE_ALLOCA): New flag macro.
2635 Define it for some systems and compilers.
2636 (YYSTACK_ALLOC): New macro.
2637 (yyparse): Use YYSTACK_ALLOC to allocate stack.
2638 If it was malloc'd, free it.
2639
26401997-04-23 Richard Stallman <rms@gnu.org>
2641
2642 * src/bison.s1:
2643 (alloca) [__hpux]: Always define as __builtin_alloca.
2644
26451997-04-23 Richard Stallman <rms@gnu.org>
2646
2647 * bison.simple:
2648 (alloca) [__hpux]: Always define as __builtin_alloca.
2649
26501997-04-22 Richard Stallman <rms@gnu.org>
2651
2652 * src/bison.s1:
2653 [__hpux]: Include alloca.h (right for HPUX 10)
2654 instead of declaring alloca (right for HPUX 9).
2655
2656 * src/bison.s1 (__yy_memcpy):
2657 Declare arg `count' as unsigned int.
2658 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2659
26601997-04-22 Richard Stallman <rms@gnu.org>
2661
2662 * bison.simple:
2663 [__hpux]: Include alloca.h (right for HPUX 10)
2664 instead of declaring alloca (right for HPUX 9).
2665
2666 * bison.simple (__yy_memcpy):
2667 Declare arg `count' as unsigned int.
2668 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
2669
26701997-01-03 Richard Stallman <rms@gnu.org>
2671
2672 * src/allocate.c: [__STDC__ or _MSC_VER]:
2673 Declare calloc and realloc to return void *.
2674
26751997-01-02 Richard Stallman <rms@gnu.org>
2676
2677 * src/system.h:
2678 [_MSC_VER]: Include stdlib.h and process.h.
2679 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
2680
2681 * src/main.c (main): Return FAILURE as a value.
2682 (printable_version): Declare arg as int, not char.
2683
26841997-01-02 Richard Stallman <rms@gnu.org>
2685
2686 * Makefile.in (dist):
2687 Explicitly check for symlinks, and copy them.
2688
26891996-12-19 Richard Stallman <rms@gnu.org>
2690
2691 * src/files.c:
2692 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
2693
26941996-12-18 Paul Eggert <eggert@gnu.org>
2695
2696 * src/bison.s1 (yyparse):
2697 If __GNUC__ and YYPARSE_PARAM are both defined,
2698 declare yyparse to have a void * argument.
2699
27001996-12-18 Paul Eggert <eggert@gnu.org>
2701
2702 * bison.simple (yyparse):
2703 If __GNUC__ and YYPARSE_PARAM are both defined,
2704 declare yyparse to have a void * argument.
2705
27061996-12-17 Richard Stallman <rms@gnu.org>
2707
2708 * src/reduce.c (nbits): Add some casts.
2709
27101996-08-12 Richard Stallman <rms@gnu.org>
2711
2712 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
2713
27141996-08-12 Richard Stallman <rms@gnu.org>
2715
2716 * bison.simple: Test _MSDOS as well as _MSDOS_.
2717
27181996-07-31 Richard Stallman <rms@gnu.org>
2719
2720 * src/bison.s1:
2721 [__sun && __i386]: Include alloca.h.
2722
27231996-07-31 Richard Stallman <rms@gnu.org>
2724
2725 * bison.simple:
2726 [__sun && __i386]: Include alloca.h.
2727
27281996-07-30 Richard Stallman <rms@gnu.org>
2729
2730 * src/bison.s1: Comment change.
2731
2732 * src/bison.s1: Test _MSDOS_, not MSDOS.
2733
27341996-07-30 Richard Stallman <rms@gnu.org>
2735
2736 * bison.simple: Comment change.
2737
2738 * bison.simple: Test _MSDOS_, not MSDOS.
2739
27401996-06-01 Richard Stallman <rms@gnu.org>
2741
2742 * 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:
2743 Insert `_' macro around many string constants.
2744
2745 * src/main.c:
2746 Insert `_' macro around many string constants.
2747
2748 (main): Call setlocale, bindtextdomain and textdomain.
2749
2750 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
2751 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
2752 [ENABLE_NLS]: Include libintl.h.
2753 [ENABLE_NLS] (gettext): Define.
2754 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
2755 (N_, PACKAGE, LOCALEDIR): New macros.
2756
27571996-06-01 Richard Stallman <rms@gnu.org>
2758
2759 * POTFILES.in: New file.
2760
2761 * Makefile.in (allocate.o):
2762 Define target explicitly.
2763
2764 * Makefile.in (CFLAGS): Set to @CFLAGS@.
2765 (LDFLAGS): Set to @LDFLAGS@.
2766 (configure): Run autoconf only if preceding `cd' succeeds.
2767 (bison.s1): Redirect output to temporary file then move the
2768 temporary to the target, rather than redirecting directly to bison.s1.
2769 (clean): Remove config.status and config.log.
2770 (distclean): Don't remove config.status here.
2771
27721996-05-12 Richard Stallman <rms@gnu.org>
2773
2774 * src/bison.s1:
2775 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2776
27771996-05-12 Richard Stallman <rms@gnu.org>
2778
2779 * bison.simple:
2780 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
2781
27821996-05-11 Richard Stallman <rms@gnu.org>
2783
2784 * src/bison.s1 (__yy_memcpy):
2785 Really reorder the args, as was supposedly done on Feb 14 1995.
2786 (yyparse): Calls changed accordingly.
2787
27881996-05-11 Richard Stallman <rms@gnu.org>
2789
2790 * Makefile.in (dist): Don't use $(srcdir).
2791
2792 * bison.simple (__yy_memcpy):
2793 Really reorder the args, as was supposedly done on Feb 14 1995.
2794 (yyparse): Calls changed accordingly.
2795
27961996-01-27 Richard Stallman <rms@gnu.org>
2797
2798 * src/output.c (output_rule_data):
2799 Test YYERROR_VERBOSE in the conditional
2800 around the definition of ttyname.
2801
28021995-12-29 Richard Stallman <rms@gnu.org>
2803
2804 * src/bison.s1:
2805 Fix line numbers in #line commands.
2806
28071995-12-29 Richard Stallman <rms@gnu.org>
2808
2809 * bison.simple:
2810 Fix line numbers in #line commands.
2811
28121995-12-27 Richard Stallman <rms@gnu.org>
2813
2814 * src/bison.s1 (YYPARSE_PARAM_DECL):
2815 In C++, make it always null.
2816 (YYPARSE_PARAM_ARG): New macro.
2817 (yyparse): Use YYPARSE_PARAM_ARG.
2818
28191995-12-27 Richard Stallman <rms@gnu.org>
2820
2821 * bison.simple (YYPARSE_PARAM_DECL):
2822 In C++, make it always null.
2823 (YYPARSE_PARAM_ARG): New macro.
2824 (yyparse): Use YYPARSE_PARAM_ARG.
2825
28261995-11-29 Richard Stallman <rms@gnu.org>
2827
2828 * doc/bison.texinfo:
2829 Describe literal string tokens, %raw, %no_lines, %token_table.
2830
28311995-11-29 Daniel Hagerty <hag@gnu.org>
2832
2833 * doc/bison.texinfo: Fixed update date
2834
28351995-10-16 Richard Stallman <rms@gnu.org>
2836
2837 * src/version.c: Version 1.25.
2838
28391995-10-16 Richard Stallman <rms@gnu.org>
2840
2841 * NEWS: *** empty log message ***
2842
28431995-10-16 Richard Stallman <rms@gnu.org>
2844
2845 * doc/bison.1, doc/bison.rnh:
2846 Add new options.
2847
28481995-10-15 Richard Stallman <rms@gnu.org>
2849
2850 * src/vmsgetargs.c, src/getargs.c:
2851 Added -n, -k, and -raw switches.
2852 (noparserflag, toknumflag, rawtoknumflag): New variables.
2853
2854 * src/symtab.h (SALIAS):
2855 New #define for adding aliases to %token.
2856 (struct bucket): Added `alias' field.
2857
2858 * src/reduce.c (reduce_grammar):
2859 Revise error message.
2860 (print_notices): Remove final `.' from error message.
2861
2862 * src/reader.c (reader_output_yylsp):
2863 New function.
2864 (readgram): Use `#if 0' around code that accepted %command
2865 inside grammar rules: The documentation doesn't allow it,
2866 and it will fail since the %command processors scan for the next %.
2867 (parse_token_decl): Extended the %token
2868 declaration to allow a multi-character symbol as an alias.
2869 (parse_thong_decl): New function.
2870 (read_declarations): Added %thong declarations.
2871 (read_declarations): Handle NOOP to deal with allowing
2872 % declarations as another means to specify the flags.
2873 (readgram): Allow %prec prior to semantics embedded in a rule.
2874 (skip_to_char, read_declarations, copy_definition)
2875 (parse_token_decl, parse_start_decl, parse_type_decl)
2876 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
2877 (get_type_name, copy_guard, copy_action, readgram)
2878 (get_type, packsymbols): Revised most error messages.
2879 Changed `fatal' to `warnxxx' to avoid aborting for error.
2880 Revised and use multiple warnxxx functions to avoid using VARARGS1.
2881 (read_declarations): Improve the error message for
2882 an invalid character. Do not abort.
2883 (read_declarations, copy_guard, copy_action): Use
2884 printable_version to avoid unprintable characters in printed output.
2885 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
2886 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
2887 Allow the type of a non-terminal can be given
2888 more than once, as long as all specifications give the same type.
2889
2890 * src/output.c:
2891 (output_headers, output_trailers, output, output_gram)
2892 (output_rule_data): Implement noparserflag variable.
2893 Implement toknumflag variable.
2894 (output): Call reader_output_yylsp to output LTYPESTR.
2895
2896 * src/main.c (main):
2897 If reader sees an error, don't process the grammar.
2898 (fatals): Updated to not use VARARGS1.
2899 (printable_version, int_to_string, warn, warni, warns, warnss)
2900 (warnsss): New error reporting functions. Avoid abort for error.
2901
2902 * src/lex.h:
2903 Added THONG and NOOP for alias processing.
2904 Added SETOPT for the new code that allows setting options with %flags.
2905
2906 * src/lex.c:
2907 Include getopt.h. Add some extern decls.
2908 (safegetc): New function to deal with EOF gracefully.
2909 (literalchar); new function to deal with reading \ escapes.
2910 (lex): Use literalchar.
2911 (lex): Implemented "..." tokens.
2912 (literalchar, lex, parse_percent_token): Made tokenbuffer
2913 always contain the token. This includes growing the token
2914 buffer while reading an integer.
2915 (parse_percent_token): Replaced if-else statement with percent_table.
2916 (parse_percent_token): Added % declarations as another
2917 way to specify the flags -n, -l, and -r. Also added hooks for
2918 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
2919 major changes to files.c.
2920 (lex) Retain in the incoming stream a character following
2921 an incorrect '/'.
2922 (skip_white_space, lex): Revised most error messages
2923 and changed fatal to warn to avoid aborting.
2924 (percent_table): Added %thong declarations.
2925
2926 * src/gram.h: Comment changes.
2927
2928 * src/files.c (openfiles, open_extra_files, done):
2929 Add faction flag
2930 and actfile file. Handle noparserflag. Both for -n switch.
2931
2932 * src/conflicts.c (resolve_sr_conflict):
2933 Remove use of alloca.
2934
29351995-06-01 Jim Meyering <meyering@gnu.org>
2936
2937 * doc/bison.texinfo: *** empty log message ***
2938
29391995-05-06 Richard Stallman <rms@gnu.org>
2940
2941 * src/bison.s1: Comment change.
2942
29431995-05-06 Richard Stallman <rms@gnu.org>
2944
2945 * bison.simple: Comment change.
2946
29471995-05-03 Richard Stallman <rms@gnu.org>
2948
2949 * src/version.c: Version now 1.24.
2950
2951 * src/bison.s1: Change distribution terms.
2952
2953 * src/version.c: Version now 1.23.
2954
29551995-05-03 Richard Stallman <rms@gnu.org>
2956
2957 * doc/bison.texinfo:
2958 Rewrite "Conditions for Using Bison".
2959 Update version to 1.24.
2960
29611995-05-03 Richard Stallman <rms@gnu.org>
2962
2963 * bison.simple: Change distribution terms.
2964
29651995-02-23 Richard Stallman <rms@gnu.org>
2966
2967 * src/files.c: Test __VMS_POSIX as well as VMS.
2968
29691995-02-14 Jim Meyering <meyering@gnu.org>
2970
2971 * src/bison.s1 (__yy_memcpy):
2972 Renamed from __yy_bcopy to avoid
2973 confusion. Reverse FROM and TO arguments to be consistent with
2974 those of memcpy.
2975
29761995-02-14 Jim Meyering <meyering@gnu.org>
2977
2978 * bison.simple (__yy_memcpy):
2979 Renamed from __yy_bcopy to avoid
2980 confusion. Reverse FROM and TO arguments to be consistent with
2981 those of memcpy.
2982
29831994-11-10 David J. MacKenzie <djm@gnu.org>
2984
2985 * NEWS: reformat
2986
2987 * NEWS: New file.
2988
2989 * Makefile.in (DISTFILES): Include NEWS.
2990
2991 * Makefile.in (DISTFILES):
2992 Include install-sh, not install.sh.
2993
2994 * configure.in: Update to Autoconf v2 macro names.
2995
29961994-10-05 David J. MacKenzie <djm@gnu.org>
2997
2998 * Makefile.in: fix typo
2999
3000 * Makefile.in (prefix, exec_prefix):
3001 Let configure set them.
3002
30031994-09-28 David J. MacKenzie <djm@gnu.org>
3004
3005 * Makefile.in: Set datadir to $(prefix)/share.
3006
30071994-09-15 Richard Stallman <rms@gnu.org>
3008
3009 * src/bison.s1:
3010 Update copyright notice and GPL version.
3011
30121994-09-15 Richard Stallman <rms@gnu.org>
3013
3014 * bison.simple:
3015 Update copyright notice and GPL version.
3016
30171994-07-12 Richard Stallman <rms@gnu.org>
3018
3019 * src/reduce.c, src/reader.c:
3020 entered into RCS
3021
30221994-05-05 David J. MacKenzie <djm@gnu.org>
3023
3024 * Makefile.in: entered into RCS
3025
30261994-03-26 Richard Stallman <rms@gnu.org>
3027
3028 * src/bison.s1: entered into RCS
3029
30301994-03-26 Richard Stallman <rms@gnu.org>
3031
3032 * bison.simple: entered into RCS
3033
30341994-03-25 Richard Stallman <rms@gnu.org>
3035
3036 * src/main.c: entered into RCS
3037
30381994-03-24 Richard Stallman <rms@gnu.org>
3039
3040 * src/conflicts.c: entered into RCS
3041
30421994-01-02 Richard Stallman <rms@gnu.org>
3043
3044 * Makefile.in: *** empty log message ***
3045
30461993-11-21 Richard Stallman <rms@gnu.org>
3047
3048 * src/bison.s1: *** empty log message ***
3049
30501993-11-21 Richard Stallman <rms@gnu.org>
3051
3052 * doc/bison.texinfo: entered into RCS
3053
3054 * doc/bison.texinfo: *** empty log message ***
3055
30561993-11-21 Richard Stallman <rms@gnu.org>
3057
3058 * bison.simple: *** empty log message ***
3059
30601993-10-25 David J. MacKenzie <djm@gnu.org>
3061
3062 * doc/bison.texinfo: *** empty log message ***
3063
30641993-10-19 Richard Stallman <rms@gnu.org>
3065
3066 * src/bison.s1: *** empty log message ***
3067
30681993-10-19 Richard Stallman <rms@gnu.org>
3069
3070 * bison.simple: *** empty log message ***
3071
30721993-10-14 Richard Stallman <rms@gnu.org>
3073
3074 * src/bison.s1: *** empty log message ***
3075
30761993-10-14 Richard Stallman <rms@gnu.org>
3077
3078 * bison.simple: *** empty log message ***
3079
30801993-09-14 David J. MacKenzie <djm@gnu.org>
3081
3082 * doc/bison.texinfo: *** empty log message ***
3083
30841993-09-13 Noah Friedman <friedman@gnu.org>
3085
3086 * Makefile.in: *** empty log message ***
3087
30881993-09-10 Richard Stallman <rms@gnu.org>
3089
3090 * src/conflicts.c: *** empty log message ***
3091
3092 * src/system.h: entered into RCS
3093
30941993-09-10 Richard Stallman <rms@gnu.org>
3095
3096 * doc/bison.1: entered into RCS
3097
30981993-09-06 Noah Friedman <friedman@gnu.org>
3099
3100 * src/version.c: entered into RCS
3101
31021993-09-06 Noah Friedman <friedman@gnu.org>
3103
3104 * Makefile.in: *** empty log message ***
3105
31061993-07-30 David J. MacKenzie <djm@gnu.org>
3107
3108 * Makefile.in: *** empty log message ***
3109
31101993-07-24 Richard Stallman <rms@gnu.org>
3111
3112 * src/bison.s1: *** empty log message ***
3113
31141993-07-24 Richard Stallman <rms@gnu.org>
3115
3116 * bison.simple: *** empty log message ***
3117
31181993-07-08 David J. MacKenzie <djm@gnu.org>
3119
3120 * Makefile.in: *** empty log message ***
3121
31221993-07-04 Richard Stallman <rms@gnu.org>
3123
3124 * src/bison.s1: *** empty log message ***
3125
31261993-07-04 Richard Stallman <rms@gnu.org>
3127
3128 * bison.simple: *** empty log message ***
3129
31301993-06-26 David J. MacKenzie <djm@gnu.org>
3131
3132 * src/getargs.c: entered into RCS
3133
31341993-06-26 David J. MacKenzie <djm@gnu.org>
3135
3136 * doc/bison.texinfo: *** empty log message ***
3137
3138 * doc/bison.1: New file.
3139
31401993-06-25 Richard Stallman <rms@gnu.org>
3141
3142 * src/getargs.c: New file.
3143
31441993-06-16 Richard Stallman <rms@gnu.org>
3145
3146 * src/bison.s1: *** empty log message ***
3147
31481993-06-16 Richard Stallman <rms@gnu.org>
3149
3150 * bison.simple: *** empty log message ***
3151
31521993-06-03 Richard Stallman <rms@gnu.org>
3153
3154 * src/bison.s1: New file.
3155
31561993-06-03 Richard Stallman <rms@gnu.org>
3157
3158 * doc/bison.texinfo: *** empty log message ***
3159
31601993-06-03 Richard Stallman <rms@gnu.org>
3161
3162 * bison.simple: New file.
3163
31641993-05-19 Richard Stallman <rms@gnu.org>
3165
3166 * doc/bison.texinfo: New file.
3167
31681993-05-07 Noah Friedman <friedman@gnu.org>
3169
3170 * Makefile.in: *** empty log message ***
3171
31721993-04-28 Noah Friedman <friedman@gnu.org>
3173
3174 * src/reader.c: *** empty log message ***
3175
31761993-04-23 Noah Friedman <friedman@gnu.org>
3177
3178 * src/alloc.h: entered into RCS
3179
31801993-04-20 David J. MacKenzie <djm@gnu.org>
3181
3182 * src/version.c: *** empty log message ***
3183
3184 * src/files.c, src/allocate.c:
3185 entered into RCS
3186
3187 * src/reader.c: *** empty log message ***
3188
3189 * src/lex.c: entered into RCS
3190
3191 * src/conflicts.c: New file.
3192
3193 * src/symtab.c: entered into RCS
3194
3195 * src/alloc.h: New file.
3196
3197 * src/LR0.c: entered into RCS
3198
31991993-04-18 Noah Friedman <friedman@gnu.org>
3200
3201 * src/reader.c: New file.
3202
3203 * src/version.c: *** empty log message ***
3204
32051993-04-18 Noah Friedman <friedman@gnu.org>
3206
3207 * Makefile.in: *** empty log message ***
3208
32091993-04-17 Noah Friedman <friedman@gnu.org>
3210
3211 * Makefile.in: *** empty log message ***
3212
32131993-04-15 Richard Stallman <rms@gnu.org>
3214
3215 * src/main.c, src/files.c:
3216 New file.
3217
32181993-04-15 Noah Friedman <friedman@gnu.org>
3219
3220 * configure.in: entered into RCS
3221
3222 * configure.in: *** empty log message ***
3223
3224 * configure.in: New file.
3225
32261993-04-14 Richard Stallman <rms@gnu.org>
3227
3228 * Makefile.in: New file.
3229
32301993-04-13 Richard Stallman <rms@gnu.org>
3231
3232 * src/version.c: New file.
3233
32341993-03-25 Richard Stallman <rms@gnu.org>
3235
3236 * src/output.c: entered into RCS
3237
32381992-09-25 Richard Stallman <rms@gnu.org>
3239
3240 * configure.bat: entered into RCS
3241
32421992-06-22 Richard Stallman <rms@gnu.org>
3243
3244 * src/vmsgetargs.c: entered into RCS
3245
32461992-06-22 Richard Stallman <rms@gnu.org>
3247
3248 * doc/bison.rnh: entered into RCS
3249
32501992-04-20 David J. MacKenzie <djm@gnu.org>
3251
3252 * README: entered into RCS
3253
32541992-01-22 Richard Stallman <rms@gnu.org>
3255
3256 * src/machine.h: entered into RCS
3257
32581991-12-21 Richard Stallman <rms@gnu.org>
3259
3260 * src/lalr.c, src/closure.c:
3261 entered into RCS
3262
32631991-12-20 Richard Stallman <rms@gnu.org>
3264
3265 * src/state.h: entered into RCS
3266
32671991-12-18 Richard Stallman <rms@gnu.org>
3268
3269 * src/print.c, src/nullable.c, src/derives.c:
3270 entered into RCS
3271
32721991-11-03 David J. MacKenzie <djm@gnu.org>
3273
3274 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
3275 entered into RCS
3276
32771988-09-09 Richard Stallman <rms@gnu.org>
3278
3279 * src/bison.hairy: entered into RCS
3280
32811987-12-16 Richard Stallman <rms@gnu.org>
3282
3283 * REFERENCES: entered into RCS