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