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