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