]> git.saurik.com Git - bison.git/blame - ChangeLog
* src/system.h: Provide default declarations for stpcpy, strndup,
[bison.git] / ChangeLog
CommitLineData
b77b9ee0
AD
12001-08-10 Akim Demaille <akim@epita.fr>
2
3 * src/system.h: Provide default declarations for stpcpy, strndup,
4 and strnlen.
5
3e259915
MA
62001-08-10 Robert Anisko <anisko_r@epita.fr>
7
8 * doc/bison.texinfo (Locations): Update @$ stuff.
9
ca96bc2d
MA
102001-08-09 Robert Anisko <anisko_r@epita.fr>
11
12 * src/bison.simple (YYLLOC_DEFAULT): Update.
13 (yyparse): Adjust.
14
fdc6758b
MA
152001-08-08 Marc Autret <autret_m@epita.fr>
16
b77b9ee0 17 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
fdc6758b
MA
18 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
19 Reported by Fabrice Bauzac.
957d4dbf 20
600cad3b
MA
212001-08-08 Marc Autret <autret_m@epita.fr>
22
23 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
24 * src/vcg.c (output_node): Fix.
25 * src/vcg.h: Cleanup.
26 * src/print_graph.c: Add comments.
b77b9ee0 27 (node_output_size): New global variable. Simplify the formatting of
600cad3b 28 the VCG graph output.
b77b9ee0 29 (print_actions): Unused code is now used. It notifies the final state
600cad3b 30 and no action states in the VCG graph. It also give the reduce actions.
b77b9ee0 31 The `shift and goto' edges are red and the `go to state' edges are
600cad3b
MA
32 blue.
33 Get the current node name and node_obstack by argument.
34 (node_obstack): New variable.
35 (print_state): Manage node_obstack.
36 (print_core): Use node_obstack given by argument.
37 A node is not only computed here but in print_actions also.
38 (print_graph): CPP out useless code instead of commenting it.
39
976e528f
AD
402001-08-07 Pascal Bart <pascal.bart@epita.fr>
41
42 * tests/atconfig.in (CPPFLAGS): Fix.
43
20e8e5ca
AD
442001-08-07 Akim Demaille <akim@epita.fr>
45
46 * src/print_graph.c (quote): New.
47 (print_core): Use it.
48
957d4dbf 492001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
3e3da797 50
3e3da797
AD
51 * src/vcg.c (complain.h): Include it.
52 Unepitaize `return' invocations.
c4b66126
AD
53 [NDEBUG] (main): Remove.
54 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * memebers.
55 * src/files.c (open_files): Initialize graph_obstack.
56 * src/print_graph.c (print_actions): CPP out useless code.
57 (print_core): Don't output the last `\n' in labels.
58 Use `quote'.
59 * src/files.c (output_files): Output the VCG file.
60 * src/main.c (main): Invoke print_graph ();
3e3da797 61
957d4dbf 622001-08-06 Marc Autret <autret_m@epita.fr>
22c2cbc0
AD
63
64 Automaton VCG graph output.
65 Using option ``-g'' or long option ``--graph'', you can generate
66 a gram_filename.vcg file containing a VCG description of the LALR (1)
67 automaton of your grammar.
68
69 * src/main.c: Call to print_graph() function.
70 * src/getargs.h: Update.
71 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
72 (graph_flag): New flag.
73 (longopts): Update.
74 (getargs): Add case `g'.
75 * src/files.c (graph_obstack): New obstack struct.
76 (open_files): Initialize new obstack.
77 (output_files): Saves graph_obstack if required.
78 * src/files.h (graph_obstack): New extern declaration.
79 * src/Makefile.am: Add new source files.
80
957d4dbf 812001-08-06 Marc Autret <autret_m@epita.fr>
ce4d5ce0
AD
82
83 * src/print_graph.c, src/print_graph.h (graph): New.
84 * src/vcg.h: New file.
85 * src/vcg.c: New file, VCG graph handling.
86
7333d403
AD
872001-08-06 Marc Autret <autret_m@epita.fr>
88
89 Add of %source_extension and %header_extension which specify
90 the source or/and the header output file extension.
91
92 * src/files.c (compute_base_names): Remove initialisation of
93 src_extension and header_extension.
94 (compute_exts_from_gf): Update.
95 (compute_exts_from_src): Update.
96 (output_files): Update.
97 * src/reader.c (parse_header_extension_decl): New.
98 (parse_source_extension_decl): New.
99 (read_declarations): New case statements for the new tokens.
100 * src/lex.c (percent_table): Add entries for %source_extension
101 and %header_extension.
102 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
103
84163231
AD
1042001-08-06 Marc Autret <autret_m@epita.fr>
105
106 * configure.in: Bump to 1.28c.
107 * doc/bison.texinfo: Texinfo thingies.
108
8303fc42
AD
1092001-08-04 Pascal Bart <pascal.bart@epita.fr>
110
111 * tests/atconfig.in (CPPFLAGS): Add.
112 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
113
70a84437
AD
1142001-08-03 Akim Demaille <akim@epita.fr>
115
116 Version 1.28b.
117
2ce10144
AD
1182001-08-03 Akim Demaille <akim@epita.fr>
119
120 * tests/Makefile.am (check-local): Ship testsuite.
121 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
122 Include `string.h'.
123
1e3e4bc1
AD
1242001-08-03 Akim Demaille <akim@epita.fr>
125
126 * configure.in: Try using -Wformat when compiling.
127
42b45b7f
AD
1282001-08-03 Akim Demaille <akim@epita.fr>
129
130 * configure.in: Bump to 1.28b.
131
8f13fe33
AD
1322001-08-03 Akim Demaille <akim@epita.fr>
133
134 * src/complain.c: Adjust strerror_r portability issues.
135
b37ba92c
AD
1362001-08-03 Akim Demaille <akim@epita.fr>
137
138 Version 1.28a.
139
b0ce6046
AD
1402001-08-03 Akim Demaille <akim@epita.fr>
141
142 * src/getargs.c, src/getarg.h (skeleton)): Constify.
143 * src/lex.c (literalchar): Avoid name clashes on `buf'.
144 * src/getargs.c: Include complain.h.
145 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
146 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
147
d01c415b
AD
1482001-08-03 Akim Demaille <akim@epita.fr>
149
150 * src/reader.c (readgram): Display hidden chars in error messages.
151
459dd1a6
AD
1522001-08-03 Akim Demaille <akim@epita.fr>
153
154 Update to gettext 0.10.39.
155
53b74c0c
AD
1562001-08-03 Akim Demaille <akim@epita.fr>
157
158 * lib/strspn.c: New.
159
234a3be3
AD
1602001-08-01 Marc Autret <autret_m@epita.fr>
161
162 * doc/bison.texinfo: Update.
163 * doc/bison.1 (mandoc): Update.
164 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
165 * src/files.c: Support output files extensions computing.
166 (src_extension): New static variable.
167 (header_extension): New static variable.
168 (tr): New function.
169 (get_extension_index): New function, gets the index of an extension
170 filename in a string.
171 (compute_exts_from_gf): New function, computes extensions from the
172 grammar file extension.
173 (compute_exts_from_src): New functions, computes extensions from the
174 C source file extension, file given by ``-o'' option.
175 (compute_base_names): Update.
176 (output_files): Update.
177
847bf1f5
AD
1782001-08-01 Robert Anisko <anisko_r@epita.fr>
179
d995fee7 180 * doc/bison.texi: Document @$.
847bf1f5
AD
181 (Locations): New section.
182
d074a105
AD
1832001-07-18 Akim Demaille <akim@epita.fr>
184
185 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
186 * config/prev-version.txt, config/move-if-change: New.
187 * Makefile.am: Adjust.
188
3419715d
AD
1892001-07-08 Pascal Bart <pascal.bart@epita.fr>
190
191 * src/bison.simple (yyparse): Suppress warning `comparaison
192 between signed and unsigned'.
193
62ab6972
AD
1942001-07-05 Pascal Bart <pascal.bart@epita.fr>
195
196 * src/getargs.h (raw_flag): Remove.
197 * src/getargs.c: Die on `-r'/`--raw'.
198 * src/lex.c (parse_percent_token): Die on `%raw'.
199 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
200 * tests/calc.at: Suppress test with option `--raw'.
201
1e24cc5b
AD
2022001-07-14 Akim Demaille <akim@epita.fr>
203
204 * config/: New.
205 * configure.in: Require Autoconf 2.50.
206 Update to gettext 0.10.38.
207
32dfccf8
AD
2082001-03-16 Akim Demaille <akim@epita.fr>
209
210 * doc/bison.texinfo: ANSIfy the examples.
211
cd5bd6ac
AD
2122001-03-16 Akim Demaille <akim@epita.fr>
213
214 * getargs.c (skeleton): New variable.
215 (longopts): --skeleton is a new option.
216 (shortopts, getargs): -S is a new option.
217 * getargs.h: Declare skeleton.
218 * output.c (output_parser): Use it.
219
5141b016
AD
2202001-03-16 Akim Demaille <akim@epita.fr>
221
222 * m4/strerror_r.m4: New.
223 * m4/error.m4: Run AC_FUNC_STRERROR_R.
224 * lib/error.h, lib/error.c: Update.
225
447992b9
AD
2262001-03-16 Akim Demaille <akim@epita.fr>
227
228 * src/getargs.c (longopts): Clean up.
229
274d42ce
AD
2302001-02-21 Akim Demaille <akim@epita.fr>
231
232 * src/reader.c (gensym): `gensym_count' is your own.
233 Use a static buf to create the symbol name, as token_buffer is no
234 longer a buffer.
235
22c821f3
AD
2362001-02-08 Akim Demaille <akim@epita.fr>
237
238 * src/conflicts.c (conflict_report): Be sure not to append to res
239 between two calls, which could happen if both first sprintf were
240 skipped, but not the first cp += strlen.
241
18569462
AD
2422001-02-08 Akim Demaille <akim@epita.fr>
243
244 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
245 New, from fileutils 4.0.37.
246 * configure.in: Require Autoconf 2.49c. I took some time before
247 making this decision. This is the only way out for portability
248 issues in Bison, it would mean way too much duplicate effort to
249 import in Bison features implemented in 2.49c since 2.13.
250 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
251
0d8f3c8a
AD
2522001-02-02 Akim Demaille <akim@epita.fr>
253
254 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
66075dcf 255 * lib/xalloc.h, lib/xmalloc.c: Update.
0d8f3c8a 256
f17bcd1f
AD
2572001-01-19 Akim Demaille <akim@epita.fr>
258
259 Get rid of the ad hoc handling of token_buffer in the scanner: use
260 the obstacks.
261
262 * src/lex.c (token_obstack): New.
263 (init_lex): Initialize it. No longer call...
264 (grow_token_buffer): this. Remove it.
265 Adjust all the places which used it to use the obstack.
266
511e79b3
AD
2672001-01-19 Akim Demaille <akim@epita.fr>
268
269 * src/lex.h: Rename all the tokens:
270 s/\bENDFILE\b/tok_eof/g;
271 s/\bIDENTIFIER\b/tok_identifier/g;
272 etc.
273 Let them be enums, not #define, to ease debugging.
274 Adjust all the code.
275
0d6508ef
AD
2762001-01-18 Akim Demaille <akim@epita.fr>
277
278 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
279 * src/lex.c (maxtoken, grow_token_buffer): Static.
280
6deb4447
AD
2812001-01-18 Akim Demaille <akim@epita.fr>
282
283 Since we now use obstacks, more % directives can be enabled.
284
285 * src/lex.c (percent_table): Also accept `%yacc',
286 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
287 `%debug'.
288 Handle the actions for `%semantic_parser' and `%pure_parser' here,
289 instead of returning a token.
290 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
291 * src/reader.c (read_declarations): Adjust.
292 * src/files.c (open_files): Don't call `compute_base_names', don't
293 compute `attrsfile' since they depend upon data which might be
294 *in* the input file now.
295 (output_files): Do it here.
296 * src/output.c (output_headers): Document the fact that this patch
297 introduces a guaranteed SEGV for semantic parsers.
298 * doc/bison.texinfo: Document them.
299 * tests/suite.at: Exercise these %options.
300
ff4423cc
AD
3012000-12-20 Akim Demaille <akim@epita.fr>
302
303 Also handle the output file (--verbose) with obstacks.
304
305 * files.c (foutput): Remove.
306 (output_obstack): New.
307 Adjust all dependencies.
308 * src/conflicts.c: Return a string.
309 * src/system.h (obstack_grow_string): Rename as...
310 (obstack_sgrow): this. Be ready to work with non literals.
311 (obstack_fgrow4): New.
312
956dba3a
AD
3132000-12-20 Akim Demaille <akim@epita.fr>
314
315 * src/files.c (open_files): Fix the computation of short_base_name
316 in the case of `-o foo.tab.c'.
317
337bab46
AD
3182000-12-20 Akim Demaille <akim@epita.fr>
319
320 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
321 (copy_dollar): Now that everything uses obstacks, get rid of the
322 FILE * parameters.
323
5d3214b8
AD
3242000-12-20 Akim Demaille <akim@epita.fr>
325
326 * src/files.c (open_files): Actually the `.output' file is based
327 on the short_base_name, not base_name.
328 * tests/suite.at (Checking output file names): Adjust.
329
29092a57
AD
3302000-12-20 Akim Demaille <akim@epita.fr>
331
332 * src/bison.s1: Remove, we now use directly...
333 * src/bison.simple: this.
334 * src/Makefile.am: Use pkgdata instead of data.
335
ea5607fd
AD
3362000-12-20 Akim Demaille <akim@epita.fr>
337
338 * src/files.c (guard_obstack): New.
339 (open_files): Initialize it.
340 (output_files): Dump it...
341 * src/files.h: Export it.
342 * src/reader.c (copy_guard): Use it.
343
27110317
AD
3442000-12-19 Akim Demaille <akim@epita.fr>
345
346 * src/files.c (outfile, defsfile, actfile): Removed as global
347 vars.
348 (open_files): Don't compute them.
349 (output_files): Adjust.
350 (base_name, short_base_name): Be global.
351 Adjust dependencies.
352
19c50364
AD
3532000-12-19 Akim Demaille <akim@epita.fr>
354
355 * src/files.c (strsuffix): New.
356 (stringappend): Be just like strcat but allocate.
357 (base_names): Eve out from open_files.
358 Try to simplify the rather hairy computation of base_name and
359 short_base_name.
360 (open_files): Use it.
361 * tests/suite.at (Checking output file names): New test.
362
573c1d9f
AD
3632000-12-19 Akim Demaille <akim@epita.fr>
364
365 * src/system.h (obstack_grow_literal_string): Rename as...
366 (obstack_grow_string): this.
367 * src/output.c (output_parser): Recognize `%% actions' instead of
368 `$'.
369 * src/bison.s1: s/$/%% actions/.
370 * src/bison.hairy: Likewise.
371
ef7ddedd
AD
3722000-12-19 Akim Demaille <akim@epita.fr>
373
374 * src/output.c (output_parser): Compute the `#line' lines when
375 there are.
376 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
377 Suggested by Hans Aberg.
378
ff61dabd
AD
3792000-12-19 Akim Demaille <akim@epita.fr>
380
381 Let the handling of the skeleton files be local to the procedures
382 that use it.
383
384 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
385 longer static.
386 (fparser, open_extra_files): Remove.
387 (open_files, output_files): Don't take care of fparser.
388 * src/files.h: Adjust.
389 * src/output.c (output_parser): Open and close the file to the
390 skeleton.
391 * src/reader.c (read_declarations): When %semantic_parser, open
392 fguard.
393
55b96341
AD
3942000-12-19 Akim Demaille <akim@epita.fr>
395
396 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
397 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
398
358c15b7
AD
3992000-12-19 Akim Demaille <akim@epita.fr>
400
401 * src/files.c (open_files): Yipee! We no longer need all the code
402 looking for `/tmp' since we have no tmp file.
403
7de3329e
AD
4042000-12-19 Akim Demaille <akim@epita.fr>
405
406 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
407 New macros.
408 * src/files.c (open_files): Less dependency on MSDOS etc.
409
3abcd459
AD
4102000-12-14 Akim Demaille <akim@epita.fr>
411
412 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
413 Provide a default definition.
414 Use it when executing the default @ action.
415 * src/reader.c (reader_output_yylsp): No longer include
416 `timestamp' and `text' in the default YYLTYPE.
417
2a91a95e
AD
4182000-12-12 Akim Demaille <akim@epita.fr>
419
420 * src/reader.c (copy_definition, parse_union_decl, copy_action)
421 (copy_guard): Quote the file names.
422 Reported by Laurent Mascherpa.
423
14d3eb9b
AD
4242000-12-12 Akim Demaille <akim@epita.fr>
425
426 * src/output.c (output_headers, output_program, output): Be sure
427 to escape special characters when outputting filenames.
428 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
429 (output_headers): Don't depend on them, Use ACTSTR.
430
d7045ec6
AD
4312000-11-17 Akim Demaille <akim@epita.fr>
432
433 * lib/obstack.h: Formatting changes.
434 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
435 prevents type checking.
436 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
437 cast the value to (void *): assigning a `foo *' to a `void *'
438 variable is valid.
439 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
440 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
441 append characters.
442
6fd54b73
AD
4432000-11-17 Akim Demaille <akim@epita.fr>
444
445 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
446 as...
447 (suite.m4, regression.m4, calc.m4): these.
448 * tests/atgeneral.m4: Update from CVS Autoconf.
449
4c50eae6
AD
4502000-11-17 Akim Demaille <akim@epita.fr>
451
452 * tests/regression.m4 (%union and --defines): New test,
453 demonstrating a current bug in the obstack implementation.
454
a35f64ea
AD
4552000-11-17 Akim Demaille <akim@epita.fr>
456
457 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
458 macros.
459 Use them to declare the variables which are global or local to
460 `yyparse'.
461
7de23534
AD
4622000-11-17 Akim Demaille <akim@epita.fr>
463
464 * acconfig.h: Remove, no longer used.
465
aa7815f5
AD
4662000-11-07 Akim Demaille <akim@epita.fr>
467
468 * src: s/Copyright (C)/Copyright/g.
469
5af1f549
AD
4702000-11-07 Akim Demaille <akim@epita.fr>
471
472 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
473 defining.
474 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
475
553e2b22
AD
4762000-11-07 Akim Demaille <akim@epita.fr>
477
478 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
479 Merge in a single CPP if/else.
480
8a4f41d6
AD
4812000-11-07 Akim Demaille <akim@epita.fr>
482
483 * src/output.c (output): Remove useless variables.
484 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
485 argument `data' for consistency with the prototypes.
486 Qualify it `const'.
487 (obstack_copy, obstack_copy0): Rename the second argument as
488 `address' for consistency. Qualify it `const'.
489 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
490 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
491 `const' their input argument (`data' or `address').
492 Adjust the corresponding macros to include `const' in casts.
493
095a3fb5
AD
4942000-11-03 Akim Demaille <akim@epita.fr>
495
496 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
497 s/PFILE1/BISON_HAIRY/.
498 Adjust dependencies.
499
d1cdce7c
AD
5002000-11-03 Akim Demaille <akim@epita.fr>
501
090c5ebf 502 For some reason, this was not applied.
d1cdce7c
AD
503
504 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
505 `unlink': it's no longer used.
506
9311529b
AD
5072000-11-03 Akim Demaille <akim@epita.fr>
508
509 * src/files.c (skeleton_find): New function, eved out of...
510 (open_files, open_extra_files): here.
511
d8880f69
AD
5122000-11-03 Akim Demaille <akim@epita.fr>
513
514 Don't use `atexit'.
515
516 * src/files.c (obstack_save): New function.
517 (done): Rename as...
518 (output_files): this.
519 Use `obstack_save'.
520 * src/main.c (main): Don't use `atexit' to register `done', since
521 it no longer has to remove tmp files, just call `output_files'
522 when there are no errors.
523
0dbb648e
AD
5242000-11-02 Akim Demaille <akim@epita.fr>
525
526 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
527 `unlink': it's no longer used.
528 * src/files.h: Formatting changes.
529
896fe5c1
AD
5302000-11-02 Akim Demaille <akim@epita.fr>
531
532 Remove the last uses of mktemp and unlink/delete.
533
534 * src/files.c (fdefines, ftable): Removed.
535 (defines_ostack, table_obstack): New.
536 Adjust dependencies of the former into uses of the latter.
537 * src/output.c (output_short_or_char_table, output_short_table):
538 Convert to using obstacks.
539 * src/reader.c (copy_comment2): Accept one FILE * and two
540 obstacks.
541 (output_token_defines, reader_output_yylsp): Use obstacks.
542 * src/system.h (obstack_fgrow3): New.
543
dd60faec
AD
5442000-11-01 Akim Demaille <akim@epita.fr>
545
546 Change each use of `fattrs' into a use of `attrs_obstack'.
547
548 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
549 * src/files.c (fattrs): Remove.
550 (attrs_obstack): New.
551 Adjust all dependencies.
552 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
553
8c7ebe49
AD
5542000-11-01 Akim Demaille <akim@epita.fr>
555
556 Introduce obstacks.
557 Change each use of `faction' into a use of `action_obstack'.
558
559 * lib/obstack.h, lib/obstack.c: New files.
560 * src/files.c (faction): Remove.
561 (action_obstack): New.
562 Adjust all dependencies.
563
77aee789
AD
5642000-10-20 Akim Demaille <akim@epita.fr>
565
566 * lib/quote.h (PARAMS): New macro. Use it.
567
43591cec
AD
5682000-10-16 Akim Demaille <akim@epita.fr>
569
570 * src/output.c (output_short_or_char_table): New function.
571 (output_short_table, output_token_translations): Use it.
572 (goto_actions): Use output_short_table.
573
1e9798d5
AD
5742000-10-16 Akim Demaille <akim@epita.fr>
575
576 * src/symtab.c (bucket_new): New function.
577 (getsym): Use it.
578
579 * src/output.c (output_short_table): New argument to display the
580 comment associated with the table.
581 Adjust dependencies.
582 (output_gram): Use it.
583 (output_rule_data): Nicer output layout for YYTNAME.
584
f282676b
AD
5852000-10-16 Akim Demaille <akim@epita.fr>
586
587 * src/lex.c (read_typename): New function.
588 (lex): Use it.
589 * src/reader.c (copy_dollar): Likewise.
590
550a72a3
AD
5912000-10-16 Akim Demaille <akim@epita.fr>
592
593 * src/reader.c (copy_comment2): Expect the input stream to be on
594 the `/' which is suspected to open a comment, instead of being
595 called after `//' or `/*' was read.
596 (copy_comment, copy_definition, parse_union_decl, copy_action)
597 (copy_guard): Adjust.
598
131e2fef
AD
5992000-10-16 Akim Demaille <akim@epita.fr>
600
601 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
602 `read_signed_integer'.
603
79282c5a
AD
6042000-10-16 Akim Demaille <akim@epita.fr>
605
606 * src/reader.c (copy_dollar): New function.
607 (copy_guard, copy_action): Use it.
608
ff4a34be
AD
6092000-10-16 Akim Demaille <akim@epita.fr>
610
611 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
612 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
613 New files, from Fileutils 4.0.27.
614 * src/main.c (printable_version): Remove.
615 * src/lex.c, src/reader.c: Use `quote'.
616
6172000-10-04 Akim Demaille <akim@epita.fr>
618
619 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
620
14ded682
AD
6212000-10-04 Akim Demaille <akim@epita.fr>
622
623 * doc/bison.texinfo: Various typos spotted by Neil Booth.
624
8e03724b
AD
6252000-10-04 Akim Demaille <akim@epita.fr>
626
627 When a literal string is used to define two different tokens,
628 `bison -v' segfaults.
629 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
630
631 * tests/regression.m4: New file.
632 Include the core of the sample provided by Piotr Gackiewicz.
633 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
634 properly.
635
a9e64249
AD
6362000-10-04 Akim Demaille <akim@epita.fr>
637
638 * src/reader.c (parse_expect_decl): Keep `count' within the size
639 of `buffer'.
640 From Neil Booth.
641
da9abf43
AD
6422000-10-02 Paul Eggert <eggert@twinsun.com>
643
644 * bison.s1 (yyparse): Assign the default value
645 unconditionally, to avoid a GCC warning and make the parser a
646 tad smaller.
647
c33638bb
AD
6482000-10-02 Akim Demaille <akim@epita.fr>
649
650 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
651 options.
652
444c570a
AD
6532000-10-02 Akim Demaille <akim@epita.fr>
654
655 * src/derives.c, src/print.c, src/reduce.c: To ease the
656 translation, move some `\n' out of the translated strings.
657
89cab50d
AD
6582000-10-02 Akim Demaille <akim@epita.fr>
659
660 The location tracking mechanism is precious for parse error
661 messages. Nevertheless, it is enabled only when `@n' is used in
662 the grammar, which is a different issue (you can use it in error
663 message, but not in the grammar per se). Therefore, there should
664 be another means to enable it.
665
666 * src/getargs.c (getargs): Support `--locations'.
667 (usage): Report it.
668 * src/getargs.h (locationsflag): Export it.
669 * src/lex.c (percent_table): Support `%locations'.
670 * src/reader.c (yylsp_needed): Remove this variable, now replaced
671 with `locationsflag'.
672 * doc/bison.texinfo: Document `--locations' and `%locations'.
673 Sort the options.
674 * tests/calc.m4: Test it.
675
676 For regularity of the names, replace each
677 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
678 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
679 In addition replace each `flag' with `_flag'.
680
d6c2cba0
AD
6812000-10-02 Akim Demaille <akim@epita.fr>
682
683 Also test parse error messages, including with YYERROR_VERBOSE.
684
685 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
686 associative).
687 Use it to check the computations.
688 Use it to check `nonassoc' is honored.
689 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
690 `--yyerror-verbose'.
691 (_AT_CHECK_CALC): Adjust to this option.
692 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
693
5a35a6cb
AD
6942000-10-02 Akim Demaille <akim@epita.fr>
695
696 Test also `--verbose', `--defines' and `--name-prefix'. Testing
697 the latter demonstrates a flaw in the handling of non debugging
698 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
699 was used in order to simplify:
700
701 #if YYDEBUG
702 if (yydebug)
703 {
704 ...
705 }
706 #endif
707
708 into
709
710 if (yydebug)
711 {
712 ...
713 }
714
715 unfortunately this leads to a CPP conflict when
716 `--name-prefix=foo' is used since it produces `#define yydebug
717 foodebug'.
718
719 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
720 (YYDPRINTF): New macro.
721 Spread its use.
722 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
723 the bison options.
724 Also test `--verbose', `--defines' and `--name-prefix'.
725
71da9eea
AD
7262000-10-02 Akim Demaille <akim@epita.fr>
727
728 Improve the readability of the produced parsers.
729
730 * src/bison.s1: Formatting changes.
731 Improve the comment related to the `$' mark.
732 (yydefault): Don't fall through to `yyresume': `goto' there.
733 * src/output.c (output_parser): When the `$' is met, skip the end
734 of its line.
735 New variable, `number_of_dollar_signs', to check there's exactly
736 one `$' in the parser skeleton.
737
95e36146
AD
7382000-10-02 Akim Demaille <akim@epita.fr>
739
740 * lib/xstrdup.c: New file, from the fileutils.
741 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
742 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
743 instead of strlen + xmalloc + strcpy.
744 * src/symtab.c (copys): Remove, use xstrdup instead.
745
d7020c20
AD
7462000-10-02 Akim Demaille <akim@epita.fr>
747
748 * src/gram.h (associativity): New enum type which replaces the
749 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
750 `right_assoc', `left_assoc' and `non_assoc'.
751 Adjust all dependencies.
752 * src/reader.c: Formatting changes.
753 (LTYPESTR): Don't define it, use it as a literal in
754 `reader_output_yylsp'.
755 * src/symtab.h (symbol_class): New enum type which replaces the
756 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
757 `sunknown', `stoken and `snterm'.
758
1916f98e
AD
7592000-10-02 Akim Demaille <akim@epita.fr>
760
761 * src/getargs.c (fixed_outfiles): Rename as...
762 (yaccflag): for consistency and accuracy.
763 Adjust dependencies.
764
d7913476
AD
7652000-10-02 Akim Demaille <akim@epita.fr>
766
767 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
768 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
769 difficult and introduced a lot of core dump. It turns out that
770 Bison used an implementation of `xmalloc' based on `calloc', and
771 at various places it does depend upon the initialization to 0. I
772 have not tried to isolate the pertinent places, and all the former
773 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
774 someone should address this issue.
775
776 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
777 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
778 files.
779 Adjust dependencies.
780 * src/warshall.h: New file.
781 Propagate.
782
340ef489
AD
7832000-10-02 Akim Demaille <akim@epita.fr>
784
785 Various anti-`extern in *.c' changes.
786
787 * src/system.h: Include `assert.h'.
788
b2ca4022
AD
7892000-10-02 Akim Demaille <akim@epita.fr>
790
791 * src/state.h (nstates, final_state, first_state, first_shift)
792 (first_reduction): Move their exportation from here...
793 * src/LR0.h: to here.
794 Adjust dependencies.
795 * src/getargs.c (statisticsflag): New variable.
796 Add support for `--statistics'.
797 Adjust dependencies.
798
799 Remove a lot of now useless `extern' statements in most files.
800
403b315b
AD
8012000-10-02 Akim Demaille <akim@epita.fr>
802
803 * src/LR0.h: New file.
804 Propagate its use.
805
07a58c13
AD
8062000-10-02 Akim Demaille <akim@epita.fr>
807
808 * src/print.h: New file.
809 Propagate its use.
810 * src/print.c: Formatting and ordering changes.
811 (verbose, terse): Replace with...
812 (print_results): this new function.
813 Adjust dependencies.
814
0619caf0
AD
8152000-10-02 Akim Demaille <akim@epita.fr>
816
817 * src/conflicts.c (conflict_report): New function.
818 (conflict_log, verbose_conflict_log): Replace with...
819 (print_conflicts): this function.
820 Adjust dependencies.
821 * src/conflicts.h: New file.
822 Propagate its inclusion.
823
3519ec76
AD
8242000-10-02 Akim Demaille <akim@epita.fr>
825
826 * src/nullable.h: New file.
827 Propagate its inclusion.
828 * src/nullable.c: Formatting changes.
829
015acc48
AD
8302000-10-02 Akim Demaille <akim@epita.fr>
831
832 * src/reduce.h: New file.
833 Propagate its inclusion.
834 * src/reduce.c: Topological sort and other formatting changes.
835 (bool, TRUE, FALSE): Move their definition to...
836 * src/system.h: here.
837
8963a27b
AD
8382000-10-02 Akim Demaille <akim@epita.fr>
839
840 * src/files.c: Formatting changes.
841 (tryopen, tryclose, openfiles): Rename as...
842 (xfopen, xfclose, open_files): this.
843 (stringappend): static.
844 * src/files.h: Complete the list of exported symbols.
845 Propagate its use.
846
a70083a3
AD
8472000-10-02 Akim Demaille <akim@epita.fr>
848
849 * src/reader.h: New file.
850 Propagate its use instead of tedious list of `extern' and
851 prototypes.
852 * src/reader.c: Formatting changes, topological sort,
853 s/register//.
854
abadc117
AD
8552000-10-02 Akim Demaille <akim@epita.fr>
856
857 * src/lex.h: Prototype `lex.c' exported functions.
858 * src/reader.c: Adjust.
859 * src/lex.c: Formatting changes.
860 (safegetc): Rename as...
861 (xgetc): this.
862
720d742f
AD
8632000-10-02 Akim Demaille <akim@epita.fr>
864
865 * src/lalr.h: New file.
866 Propagate its inclusion instead of prototypes and `extern'.
867 * src/lalr.c: Formatting changes, topological sorting etc.
868
f2acea59
AD
8692000-10-02 Akim Demaille <akim@epita.fr>
870
871 * src/output.c (token_actions): Introduce a temporary array,
872 YYDEFACT, that makes it possible for this function to use
873 output_short_table.
874
d019d655
AD
8752000-10-02 Akim Demaille <akim@epita.fr>
876
877 `user_toknums' is output as a `short[]' in `output.c', while it is
878 defined as a `int[]' in `reader.c'. For consistency with the
879 other output tables, `user_toknums' is now defined as a table of
880 shorts.
881
882 * src/reader.c (user_toknums): Be a short table instead of an int
883 table.
884 Adjust dependencies.
885
886 Factor the short table outputs.
887
888 * src/output.c (output_short_table): New function.
889 * src/output.c (output_gram, output_stos, output_rule_data)
890 (output_base, output_table, output_check): Use it.
891
6c89f1c1
AD
8922000-10-02 Akim Demaille <akim@epita.fr>
893
894 * src/output.c (output): Topological sort of the functions, in
895 order to get rid of the `static' prototypes.
896 No longer use `register'.
897 * src/output.h: New file.
898 Propagate its inclusion in files explicitly prototyping functions
899 from output.c.
900
d9efd181
AD
9012000-09-21 Akim Demaille <akim@epita.fr>
902
903 * src/atgeneral.m4: Update from Autoconf.
904
c29240e7 9052000-09-21 Akim Demaille <akim@epita.fr>
2fa6973e
AD
906
907 * src/closure.h: New file.
908 * src/closure.c: Formatting changes, topological sort over the
909 functions, use of closure.h.
910 (initialize_closure, finalize_closure): Rename as...
911 (new_closure, free_closure): these. Adjust dependencies.
912 * src/LR0.c: Formatting changes, topological sort, use of
913 cloture.h.
914 (initialize_states): Rename as...
915 (new_states): this.
916 * src/Makefile.am (noinst_HEADERS): Adjust.
917
499daa50
AD
9182000-09-20 Akim Demaille <akim@epita.fr>
919
920 * src/acconfig.h: Don't protect config.h against multiple
921 inclusion.
922 Don't define PARAMS.
923 * src/system.h: Define PARAMS.
924 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
925 purpose of config.h. system.h must not try to fix wrong
926 definitions in config.h.
927
cc84fd5d
AD
9282000-09-20 Akim Demaille <akim@epita.fr>
929
930 * src/derives.h: New file.
931 * src/main.c, src/derives.h: Use it.
932 Formatting changes.
933 * src/Makefile.am (noinst_HEADERS): Adjust.
934
db5b3a89
AD
9352000-09-20 Akim Demaille <akim@epita.fr>
936
937 * tests/atgeneral.m4: Update from Autoconf.
938 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
939 (AT_CHECK_CALC): New macros.
940 Use these macros to test bison with options `', `--raw',
941 `--debug', `--yacc', `--yacc --debug'.
942
ceed8467
AD
9432000-09-19 Akim Demaille <akim@epita.fr>
944
945 * src/output.c: Formatting changes.
946 * src/machine.h: Remove, leaving its contents in...
947 * src/system.h: here.
948 Include stdio.h.
949 Adjust all dependencies on stdio.h and machine.h.
950 * src/getargs.h: New file.
951 Let all `extern' declarations about getargs.c be replaced with
952 inclusion of `getargs.h'.
953 * src/Makefile.am (noinst_HEADERS): Adjust.
954
955 * tests/calc.m4 (yyin): Be initialized in main, not on the global
956 scope.
957 (yyerror): Returns void, not int.
958 * doc/bison.texinfo: Formatting changes.
959
05a1d24b
AD
9602000-09-19 Akim Demaille <akim@epita.fr>
961
962 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
963 portable.
964
cbd25751
AD
9652000-09-18 Akim Demaille <akim@epita.fr>
966
967 * configure.in: Append WARNING_CFLAGS to CFLAGS.
968 * src/Makefile.am (INCLUDES): Don't.
969 Be ready to fetch headers in lib/.
970
13863333
AD
9712000-09-18 Akim Demaille <akim@epita.fr>
972
973 * doc/bison.texinfo: Update the copyright.
974 ANSIfy and GNUify the examples.
975 Remove the old menu.
976
0d533154
AD
9772000-09-18 Akim Demaille <akim@epita.fr>
978
979 First set of tests: use the `calc' example from the documentation.
980
981 * src/bison.s1 (yyparse): Condition the code using `yytname' which
982 is defined only when YYDEBUG is.
983 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
984 * src/files.c (tryopen, tryclose): Formatting changes.
985 Move to the top and be static.
986 * src/reader.c (read_signed_integer): Likewise.
987 * tests/calc.m4: New file.
988 * Makefile.am, suite.m4: Adjust.
989 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
990
e79137ac
AD
9912000-09-18 Akim Demaille <akim@epita.fr>
992
993 Add support for an Autotest test suite for Bison.
994
995 * m4/m4.m4, m4/atconfig.m4: New files.
996 * m4/Makefile.am (EXTRA_DIST): Adjust.
997 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
998 files.
999 * src/getargs.c: Display a more standard --version message.
1000 * src/reader.c (reader): Formatting changes.
1001 No longer depend upon VERSION_STRING.
1002 * configure.in: No longer use `dnl'.
1003 Set up the test suite and the new directory `tests/.
1004 (VERSION_STRING): Remove.
1005
27821bff
AD
10062000-04-14 Akim Demaille <akim@epita.fr>
1007
1008 * src/reader.c (copy_comment2): New function, same as former
1009 `copy_comment', but outputs into two FILE *.
1010 (copy_comment): Use it.
1011 (parse_union_decl): Use it.
1012 (get_type, parse_start_decl): Use the same `invalid' message.
1013 (parse_start_decl, parse_union_decl): Use the same `multiple'
1014 message.
1015 (parse_union_decl, copy_guard, copy_action): Use the same
1016 `unmatched' message.
1017 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
1018
cfe5fbc0
AD
10192000-03-31 Akim Demaille <akim@epita.fr>
1020
1021 * src/files.c (tryopen, tryclose): Move to the top.
1022 Be static.
1023
cb7db13e
AD
10242000-03-31 Akim Demaille <akim@epita.fr>
1025
1026 * src/main.c (main): Don't call `done', exit does it.
1027
a0f6b076
AD
10282000-03-31 Akim Demaille <akim@epita.fr>
1029
36281465
AD
1030 * allocate.c: s/return (foo)/return foo/.
1031 * lalr.c: Likewise.
1032 * LR0.c: Likewise.
1033 * output.c: Likewise.
1034 * reader.c: Likewise.
1035 * symtab.c: Likewise.
1036 * vmsgetargs.c: Likewise.
1037
10382000-03-31 Akim Demaille <akim@epita.fr>
1039
1040 Clean up the error reporting functions.
a0f6b076
AD
1041
1042 * src/report.c: New file.
1043 * src/report.h: Likewise.
1044 * src/Makefile.am: Adjust.
1045 * m4/error.m4: New file.
1046 * m4/Makefile.am: Adjust.
1047 * configure.in (jm_PREREQ_ERROR): Call it.
1048 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
1049 Remove.
1050 (fatal, fatals): Remove. All callers use complain.c::fatal.
1051 (warn, warni, warns, warnss, warnss): Remove. All callers use
1052 complain.c::complain.
1053 (toomany): Remove, use fatal instead.
1054 * src/files.c (done): No argument, use complain_message_count.
1055 * src/main.c (main): Register `done' to `atexit'.
1056
1057 * src/getargs.c (usage): More `fputs', less `fprintf'.
1058
18539825
AD
10592000-03-28 Akim Demaille <akim@epita.fr>
1060
1061 * lib/: New directory.
1062 * Makefile.am (SUBDIRS): Adjust.
1063 * configure.in: Adjust.
1064 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
1065 useless.
1066 * src/alloca.c: Moved to lib/.
1067 * src/getopt.c: Likewise.
1068 * src/getopt1.c: Likewise.
1069 * src/getopt.h: Likewise.
1070 * src/ansi2knr.c: Likewise.
1071 * src/ansi2knr.1: Likewise.
1072 * src/Makefile.am: Adjust.
1073 * lib/Makefile.am: New file.
1074
9f306f2a
AD
10752000-03-28 Akim Demaille <akim@epita.fr>
1076
1077 * src/getargs.c (usage): Refresh the help message.
1078
0ba347b6
AD
10792000-03-17 Akim Demaille <akim@epita.fr>
1080
1081 * src/getopt1.c: Updated from textutils 2.0e
1082 * src/getopt.c: Likewise.
1083 * src/getopt.h: Likewise.
1084
dbe7f271
AD
10852000-03-17 Akim Demaille <akim@epita.fr>
1086
1087 * src/Makefile.am (bison.simple): Fix the awk program: quote only
1088 the file name, not the whole `#line LINE FILE'.
1089
75bbe78d
AD
10902000-03-17 Akim Demaille <akim@epita.fr>
1091
1092 On syntax errors, report the token on which we choked.
1093
aa5fd0ee
AD
1094 * src/bison.s1 (yyparse): In the label yyerrlab, when
1095 YYERROR_VERBOSE, add yychar in msg.
75bbe78d 1096
7b306f52
AD
10972000-03-17 Akim Demaille <akim@epita.fr>
1098
aa5fd0ee 1099 * src/reader.c (copy_at): New function.
7b306f52
AD
1100 (copy_guard): Use it.
1101 (copy_action): Use it.
1102
e87b5700
AD
11032000-03-17 Akim Demaille <akim@epita.fr>
1104
1105 Be kind to translators, save some useless translations.
1106
aa5fd0ee 1107 * src/main.c (banner): New function.
e87b5700
AD
1108 (fatal_banner): Use it.
1109 (warn_banner): Use it.
1110
ae3c3164
AD
11112000-03-17 Akim Demaille <akim@epita.fr>
1112
aa5fd0ee
AD
1113 * src/reader.c (copy_definition): Use copy_string and
1114 copy_comment. Removed now unused `match', `ended',
1115 `cplus_comment'.
ae3c3164
AD
1116 (copy_comment, copy_string): Moved, to be visible from
1117 copy_definition.
1118
4dc58e7c
AD
11192000-03-17 Akim Demaille <akim@epita.fr>
1120
aa5fd0ee
AD
1121 * src/reader.c (copy_string): Declare `static inline'. No
1122 problems with inline, since it is checked by configure.
4dc58e7c
AD
1123 (copy_comment): Likewise.
1124
0a6384c4
AD
11252000-03-17 Akim Demaille <akim@epita.fr>
1126
aa5fd0ee 1127 * src/reader.c (packsymbols): Formatting changes.
0a6384c4 1128
3cef001a
AD
11292000-03-17 Akim Demaille <akim@epita.fr>
1130
aa5fd0ee 1131 * src/reader.c (copy_comment): New function, factored out from:
3cef001a
AD
1132 (copy_action): Use it. Removed now unused `match', `ended',
1133 `cplus_comment'.
1134 (copy_guard): Likewise.
1135
ca36d2ef
AD
11362000-03-17 Akim Demaille <akim@epita.fr>
1137
aa5fd0ee 1138 * src/reader.c (copy_string): New function, factored out from:
ca36d2ef
AD
1139 (copy_action): Use it.
1140 (copy_guard): Likewise.
1141
6666f98f
AD
11422000-03-17 Akim Demaille <akim@epita.fr>
1143
1144 Change the handling of @s so that they behave exactly like $s.
1145 There is now a pseudo variable @$ (readble and writable), location
1146 of the lhs of the rule (by default ranging from the location of
1147 the first symbol of the rhs, to the location of the last symbol,
1148 or, if the rhs is empty, YYLLOC).
1149
1150 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
1151 yyval.
1152 (yyparse): When providing a default semantic action, provide a
1153 default location action.
1154 (after the $): No longer change `*YYLSP', just stack YYLOC the
1155 same way you stack YYVAL.
1156 * src/reader.c (read_declarations): Use warns.
1157 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
1158 (copy_action, case '@'): Likewise.
1159 Use a standard error message, to save useless work from
1160 translators.
1161
41aca2e0
AD
11622000-03-17 Akim Demaille <akim@epita.fr>
1163
aa5fd0ee
AD
1164 * src/bison.s1: Formatting and cosmetics changes.
1165 * src/reader.c: Likewise.
41aca2e0
AD
1166 Update the Copyright notice.
1167
dc08c1d5
AD
11682000-03-17 Akim Demaille <akim@epita.fr>
1169
aa5fd0ee
AD
1170 * src/bison.s1 (#line): All set to `#line' only, since the
1171 Makefile now handles them.
dc08c1d5 1172
9ee3c97b
AD
11732000-03-16 Akim Demaille <akim@epita.fr>
1174
1175 * src/output.c (output_rule_data): Output the documentation of
1176 some of the tables.
1177 (Copyright notice): Update.
1178 Formatting changes.
1179
0de741ca
AD
11802000-03-16 Akim Demaille <akim@epita.fr>
1181
1182 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
1183 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
1184 One `#if YYDEBUG' remains, since it uses variables which are
1185 defined only if `YYDEBUG != 0'.
1186
bb10be54
AD
11872000-03-16 Akim Demaille <akim@epita.fr>
1188
1189 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
1190 and related variables so that the similarities are highlighted.
1191
b07b484a
AD
11922000-03-16 Akim Demaille <akim@epita.fr>
1193
1194 * src/bison.s1: Properly indent CPP directives.
1195
361f60b3
AD
11962000-03-16 Akim Demaille <akim@epita.fr>
1197
1198 * src/bison.s1: Properly indent the `alloca' CPP section.
1199
8c44d3ec
AD
12002000-03-16 Akim Demaille <akim@epita.fr>
1201
1202 Do not hard code values of directories in `configure.in'.
1203 Update the `configure' tool chain.
1204
1205 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
1206 src/makefile.am.
1207 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
1208 (AC_OUTPUT): Add m4/Makefile.
1209 Bump to bison 1.28a, 1.29 has never been released.
1210 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
1211 handled via src/Makefile.am.
1212 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
1213 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
1214 autoheader.
1215 * Makefile.am (SUBDIRS): Add m4.
1216 (ACLOCAL_AM_FLAGS): New variable.
1217 (AUTOMAKE_OPTIONS): Add check-news.
1218 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
1219 the proper line number and file name.
1220 (DEFS): Propagate the location of bison library files and of the
1221 locale files.
1222 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
1223 builddir.
1224 * acinclude.m4: Remove, replaced by the directory m4.
1225 * m4/Makefile.am (EXTRA_DIST): New variable.
1226 * m4/gettext.m4: New file, from the fileutils.
1227 * m4/lcmessage.m4: Likewise
1228 * m4/progtest.m4: Likewise.
1229 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
1230
f95997e7
AD
12312000-03-10 Akim Demaille <akim@epita.fr>
1232
1233 * src/closure.c:
1234 Formatting changes of various comments.
1235 Respect the GNU coding standards at various places.
1236 Don't use `_()' when no translation is needed.
1237
12381999-12-13 Jesse Thilo <jthilo@gnu.org>
1239
1240 * src/files.c:
1241 OS/2 honors TMPDIR environment variable.
1242
12431999-12-13 Jesse Thilo <jthilo@gnu.org>
1244
1245 * doc/bison.texinfo: Tweaked spelling and grammar.
1246 Updated ISBN.
1247 Removed reference to price of printed copy.
1248 Mention BISON_SIMPLE and BISON_HAIRY.
1249
12501999-12-13 Jesse Thilo <jthilo@gnu.org>
1251
1252 * configure.in, NEWS:
1253 Bison 1.29 released.
1254
12551999-10-27 Jesse Thilo <jthilo@gnu.org>
1256
1257 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
1258 Added reference card.
1259
12601999-07-26 Jesse Thilo <jthilo@gnu.org>
1261
1262 * po/ru.po: Added Russian translation.
1263
12641999-07-26 Jesse Thilo <jthilo@gnu.org>
1265
1266 * configure.in: Added Russian translation.
1267
12681999-07-06 Jesse Thilo <jthilo@gnu.org>
1269
1270 * configure.in, NEWS, README:
1271 Released version 1.28.
1272
12731999-06-14 Jesse Thilo <jthilo@gnu.org>
1274
1275 * src/system.h:
1276 Squashed redefinition warning on some systems.
1277
1278 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
1279 Have configure build version string instead of relying on ANSI string
1280 concatentation.
1281
12821999-06-14 Jesse Thilo <jthilo@gnu.org>
1283
1284 * po/POTFILES.in: Got rid of version.c.
1285
12861999-06-14 Jesse Thilo <jthilo@gnu.org>
1287
1288 * acconfig.h, configure.in:
1289 Have configure build version string instead of relying on ANSI string
1290 concatentation.
1291
12921999-06-08 Jesse Thilo <jthilo@gnu.org>
1293
1294 * doc/bison.1:
1295 Dropped mention of `+' for long-named options.
1296
12971999-05-30 Jesse Thilo <jthilo@gnu.org>
1298
1299 * src/files.c: Added <unistd.h> for unlink().
1300
1301 * src/Makefile.am, src/system.h:
1302 I18n fixes.
1303
13041999-05-30 Jesse Thilo <jthilo@gnu.org>
1305
1306 * README: Added a FAQ list.
1307
1308 * configure.in, acconfig.h:
1309 I18n fixes.
1310
13111999-05-30 Jesse Thilo <jthilo@gnu.org>
1312
1313 * doc/FAQ, doc/Makefile.am:
1314 Added a FAQ list.
1315
13161999-05-19 Jesse Thilo <jthilo@gnu.org>
1317
1318 * src/alloc.h, src/symtab.h, src/version.c:
1319 Protected inclusion of "config.h" with HAVE_CONFIG_H.
1320
13211999-04-18 Jesse Thilo <jthilo@gnu.org>
1322
1323 * src/.cvsignore, src/Makefile.am:
1324 Reorganized: sources in `src', documentation in `doc'.
1325
1326 * src/lex.c (literalchar):
1327 fixed the code for escaping double quotes (thanks
1328 Jonathan Czisny.)
1329
13301999-04-18 Jesse Thilo <jthilo@gnu.org>
1331
1332 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
1333 Adjusted paths to reflect directory reorganization.
1334
13351999-04-18 Jesse Thilo <jthilo@gnu.org>
1336
1337 * doc/.cvsignore, doc/Makefile.am:
1338 Reorganized: sources in `src', documentation in `doc'.
1339
13401999-04-18 Jesse Thilo <jthilo@gnu.org>
1341
1342 * configure.in:
1343 Updated AC_INIT file to reflect directory reorganization.
1344
1345 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
1346 Reorganized: sources in `src', documentation in `doc'.
1347
13481999-04-13 Jesse Thilo <jthilo@gnu.org>
1349
1350 * src/allocate.c:
1351 Don't declare calloc() and realloc() if not necessary.
1352
13531999-04-13 Jesse Thilo <jthilo@gnu.org>
1354
1355 * configure.in, acconfig.h, acinclude.m4:
1356 Don't declare calloc() and realloc() if not necessary.
1357
13581999-03-23 Jesse Thilo <jthilo@gnu.org>
1359
1360 * po/.cvsignore: Added i18n support.
1361
13621999-03-23 Jesse Thilo <jthilo@gnu.org>
1363
1364 * acconfig.h, configure.in, Makefile.am:
1365 Added i18n support.
1366
13671999-03-22 Jesse Thilo <jthilo@gnu.org>
1368
1369 * src/bison.s1: Fixed #line numbers.
1370
13711999-03-15 Jesse Thilo <jthilo@gnu.org>
1372
1373 * po/es.po, po/fr.po, po/nl.po, po/de.po:
1374 Added PO files from Translation Project.
1375
13761999-03-03 Jesse Thilo <jthilo@gnu.org>
1377
1378 * Makefile.am:
1379 Added support for non-ANSI compilers (ansi2knr).
1380
13811999-02-16 Jesse Thilo <jthilo@gnu.org>
1382
1383 * configure.in: Bumped version number to 1.27.
1384
1385 * Makefile.am:
1386 Added `bison.simple' to list of files removed by `make distclean'.
1387
13881999-02-12 Jesse Thilo <jthilo@gnu.org>
1389
1390 * src/files.c, src/files.h:
1391 Defined locations of parser files in config.h instead of Makefile.
1392
13931999-02-12 Jesse Thilo <jthilo@gnu.org>
1394
1395 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
1396 Defined locations of parser files in config.h instead of Makefile.
1397
13981999-02-09 Jesse Thilo <jthilo@gnu.org>
1399
1400 * Makefile.am:
1401 Removed inappropriate use of $< macro.
1402
14031999-02-05 Jesse Thilo <jthilo@gnu.org>
1404
1405 * po/Makefile.in.in, po/POTFILES.in:
1406 Add `po' directory skeleton.
1407
14081999-01-27 Jesse Thilo <jthilo@gnu.org>
1409
1410 * README: Document help-bison list.
1411
1412 * configure.in: Add check for mkstemp().
1413
14141999-01-20 Jesse Thilo <jthilo@gnu.org>
1415
1416 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
1417 Hush a few compiler warnings.
1418
1419 * src/files.c:
1420 Add tryclose(), which verifies that fclose was successful.
1421 Hush a couple of compiler warnings.
1422
14231999-01-20 Jesse Thilo <jthilo@gnu.org>
1424
1425 * Makefile.am, OChangeLog:
1426 ChangeLog is now automatically generated. Include the old version as
1427 OChangeLog.
1428
14291999-01-14 Jesse Thilo <jthilo@gnu.org>
1430
1431 * 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:
1432 Update FSF address.
1433
14341999-01-14 Jesse Thilo <jthilo@gnu.org>
1435
1436 * doc/bison.texinfo: Fix formatting glitch.
1437
1438 * doc/bison.texinfo: Update FSF address.
1439
14401999-01-14 Jesse Thilo <jthilo@gnu.org>
1441
1442 * acconfig.h: Update FSF address.
1443
14441999-01-08 Jesse Thilo <jthilo@gnu.org>
1445
1446 * src/system.h:
1447 Don't define PACKAGE here, since config.h defines it.
1448
14491998-12-30 Jesse Thilo <jthilo@gnu.org>
1450
1451 * src/reader.c: Update copyright date.
1452
1453 * src/main.c:
1454 Ditch sprintf to statically-sized buffers in fatal/warn functions in
1455 favor of output directly to stderr (avoids buffer overruns).
1456
1457 * src/reader.c: Some checks for premature EOF.
1458
1459 * 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:
1460 Use prototypes if the compiler understands them.
1461
1462 * src/files.c: Honor TMPDIR on Unix hosts.
1463 Use prototypes if the compiler understands them.
1464
1465 * src/reader.c:
1466 Fix a couple of buffer overrun bugs.
1467 Use prototypes if the compiler understands them.
1468
1469 * src/system.h: Include unistd.h and ctype.h.
1470 Use #ifdef instead of #if for NLS symbols.
1471
14721998-12-30 Jesse Thilo <jthilo@gnu.org>
1473
1474 * doc/bison.texinfo:
1475 Delete comment "consider using @set for edition number, etc..." since
1476 we now are doing so.
1477
14781998-12-30 Jesse Thilo <jthilo@gnu.org>
1479
1480 * configure.in:
1481 Use prototypes if the compiler understands them.
1482
1483 * NEWS: Document 1.26 highlights.
1484
1485 * Makefile.am: Require Automake 1.3 or later.
1486
1487 * acconfig.h:
1488 Use prototypes if the compiler understands them.
1489
14901998-12-29 Jesse Thilo <jthilo@gnu.org>
1491
1492 * src/version.c:
1493 Use VERSION symbol from automake for version number.
1494
14951998-12-29 Jesse Thilo <jthilo@gnu.org>
1496
1497 * acconfig.h, configure.in, version.cin:
1498 Use VERSION symbol from automake for version number.
1499
15001998-11-28 Jesse Thilo <jthilo@gnu.org>
1501
1502 * Makefile.am:
1503 Distribute original version of simple parser (bison.s1), not built
1504 version (bison.simple).
1505
15061998-11-28 Jesse Thilo <jthilo@gnu.org>
1507
1508 * doc/bison.texinfo: Add info dir entry.
1509
1510 * doc/bison.texinfo:
1511 Let automake put version number into documentation.
1512
15131998-11-26 Jesse Thilo <jthilo@gnu.org>
1514
1515 * src/bison.cld, src/build.com, src/vmshlp.mar:
1516 Add non-RCS files from /gd/gnu/bison.
1517
15181998-11-26 Jesse Thilo <jthilo@gnu.org>
1519
1520 * doc/bison.1:
1521 Document the BISON_HAIRY and BISON_SIMPLE variables.
1522
15231998-11-25 Jesse Thilo <jthilo@gnu.org>
1524
1525 * src/version.c: Build version.c automatically.
1526
1527 * src/reader.c:
1528 Fix token numbering (used to start at 258, not 257).
1529
1530 * src/system.h: Include config.h.
1531
1532 * src/getargs.c: Update bug report address.
1533
1534 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
1535 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
1536
15371998-11-25 Jesse Thilo <jthilo@gnu.org>
1538
1539 * Makefile.am:
1540 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1541
1542 * configure.in, version.cin:
1543 Build version.c automatically.
1544
1545 * AUTHORS: Add AUTHORS file.
1546
1547 * README: Update bug report address.
1548
1549 * bison.simple:
1550 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
1551
1552 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
1553 Add automake stuff.
1554
15551998-11-25 Jesse Thilo <jthilo@gnu.org>
1556
1557 * doc/bison.texinfo: Clean up some formatting.
1558
15591998-05-05 Richard Stallman <rms@gnu.org>
1560
1561 * doc/bison.texinfo:
1562 Explain better why to make a pure parser.
1563
15641998-01-05 Richard Stallman <rms@gnu.org>
1565
1566 * src/files.c (openfiles):
1567 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
1568 find a temporary directory, if possible. Do not unlink files while
1569 they are open.
1570
15711997-08-25 Richard Stallman <rms@gnu.org>
1572
1573 * src/reader.c (stack_offset;):
1574 Change some warni to warns.
1575
1576 * src/lex.c (literalchar): Use warns, not warni.
1577
15781997-06-28 Richard Stallman <rms@gnu.org>
1579
1580 * src/bison.s1: Add a Bison version comment.
1581
1582 * src/main.c (fatal, warn, berror):
1583 Use program_name.
1584
15851997-06-28 Richard Stallman <rms@gnu.org>
1586
1587 * Makefile.in (bison_version): New variable.
1588 (dist): Use that variable.
1589 (bison.s1): Substitute the Bison version into bison.simple.
1590
1591 * bison.simple: Add a Bison version comment.
1592
15931997-06-18 Richard Stallman <rms@gnu.org>
1594
1595 * src/main.c (fatal, warn, berror):
1596 Make error messages standard.
1597 (toomany): Improve error message text.
1598
1599 * 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:
1600 new.h renamed to alloc.h.
1601
16021997-06-18 Richard Stallman <rms@gnu.org>
1603
1604 * Makefile.in: new.h renamed to alloc.h.
1605
16061997-05-24 Richard Stallman <rms@gnu.org>
1607
1608 * src/lex.c (literalchar):
1609 Fix the code for escaping \, " and '.
1610
1611 (lex): Avoid trouble when there are many chars
1612 to discard in a char literal with just several chars in it.
1613
16141997-05-17 Richard Stallman <rms@gnu.org>
1615
1616 * src/bison.s1:
1617 Use malloc, if using alloca is troublesome.
1618 (YYSTACK_USE_ALLOCA): New flag macro.
1619 Define it for some systems and compilers.
1620 (YYSTACK_ALLOC): New macro.
1621 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1622 If it was malloc'd, free it.
1623
16241997-05-17 Richard Stallman <rms@gnu.org>
1625
1626 * bison.simple:
1627 Use malloc, if using alloca is troublesome.
1628 (YYSTACK_USE_ALLOCA): New flag macro.
1629 Define it for some systems and compilers.
1630 (YYSTACK_ALLOC): New macro.
1631 (yyparse): Use YYSTACK_ALLOC to allocate stack.
1632 If it was malloc'd, free it.
1633
16341997-04-23 Richard Stallman <rms@gnu.org>
1635
1636 * src/bison.s1:
1637 (alloca) [__hpux]: Always define as __builtin_alloca.
1638
16391997-04-23 Richard Stallman <rms@gnu.org>
1640
1641 * bison.simple:
1642 (alloca) [__hpux]: Always define as __builtin_alloca.
1643
16441997-04-22 Richard Stallman <rms@gnu.org>
1645
1646 * src/bison.s1:
1647 [__hpux]: Include alloca.h (right for HPUX 10)
1648 instead of declaring alloca (right for HPUX 9).
1649
1650 * src/bison.s1 (__yy_memcpy):
1651 Declare arg `count' as unsigned int.
1652 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1653
16541997-04-22 Richard Stallman <rms@gnu.org>
1655
1656 * bison.simple:
1657 [__hpux]: Include alloca.h (right for HPUX 10)
1658 instead of declaring alloca (right for HPUX 9).
1659
1660 * bison.simple (__yy_memcpy):
1661 Declare arg `count' as unsigned int.
1662 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
1663
16641997-01-03 Richard Stallman <rms@gnu.org>
1665
1666 * src/allocate.c: [__STDC__ or _MSC_VER]:
1667 Declare calloc and realloc to return void *.
1668
16691997-01-02 Richard Stallman <rms@gnu.org>
1670
1671 * src/system.h:
1672 [_MSC_VER]: Include stdlib.h and process.h.
1673 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
1674
1675 * src/main.c (main): Return FAILURE as a value.
1676 (printable_version): Declare arg as int, not char.
1677
16781997-01-02 Richard Stallman <rms@gnu.org>
1679
1680 * Makefile.in (dist):
1681 Explicitly check for symlinks, and copy them.
1682
16831996-12-19 Richard Stallman <rms@gnu.org>
1684
1685 * src/files.c:
1686 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
1687
16881996-12-18 Paul Eggert <eggert@gnu.org>
1689
1690 * src/bison.s1 (yyparse):
1691 If __GNUC__ and YYPARSE_PARAM are both defined,
1692 declare yyparse to have a void * argument.
1693
16941996-12-18 Paul Eggert <eggert@gnu.org>
1695
1696 * bison.simple (yyparse):
1697 If __GNUC__ and YYPARSE_PARAM are both defined,
1698 declare yyparse to have a void * argument.
1699
17001996-12-17 Richard Stallman <rms@gnu.org>
1701
1702 * src/reduce.c (nbits): Add some casts.
1703
17041996-08-12 Richard Stallman <rms@gnu.org>
1705
1706 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
1707
17081996-08-12 Richard Stallman <rms@gnu.org>
1709
1710 * bison.simple: Test _MSDOS as well as _MSDOS_.
1711
17121996-07-31 Richard Stallman <rms@gnu.org>
1713
1714 * src/bison.s1:
1715 [__sun && __i386]: Include alloca.h.
1716
17171996-07-31 Richard Stallman <rms@gnu.org>
1718
1719 * bison.simple:
1720 [__sun && __i386]: Include alloca.h.
1721
17221996-07-30 Richard Stallman <rms@gnu.org>
1723
1724 * src/bison.s1: Comment change.
1725
1726 * src/bison.s1: Test _MSDOS_, not MSDOS.
1727
17281996-07-30 Richard Stallman <rms@gnu.org>
1729
1730 * bison.simple: Comment change.
1731
1732 * bison.simple: Test _MSDOS_, not MSDOS.
1733
17341996-06-01 Richard Stallman <rms@gnu.org>
1735
1736 * 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:
1737 Insert `_' macro around many string constants.
1738
1739 * src/main.c:
1740 Insert `_' macro around many string constants.
1741
1742 (main): Call setlocale, bindtextdomain and textdomain.
1743
1744 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
1745 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
1746 [ENABLE_NLS]: Include libintl.h.
1747 [ENABLE_NLS] (gettext): Define.
1748 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
1749 (N_, PACKAGE, LOCALEDIR): New macros.
1750
17511996-06-01 Richard Stallman <rms@gnu.org>
1752
1753 * POTFILES.in: New file.
1754
1755 * Makefile.in (allocate.o):
1756 Define target explicitly.
1757
1758 * Makefile.in (CFLAGS): Set to @CFLAGS@.
1759 (LDFLAGS): Set to @LDFLAGS@.
1760 (configure): Run autoconf only if preceding `cd' succeeds.
1761 (bison.s1): Redirect output to temporary file then move the
1762 temporary to the target, rather than redirecting directly to bison.s1.
1763 (clean): Remove config.status and config.log.
1764 (distclean): Don't remove config.status here.
1765
17661996-05-12 Richard Stallman <rms@gnu.org>
1767
1768 * src/bison.s1:
1769 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1770
17711996-05-12 Richard Stallman <rms@gnu.org>
1772
1773 * bison.simple:
1774 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
1775
17761996-05-11 Richard Stallman <rms@gnu.org>
1777
1778 * src/bison.s1 (__yy_memcpy):
1779 Really reorder the args, as was supposedly done on Feb 14 1995.
1780 (yyparse): Calls changed accordingly.
1781
17821996-05-11 Richard Stallman <rms@gnu.org>
1783
1784 * Makefile.in (dist): Don't use $(srcdir).
1785
1786 * bison.simple (__yy_memcpy):
1787 Really reorder the args, as was supposedly done on Feb 14 1995.
1788 (yyparse): Calls changed accordingly.
1789
17901996-01-27 Richard Stallman <rms@gnu.org>
1791
1792 * src/output.c (output_rule_data):
1793 Test YYERROR_VERBOSE in the conditional
1794 around the definition of ttyname.
1795
17961995-12-29 Richard Stallman <rms@gnu.org>
1797
1798 * src/bison.s1:
1799 Fix line numbers in #line commands.
1800
18011995-12-29 Richard Stallman <rms@gnu.org>
1802
1803 * bison.simple:
1804 Fix line numbers in #line commands.
1805
18061995-12-27 Richard Stallman <rms@gnu.org>
1807
1808 * src/bison.s1 (YYPARSE_PARAM_DECL):
1809 In C++, make it always null.
1810 (YYPARSE_PARAM_ARG): New macro.
1811 (yyparse): Use YYPARSE_PARAM_ARG.
1812
18131995-12-27 Richard Stallman <rms@gnu.org>
1814
1815 * bison.simple (YYPARSE_PARAM_DECL):
1816 In C++, make it always null.
1817 (YYPARSE_PARAM_ARG): New macro.
1818 (yyparse): Use YYPARSE_PARAM_ARG.
1819
18201995-11-29 Richard Stallman <rms@gnu.org>
1821
1822 * doc/bison.texinfo:
1823 Describe literal string tokens, %raw, %no_lines, %token_table.
1824
18251995-11-29 Daniel Hagerty <hag@gnu.org>
1826
1827 * doc/bison.texinfo: Fixed update date
1828
18291995-10-16 Richard Stallman <rms@gnu.org>
1830
1831 * src/version.c: Version 1.25.
1832
18331995-10-16 Richard Stallman <rms@gnu.org>
1834
1835 * NEWS: *** empty log message ***
1836
18371995-10-16 Richard Stallman <rms@gnu.org>
1838
1839 * doc/bison.1, doc/bison.rnh:
1840 Add new options.
1841
18421995-10-15 Richard Stallman <rms@gnu.org>
1843
1844 * src/vmsgetargs.c, src/getargs.c:
1845 Added -n, -k, and -raw switches.
1846 (noparserflag, toknumflag, rawtoknumflag): New variables.
1847
1848 * src/symtab.h (SALIAS):
1849 New #define for adding aliases to %token.
1850 (struct bucket): Added `alias' field.
1851
1852 * src/reduce.c (reduce_grammar):
1853 Revise error message.
1854 (print_notices): Remove final `.' from error message.
1855
1856 * src/reader.c (reader_output_yylsp):
1857 New function.
1858 (readgram): Use `#if 0' around code that accepted %command
1859 inside grammar rules: The documentation doesn't allow it,
1860 and it will fail since the %command processors scan for the next %.
1861 (parse_token_decl): Extended the %token
1862 declaration to allow a multi-character symbol as an alias.
1863 (parse_thong_decl): New function.
1864 (read_declarations): Added %thong declarations.
1865 (read_declarations): Handle NOOP to deal with allowing
1866 % declarations as another means to specify the flags.
1867 (readgram): Allow %prec prior to semantics embedded in a rule.
1868 (skip_to_char, read_declarations, copy_definition)
1869 (parse_token_decl, parse_start_decl, parse_type_decl)
1870 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
1871 (get_type_name, copy_guard, copy_action, readgram)
1872 (get_type, packsymbols): Revised most error messages.
1873 Changed `fatal' to `warnxxx' to avoid aborting for error.
1874 Revised and use multiple warnxxx functions to avoid using VARARGS1.
1875 (read_declarations): Improve the error message for
1876 an invalid character. Do not abort.
1877 (read_declarations, copy_guard, copy_action): Use
1878 printable_version to avoid unprintable characters in printed output.
1879 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
1880 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
1881 Allow the type of a non-terminal can be given
1882 more than once, as long as all specifications give the same type.
1883
1884 * src/output.c:
1885 (output_headers, output_trailers, output, output_gram)
1886 (output_rule_data): Implement noparserflag variable.
1887 Implement toknumflag variable.
1888 (output): Call reader_output_yylsp to output LTYPESTR.
1889
1890 * src/main.c (main):
1891 If reader sees an error, don't process the grammar.
1892 (fatals): Updated to not use VARARGS1.
1893 (printable_version, int_to_string, warn, warni, warns, warnss)
1894 (warnsss): New error reporting functions. Avoid abort for error.
1895
1896 * src/lex.h:
1897 Added THONG and NOOP for alias processing.
1898 Added SETOPT for the new code that allows setting options with %flags.
1899
1900 * src/lex.c:
1901 Include getopt.h. Add some extern decls.
1902 (safegetc): New function to deal with EOF gracefully.
1903 (literalchar); new function to deal with reading \ escapes.
1904 (lex): Use literalchar.
1905 (lex): Implemented "..." tokens.
1906 (literalchar, lex, parse_percent_token): Made tokenbuffer
1907 always contain the token. This includes growing the token
1908 buffer while reading an integer.
1909 (parse_percent_token): Replaced if-else statement with percent_table.
1910 (parse_percent_token): Added % declarations as another
1911 way to specify the flags -n, -l, and -r. Also added hooks for
1912 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
1913 major changes to files.c.
1914 (lex) Retain in the incoming stream a character following
1915 an incorrect '/'.
1916 (skip_white_space, lex): Revised most error messages
1917 and changed fatal to warn to avoid aborting.
1918 (percent_table): Added %thong declarations.
1919
1920 * src/gram.h: Comment changes.
1921
1922 * src/files.c (openfiles, open_extra_files, done):
1923 Add faction flag
1924 and actfile file. Handle noparserflag. Both for -n switch.
1925
1926 * src/conflicts.c (resolve_sr_conflict):
1927 Remove use of alloca.
1928
19291995-06-01 Jim Meyering <meyering@gnu.org>
1930
1931 * doc/bison.texinfo: *** empty log message ***
1932
19331995-05-06 Richard Stallman <rms@gnu.org>
1934
1935 * src/bison.s1: Comment change.
1936
19371995-05-06 Richard Stallman <rms@gnu.org>
1938
1939 * bison.simple: Comment change.
1940
19411995-05-03 Richard Stallman <rms@gnu.org>
1942
1943 * src/version.c: Version now 1.24.
1944
1945 * src/bison.s1: Change distribution terms.
1946
1947 * src/version.c: Version now 1.23.
1948
19491995-05-03 Richard Stallman <rms@gnu.org>
1950
1951 * doc/bison.texinfo:
1952 Rewrite "Conditions for Using Bison".
1953 Update version to 1.24.
1954
19551995-05-03 Richard Stallman <rms@gnu.org>
1956
1957 * bison.simple: Change distribution terms.
1958
19591995-02-23 Richard Stallman <rms@gnu.org>
1960
1961 * src/files.c: Test __VMS_POSIX as well as VMS.
1962
19631995-02-14 Jim Meyering <meyering@gnu.org>
1964
1965 * src/bison.s1 (__yy_memcpy):
1966 Renamed from __yy_bcopy to avoid
1967 confusion. Reverse FROM and TO arguments to be consistent with
1968 those of memcpy.
1969
19701995-02-14 Jim Meyering <meyering@gnu.org>
1971
1972 * bison.simple (__yy_memcpy):
1973 Renamed from __yy_bcopy to avoid
1974 confusion. Reverse FROM and TO arguments to be consistent with
1975 those of memcpy.
1976
19771994-11-10 David J. MacKenzie <djm@gnu.org>
1978
1979 * NEWS: reformat
1980
1981 * NEWS: New file.
1982
1983 * Makefile.in (DISTFILES): Include NEWS.
1984
1985 * Makefile.in (DISTFILES):
1986 Include install-sh, not install.sh.
1987
1988 * configure.in: Update to Autoconf v2 macro names.
1989
19901994-10-05 David J. MacKenzie <djm@gnu.org>
1991
1992 * Makefile.in: fix typo
1993
1994 * Makefile.in (prefix, exec_prefix):
1995 Let configure set them.
1996
19971994-09-28 David J. MacKenzie <djm@gnu.org>
1998
1999 * Makefile.in: Set datadir to $(prefix)/share.
2000
20011994-09-15 Richard Stallman <rms@gnu.org>
2002
2003 * src/bison.s1:
2004 Update copyright notice and GPL version.
2005
20061994-09-15 Richard Stallman <rms@gnu.org>
2007
2008 * bison.simple:
2009 Update copyright notice and GPL version.
2010
20111994-07-12 Richard Stallman <rms@gnu.org>
2012
2013 * src/reduce.c, src/reader.c:
2014 entered into RCS
2015
20161994-05-05 David J. MacKenzie <djm@gnu.org>
2017
2018 * Makefile.in: entered into RCS
2019
20201994-03-26 Richard Stallman <rms@gnu.org>
2021
2022 * src/bison.s1: entered into RCS
2023
20241994-03-26 Richard Stallman <rms@gnu.org>
2025
2026 * bison.simple: entered into RCS
2027
20281994-03-25 Richard Stallman <rms@gnu.org>
2029
2030 * src/main.c: entered into RCS
2031
20321994-03-24 Richard Stallman <rms@gnu.org>
2033
2034 * src/conflicts.c: entered into RCS
2035
20361994-01-02 Richard Stallman <rms@gnu.org>
2037
2038 * Makefile.in: *** empty log message ***
2039
20401993-11-21 Richard Stallman <rms@gnu.org>
2041
2042 * src/bison.s1: *** empty log message ***
2043
20441993-11-21 Richard Stallman <rms@gnu.org>
2045
2046 * doc/bison.texinfo: entered into RCS
2047
2048 * doc/bison.texinfo: *** empty log message ***
2049
20501993-11-21 Richard Stallman <rms@gnu.org>
2051
2052 * bison.simple: *** empty log message ***
2053
20541993-10-25 David J. MacKenzie <djm@gnu.org>
2055
2056 * doc/bison.texinfo: *** empty log message ***
2057
20581993-10-19 Richard Stallman <rms@gnu.org>
2059
2060 * src/bison.s1: *** empty log message ***
2061
20621993-10-19 Richard Stallman <rms@gnu.org>
2063
2064 * bison.simple: *** empty log message ***
2065
20661993-10-14 Richard Stallman <rms@gnu.org>
2067
2068 * src/bison.s1: *** empty log message ***
2069
20701993-10-14 Richard Stallman <rms@gnu.org>
2071
2072 * bison.simple: *** empty log message ***
2073
20741993-09-14 David J. MacKenzie <djm@gnu.org>
2075
2076 * doc/bison.texinfo: *** empty log message ***
2077
20781993-09-13 Noah Friedman <friedman@gnu.org>
2079
2080 * Makefile.in: *** empty log message ***
2081
20821993-09-10 Richard Stallman <rms@gnu.org>
2083
2084 * src/conflicts.c: *** empty log message ***
2085
2086 * src/system.h: entered into RCS
2087
20881993-09-10 Richard Stallman <rms@gnu.org>
2089
2090 * doc/bison.1: entered into RCS
2091
20921993-09-06 Noah Friedman <friedman@gnu.org>
2093
2094 * src/version.c: entered into RCS
2095
20961993-09-06 Noah Friedman <friedman@gnu.org>
2097
2098 * Makefile.in: *** empty log message ***
2099
21001993-07-30 David J. MacKenzie <djm@gnu.org>
2101
2102 * Makefile.in: *** empty log message ***
2103
21041993-07-24 Richard Stallman <rms@gnu.org>
2105
2106 * src/bison.s1: *** empty log message ***
2107
21081993-07-24 Richard Stallman <rms@gnu.org>
2109
2110 * bison.simple: *** empty log message ***
2111
21121993-07-08 David J. MacKenzie <djm@gnu.org>
2113
2114 * Makefile.in: *** empty log message ***
2115
21161993-07-04 Richard Stallman <rms@gnu.org>
2117
2118 * src/bison.s1: *** empty log message ***
2119
21201993-07-04 Richard Stallman <rms@gnu.org>
2121
2122 * bison.simple: *** empty log message ***
2123
21241993-06-26 David J. MacKenzie <djm@gnu.org>
2125
2126 * src/getargs.c: entered into RCS
2127
21281993-06-26 David J. MacKenzie <djm@gnu.org>
2129
2130 * doc/bison.texinfo: *** empty log message ***
2131
2132 * doc/bison.1: New file.
2133
21341993-06-25 Richard Stallman <rms@gnu.org>
2135
2136 * src/getargs.c: New file.
2137
21381993-06-16 Richard Stallman <rms@gnu.org>
2139
2140 * src/bison.s1: *** empty log message ***
2141
21421993-06-16 Richard Stallman <rms@gnu.org>
2143
2144 * bison.simple: *** empty log message ***
2145
21461993-06-03 Richard Stallman <rms@gnu.org>
2147
2148 * src/bison.s1: New file.
2149
21501993-06-03 Richard Stallman <rms@gnu.org>
2151
2152 * doc/bison.texinfo: *** empty log message ***
2153
21541993-06-03 Richard Stallman <rms@gnu.org>
2155
2156 * bison.simple: New file.
2157
21581993-05-19 Richard Stallman <rms@gnu.org>
2159
2160 * doc/bison.texinfo: New file.
2161
21621993-05-07 Noah Friedman <friedman@gnu.org>
2163
2164 * Makefile.in: *** empty log message ***
2165
21661993-04-28 Noah Friedman <friedman@gnu.org>
2167
2168 * src/reader.c: *** empty log message ***
2169
21701993-04-23 Noah Friedman <friedman@gnu.org>
2171
2172 * src/alloc.h: entered into RCS
2173
21741993-04-20 David J. MacKenzie <djm@gnu.org>
2175
2176 * src/version.c: *** empty log message ***
2177
2178 * src/files.c, src/allocate.c:
2179 entered into RCS
2180
2181 * src/reader.c: *** empty log message ***
2182
2183 * src/lex.c: entered into RCS
2184
2185 * src/conflicts.c: New file.
2186
2187 * src/symtab.c: entered into RCS
2188
2189 * src/alloc.h: New file.
2190
2191 * src/LR0.c: entered into RCS
2192
21931993-04-18 Noah Friedman <friedman@gnu.org>
2194
2195 * src/reader.c: New file.
2196
2197 * src/version.c: *** empty log message ***
2198
21991993-04-18 Noah Friedman <friedman@gnu.org>
2200
2201 * Makefile.in: *** empty log message ***
2202
22031993-04-17 Noah Friedman <friedman@gnu.org>
2204
2205 * Makefile.in: *** empty log message ***
2206
22071993-04-15 Richard Stallman <rms@gnu.org>
2208
2209 * src/main.c, src/files.c:
2210 New file.
2211
22121993-04-15 Noah Friedman <friedman@gnu.org>
2213
2214 * configure.in: entered into RCS
2215
2216 * configure.in: *** empty log message ***
2217
2218 * configure.in: New file.
2219
22201993-04-14 Richard Stallman <rms@gnu.org>
2221
2222 * Makefile.in: New file.
2223
22241993-04-13 Richard Stallman <rms@gnu.org>
2225
2226 * src/version.c: New file.
2227
22281993-03-25 Richard Stallman <rms@gnu.org>
2229
2230 * src/output.c: entered into RCS
2231
22321992-09-25 Richard Stallman <rms@gnu.org>
2233
2234 * configure.bat: entered into RCS
2235
22361992-06-22 Richard Stallman <rms@gnu.org>
2237
2238 * src/vmsgetargs.c: entered into RCS
2239
22401992-06-22 Richard Stallman <rms@gnu.org>
2241
2242 * doc/bison.rnh: entered into RCS
2243
22441992-04-20 David J. MacKenzie <djm@gnu.org>
2245
2246 * README: entered into RCS
2247
22481992-01-22 Richard Stallman <rms@gnu.org>
2249
2250 * src/machine.h: entered into RCS
2251
22521991-12-21 Richard Stallman <rms@gnu.org>
2253
2254 * src/lalr.c, src/closure.c:
2255 entered into RCS
2256
22571991-12-20 Richard Stallman <rms@gnu.org>
2258
2259 * src/state.h: entered into RCS
2260
22611991-12-18 Richard Stallman <rms@gnu.org>
2262
2263 * src/print.c, src/nullable.c, src/derives.c:
2264 entered into RCS
2265
22661991-11-03 David J. MacKenzie <djm@gnu.org>
2267
2268 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
2269 entered into RCS
2270
22711988-09-09 Richard Stallman <rms@gnu.org>
2272
2273 * src/bison.hairy: entered into RCS
2274
22751987-12-16 Richard Stallman <rms@gnu.org>
2276
2277 * REFERENCES: entered into RCS