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