]> git.saurik.com Git - bison.git/blame - ChangeLog
ChangeLog: Adjust.
[bison.git] / ChangeLog
CommitLineData
957d4dbf
MA
12001-08-08 Marc Autret <autret_m@epita.fr>
2
3 * ChangeLog: Adjust.
4
600cad3b
MA
52001-08-08 Marc Autret <autret_m@epita.fr>
6
7 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
8 * src/vcg.c (output_node): Fix.
9 * src/vcg.h: Cleanup.
10 * src/print_graph.c: Add comments.
11 (node_output_size): New global variable. Simplify the formatting of
12 the VCG graph output.
13 (print_actions): Unused code is now used. It notifies the final state
14 and no action states in the VCG graph. It also give the reduce actions.
15 The `shift and goto' edges are red and the `go to state' edges are
16 blue.
17 Get the current node name and node_obstack by argument.
18 (node_obstack): New variable.
19 (print_state): Manage node_obstack.
20 (print_core): Use node_obstack given by argument.
21 A node is not only computed here but in print_actions also.
22 (print_graph): CPP out useless code instead of commenting it.
23
976e528f
AD
242001-08-07 Pascal Bart <pascal.bart@epita.fr>
25
26 * tests/atconfig.in (CPPFLAGS): Fix.
27
20e8e5ca
AD
282001-08-07 Akim Demaille <akim@epita.fr>
29
30 * src/print_graph.c (quote): New.
31 (print_core): Use it.
32
957d4dbf 332001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 34
3e3da797
AD
35 * src/vcg.c (complain.h): Include it.
36 Unepitaize `return' invocations.
c4b66126
AD
37 [NDEBUG] (main): Remove.
38 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * memebers.
39 * src/files.c (open_files): Initialize graph_obstack.
40 * src/print_graph.c (print_actions): CPP out useless code.
41 (print_core): Don't output the last `\n' in labels.
42 Use `quote'.
43 * src/files.c (output_files): Output the VCG file.
44 * src/main.c (main): Invoke print_graph ();
3e3da797 45
957d4dbf 462001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
47
48 Automaton VCG graph output.
49 Using option ``-g'' or long option ``--graph'', you can generate
50 a gram_filename.vcg file containing a VCG description of the LALR (1)
51 automaton of your grammar.
52
53 * src/main.c: Call to print_graph() function.
54 * src/getargs.h: Update.
55 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
56 (graph_flag): New flag.
57 (longopts): Update.
58 (getargs): Add case `g'.
59 * src/files.c (graph_obstack): New obstack struct.
60 (open_files): Initialize new obstack.
61 (output_files): Saves graph_obstack if required.
62 * src/files.h (graph_obstack): New extern declaration.
63 * src/Makefile.am: Add new source files.
64
957d4dbf 652001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
66
67 * src/print_graph.c, src/print_graph.h (graph): New.
68 * src/vcg.h: New file.
69 * src/vcg.c: New file, VCG graph handling.
70
7333d403
AD
712001-08-06 Marc Autret <autret_m@epita.fr>
72
73 Add of %source_extension and %header_extension which specify
74 the source or/and the header output file extension.
75
76 * src/files.c (compute_base_names): Remove initialisation of
77 src_extension and header_extension.
78 (compute_exts_from_gf): Update.
79 (compute_exts_from_src): Update.
80 (output_files): Update.
81 * src/reader.c (parse_header_extension_decl): New.
82 (parse_source_extension_decl): New.
83 (read_declarations): New case statements for the new tokens.
84 * src/lex.c (percent_table): Add entries for %source_extension
85 and %header_extension.
86 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
87
84163231
AD
882001-08-06 Marc Autret <autret_m@epita.fr>
89
90 * configure.in: Bump to 1.28c.
91 * doc/bison.texinfo: Texinfo thingies.
92
8303fc42
AD
932001-08-04 Pascal Bart <pascal.bart@epita.fr>
94
95 * tests/atconfig.in (CPPFLAGS): Add.
96 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
97
70a84437
AD
982001-08-03 Akim Demaille <akim@epita.fr>
99
100 Version 1.28b.
101
2ce10144
AD
1022001-08-03 Akim Demaille <akim@epita.fr>
103
104 * tests/Makefile.am (check-local): Ship testsuite.
105 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
106 Include `string.h'.
107
1e3e4bc1
AD
1082001-08-03 Akim Demaille <akim@epita.fr>
109
110 * configure.in: Try using -Wformat when compiling.
111
42b45b7f
AD
1122001-08-03 Akim Demaille <akim@epita.fr>
113
114 * configure.in: Bump to 1.28b.
115
8f13fe33
AD
1162001-08-03 Akim Demaille <akim@epita.fr>
117
118 * src/complain.c: Adjust strerror_r portability issues.
119
b37ba92c
AD
1202001-08-03 Akim Demaille <akim@epita.fr>
121
122 Version 1.28a.
123
b0ce6046
AD
1242001-08-03 Akim Demaille <akim@epita.fr>
125
126 * src/getargs.c, src/getarg.h (skeleton)): Constify.
127 * src/lex.c (literalchar): Avoid name clashes on `buf'.
128 * src/getargs.c: Include complain.h.
129 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
130 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
131
d01c415b
AD
1322001-08-03 Akim Demaille <akim@epita.fr>
133
134 * src/reader.c (readgram): Display hidden chars in error messages.
135
459dd1a6
AD
1362001-08-03 Akim Demaille <akim@epita.fr>
137
138 Update to gettext 0.10.39.
139
53b74c0c
AD
1402001-08-03 Akim Demaille <akim@epita.fr>
141
142 * lib/strspn.c: New.
143
234a3be3
AD
1442001-08-01 Marc Autret <autret_m@epita.fr>
145
146 * doc/bison.texinfo: Update.
147 * doc/bison.1 (mandoc): Update.
148 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
149 * src/files.c: Support output files extensions computing.
150 (src_extension): New static variable.
151 (header_extension): New static variable.
152 (tr): New function.
153 (get_extension_index): New function, gets the index of an extension
154 filename in a string.
155 (compute_exts_from_gf): New function, computes extensions from the
156 grammar file extension.
157 (compute_exts_from_src): New functions, computes extensions from the
158 C source file extension, file given by ``-o'' option.
159 (compute_base_names): Update.
160 (output_files): Update.
161
847bf1f5
AD
1622001-08-01 Robert Anisko <anisko_r@epita.fr>
163
d995fee7 164 * doc/bison.texi: Document @$.
847bf1f5
AD
165 (Locations): New section.
166
d074a105
AD
1672001-07-18 Akim Demaille <akim@epita.fr>
168
169 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
170 * config/prev-version.txt, config/move-if-change: New.
171 * Makefile.am: Adjust.
172
3419715d
AD
1732001-07-08 Pascal Bart <pascal.bart@epita.fr>
174
175 * src/bison.simple (yyparse): Suppress warning `comparaison
176 between signed and unsigned'.
177
62ab6972
AD
1782001-07-05 Pascal Bart <pascal.bart@epita.fr>
179
180 * src/getargs.h (raw_flag): Remove.
181 * src/getargs.c: Die on `-r'/`--raw'.
182 * src/lex.c (parse_percent_token): Die on `%raw'.
183 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
184 * tests/calc.at: Suppress test with option `--raw'.
185
1e24cc5b
AD
1862001-07-14 Akim Demaille <akim@epita.fr>
187
188 * config/: New.
189 * configure.in: Require Autoconf 2.50.
190 Update to gettext 0.10.38.
191
32dfccf8
AD
1922001-03-16 Akim Demaille <akim@epita.fr>
193
194 * doc/bison.texinfo: ANSIfy the examples.
195
cd5bd6ac
AD
1962001-03-16 Akim Demaille <akim@epita.fr>
197
198 * getargs.c (skeleton): New variable.
199 (longopts): --skeleton is a new option.
200 (shortopts, getargs): -S is a new option.
201 * getargs.h: Declare skeleton.
202 * output.c (output_parser): Use it.
203
5141b016
AD
2042001-03-16 Akim Demaille <akim@epita.fr>
205
206 * m4/strerror_r.m4: New.
207 * m4/error.m4: Run AC_FUNC_STRERROR_R.
208 * lib/error.h, lib/error.c: Update.
209
447992b9
AD
2102001-03-16 Akim Demaille <akim@epita.fr>
211
212 * src/getargs.c (longopts): Clean up.
213
274d42ce
AD
2142001-02-21 Akim Demaille <akim@epita.fr>
215
216 * src/reader.c (gensym): `gensym_count' is your own.
217 Use a static buf to create the symbol name, as token_buffer is no
218 longer a buffer.
219
22c821f3
AD
2202001-02-08 Akim Demaille <akim@epita.fr>
221
222 * src/conflicts.c (conflict_report): Be sure not to append to res
223 between two calls, which could happen if both first sprintf were
224 skipped, but not the first cp += strlen.
225
18569462
AD
2262001-02-08 Akim Demaille <akim@epita.fr>
227
228 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
229 New, from fileutils 4.0.37.
230 * configure.in: Require Autoconf 2.49c. I took some time before
231 making this decision. This is the only way out for portability
232 issues in Bison, it would mean way too much duplicate effort to
233 import in Bison features implemented in 2.49c since 2.13.
234 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
235
0d8f3c8a
AD
2362001-02-02 Akim Demaille <akim@epita.fr>
237
238 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 239 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 240
f17bcd1f
AD
2412001-01-19 Akim Demaille <akim@epita.fr>
242
243 Get rid of the ad hoc handling of token_buffer in the scanner: use
244 the obstacks.
245
246 * src/lex.c (token_obstack): New.
247 (init_lex): Initialize it. No longer call...
248 (grow_token_buffer): this. Remove it.
249 Adjust all the places which used it to use the obstack.
250
511e79b3
AD
2512001-01-19 Akim Demaille <akim@epita.fr>
252
253 * src/lex.h: Rename all the tokens:
254 s/\bENDFILE\b/tok_eof/g;
255 s/\bIDENTIFIER\b/tok_identifier/g;
256 etc.
257 Let them be enums, not #define, to ease debugging.
258 Adjust all the code.
259
0d6508ef
AD
2602001-01-18 Akim Demaille <akim@epita.fr>
261
262 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
263 * src/lex.c (maxtoken, grow_token_buffer): Static.
264
6deb4447
AD
2652001-01-18 Akim Demaille <akim@epita.fr>
266
267 Since we now use obstacks, more % directives can be enabled.
268
269 * src/lex.c (percent_table): Also accept `%yacc',
270 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
271 `%debug'.
272 Handle the actions for `%semantic_parser' and `%pure_parser' here,
273 instead of returning a token.
274 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
275 * src/reader.c (read_declarations): Adjust.
276 * src/files.c (open_files): Don't call `compute_base_names', don't
277 compute `attrsfile' since they depend upon data which might be
278 *in* the input file now.
279 (output_files): Do it here.
280 * src/output.c (output_headers): Document the fact that this patch
281 introduces a guaranteed SEGV for semantic parsers.
282 * doc/bison.texinfo: Document them.
283 * tests/suite.at: Exercise these %options.
284
ff4423cc
AD
2852000-12-20 Akim Demaille <akim@epita.fr>
286
287 Also handle the output file (--verbose) with obstacks.
288
289 * files.c (foutput): Remove.
290 (output_obstack): New.
291 Adjust all dependencies.
292 * src/conflicts.c: Return a string.
293 * src/system.h (obstack_grow_string): Rename as...
294 (obstack_sgrow): this. Be ready to work with non literals.
295 (obstack_fgrow4): New.
296
956dba3a
AD
2972000-12-20 Akim Demaille <akim@epita.fr>
298
299 * src/files.c (open_files): Fix the computation of short_base_name
300 in the case of `-o foo.tab.c'.
301
337bab46
AD
3022000-12-20 Akim Demaille <akim@epita.fr>
303
304 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
305 (copy_dollar): Now that everything uses obstacks, get rid of the
306 FILE * parameters.
307
5d3214b8
AD
3082000-12-20 Akim Demaille <akim@epita.fr>
309
310 * src/files.c (open_files): Actually the `.output' file is based
311 on the short_base_name, not base_name.
312 * tests/suite.at (Checking output file names): Adjust.
313
29092a57
AD
3142000-12-20 Akim Demaille <akim@epita.fr>
315
316 * src/bison.s1: Remove, we now use directly...
317 * src/bison.simple: this.
318 * src/Makefile.am: Use pkgdata instead of data.
319
ea5607fd
AD
3202000-12-20 Akim Demaille <akim@epita.fr>
321
322 * src/files.c (guard_obstack): New.
323 (open_files): Initialize it.
324 (output_files): Dump it...
325 * src/files.h: Export it.
326 * src/reader.c (copy_guard): Use it.
327
27110317
AD
3282000-12-19 Akim Demaille <akim@epita.fr>
329
330 * src/files.c (outfile, defsfile, actfile): Removed as global
331 vars.
332 (open_files): Don't compute them.
333 (output_files): Adjust.
334 (base_name, short_base_name): Be global.
335 Adjust dependencies.
336
19c50364
AD
3372000-12-19 Akim Demaille <akim@epita.fr>
338
339 * src/files.c (strsuffix): New.
340 (stringappend): Be just like strcat but allocate.
341 (base_names): Eve out from open_files.
342 Try to simplify the rather hairy computation of base_name and
343 short_base_name.
344 (open_files): Use it.
345 * tests/suite.at (Checking output file names): New test.
346
573c1d9f
AD
3472000-12-19 Akim Demaille <akim@epita.fr>
348
349 * src/system.h (obstack_grow_literal_string): Rename as...
350 (obstack_grow_string): this.
351 * src/output.c (output_parser): Recognize `%% actions' instead of
352 `$'.
353 * src/bison.s1: s/$/%% actions/.
354 * src/bison.hairy: Likewise.
355
ef7ddedd
AD
3562000-12-19 Akim Demaille <akim@epita.fr>
357
358 * src/output.c (output_parser): Compute the `#line' lines when
359 there are.
360 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
361 Suggested by Hans Aberg.
362
ff61dabd
AD
3632000-12-19 Akim Demaille <akim@epita.fr>
364
365 Let the handling of the skeleton files be local to the procedures
366 that use it.
367
368 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
369 longer static.
370 (fparser, open_extra_files): Remove.
371 (open_files, output_files): Don't take care of fparser.
372 * src/files.h: Adjust.
373 * src/output.c (output_parser): Open and close the file to the
374 skeleton.
375 * src/reader.c (read_declarations): When %semantic_parser, open
376 fguard.
377
55b96341
AD
3782000-12-19 Akim Demaille <akim@epita.fr>
379
380 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
381 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
382
358c15b7
AD
3832000-12-19 Akim Demaille <akim@epita.fr>
384
385 * src/files.c (open_files): Yipee! We no longer need all the code
386 looking for `/tmp' since we have no tmp file.
387
7de3329e
AD
3882000-12-19 Akim Demaille <akim@epita.fr>
389
390 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
391 New macros.
392 * src/files.c (open_files): Less dependency on MSDOS etc.
393
3abcd459
AD
3942000-12-14 Akim Demaille <akim@epita.fr>
395
396 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
397 Provide a default definition.
398 Use it when executing the default @ action.
399 * src/reader.c (reader_output_yylsp): No longer include
400 `timestamp' and `text' in the default YYLTYPE.
401
2a91a95e
AD
4022000-12-12 Akim Demaille <akim@epita.fr>
403
404 * src/reader.c (copy_definition, parse_union_decl, copy_action)
405 (copy_guard): Quote the file names.
406 Reported by Laurent Mascherpa.
407
14d3eb9b
AD
4082000-12-12 Akim Demaille <akim@epita.fr>
409
410 * src/output.c (output_headers, output_program, output): Be sure
411 to escape special characters when outputting filenames.
412 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
413 (output_headers): Don't depend on them, Use ACTSTR.
414
d7045ec6
AD
4152000-11-17 Akim Demaille <akim@epita.fr>
416
417 * lib/obstack.h: Formatting changes.
418 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
419 prevents type checking.
420 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
421 cast the value to (void *): assigning a `foo *' to a `void *'
422 variable is valid.
423 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
424 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
425 append characters.
426
6fd54b73
AD
4272000-11-17 Akim Demaille <akim@epita.fr>
428
429 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
430 as...
431 (suite.m4, regression.m4, calc.m4): these.
432 * tests/atgeneral.m4: Update from CVS Autoconf.
433
4c50eae6
AD
4342000-11-17 Akim Demaille <akim@epita.fr>
435
436 * tests/regression.m4 (%union and --defines): New test,
437 demonstrating a current bug in the obstack implementation.
438
a35f64ea
AD
4392000-11-17 Akim Demaille <akim@epita.fr>
440
441 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
442 macros.
443 Use them to declare the variables which are global or local to
444 `yyparse'.
445
7de23534
AD
4462000-11-17 Akim Demaille <akim@epita.fr>
447
448 * acconfig.h: Remove, no longer used.
449
aa7815f5
AD
4502000-11-07 Akim Demaille <akim@epita.fr>
451
452 * src: s/Copyright (C)/Copyright/g.
453
5af1f549
AD
4542000-11-07 Akim Demaille <akim@epita.fr>
455
456 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
457 defining.
458 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
459
553e2b22
AD
4602000-11-07 Akim Demaille <akim@epita.fr>
461
462 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
463 Merge in a single CPP if/else.
464
8a4f41d6
AD
4652000-11-07 Akim Demaille <akim@epita.fr>
466
467 * src/output.c (output): Remove useless variables.
468 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
469 argument `data' for consistency with the prototypes.
470 Qualify it `const'.
471 (obstack_copy, obstack_copy0): Rename the second argument as
472 `address' for consistency. Qualify it `const'.
473 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
474 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
475 `const' their input argument (`data' or `address').
476 Adjust the corresponding macros to include `const' in casts.
477
095a3fb5
AD
4782000-11-03 Akim Demaille <akim@epita.fr>
479
480 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
481 s/PFILE1/BISON_HAIRY/.
482 Adjust dependencies.
483
d1cdce7c
AD
4842000-11-03 Akim Demaille <akim@epita.fr>
485
090c5ebf 486 For some reason, this was not applied.
d1cdce7c
AD
487
488 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
489 `unlink': it's no longer used.
490
9311529b
AD
4912000-11-03 Akim Demaille <akim@epita.fr>
492
493 * src/files.c (skeleton_find): New function, eved out of...
494 (open_files, open_extra_files): here.
495
d8880f69
AD
4962000-11-03 Akim Demaille <akim@epita.fr>
497
498 Don't use `atexit'.
499
500 * src/files.c (obstack_save): New function.
501 (done): Rename as...
502 (output_files): this.
503 Use `obstack_save'.
504 * src/main.c (main): Don't use `atexit' to register `done', since
505 it no longer has to remove tmp files, just call `output_files'
506 when there are no errors.
507
0dbb648e
AD
5082000-11-02 Akim Demaille <akim@epita.fr>
509
510 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
511 `unlink': it's no longer used.
512 * src/files.h: Formatting changes.
513
896fe5c1
AD
5142000-11-02 Akim Demaille <akim@epita.fr>
515
516 Remove the last uses of mktemp and unlink/delete.
517
518 * src/files.c (fdefines, ftable): Removed.
519 (defines_ostack, table_obstack): New.
520 Adjust dependencies of the former into uses of the latter.
521 * src/output.c (output_short_or_char_table, output_short_table):
522 Convert to using obstacks.
523 * src/reader.c (copy_comment2): Accept one FILE * and two
524 obstacks.
525 (output_token_defines, reader_output_yylsp): Use obstacks.
526 * src/system.h (obstack_fgrow3): New.
527
dd60faec
AD
5282000-11-01 Akim Demaille <akim@epita.fr>
529
530 Change each use of `fattrs' into a use of `attrs_obstack'.
531
532 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
533 * src/files.c (fattrs): Remove.
534 (attrs_obstack): New.
535 Adjust all dependencies.
536 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
537
8c7ebe49
AD
5382000-11-01 Akim Demaille <akim@epita.fr>
539
540 Introduce obstacks.
541 Change each use of `faction' into a use of `action_obstack'.
542
543 * lib/obstack.h, lib/obstack.c: New files.
544 * src/files.c (faction): Remove.
545 (action_obstack): New.
546 Adjust all dependencies.
547
77aee789
AD
5482000-10-20 Akim Demaille <akim@epita.fr>
549
550 * lib/quote.h (PARAMS): New macro. Use it.
551
43591cec
AD
5522000-10-16 Akim Demaille <akim@epita.fr>
553
554 * src/output.c (output_short_or_char_table): New function.
555 (output_short_table, output_token_translations): Use it.
556 (goto_actions): Use output_short_table.
557
1e9798d5
AD
5582000-10-16 Akim Demaille <akim@epita.fr>
559
560 * src/symtab.c (bucket_new): New function.
561 (getsym): Use it.
562
563 * src/output.c (output_short_table): New argument to display the
564 comment associated with the table.
565 Adjust dependencies.
566 (output_gram): Use it.
567 (output_rule_data): Nicer output layout for YYTNAME.
568
f282676b
AD
5692000-10-16 Akim Demaille <akim@epita.fr>
570
571 * src/lex.c (read_typename): New function.
572 (lex): Use it.
573 * src/reader.c (copy_dollar): Likewise.
574
550a72a3
AD
5752000-10-16 Akim Demaille <akim@epita.fr>
576
577 * src/reader.c (copy_comment2): Expect the input stream to be on
578 the `/' which is suspected to open a comment, instead of being
579 called after `//' or `/*' was read.
580 (copy_comment, copy_definition, parse_union_decl, copy_action)
581 (copy_guard): Adjust.
582
131e2fef
AD
5832000-10-16 Akim Demaille <akim@epita.fr>
584
585 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
586 `read_signed_integer'.
587
79282c5a
AD
5882000-10-16 Akim Demaille <akim@epita.fr>
589
590 * src/reader.c (copy_dollar): New function.
591 (copy_guard, copy_action): Use it.
592
ff4a34be
AD
5932000-10-16 Akim Demaille <akim@epita.fr>
594
595 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
596 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
597 New files, from Fileutils 4.0.27.
598 * src/main.c (printable_version): Remove.
599 * src/lex.c, src/reader.c: Use `quote'.
600
6012000-10-04 Akim Demaille <akim@epita.fr>
602
603 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
604
14ded682
AD
6052000-10-04 Akim Demaille <akim@epita.fr>
606
607 * doc/bison.texinfo: Various typos spotted by Neil Booth.
608
8e03724b
AD
6092000-10-04 Akim Demaille <akim@epita.fr>
610
611 When a literal string is used to define two different tokens,
612 `bison -v' segfaults.
613 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
614
615 * tests/regression.m4: New file.
616 Include the core of the sample provided by Piotr Gackiewicz.
617 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
618 properly.
619
a9e64249
AD
6202000-10-04 Akim Demaille <akim@epita.fr>
621
622 * src/reader.c (parse_expect_decl): Keep `count' within the size
623 of `buffer'.
624 From Neil Booth.
625
da9abf43
AD
6262000-10-02 Paul Eggert <eggert@twinsun.com>
627
628 * bison.s1 (yyparse): Assign the default value
629 unconditionally, to avoid a GCC warning and make the parser a
630 tad smaller.
631
c33638bb
AD
6322000-10-02 Akim Demaille <akim@epita.fr>
633
634 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
635 options.
636
444c570a
AD
6372000-10-02 Akim Demaille <akim@epita.fr>
638
639 * src/derives.c, src/print.c, src/reduce.c: To ease the
640 translation, move some `\n' out of the translated strings.
641
89cab50d
AD
6422000-10-02 Akim Demaille <akim@epita.fr>
643
644 The location tracking mechanism is precious for parse error
645 messages. Nevertheless, it is enabled only when `@n' is used in
646 the grammar, which is a different issue (you can use it in error
647 message, but not in the grammar per se). Therefore, there should
648 be another means to enable it.
649
650 * src/getargs.c (getargs): Support `--locations'.
651 (usage): Report it.
652 * src/getargs.h (locationsflag): Export it.
653 * src/lex.c (percent_table): Support `%locations'.
654 * src/reader.c (yylsp_needed): Remove this variable, now replaced
655 with `locationsflag'.
656 * doc/bison.texinfo: Document `--locations' and `%locations'.
657 Sort the options.
658 * tests/calc.m4: Test it.
659
660 For regularity of the names, replace each
661 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
662 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
663 In addition replace each `flag' with `_flag'.
664
d6c2cba0
AD
6652000-10-02 Akim Demaille <akim@epita.fr>
666
667 Also test parse error messages, including with YYERROR_VERBOSE.
668
669 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
670 associative).
671 Use it to check the computations.
672 Use it to check `nonassoc' is honored.
673 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
674 `--yyerror-verbose'.
675 (_AT_CHECK_CALC): Adjust to this option.
676 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
677
5a35a6cb
AD
6782000-10-02 Akim Demaille <akim@epita.fr>
679
680 Test also `--verbose', `--defines' and `--name-prefix'. Testing
681 the latter demonstrates a flaw in the handling of non debugging
682 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
683 was used in order to simplify:
684
685 #if YYDEBUG
686 if (yydebug)
687 {
688 ...
689 }
690 #endif
691
692 into
693
694 if (yydebug)
695 {
696 ...
697 }
698
699 unfortunately this leads to a CPP conflict when
700 `--name-prefix=foo' is used since it produces `#define yydebug
701 foodebug'.
702
703 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
704 (YYDPRINTF): New macro.
705 Spread its use.
706 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
707 the bison options.
708 Also test `--verbose', `--defines' and `--name-prefix'.
709
71da9eea
AD
7102000-10-02 Akim Demaille <akim@epita.fr>
711
712 Improve the readability of the produced parsers.
713
714 * src/bison.s1: Formatting changes.
715 Improve the comment related to the `$' mark.
716 (yydefault): Don't fall through to `yyresume': `goto' there.
717 * src/output.c (output_parser): When the `$' is met, skip the end
718 of its line.
719 New variable, `number_of_dollar_signs', to check there's exactly
720 one `$' in the parser skeleton.
721
95e36146
AD
7222000-10-02 Akim Demaille <akim@epita.fr>
723
724 * lib/xstrdup.c: New file, from the fileutils.
725 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
726 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
727 instead of strlen + xmalloc + strcpy.
728 * src/symtab.c (copys): Remove, use xstrdup instead.
729
d7020c20
AD
7302000-10-02 Akim Demaille <akim@epita.fr>
731
732 * src/gram.h (associativity): New enum type which replaces the
733 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
734 `right_assoc', `left_assoc' and `non_assoc'.
735 Adjust all dependencies.
736 * src/reader.c: Formatting changes.
737 (LTYPESTR): Don't define it, use it as a literal in
738 `reader_output_yylsp'.
739 * src/symtab.h (symbol_class): New enum type which replaces the
740 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
741 `sunknown', `stoken and `snterm'.
742
1916f98e
AD
7432000-10-02 Akim Demaille <akim@epita.fr>
744
745 * src/getargs.c (fixed_outfiles): Rename as...
746 (yaccflag): for consistency and accuracy.
747 Adjust dependencies.
748
d7913476
AD
7492000-10-02 Akim Demaille <akim@epita.fr>
750
751 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
752 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
753 difficult and introduced a lot of core dump. It turns out that
754 Bison used an implementation of `xmalloc' based on `calloc', and
755 at various places it does depend upon the initialization to 0. I
756 have not tried to isolate the pertinent places, and all the former
757 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
758 someone should address this issue.
759
760 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
761 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
762 files.
763 Adjust dependencies.
764 * src/warshall.h: New file.
765 Propagate.
766
340ef489
AD
7672000-10-02 Akim Demaille <akim@epita.fr>
768
769 Various anti-`extern in *.c' changes.
770
771 * src/system.h: Include `assert.h'.
772
b2ca4022
AD
7732000-10-02 Akim Demaille <akim@epita.fr>
774
775 * src/state.h (nstates, final_state, first_state, first_shift)
776 (first_reduction): Move their exportation from here...
777 * src/LR0.h: to here.
778 Adjust dependencies.
779 * src/getargs.c (statisticsflag): New variable.
780 Add support for `--statistics'.
781 Adjust dependencies.
782
783 Remove a lot of now useless `extern' statements in most files.
784
403b315b
AD
7852000-10-02 Akim Demaille <akim@epita.fr>
786
787 * src/LR0.h: New file.
788 Propagate its use.
789
07a58c13
AD
7902000-10-02 Akim Demaille <akim@epita.fr>
791
792 * src/print.h: New file.
793 Propagate its use.
794 * src/print.c: Formatting and ordering changes.
795 (verbose, terse): Replace with...
796 (print_results): this new function.
797 Adjust dependencies.
798
0619caf0
AD
7992000-10-02 Akim Demaille <akim@epita.fr>
800
801 * src/conflicts.c (conflict_report): New function.
802 (conflict_log, verbose_conflict_log): Replace with...
803 (print_conflicts): this function.
804 Adjust dependencies.
805 * src/conflicts.h: New file.
806 Propagate its inclusion.
807
3519ec76
AD
8082000-10-02 Akim Demaille <akim@epita.fr>
809
810 * src/nullable.h: New file.
811 Propagate its inclusion.
812 * src/nullable.c: Formatting changes.
813
015acc48
AD
8142000-10-02 Akim Demaille <akim@epita.fr>
815
816 * src/reduce.h: New file.
817 Propagate its inclusion.
818 * src/reduce.c: Topological sort and other formatting changes.
819 (bool, TRUE, FALSE): Move their definition to...
820 * src/system.h: here.
821
8963a27b
AD
8222000-10-02 Akim Demaille <akim@epita.fr>
823
824 * src/files.c: Formatting changes.
825 (tryopen, tryclose, openfiles): Rename as...
826 (xfopen, xfclose, open_files): this.
827 (stringappend): static.
828 * src/files.h: Complete the list of exported symbols.
829 Propagate its use.
830
a70083a3
AD
8312000-10-02 Akim Demaille <akim@epita.fr>
832
833 * src/reader.h: New file.
834 Propagate its use instead of tedious list of `extern' and
835 prototypes.
836 * src/reader.c: Formatting changes, topological sort,
837 s/register//.
838
abadc117
AD
8392000-10-02 Akim Demaille <akim@epita.fr>
840
841 * src/lex.h: Prototype `lex.c' exported functions.
842 * src/reader.c: Adjust.
843 * src/lex.c: Formatting changes.
844 (safegetc): Rename as...
845 (xgetc): this.
846
720d742f
AD
8472000-10-02 Akim Demaille <akim@epita.fr>
848
849 * src/lalr.h: New file.
850 Propagate its inclusion instead of prototypes and `extern'.
851 * src/lalr.c: Formatting changes, topological sorting etc.
852
f2acea59
AD
8532000-10-02 Akim Demaille <akim@epita.fr>
854
855 * src/output.c (token_actions): Introduce a temporary array,
856 YYDEFACT, that makes it possible for this function to use
857 output_short_table.
858
d019d655
AD
8592000-10-02 Akim Demaille <akim@epita.fr>
860
861 `user_toknums' is output as a `short[]' in `output.c', while it is
862 defined as a `int[]' in `reader.c'. For consistency with the
863 other output tables, `user_toknums' is now defined as a table of
864 shorts.
865
866 * src/reader.c (user_toknums): Be a short table instead of an int
867 table.
868 Adjust dependencies.
869
870 Factor the short table outputs.
871
872 * src/output.c (output_short_table): New function.
873 * src/output.c (output_gram, output_stos, output_rule_data)
874 (output_base, output_table, output_check): Use it.
875
6c89f1c1
AD
8762000-10-02 Akim Demaille <akim@epita.fr>
877
878 * src/output.c (output): Topological sort of the functions, in
879 order to get rid of the `static' prototypes.
880 No longer use `register'.
881 * src/output.h: New file.
882 Propagate its inclusion in files explicitly prototyping functions
883 from output.c.
884
d9efd181
AD
8852000-09-21 Akim Demaille <akim@epita.fr>
886
887 * src/atgeneral.m4: Update from Autoconf.
888
c29240e7 8892000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
890
891 * src/closure.h: New file.
892 * src/closure.c: Formatting changes, topological sort over the
893 functions, use of closure.h.
894 (initialize_closure, finalize_closure): Rename as...
895 (new_closure, free_closure): these. Adjust dependencies.
896 * src/LR0.c: Formatting changes, topological sort, use of
897 cloture.h.
898 (initialize_states): Rename as...
899 (new_states): this.
900 * src/Makefile.am (noinst_HEADERS): Adjust.
901
499daa50
AD
9022000-09-20 Akim Demaille <akim@epita.fr>
903
904 * src/acconfig.h: Don't protect config.h against multiple
905 inclusion.
906 Don't define PARAMS.
907 * src/system.h: Define PARAMS.
908 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
909 purpose of config.h. system.h must not try to fix wrong
910 definitions in config.h.
911
cc84fd5d
AD
9122000-09-20 Akim Demaille <akim@epita.fr>
913
914 * src/derives.h: New file.
915 * src/main.c, src/derives.h: Use it.
916 Formatting changes.
917 * src/Makefile.am (noinst_HEADERS): Adjust.
918
db5b3a89
AD
9192000-09-20 Akim Demaille <akim@epita.fr>
920
921 * tests/atgeneral.m4: Update from Autoconf.
922 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
923 (AT_CHECK_CALC): New macros.
924 Use these macros to test bison with options `', `--raw',
925 `--debug', `--yacc', `--yacc --debug'.
926
ceed8467
AD
9272000-09-19 Akim Demaille <akim@epita.fr>
928
929 * src/output.c: Formatting changes.
930 * src/machine.h: Remove, leaving its contents in...
931 * src/system.h: here.
932 Include stdio.h.
933 Adjust all dependencies on stdio.h and machine.h.
934 * src/getargs.h: New file.
935 Let all `extern' declarations about getargs.c be replaced with
936 inclusion of `getargs.h'.
937 * src/Makefile.am (noinst_HEADERS): Adjust.
938
939 * tests/calc.m4 (yyin): Be initialized in main, not on the global
940 scope.
941 (yyerror): Returns void, not int.
942 * doc/bison.texinfo: Formatting changes.
943
05a1d24b
AD
9442000-09-19 Akim Demaille <akim@epita.fr>
945
946 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
947 portable.
948
cbd25751
AD
9492000-09-18 Akim Demaille <akim@epita.fr>
950
951 * configure.in: Append WARNING_CFLAGS to CFLAGS.
952 * src/Makefile.am (INCLUDES): Don't.
953 Be ready to fetch headers in lib/.
954
13863333
AD
9552000-09-18 Akim Demaille <akim@epita.fr>
956
957 * doc/bison.texinfo: Update the copyright.
958 ANSIfy and GNUify the examples.
959 Remove the old menu.
960
0d533154
AD
9612000-09-18 Akim Demaille <akim@epita.fr>
962
963 First set of tests: use the `calc' example from the documentation.
964
965 * src/bison.s1 (yyparse): Condition the code using `yytname' which
966 is defined only when YYDEBUG is.
967 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
968 * src/files.c (tryopen, tryclose): Formatting changes.
969 Move to the top and be static.
970 * src/reader.c (read_signed_integer): Likewise.
971 * tests/calc.m4: New file.
972 * Makefile.am, suite.m4: Adjust.
973 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
974
e79137ac
AD
9752000-09-18 Akim Demaille <akim@epita.fr>
976
977 Add support for an Autotest test suite for Bison.
978
979 * m4/m4.m4, m4/atconfig.m4: New files.
980 * m4/Makefile.am (EXTRA_DIST): Adjust.
981 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
982 files.
983 * src/getargs.c: Display a more standard --version message.
984 * src/reader.c (reader): Formatting changes.
985 No longer depend upon VERSION_STRING.
986 * configure.in: No longer use `dnl'.
987 Set up the test suite and the new directory `tests/.
988 (VERSION_STRING): Remove.
989
27821bff
AD
9902000-04-14 Akim Demaille <akim@epita.fr>
991
992 * src/reader.c (copy_comment2): New function, same as former
993 `copy_comment', but outputs into two FILE *.
994 (copy_comment): Use it.
995 (parse_union_decl): Use it.
996 (get_type, parse_start_decl): Use the same `invalid' message.
997 (parse_start_decl, parse_union_decl): Use the same `multiple'
998 message.
999 (parse_union_decl, copy_guard, copy_action): Use the same
1000 `unmatched' message.
1001 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1002
cfe5fbc0
AD
10032000-03-31 Akim Demaille <akim@epita.fr>
1004
1005 * src/files.c (tryopen, tryclose): Move to the top.
1006 Be static.
1007
cb7db13e
AD
10082000-03-31 Akim Demaille <akim@epita.fr>
1009
1010 * src/main.c (main): Don't call `done', exit does it.
1011
a0f6b076
AD
10122000-03-31 Akim Demaille <akim@epita.fr>
1013
36281465
AD
1014 * allocate.c: s/return (foo)/return foo/.
1015 * lalr.c: Likewise.
1016 * LR0.c: Likewise.
1017 * output.c: Likewise.
1018 * reader.c: Likewise.
1019 * symtab.c: Likewise.
1020 * vmsgetargs.c: Likewise.
1021
10222000-03-31 Akim Demaille <akim@epita.fr>
1023
1024 Clean up the error reporting functions.
a0f6b076
AD
1025
1026 * src/report.c: New file.
1027 * src/report.h: Likewise.
1028 * src/Makefile.am: Adjust.
1029 * m4/error.m4: New file.
1030 * m4/Makefile.am: Adjust.
1031 * configure.in (jm_PREREQ_ERROR): Call it.
1032 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1033 Remove.
1034 (fatal, fatals): Remove. All callers use complain.c::fatal.
1035 (warn, warni, warns, warnss, warnss): Remove. All callers use
1036 complain.c::complain.
1037 (toomany): Remove, use fatal instead.
1038 * src/files.c (done): No argument, use complain_message_count.
1039 * src/main.c (main): Register `done' to `atexit'.
1040
1041 * src/getargs.c (usage): More `fputs', less `fprintf'.
1042
18539825
AD
10432000-03-28 Akim Demaille <akim@epita.fr>
1044
1045 * lib/: New directory.
1046 * Makefile.am (SUBDIRS): Adjust.
1047 * configure.in: Adjust.
1048 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1049 useless.
1050 * src/alloca.c: Moved to lib/.
1051 * src/getopt.c: Likewise.
1052 * src/getopt1.c: Likewise.
1053 * src/getopt.h: Likewise.
1054 * src/ansi2knr.c: Likewise.
1055 * src/ansi2knr.1: Likewise.
1056 * src/Makefile.am: Adjust.
1057 * lib/Makefile.am: New file.
1058
9f306f2a
AD
10592000-03-28 Akim Demaille <akim@epita.fr>
1060
1061 * src/getargs.c (usage): Refresh the help message.
1062
0ba347b6
AD
10632000-03-17 Akim Demaille <akim@epita.fr>
1064
1065 * src/getopt1.c: Updated from textutils 2.0e
1066 * src/getopt.c: Likewise.
1067 * src/getopt.h: Likewise.
1068
dbe7f271
AD
10692000-03-17 Akim Demaille <akim@epita.fr>
1070
1071 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1072 the file name, not the whole `#line LINE FILE'.
1073
75bbe78d
AD
10742000-03-17 Akim Demaille <akim@epita.fr>
1075
1076 On syntax errors, report the token on which we choked.
1077
aa5fd0ee
AD
1078 * src/bison.s1 (yyparse): In the label yyerrlab, when
1079 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1080
7b306f52
AD
10812000-03-17 Akim Demaille <akim@epita.fr>
1082
aa5fd0ee 1083 * src/reader.c (copy_at): New function.
7b306f52
AD
1084 (copy_guard): Use it.
1085 (copy_action): Use it.
1086
e87b5700
AD
10872000-03-17 Akim Demaille <akim@epita.fr>
1088
1089 Be kind to translators, save some useless translations.
1090
aa5fd0ee 1091 * src/main.c (banner): New function.
e87b5700
AD
1092 (fatal_banner): Use it.
1093 (warn_banner): Use it.
1094
ae3c3164
AD
10952000-03-17 Akim Demaille <akim@epita.fr>
1096
aa5fd0ee
AD
1097 * src/reader.c (copy_definition): Use copy_string and
1098 copy_comment. Removed now unused `match', `ended',
1099 `cplus_comment'.
ae3c3164
AD
1100 (copy_comment, copy_string): Moved, to be visible from
1101 copy_definition.
1102
4dc58e7c
AD
11032000-03-17 Akim Demaille <akim@epita.fr>
1104
aa5fd0ee
AD
1105 * src/reader.c (copy_string): Declare `static inline'. No
1106 problems with inline, since it is checked by configure.
4dc58e7c
AD
1107 (copy_comment): Likewise.
1108
0a6384c4
AD
11092000-03-17 Akim Demaille <akim@epita.fr>
1110
aa5fd0ee 1111 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1112
3cef001a
AD
11132000-03-17 Akim Demaille <akim@epita.fr>
1114
aa5fd0ee 1115 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1116 (copy_action): Use it. Removed now unused `match', `ended',
1117 `cplus_comment'.
1118 (copy_guard): Likewise.
1119
ca36d2ef
AD
11202000-03-17 Akim Demaille <akim@epita.fr>
1121
aa5fd0ee 1122 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1123 (copy_action): Use it.
1124 (copy_guard): Likewise.
1125
6666f98f
AD
11262000-03-17 Akim Demaille <akim@epita.fr>
1127
1128 Change the handling of @s so that they behave exactly like $s.
1129 There is now a pseudo variable @$ (readble and writable), location
1130 of the lhs of the rule (by default ranging from the location of
1131 the first symbol of the rhs, to the location of the last symbol,
1132 or, if the rhs is empty, YYLLOC).
1133
1134 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1135 yyval.
1136 (yyparse): When providing a default semantic action, provide a
1137 default location action.
1138 (after the $): No longer change `*YYLSP', just stack YYLOC the
1139 same way you stack YYVAL.
1140 * src/reader.c (read_declarations): Use warns.
1141 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1142 (copy_action, case '@'): Likewise.
1143 Use a standard error message, to save useless work from
1144 translators.
1145
41aca2e0
AD
11462000-03-17 Akim Demaille <akim@epita.fr>
1147
aa5fd0ee
AD
1148 * src/bison.s1: Formatting and cosmetics changes.
1149 * src/reader.c: Likewise.
41aca2e0
AD
1150 Update the Copyright notice.
1151
dc08c1d5
AD
11522000-03-17 Akim Demaille <akim@epita.fr>
1153
aa5fd0ee
AD
1154 * src/bison.s1 (#line): All set to `#line' only, since the
1155 Makefile now handles them.
dc08c1d5 1156
9ee3c97b
AD
11572000-03-16 Akim Demaille <akim@epita.fr>
1158
1159 * src/output.c (output_rule_data): Output the documentation of
1160 some of the tables.
1161 (Copyright notice): Update.
1162 Formatting changes.
1163
0de741ca
AD
11642000-03-16 Akim Demaille <akim@epita.fr>
1165
1166 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1167 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1168 One `#if YYDEBUG' remains, since it uses variables which are
1169 defined only if `YYDEBUG != 0'.
1170
bb10be54
AD
11712000-03-16 Akim Demaille <akim@epita.fr>
1172
1173 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1174 and related variables so that the similarities are highlighted.
1175
b07b484a
AD
11762000-03-16 Akim Demaille <akim@epita.fr>
1177
1178 * src/bison.s1: Properly indent CPP directives.
1179
361f60b3
AD
11802000-03-16 Akim Demaille <akim@epita.fr>
1181
1182 * src/bison.s1: Properly indent the `alloca' CPP section.
1183
8c44d3ec
AD
11842000-03-16 Akim Demaille <akim@epita.fr>
1185
1186 Do not hard code values of directories in `configure.in'.
1187 Update the `configure' tool chain.
1188
1189 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1190 src/makefile.am.
1191 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1192 (AC_OUTPUT): Add m4/Makefile.
1193 Bump to bison 1.28a, 1.29 has never been released.
1194 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1195 handled via src/Makefile.am.
1196 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1197 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1198 autoheader.
1199 * Makefile.am (SUBDIRS): Add m4.
1200 (ACLOCAL_AM_FLAGS): New variable.
1201 (AUTOMAKE_OPTIONS): Add check-news.
1202 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1203 the proper line number and file name.
1204 (DEFS): Propagate the location of bison library files and of the
1205 locale files.
1206 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1207 builddir.
1208 * acinclude.m4: Remove, replaced by the directory m4.
1209 * m4/Makefile.am (EXTRA_DIST): New variable.
1210 * m4/gettext.m4: New file, from the fileutils.
1211 * m4/lcmessage.m4: Likewise
1212 * m4/progtest.m4: Likewise.
1213 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1214
f95997e7
AD
12152000-03-10 Akim Demaille <akim@epita.fr>
1216
1217 * src/closure.c:
1218 Formatting changes of various comments.
1219 Respect the GNU coding standards at various places.
1220 Don't use `_()' when no translation is needed.
1221
12221999-12-13 Jesse Thilo <jthilo@gnu.org>
1223
1224 * src/files.c:
1225 OS/2 honors TMPDIR environment variable.
1226
12271999-12-13 Jesse Thilo <jthilo@gnu.org>
1228
1229 * doc/bison.texinfo: Tweaked spelling and grammar.
1230 Updated ISBN.
1231 Removed reference to price of printed copy.
1232 Mention BISON_SIMPLE and BISON_HAIRY.
1233
12341999-12-13 Jesse Thilo <jthilo@gnu.org>
1235
1236 * configure.in, NEWS:
1237 Bison 1.29 released.
1238
12391999-10-27 Jesse Thilo <jthilo@gnu.org>
1240
1241 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1242 Added reference card.
1243
12441999-07-26 Jesse Thilo <jthilo@gnu.org>
1245
1246 * po/ru.po: Added Russian translation.
1247
12481999-07-26 Jesse Thilo <jthilo@gnu.org>
1249
1250 * configure.in: Added Russian translation.
1251
12521999-07-06 Jesse Thilo <jthilo@gnu.org>
1253
1254 * configure.in, NEWS, README:
1255 Released version 1.28.
1256
12571999-06-14 Jesse Thilo <jthilo@gnu.org>
1258
1259 * src/system.h:
1260 Squashed redefinition warning on some systems.
1261
1262 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1263 Have configure build version string instead of relying on ANSI string
1264 concatentation.
1265
12661999-06-14 Jesse Thilo <jthilo@gnu.org>
1267
1268 * po/POTFILES.in: Got rid of version.c.
1269
12701999-06-14 Jesse Thilo <jthilo@gnu.org>
1271
1272 * acconfig.h, configure.in:
1273 Have configure build version string instead of relying on ANSI string
1274 concatentation.
1275
12761999-06-08 Jesse Thilo <jthilo@gnu.org>
1277
1278 * doc/bison.1:
1279 Dropped mention of `+' for long-named options.
1280
12811999-05-30 Jesse Thilo <jthilo@gnu.org>
1282
1283 * src/files.c: Added <unistd.h> for unlink().
1284
1285 * src/Makefile.am, src/system.h:
1286 I18n fixes.
1287
12881999-05-30 Jesse Thilo <jthilo@gnu.org>
1289
1290 * README: Added a FAQ list.
1291
1292 * configure.in, acconfig.h:
1293 I18n fixes.
1294
12951999-05-30 Jesse Thilo <jthilo@gnu.org>
1296
1297 * doc/FAQ, doc/Makefile.am:
1298 Added a FAQ list.
1299
13001999-05-19 Jesse Thilo <jthilo@gnu.org>
1301
1302 * src/alloc.h, src/symtab.h, src/version.c:
1303 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1304
13051999-04-18 Jesse Thilo <jthilo@gnu.org>
1306
1307 * src/.cvsignore, src/Makefile.am:
1308 Reorganized: sources in `src', documentation in `doc'.
1309
1310 * src/lex.c (literalchar):
1311 fixed the code for escaping double quotes (thanks
1312 Jonathan Czisny.)
1313
13141999-04-18 Jesse Thilo <jthilo@gnu.org>
1315
1316 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1317 Adjusted paths to reflect directory reorganization.
1318
13191999-04-18 Jesse Thilo <jthilo@gnu.org>
1320
1321 * doc/.cvsignore, doc/Makefile.am:
1322 Reorganized: sources in `src', documentation in `doc'.
1323
13241999-04-18 Jesse Thilo <jthilo@gnu.org>
1325
1326 * configure.in:
1327 Updated AC_INIT file to reflect directory reorganization.
1328
1329 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1330 Reorganized: sources in `src', documentation in `doc'.
1331
13321999-04-13 Jesse Thilo <jthilo@gnu.org>
1333
1334 * src/allocate.c:
1335 Don't declare calloc() and realloc() if not necessary.
1336
13371999-04-13 Jesse Thilo <jthilo@gnu.org>
1338
1339 * configure.in, acconfig.h, acinclude.m4:
1340 Don't declare calloc() and realloc() if not necessary.
1341
13421999-03-23 Jesse Thilo <jthilo@gnu.org>
1343
1344 * po/.cvsignore: Added i18n support.
1345
13461999-03-23 Jesse Thilo <jthilo@gnu.org>
1347
1348 * acconfig.h, configure.in, Makefile.am:
1349 Added i18n support.
1350
13511999-03-22 Jesse Thilo <jthilo@gnu.org>
1352
1353 * src/bison.s1: Fixed #line numbers.
1354
13551999-03-15 Jesse Thilo <jthilo@gnu.org>
1356
1357 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1358 Added PO files from Translation Project.
1359
13601999-03-03 Jesse Thilo <jthilo@gnu.org>
1361
1362 * Makefile.am:
1363 Added support for non-ANSI compilers (ansi2knr).
1364
13651999-02-16 Jesse Thilo <jthilo@gnu.org>
1366
1367 * configure.in: Bumped version number to 1.27.
1368
1369 * Makefile.am:
1370 Added `bison.simple' to list of files removed by `make distclean'.
1371
13721999-02-12 Jesse Thilo <jthilo@gnu.org>
1373
1374 * src/files.c, src/files.h:
1375 Defined locations of parser files in config.h instead of Makefile.
1376
13771999-02-12 Jesse Thilo <jthilo@gnu.org>
1378
1379 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1380 Defined locations of parser files in config.h instead of Makefile.
1381
13821999-02-09 Jesse Thilo <jthilo@gnu.org>
1383
1384 * Makefile.am:
1385 Removed inappropriate use of $< macro.
1386
13871999-02-05 Jesse Thilo <jthilo@gnu.org>
1388
1389 * po/Makefile.in.in, po/POTFILES.in:
1390 Add `po' directory skeleton.
1391
13921999-01-27 Jesse Thilo <jthilo@gnu.org>
1393
1394 * README: Document help-bison list.
1395
1396 * configure.in: Add check for mkstemp().
1397
13981999-01-20 Jesse Thilo <jthilo@gnu.org>
1399
1400 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1401 Hush a few compiler warnings.
1402
1403 * src/files.c:
1404 Add tryclose(), which verifies that fclose was successful.
1405 Hush a couple of compiler warnings.
1406
14071999-01-20 Jesse Thilo <jthilo@gnu.org>
1408
1409 * Makefile.am, OChangeLog:
1410 ChangeLog is now automatically generated. Include the old version as
1411 OChangeLog.
1412
14131999-01-14 Jesse Thilo <jthilo@gnu.org>
1414
1415 * 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:
1416 Update FSF address.
1417
14181999-01-14 Jesse Thilo <jthilo@gnu.org>
1419
1420 * doc/bison.texinfo: Fix formatting glitch.
1421
1422 * doc/bison.texinfo: Update FSF address.
1423
14241999-01-14 Jesse Thilo <jthilo@gnu.org>
1425
1426 * acconfig.h: Update FSF address.
1427
14281999-01-08 Jesse Thilo <jthilo@gnu.org>
1429
1430 * src/system.h:
1431 Don't define PACKAGE here, since config.h defines it.
1432
14331998-12-30 Jesse Thilo <jthilo@gnu.org>
1434
1435 * src/reader.c: Update copyright date.
1436
1437 * src/main.c:
1438 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1439 favor of output directly to stderr (avoids buffer overruns).
1440
1441 * src/reader.c: Some checks for premature EOF.
1442
1443 * 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:
1444 Use prototypes if the compiler understands them.
1445
1446 * src/files.c: Honor TMPDIR on Unix hosts.
1447 Use prototypes if the compiler understands them.
1448
1449 * src/reader.c:
1450 Fix a couple of buffer overrun bugs.
1451 Use prototypes if the compiler understands them.
1452
1453 * src/system.h: Include unistd.h and ctype.h.
1454 Use #ifdef instead of #if for NLS symbols.
1455
14561998-12-30 Jesse Thilo <jthilo@gnu.org>
1457
1458 * doc/bison.texinfo:
1459 Delete comment "consider using @set for edition number, etc..." since
1460 we now are doing so.
1461
14621998-12-30 Jesse Thilo <jthilo@gnu.org>
1463
1464 * configure.in:
1465 Use prototypes if the compiler understands them.
1466
1467 * NEWS: Document 1.26 highlights.
1468
1469 * Makefile.am: Require Automake 1.3 or later.
1470
1471 * acconfig.h:
1472 Use prototypes if the compiler understands them.
1473
14741998-12-29 Jesse Thilo <jthilo@gnu.org>
1475
1476 * src/version.c:
1477 Use VERSION symbol from automake for version number.
1478
14791998-12-29 Jesse Thilo <jthilo@gnu.org>
1480
1481 * acconfig.h, configure.in, version.cin:
1482 Use VERSION symbol from automake for version number.
1483
14841998-11-28 Jesse Thilo <jthilo@gnu.org>
1485
1486 * Makefile.am:
1487 Distribute original version of simple parser (bison.s1), not built
1488 version (bison.simple).
1489
14901998-11-28 Jesse Thilo <jthilo@gnu.org>
1491
1492 * doc/bison.texinfo: Add info dir entry.
1493
1494 * doc/bison.texinfo:
1495 Let automake put version number into documentation.
1496
14971998-11-26 Jesse Thilo <jthilo@gnu.org>
1498
1499 * src/bison.cld, src/build.com, src/vmshlp.mar:
1500 Add non-RCS files from /gd/gnu/bison.
1501
15021998-11-26 Jesse Thilo <jthilo@gnu.org>
1503
1504 * doc/bison.1:
1505 Document the BISON_HAIRY and BISON_SIMPLE variables.
1506
15071998-11-25 Jesse Thilo <jthilo@gnu.org>
1508
1509 * src/version.c: Build version.c automatically.
1510
1511 * src/reader.c:
1512 Fix token numbering (used to start at 258, not 257).
1513
1514 * src/system.h: Include config.h.
1515
1516 * src/getargs.c: Update bug report address.
1517
1518 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1519 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1520
15211998-11-25 Jesse Thilo <jthilo@gnu.org>
1522
1523 * Makefile.am:
1524 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1525
1526 * configure.in, version.cin:
1527 Build version.c automatically.
1528
1529 * AUTHORS: Add AUTHORS file.
1530
1531 * README: Update bug report address.
1532
1533 * bison.simple:
1534 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1535
1536 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1537 Add automake stuff.
1538
15391998-11-25 Jesse Thilo <jthilo@gnu.org>
1540
1541 * doc/bison.texinfo: Clean up some formatting.
1542
15431998-05-05 Richard Stallman <rms@gnu.org>
1544
1545 * doc/bison.texinfo:
1546 Explain better why to make a pure parser.
1547
15481998-01-05 Richard Stallman <rms@gnu.org>
1549
1550 * src/files.c (openfiles):
1551 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1552 find a temporary directory, if possible. Do not unlink files while
1553 they are open.
1554
15551997-08-25 Richard Stallman <rms@gnu.org>
1556
1557 * src/reader.c (stack_offset;):
1558 Change some warni to warns.
1559
1560 * src/lex.c (literalchar): Use warns, not warni.
1561
15621997-06-28 Richard Stallman <rms@gnu.org>
1563
1564 * src/bison.s1: Add a Bison version comment.
1565
1566 * src/main.c (fatal, warn, berror):
1567 Use program_name.
1568
15691997-06-28 Richard Stallman <rms@gnu.org>
1570
1571 * Makefile.in (bison_version): New variable.
1572 (dist): Use that variable.
1573 (bison.s1): Substitute the Bison version into bison.simple.
1574
1575 * bison.simple: Add a Bison version comment.
1576
15771997-06-18 Richard Stallman <rms@gnu.org>
1578
1579 * src/main.c (fatal, warn, berror):
1580 Make error messages standard.
1581 (toomany): Improve error message text.
1582
1583 * 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:
1584 new.h renamed to alloc.h.
1585
15861997-06-18 Richard Stallman <rms@gnu.org>
1587
1588 * Makefile.in: new.h renamed to alloc.h.
1589
15901997-05-24 Richard Stallman <rms@gnu.org>
1591
1592 * src/lex.c (literalchar):
1593 Fix the code for escaping \, " and '.
1594
1595 (lex): Avoid trouble when there are many chars
1596 to discard in a char literal with just several chars in it.
1597
15981997-05-17 Richard Stallman <rms@gnu.org>
1599
1600 * src/bison.s1:
1601 Use malloc, if using alloca is troublesome.
1602 (YYSTACK_USE_ALLOCA): New flag macro.
1603 Define it for some systems and compilers.
1604 (YYSTACK_ALLOC): New macro.
1605 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1606 If it was malloc'd, free it.
1607
16081997-05-17 Richard Stallman <rms@gnu.org>
1609
1610 * bison.simple:
1611 Use malloc, if using alloca is troublesome.
1612 (YYSTACK_USE_ALLOCA): New flag macro.
1613 Define it for some systems and compilers.
1614 (YYSTACK_ALLOC): New macro.
1615 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1616 If it was malloc'd, free it.
1617
16181997-04-23 Richard Stallman <rms@gnu.org>
1619
1620 * src/bison.s1:
1621 (alloca) [__hpux]: Always define as __builtin_alloca.
1622
16231997-04-23 Richard Stallman <rms@gnu.org>
1624
1625 * bison.simple:
1626 (alloca) [__hpux]: Always define as __builtin_alloca.
1627
16281997-04-22 Richard Stallman <rms@gnu.org>
1629
1630 * src/bison.s1:
1631 [__hpux]: Include alloca.h (right for HPUX 10)
1632 instead of declaring alloca (right for HPUX 9).
1633
1634 * src/bison.s1 (__yy_memcpy):
1635 Declare arg `count' as unsigned int.
1636 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1637
16381997-04-22 Richard Stallman <rms@gnu.org>
1639
1640 * bison.simple:
1641 [__hpux]: Include alloca.h (right for HPUX 10)
1642 instead of declaring alloca (right for HPUX 9).
1643
1644 * bison.simple (__yy_memcpy):
1645 Declare arg `count' as unsigned int.
1646 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1647
16481997-01-03 Richard Stallman <rms@gnu.org>
1649
1650 * src/allocate.c: [__STDC__ or _MSC_VER]:
1651 Declare calloc and realloc to return void *.
1652
16531997-01-02 Richard Stallman <rms@gnu.org>
1654
1655 * src/system.h:
1656 [_MSC_VER]: Include stdlib.h and process.h.
1657 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1658
1659 * src/main.c (main): Return FAILURE as a value.
1660 (printable_version): Declare arg as int, not char.
1661
16621997-01-02 Richard Stallman <rms@gnu.org>
1663
1664 * Makefile.in (dist):
1665 Explicitly check for symlinks, and copy them.
1666
16671996-12-19 Richard Stallman <rms@gnu.org>
1668
1669 * src/files.c:
1670 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1671
16721996-12-18 Paul Eggert <eggert@gnu.org>
1673
1674 * src/bison.s1 (yyparse):
1675 If __GNUC__ and YYPARSE_PARAM are both defined,
1676 declare yyparse to have a void * argument.
1677
16781996-12-18 Paul Eggert <eggert@gnu.org>
1679
1680 * bison.simple (yyparse):
1681 If __GNUC__ and YYPARSE_PARAM are both defined,
1682 declare yyparse to have a void * argument.
1683
16841996-12-17 Richard Stallman <rms@gnu.org>
1685
1686 * src/reduce.c (nbits): Add some casts.
1687
16881996-08-12 Richard Stallman <rms@gnu.org>
1689
1690 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1691
16921996-08-12 Richard Stallman <rms@gnu.org>
1693
1694 * bison.simple: Test _MSDOS as well as _MSDOS_.
1695
16961996-07-31 Richard Stallman <rms@gnu.org>
1697
1698 * src/bison.s1:
1699 [__sun && __i386]: Include alloca.h.
1700
17011996-07-31 Richard Stallman <rms@gnu.org>
1702
1703 * bison.simple:
1704 [__sun && __i386]: Include alloca.h.
1705
17061996-07-30 Richard Stallman <rms@gnu.org>
1707
1708 * src/bison.s1: Comment change.
1709
1710 * src/bison.s1: Test _MSDOS_, not MSDOS.
1711
17121996-07-30 Richard Stallman <rms@gnu.org>
1713
1714 * bison.simple: Comment change.
1715
1716 * bison.simple: Test _MSDOS_, not MSDOS.
1717
17181996-06-01 Richard Stallman <rms@gnu.org>
1719
1720 * 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:
1721 Insert `_' macro around many string constants.
1722
1723 * src/main.c:
1724 Insert `_' macro around many string constants.
1725
1726 (main): Call setlocale, bindtextdomain and textdomain.
1727
1728 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1729 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1730 [ENABLE_NLS]: Include libintl.h.
1731 [ENABLE_NLS] (gettext): Define.
1732 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1733 (N_, PACKAGE, LOCALEDIR): New macros.
1734
17351996-06-01 Richard Stallman <rms@gnu.org>
1736
1737 * POTFILES.in: New file.
1738
1739 * Makefile.in (allocate.o):
1740 Define target explicitly.
1741
1742 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1743 (LDFLAGS): Set to @LDFLAGS@.
1744 (configure): Run autoconf only if preceding `cd' succeeds.
1745 (bison.s1): Redirect output to temporary file then move the
1746 temporary to the target, rather than redirecting directly to bison.s1.
1747 (clean): Remove config.status and config.log.
1748 (distclean): Don't remove config.status here.
1749
17501996-05-12 Richard Stallman <rms@gnu.org>
1751
1752 * src/bison.s1:
1753 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1754
17551996-05-12 Richard Stallman <rms@gnu.org>
1756
1757 * bison.simple:
1758 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1759
17601996-05-11 Richard Stallman <rms@gnu.org>
1761
1762 * src/bison.s1 (__yy_memcpy):
1763 Really reorder the args, as was supposedly done on Feb 14 1995.
1764 (yyparse): Calls changed accordingly.
1765
17661996-05-11 Richard Stallman <rms@gnu.org>
1767
1768 * Makefile.in (dist): Don't use $(srcdir).
1769
1770 * bison.simple (__yy_memcpy):
1771 Really reorder the args, as was supposedly done on Feb 14 1995.
1772 (yyparse): Calls changed accordingly.
1773
17741996-01-27 Richard Stallman <rms@gnu.org>
1775
1776 * src/output.c (output_rule_data):
1777 Test YYERROR_VERBOSE in the conditional
1778 around the definition of ttyname.
1779
17801995-12-29 Richard Stallman <rms@gnu.org>
1781
1782 * src/bison.s1:
1783 Fix line numbers in #line commands.
1784
17851995-12-29 Richard Stallman <rms@gnu.org>
1786
1787 * bison.simple:
1788 Fix line numbers in #line commands.
1789
17901995-12-27 Richard Stallman <rms@gnu.org>
1791
1792 * src/bison.s1 (YYPARSE_PARAM_DECL):
1793 In C++, make it always null.
1794 (YYPARSE_PARAM_ARG): New macro.
1795 (yyparse): Use YYPARSE_PARAM_ARG.
1796
17971995-12-27 Richard Stallman <rms@gnu.org>
1798
1799 * bison.simple (YYPARSE_PARAM_DECL):
1800 In C++, make it always null.
1801 (YYPARSE_PARAM_ARG): New macro.
1802 (yyparse): Use YYPARSE_PARAM_ARG.
1803
18041995-11-29 Richard Stallman <rms@gnu.org>
1805
1806 * doc/bison.texinfo:
1807 Describe literal string tokens, %raw, %no_lines, %token_table.
1808
18091995-11-29 Daniel Hagerty <hag@gnu.org>
1810
1811 * doc/bison.texinfo: Fixed update date
1812
18131995-10-16 Richard Stallman <rms@gnu.org>
1814
1815 * src/version.c: Version 1.25.
1816
18171995-10-16 Richard Stallman <rms@gnu.org>
1818
1819 * NEWS: *** empty log message ***
1820
18211995-10-16 Richard Stallman <rms@gnu.org>
1822
1823 * doc/bison.1, doc/bison.rnh:
1824 Add new options.
1825
18261995-10-15 Richard Stallman <rms@gnu.org>
1827
1828 * src/vmsgetargs.c, src/getargs.c:
1829 Added -n, -k, and -raw switches.
1830 (noparserflag, toknumflag, rawtoknumflag): New variables.
1831
1832 * src/symtab.h (SALIAS):
1833 New #define for adding aliases to %token.
1834 (struct bucket): Added `alias' field.
1835
1836 * src/reduce.c (reduce_grammar):
1837 Revise error message.
1838 (print_notices): Remove final `.' from error message.
1839
1840 * src/reader.c (reader_output_yylsp):
1841 New function.
1842 (readgram): Use `#if 0' around code that accepted %command
1843 inside grammar rules: The documentation doesn't allow it,
1844 and it will fail since the %command processors scan for the next %.
1845 (parse_token_decl): Extended the %token
1846 declaration to allow a multi-character symbol as an alias.
1847 (parse_thong_decl): New function.
1848 (read_declarations): Added %thong declarations.
1849 (read_declarations): Handle NOOP to deal with allowing
1850 % declarations as another means to specify the flags.
1851 (readgram): Allow %prec prior to semantics embedded in a rule.
1852 (skip_to_char, read_declarations, copy_definition)
1853 (parse_token_decl, parse_start_decl, parse_type_decl)
1854 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1855 (get_type_name, copy_guard, copy_action, readgram)
1856 (get_type, packsymbols): Revised most error messages.
1857 Changed `fatal' to `warnxxx' to avoid aborting for error.
1858 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1859 (read_declarations): Improve the error message for
1860 an invalid character. Do not abort.
1861 (read_declarations, copy_guard, copy_action): Use
1862 printable_version to avoid unprintable characters in printed output.
1863 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1864 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1865 Allow the type of a non-terminal can be given
1866 more than once, as long as all specifications give the same type.
1867
1868 * src/output.c:
1869 (output_headers, output_trailers, output, output_gram)
1870 (output_rule_data): Implement noparserflag variable.
1871 Implement toknumflag variable.
1872 (output): Call reader_output_yylsp to output LTYPESTR.
1873
1874 * src/main.c (main):
1875 If reader sees an error, don't process the grammar.
1876 (fatals): Updated to not use VARARGS1.
1877 (printable_version, int_to_string, warn, warni, warns, warnss)
1878 (warnsss): New error reporting functions. Avoid abort for error.
1879
1880 * src/lex.h:
1881 Added THONG and NOOP for alias processing.
1882 Added SETOPT for the new code that allows setting options with %flags.
1883
1884 * src/lex.c:
1885 Include getopt.h. Add some extern decls.
1886 (safegetc): New function to deal with EOF gracefully.
1887 (literalchar); new function to deal with reading \ escapes.
1888 (lex): Use literalchar.
1889 (lex): Implemented "..." tokens.
1890 (literalchar, lex, parse_percent_token): Made tokenbuffer
1891 always contain the token. This includes growing the token
1892 buffer while reading an integer.
1893 (parse_percent_token): Replaced if-else statement with percent_table.
1894 (parse_percent_token): Added % declarations as another
1895 way to specify the flags -n, -l, and -r. Also added hooks for
1896 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1897 major changes to files.c.
1898 (lex) Retain in the incoming stream a character following
1899 an incorrect '/'.
1900 (skip_white_space, lex): Revised most error messages
1901 and changed fatal to warn to avoid aborting.
1902 (percent_table): Added %thong declarations.
1903
1904 * src/gram.h: Comment changes.
1905
1906 * src/files.c (openfiles, open_extra_files, done):
1907 Add faction flag
1908 and actfile file. Handle noparserflag. Both for -n switch.
1909
1910 * src/conflicts.c (resolve_sr_conflict):
1911 Remove use of alloca.
1912
19131995-06-01 Jim Meyering <meyering@gnu.org>
1914
1915 * doc/bison.texinfo: *** empty log message ***
1916
19171995-05-06 Richard Stallman <rms@gnu.org>
1918
1919 * src/bison.s1: Comment change.
1920
19211995-05-06 Richard Stallman <rms@gnu.org>
1922
1923 * bison.simple: Comment change.
1924
19251995-05-03 Richard Stallman <rms@gnu.org>
1926
1927 * src/version.c: Version now 1.24.
1928
1929 * src/bison.s1: Change distribution terms.
1930
1931 * src/version.c: Version now 1.23.
1932
19331995-05-03 Richard Stallman <rms@gnu.org>
1934
1935 * doc/bison.texinfo:
1936 Rewrite "Conditions for Using Bison".
1937 Update version to 1.24.
1938
19391995-05-03 Richard Stallman <rms@gnu.org>
1940
1941 * bison.simple: Change distribution terms.
1942
19431995-02-23 Richard Stallman <rms@gnu.org>
1944
1945 * src/files.c: Test __VMS_POSIX as well as VMS.
1946
19471995-02-14 Jim Meyering <meyering@gnu.org>
1948
1949 * src/bison.s1 (__yy_memcpy):
1950 Renamed from __yy_bcopy to avoid
1951 confusion. Reverse FROM and TO arguments to be consistent with
1952 those of memcpy.
1953
19541995-02-14 Jim Meyering <meyering@gnu.org>
1955
1956 * bison.simple (__yy_memcpy):
1957 Renamed from __yy_bcopy to avoid
1958 confusion. Reverse FROM and TO arguments to be consistent with
1959 those of memcpy.
1960
19611994-11-10 David J. MacKenzie <djm@gnu.org>
1962
1963 * NEWS: reformat
1964
1965 * NEWS: New file.
1966
1967 * Makefile.in (DISTFILES): Include NEWS.
1968
1969 * Makefile.in (DISTFILES):
1970 Include install-sh, not install.sh.
1971
1972 * configure.in: Update to Autoconf v2 macro names.
1973
19741994-10-05 David J. MacKenzie <djm@gnu.org>
1975
1976 * Makefile.in: fix typo
1977
1978 * Makefile.in (prefix, exec_prefix):
1979 Let configure set them.
1980
19811994-09-28 David J. MacKenzie <djm@gnu.org>
1982
1983 * Makefile.in: Set datadir to $(prefix)/share.
1984
19851994-09-15 Richard Stallman <rms@gnu.org>
1986
1987 * src/bison.s1:
1988 Update copyright notice and GPL version.
1989
19901994-09-15 Richard Stallman <rms@gnu.org>
1991
1992 * bison.simple:
1993 Update copyright notice and GPL version.
1994
19951994-07-12 Richard Stallman <rms@gnu.org>
1996
1997 * src/reduce.c, src/reader.c:
1998 entered into RCS
1999
20001994-05-05 David J. MacKenzie <djm@gnu.org>
2001
2002 * Makefile.in: entered into RCS
2003
20041994-03-26 Richard Stallman <rms@gnu.org>
2005
2006 * src/bison.s1: entered into RCS
2007
20081994-03-26 Richard Stallman <rms@gnu.org>
2009
2010 * bison.simple: entered into RCS
2011
20121994-03-25 Richard Stallman <rms@gnu.org>
2013
2014 * src/main.c: entered into RCS
2015
20161994-03-24 Richard Stallman <rms@gnu.org>
2017
2018 * src/conflicts.c: entered into RCS
2019
20201994-01-02 Richard Stallman <rms@gnu.org>
2021
2022 * Makefile.in: *** empty log message ***
2023
20241993-11-21 Richard Stallman <rms@gnu.org>
2025
2026 * src/bison.s1: *** empty log message ***
2027
20281993-11-21 Richard Stallman <rms@gnu.org>
2029
2030 * doc/bison.texinfo: entered into RCS
2031
2032 * doc/bison.texinfo: *** empty log message ***
2033
20341993-11-21 Richard Stallman <rms@gnu.org>
2035
2036 * bison.simple: *** empty log message ***
2037
20381993-10-25 David J. MacKenzie <djm@gnu.org>
2039
2040 * doc/bison.texinfo: *** empty log message ***
2041
20421993-10-19 Richard Stallman <rms@gnu.org>
2043
2044 * src/bison.s1: *** empty log message ***
2045
20461993-10-19 Richard Stallman <rms@gnu.org>
2047
2048 * bison.simple: *** empty log message ***
2049
20501993-10-14 Richard Stallman <rms@gnu.org>
2051
2052 * src/bison.s1: *** empty log message ***
2053
20541993-10-14 Richard Stallman <rms@gnu.org>
2055
2056 * bison.simple: *** empty log message ***
2057
20581993-09-14 David J. MacKenzie <djm@gnu.org>
2059
2060 * doc/bison.texinfo: *** empty log message ***
2061
20621993-09-13 Noah Friedman <friedman@gnu.org>
2063
2064 * Makefile.in: *** empty log message ***
2065
20661993-09-10 Richard Stallman <rms@gnu.org>
2067
2068 * src/conflicts.c: *** empty log message ***
2069
2070 * src/system.h: entered into RCS
2071
20721993-09-10 Richard Stallman <rms@gnu.org>
2073
2074 * doc/bison.1: entered into RCS
2075
20761993-09-06 Noah Friedman <friedman@gnu.org>
2077
2078 * src/version.c: entered into RCS
2079
20801993-09-06 Noah Friedman <friedman@gnu.org>
2081
2082 * Makefile.in: *** empty log message ***
2083
20841993-07-30 David J. MacKenzie <djm@gnu.org>
2085
2086 * Makefile.in: *** empty log message ***
2087
20881993-07-24 Richard Stallman <rms@gnu.org>
2089
2090 * src/bison.s1: *** empty log message ***
2091
20921993-07-24 Richard Stallman <rms@gnu.org>
2093
2094 * bison.simple: *** empty log message ***
2095
20961993-07-08 David J. MacKenzie <djm@gnu.org>
2097
2098 * Makefile.in: *** empty log message ***
2099
21001993-07-04 Richard Stallman <rms@gnu.org>
2101
2102 * src/bison.s1: *** empty log message ***
2103
21041993-07-04 Richard Stallman <rms@gnu.org>
2105
2106 * bison.simple: *** empty log message ***
2107
21081993-06-26 David J. MacKenzie <djm@gnu.org>
2109
2110 * src/getargs.c: entered into RCS
2111
21121993-06-26 David J. MacKenzie <djm@gnu.org>
2113
2114 * doc/bison.texinfo: *** empty log message ***
2115
2116 * doc/bison.1: New file.
2117
21181993-06-25 Richard Stallman <rms@gnu.org>
2119
2120 * src/getargs.c: New file.
2121
21221993-06-16 Richard Stallman <rms@gnu.org>
2123
2124 * src/bison.s1: *** empty log message ***
2125
21261993-06-16 Richard Stallman <rms@gnu.org>
2127
2128 * bison.simple: *** empty log message ***
2129
21301993-06-03 Richard Stallman <rms@gnu.org>
2131
2132 * src/bison.s1: New file.
2133
21341993-06-03 Richard Stallman <rms@gnu.org>
2135
2136 * doc/bison.texinfo: *** empty log message ***
2137
21381993-06-03 Richard Stallman <rms@gnu.org>
2139
2140 * bison.simple: New file.
2141
21421993-05-19 Richard Stallman <rms@gnu.org>
2143
2144 * doc/bison.texinfo: New file.
2145
21461993-05-07 Noah Friedman <friedman@gnu.org>
2147
2148 * Makefile.in: *** empty log message ***
2149
21501993-04-28 Noah Friedman <friedman@gnu.org>
2151
2152 * src/reader.c: *** empty log message ***
2153
21541993-04-23 Noah Friedman <friedman@gnu.org>
2155
2156 * src/alloc.h: entered into RCS
2157
21581993-04-20 David J. MacKenzie <djm@gnu.org>
2159
2160 * src/version.c: *** empty log message ***
2161
2162 * src/files.c, src/allocate.c:
2163 entered into RCS
2164
2165 * src/reader.c: *** empty log message ***
2166
2167 * src/lex.c: entered into RCS
2168
2169 * src/conflicts.c: New file.
2170
2171 * src/symtab.c: entered into RCS
2172
2173 * src/alloc.h: New file.
2174
2175 * src/LR0.c: entered into RCS
2176
21771993-04-18 Noah Friedman <friedman@gnu.org>
2178
2179 * src/reader.c: New file.
2180
2181 * src/version.c: *** empty log message ***
2182
21831993-04-18 Noah Friedman <friedman@gnu.org>
2184
2185 * Makefile.in: *** empty log message ***
2186
21871993-04-17 Noah Friedman <friedman@gnu.org>
2188
2189 * Makefile.in: *** empty log message ***
2190
21911993-04-15 Richard Stallman <rms@gnu.org>
2192
2193 * src/main.c, src/files.c:
2194 New file.
2195
21961993-04-15 Noah Friedman <friedman@gnu.org>
2197
2198 * configure.in: entered into RCS
2199
2200 * configure.in: *** empty log message ***
2201
2202 * configure.in: New file.
2203
22041993-04-14 Richard Stallman <rms@gnu.org>
2205
2206 * Makefile.in: New file.
2207
22081993-04-13 Richard Stallman <rms@gnu.org>
2209
2210 * src/version.c: New file.
2211
22121993-03-25 Richard Stallman <rms@gnu.org>
2213
2214 * src/output.c: entered into RCS
2215
22161992-09-25 Richard Stallman <rms@gnu.org>
2217
2218 * configure.bat: entered into RCS
2219
22201992-06-22 Richard Stallman <rms@gnu.org>
2221
2222 * src/vmsgetargs.c: entered into RCS
2223
22241992-06-22 Richard Stallman <rms@gnu.org>
2225
2226 * doc/bison.rnh: entered into RCS
2227
22281992-04-20 David J. MacKenzie <djm@gnu.org>
2229
2230 * README: entered into RCS
2231
22321992-01-22 Richard Stallman <rms@gnu.org>
2233
2234 * src/machine.h: entered into RCS
2235
22361991-12-21 Richard Stallman <rms@gnu.org>
2237
2238 * src/lalr.c, src/closure.c:
2239 entered into RCS
2240
22411991-12-20 Richard Stallman <rms@gnu.org>
2242
2243 * src/state.h: entered into RCS
2244
22451991-12-18 Richard Stallman <rms@gnu.org>
2246
2247 * src/print.c, src/nullable.c, src/derives.c:
2248 entered into RCS
2249
22501991-11-03 David J. MacKenzie <djm@gnu.org>
2251
2252 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2253 entered into RCS
2254
22551988-09-09 Richard Stallman <rms@gnu.org>
2256
2257 * src/bison.hairy: entered into RCS
2258
22591987-12-16 Richard Stallman <rms@gnu.org>
2260
2261 * REFERENCES: entered into RCS