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