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