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