]>
Commit | Line | Data |
---|---|---|
3d76b07d AD |
1 | 2001-11-14 Akim Demaille <akim@epita.fr> |
2 | ||
3 | * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be | |
4 | defined only if yyoverflow is defined, to avoid `warning: unused | |
5 | variable `yyvs1''. | |
6 | Reported by The Test Suite. | |
7 | ||
09b503c8 AD |
8 | 2001-11-14 Akim Demaille <akim@epita.fr> |
9 | ||
10 | * src/print.c: Include reduce.h. | |
11 | Reported by Hans Aberg. | |
12 | ||
13 | 2001-11-14 Akim Demaille <akim@epita.fr> | |
14 | ||
15 | * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer): | |
16 | Revert a previous patch: these are really const. | |
17 | * src/conflicts.c (conflict_report): Additional useless pair of | |
18 | braces to pacify GCC's warnings for `if () if () {} else {}'. | |
19 | * src/lex.c (parse_percent_token): Replace equal_offset with | |
20 | arg_offset. | |
21 | arg is const. | |
22 | Be sure to strdup `arg' when used, since there is no reason for | |
23 | token_buffer not to change. | |
24 | ||
0f37a994 AD |
25 | 2001-11-14 Akim Demaille <akim@epita.fr> |
26 | ||
27 | * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper | |
28 | definition. | |
29 | * src/main.c (main): Use them. | |
30 | Suggested by Hans Aberg. | |
31 | ||
d39d93b8 AD |
32 | 2001-11-12 Akim Demaille <akim@epita.fr> |
33 | ||
34 | * src/system.h (ngettext): Now that we use ngettext, be sure to | |
35 | provide a default definition when NLS are not used. | |
36 | ||
9edcd895 AD |
37 | 2001-11-12 Akim Demaille <akim@epita.fr> |
38 | ||
39 | * doc/bison.texinfo: Use `$' as shell prompt, not `%'. | |
40 | Use @kbd to denote user input. | |
41 | (Language and Grammar): ANSIfy the example. | |
42 | Adjust its layout for info/notinfo. | |
43 | (Location Tracking Calc): Output error messages to stderr. | |
44 | Output locations in a more GNUtically correct way. | |
45 | Fix a couple of Englishos. | |
46 | Adjust @group/@end group pairs. | |
47 | ||
7da99ede AD |
48 | 2001-11-12 Akim Demaille <akim@epita.fr> |
49 | ||
50 | %expext was not functioning at all. | |
51 | ||
52 | * src/conflicts.c (expected_conflicts): Set to -1. | |
53 | (conflict_report): Use ngettext. | |
54 | (conflicts_print): Check %expect and make its violation an error. | |
55 | * doc/bison.texinfo (Expect Decl): Adjust. | |
56 | * configure.in (AM_GNU_GETTEXT): Ask for ngettext. | |
57 | * tests/regression.at (%expect not enough, %expect right) | |
58 | (%expect too much): New. | |
59 | ||
ba9dda1a AD |
60 | 2001-11-12 Akim Demaille <akim@epita.fr> |
61 | ||
62 | * tests/regression.at (Conflicts): Rename as... | |
63 | (Unresolved SR Conflicts): this. | |
64 | (Solved SR Conflicts): New. | |
65 | ||
337c5bd1 AD |
66 | 2001-11-12 Akim Demaille <akim@epita.fr> |
67 | ||
68 | * src/reduce.c (print_results): Rename as... | |
69 | (reduce_output): This. | |
70 | Output to OUT, passed as argument, instead of output_obstack. | |
71 | (dump_grammar): Likewise. | |
72 | (reduce_free): New. | |
73 | Also free V1. | |
74 | (reduce_grammar): No longer call reduce_output, since... | |
75 | * src/print.c (print_results): do it. | |
76 | * src/main.c (main): Call reduce_free; | |
77 | ||
c73a41af AD |
78 | 2001-11-12 Akim Demaille <akim@epita.fr> |
79 | ||
80 | * src/conflicts.c (print_reductions): Accept OUT as argument. | |
81 | Output to it, not to output_obstack. | |
82 | * src/print.c (print_actions): Adjust. | |
83 | ||
0df87bb6 AD |
84 | 2001-11-12 Akim Demaille <akim@epita.fr> |
85 | ||
86 | * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return | |
87 | the result instead of using... | |
88 | (src_total, rrc_total, src_count, rrc_count): Remove. | |
89 | (any_conflicts): Remove. | |
90 | (print_conflicts): Split into... | |
91 | (conflicts_print, conflicts_output): New. | |
92 | * src/conflicts.h: Adjust. | |
93 | * src/main.c (main): Invoke both conflicts_output and conflicts_print. | |
0f37a994 | 94 | * src/print.c (print_grammar): Issue `\n' between two rules. |
0df87bb6 AD |
95 | * tests/regression.at (Conflicts): New. |
96 | Reported by Tom Lane. | |
97 | ||
e4d3d4de AD |
98 | 2001-11-12 Akim Demaille <akim@epita.fr> |
99 | ||
100 | * tests/regression.at (Invalid input): Remove, duplicate with | |
101 | ``Invalid input: 1''. | |
102 | ||
6d7d248e AD |
103 | 2001-11-12 Akim Demaille <akim@epita.fr> |
104 | ||
105 | * tests/torture.at (AT_DATA_STACK_TORTURE) | |
106 | (Exploding the Stack Size with Alloca) | |
107 | (Exploding the Stack Size with Malloc): New. | |
108 | ||
e9e4c321 AD |
109 | 2001-11-12 Akim Demaille <akim@epita.fr> |
110 | ||
111 | * src/bison.simple (YYSTACK_REALLOC): New. | |
112 | (yyparse) [!yyoverflow]: Use it and free the old stack. | |
0f37a994 | 113 | Reported by Per Allansson. |
e9e4c321 | 114 | |
5f7e0832 AD |
115 | 2001-11-12 Pascal Bart <pascal.bart@epita.fr> |
116 | ||
117 | * src/bison.simple: Define type yystype instead of YYSTYPE, and | |
118 | define CPP macro, which substitute YYSTYPE by yystype. | |
119 | * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do | |
120 | with yyltype/YYLTYPE. This allows inclusion of the generated | |
121 | header within the parser if the compiler, such as GGC, accepts | |
122 | multiple equivalent #defines. | |
123 | From Akim. | |
124 | ||
e3f1699f AD |
125 | 2001-11-05 Akim Demaille <akim@epita.fr> |
126 | ||
127 | * src/reader.c (symbols_output): New, extracted from... | |
128 | (packsymbols): here. | |
129 | (reader): Adjust. | |
130 | ||
65be0866 AD |
131 | 2001-11-05 Akim Demaille <akim@epita.fr> |
132 | ||
133 | * src/lex.c (parse_percent_token): s/quotearg/quote/. | |
134 | ||
e4d910bf AD |
135 | 2001-11-05 Akim Demaille <akim@epita.fr> |
136 | ||
137 | * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up | |
138 | pattern. | |
139 | ||
951366c1 AD |
140 | 2001-11-05 Akim Demaille <akim@epita.fr> |
141 | ||
142 | * src/options.h (struct option_table_struct): set_flags is void*. | |
143 | * src/options.c (longopts): Support `--output' and `%output'. | |
144 | (usage): Adjust. | |
145 | * src/lex.h (tok_setopt): Remove, replaced with... | |
146 | (tok_intopt, tok_stropt): these new guys. | |
147 | * src/lex.c (getopt.h): Not needed. | |
148 | (token_buffer, unlexed_token_buffer): Not const. | |
149 | (percent_table): Promote `-' over `_' in directive names. | |
150 | Active `%name-prefix', `file-prefix', and `output'. | |
151 | (parse_percent_token): Accept possible arguments to directives. | |
152 | Promote `-' over `_' in directive names. | |
153 | ||
d8988b2f AD |
154 | 2001-11-04 Akim Demaille <akim@epita.fr> |
155 | ||
156 | * doc/bison.texinfo (Decl Summary): Split the list into | |
157 | `directives for grammars' and `directives for bison'. | |
158 | Sort'em. | |
159 | Add description of `%name-prefix', `file-prefix', and `output'. | |
160 | Promote `-' over `_' in directive names. | |
161 | (Bison Options): s/%locactions/%locations/. Nice Freudian slip. | |
162 | Simplify the description of `--name-prefix'. | |
163 | Promote `-' over `_' in directive names. | |
164 | Promote `--output' over `--output-file'. | |
165 | Fix the description of `--defines'. | |
166 | * tests/output.at: Exercise %file-prefix and %output. | |
167 | ||
6468d18e AD |
168 | 2001-11-02 Akim Demaille <akim@epita.fr> |
169 | ||
170 | * doc/refcard.tex: Update. | |
171 | ||
6b7e85b9 AD |
172 | 2001-11-02 Akim Demaille <akim@epita.fr> |
173 | ||
174 | * src/symtab.h (SUNDEF): New. | |
175 | * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to | |
176 | stand for `uninitialized', instead of 0. | |
177 | * src/reader.c (packsymbols, parse_thong_decl): Adjust. | |
178 | * src/lex.c (lex): Adjust. | |
179 | ||
180 | * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF. | |
181 | Number it 0. | |
182 | Let yylex return it instead of a plain 0. | |
183 | Reported by Dick Streefland. | |
184 | ||
cd5aafcf AD |
185 | 2001-11-02 Akim Demaille <akim@epita.fr> |
186 | ||
187 | * tests/regression.at (Mixing %token styles): New test. | |
188 | ||
037ca2f1 AD |
189 | 2001-11-02 Akim Demaille <akim@epita.fr> |
190 | ||
191 | * src/reader.c (parse_thong_decl): Formatting changes. | |
192 | (token_translations_init): New, extracted from... | |
193 | (packsymbols): Here. | |
194 | Adjust. | |
195 | ||
270a173c AD |
196 | 2001-11-01 Akim Demaille <akim@epita.fr> |
197 | ||
198 | * tests/regression.at (AT_TEST_CPP_GUARD_H): New. | |
199 | Check that `9foo.y' produces correct cpp guards. | |
200 | * src/files.c (compute_header_macro): Prepend `BISON_' to CPP | |
201 | guards. | |
202 | Reported by Wwp. | |
203 | ||
561f9a30 AD |
204 | 2001-11-01 Akim Demaille <akim@epita.fr> |
205 | ||
206 | * tests/regression.at (Invalid input: 2): New. | |
207 | * src/lex.c (unlexed_token_buffer): New. | |
208 | (lex, unlex): Adjust: when unlexing, be sure to save token_buffer | |
209 | too. | |
210 | Reported by Wwp. | |
211 | ||
f987e9d2 AD |
212 | 2001-11-01 Akim Demaille <akim@epita.fr> |
213 | ||
214 | * tests/calc.at: Catch up with 1.30. | |
215 | * configure.in: Bump to 1.49a. | |
216 | Adjust to newer Autotest. | |
217 | ||
0846f581 PB |
218 | 2001-10-19 Pascal Bart <pascal.bart@epita.fr> |
219 | ||
220 | * src/conflicts.c: Move global variables rrc_total and src_total ... | |
221 | (print_conflicts): here. | |
222 | * src/output.c (output): Free global variable user_toknums. | |
223 | * src/lex.c (token_obstack): Become static. | |
224 | ||
3c1a79b3 AD |
225 | 2001-10-18 Akim Demaille <akim@epita.fr> |
226 | ||
227 | * tests/atlocal.in (GCC): Add. | |
228 | * tests/calc.at: s/m4_match/m4_bmatch/. | |
229 | s/m4_patsubst/m4_bpatsubst/. | |
230 | (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC. | |
231 | * configure.in: AC_SUBST(GCC). | |
232 | ||
5d52e7d0 MA |
233 | 2001-10-14 Marc Autret <autret_m@epita.fr> |
234 | ||
235 | * src/options.c (create_long_option_table): Fix. | |
236 | ||
631aa1d3 AD |
237 | 2001-10-10 Akim Demaille <akim@epita.fr> |
238 | ||
239 | * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA. | |
240 | ||
f6ec6d13 AD |
241 | 2001-10-04 Akim Demaille <akim@epita.fr> |
242 | ||
243 | * src/reader.c (parse_union_decl): Push the caracters in | |
244 | union_obstack, not attrs_obstack. | |
245 | ||
342b8b6e AD |
246 | 2001-10-04 Akim Demaille <akim@epita.fr> |
247 | ||
248 | Merge in the branch 1.29. | |
249 | ||
250 | * src/reader.c (packsymbols): Use a temporary obstack for | |
251 | `%%tokendef', since output_stack is already used elsewhere. | |
252 | ||
253 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
254 | ||
255 | Bump 1.29d. | |
256 | ||
257 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
258 | ||
259 | Version 1.29c. | |
260 | ||
261 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
262 | ||
263 | * tests/regression.at (Invalid CPP headers): New. | |
264 | From Alexander Belopolsky. | |
265 | * src/files.c (compute_header_macro): Map non alnum chars to `_'. | |
266 | ||
267 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
268 | ||
269 | * tests/regression.at (Invalid input): New. | |
270 | * src/lex.c (lex): Be sure to set `token_buffer' in any case. | |
271 | Reported by Shura. | |
272 | ||
273 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
274 | ||
275 | * tests/calc.at: Now that --debug works, the tests must be adjusted. | |
276 | ||
277 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
278 | ||
279 | * src/output.c (output_parser): Assert `skeleton'. | |
280 | * src/files.c (skeleton_find): Look harder for skeletons on DOSish | |
281 | systems. | |
282 | From Shura. | |
283 | ||
284 | 2001-10-01 Marc Autret <autret_m@epita.fr> | |
285 | ||
286 | * src/lex.h: Echo modifications. | |
287 | * src/lex.c (unlex): Parameter is now token_t. | |
288 | From Hans Aberg. | |
289 | ||
290 | 2001-10-01 Marc Autret <autret_m@epita.fr> | |
291 | ||
292 | * src/main.c: Include lex.h. | |
293 | From Hans Aberg. | |
294 | ||
295 | 2001-09-29 Akim Demaille <akim@epita.fr> | |
296 | ||
297 | * src/getargs.c (longopts): `--debug' is `-t', not `-d'. | |
298 | ||
299 | 2001-09-28 Akim Demaille <akim@epita.fr> | |
300 | ||
301 | * tests/testsuite.at: Update to newer Autotest. | |
302 | * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped. | |
303 | ||
304 | 2001-09-27 Akim Demaille <akim@epita.fr> | |
305 | ||
306 | Position independent wrapper. | |
307 | ||
308 | * tests/bison: Remove. | |
309 | * tests/bison.in: New. | |
310 | * configure.in: Adjust. | |
311 | ||
312 | 2001-09-27 Paul Eggert <eggert@twinsun.com> | |
313 | ||
314 | Port quotearg fixes from tar 1.13.24. | |
315 | ||
316 | * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct | |
317 | tm to be declared. | |
318 | (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC. | |
319 | (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT. | |
320 | ||
321 | * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4. | |
322 | * m4/mbrtowc.m4: New file. | |
323 | * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h. | |
324 | Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc). | |
325 | ||
326 | 2001-09-27 Akim Demaille <akim@epita.fr> | |
327 | ||
328 | Bump to 1.29c. | |
329 | ||
330 | 2001-09-27 Akim Demaille <akim@epita.fr> | |
331 | ||
332 | Version 1.29b. | |
333 | ||
334 | 2001-09-25 Akim Demaille <akim@epita.fr> | |
335 | ||
336 | * src/system.h: Include `xalloc.h'. | |
337 | Remove it from the C files. | |
338 | * src/files.c (output_files): Free the obstacks. | |
339 | * src/lex.c (init_lex): Rename as... | |
340 | (lex_init): this. | |
341 | (lex_free): New. | |
342 | * src/main.c (main): Use it. | |
343 | ||
344 | 2001-09-24 Marc Autret <autret_m@epita.fr> | |
345 | ||
346 | * src/vcg.c (open_edge, close_edge, open_node, close_node): Change | |
347 | to output informations in fout (FILE*). | |
348 | (open_graph, close_graph): Likewise. | |
349 | (output_graph, output_edge, output_node): Likewise. | |
350 | * src/vcg.h: Update function prototypes. | |
351 | * src/print_graph.c (print_graph): Open output graph file. | |
352 | (print_actions): Adjust. | |
353 | * src/files.h: Remove extern declaration. | |
354 | * src/files.c: Remove graph_obstack declaration. | |
355 | (open_files): Remove graph_obstack initialization. | |
356 | (output_files): Remove graph_obstack saving. | |
357 | ||
358 | 2001-09-24 Marc Autret <autret_m@epita.fr> | |
359 | ||
360 | * src/files.c (compute_output_file_names): Fix. | |
361 | ||
362 | 2001-09-24 Marc Autret <autret_m@epita.fr>, | |
363 | Akim Demaille <akim@epita.fr> | |
364 | ||
365 | * src/reader.c (reader): Remove call to free_symtab (). | |
366 | * src/main.c (main): Call it here. | |
367 | Include symtab.h. | |
368 | * src/conflicts.c (initialize_conflicts): Rename as... | |
369 | (solve_conflicts): this. | |
370 | * src/print.c (print_core, print_actions, print_state) | |
371 | (print_grammar): Dump to a file instead a `output_obstack'. | |
372 | (print_results): Dump `output_obstack', and then proceed with the | |
373 | FILE *. | |
374 | * src/files.c (compute_output_file_names, close_files): New. | |
375 | (output_files): Adjust. | |
376 | * src/main.c (main): Adjust. | |
377 | ||
378 | 2001-09-23 Marc Autret <autret_m@epita.fr> | |
379 | ||
380 | * src/files.c (compute_header_macro): Computes header macro name | |
381 | from spec_defines_file when given. | |
382 | ||
383 | 2001-09-23 Marc Autret <autret_m@epita.fr> | |
384 | ||
385 | * src/files.c (output_files): Add default extensions. | |
386 | ||
387 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
388 | ||
389 | * src/conflicts.c (finalize_conflicts): Rename as... | |
390 | (free_conflicts): this. | |
391 | ||
392 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
393 | ||
394 | * src/gram.c (gram_free): Rename back as... | |
395 | (dummy): this. | |
396 | (output_token_translations): Free `token_translations'. | |
397 | * src/symtab.c (free_symtab): Free the tag field. | |
398 | ||
399 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
400 | ||
401 | Remove `translations' as it is always set to true. | |
402 | ||
403 | * src/gram.h: Adjust. | |
404 | * src/reader.c (packsymbols, parse_token_decl): Adjust | |
405 | * src/print.c (print_grammar): Adjust. | |
406 | * src/output.c (output_token_translations): Adjust. | |
407 | * src/lex.c (lex): Adjust. | |
408 | * src/gram.c: Be sure the set pointers to NULL. | |
409 | (dummy): Rename as... | |
410 | (gram_free): this. | |
411 | ||
412 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
413 | ||
414 | * configure.in: Invoke AM_LIB_DMALLOC. | |
415 | * src/system.h: Use dmalloc. | |
416 | * src/LR0.c: Be sure to have pointers initialized to NULL. | |
417 | (allocate_itemsets): Allocate kernel_items only if needed. | |
418 | ||
419 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
420 | ||
421 | * configure.in: Bump to 1.29b. | |
422 | * tests/Makefile.am (DISTCLEANFILES): Add package.m4. | |
423 | * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't | |
424 | need xmalloc.c in calc.y. | |
425 | From Pascal Bart. | |
426 | ||
427 | 2001-09-21 Akim Demaille <akim@epita.fr> | |
428 | ||
429 | Version 1.29a. | |
430 | * Makefile.maint, config/config.guess, config/config.sub, | |
431 | * config/missing: Update from masters. | |
432 | * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend | |
433 | upon package.m4. | |
434 | * configure.in (ALL_LINGUAS): Add `tr'. | |
435 | ||
436 | 2001-09-21 Akim Demaille <akim@epita.fr> | |
437 | ||
438 | * tests/Makefile.am (package.m4): Move to... | |
439 | ($(srcdir)/$(TESTSUITE)): here. | |
440 | ||
441 | 2001-09-20 Akim Demaille <akim@epita.fr> | |
442 | ||
443 | * src/complain.c: No longer try to be standalone: use system.h. | |
444 | Don't assume __STDC__ is defined to 1. Just test if it is defined. | |
445 | * src/complain.h: Likewise. | |
446 | * src/reduce.c (useless_nonterminals, inaccessable_symbols): | |
447 | Remove the unused variable `n'. | |
448 | From Albert Chin-A-Young. | |
449 | ||
450 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
451 | ||
452 | * doc/bison.1: Update. | |
453 | * doc/bison.texinfo (Bison Options): Update --defines and --graph | |
454 | descriptions. | |
455 | (Option Cross Key): Update. | |
456 | Add --graph. | |
457 | ||
458 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
459 | ||
460 | * tests/regression.at: New test (comment in %union). | |
461 | ||
462 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
463 | ||
464 | * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment | |
465 | do that. | |
466 | Reported by Keith Browne. | |
467 | ||
468 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
469 | ||
470 | * tests/output.at: Add tests for --defines and --graph. | |
471 | ||
472 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
473 | ||
474 | * tests/output.at: Removes tests of %{header,src}_extension features. | |
475 | ||
476 | 2001-09-18 Akim Demaille <akim@epita.fr> | |
477 | ||
478 | * tests/Makefile.am (package.m4): New. | |
479 | * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'. | |
480 | (_AT_CHECK_CALC_ERROR): Likewise. | |
481 | Factor the `, ' part of verbose error messages. | |
482 | ||
483 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
484 | ||
485 | * src/getargs.c (longopts): Declare --defines and --graph as options | |
486 | with optional arguments. | |
487 | * src/files.h: Add extern declarations. | |
488 | * src/files.c (spec_graph_file, spec_defines_file): New. | |
489 | (output_files): Update. | |
490 | Remove CPP-outed code. | |
491 | ||
492 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
493 | ||
494 | Turn off %{source,header}_extension feature. | |
495 | ||
496 | * src/files.c (compute_exts_from_gf): Update. | |
497 | (compute_exts_from_src): Update. | |
498 | (output_files): CPP-out useless code. | |
499 | * src/files.h: Remove {header,source}_extension extern declarations. | |
500 | * src/reader.c (parse_dquoted_param): CPP-out. | |
501 | (parse_header_extension_decl): Remove. | |
502 | (parse_source_extension_decl): Remove. | |
503 | (read_declarations): Remove cases tok_{hdrext,srcext}. | |
504 | * src/lex.c (percent_table): Remove {header,source}_extension entries. | |
505 | * src/lex.h (token_t): Remove tok_hdrext and tok_srcext. | |
506 | ||
507 | 2001-09-10 Akim Demaille <akim@epita.fr> | |
508 | ||
509 | * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT): | |
510 | (AT_CHECK_BISON_PERCENT_FLAGS): Merge into... | |
511 | (AT_CHECK_OUTPUT): this. | |
512 | Merely check ls' exit status, its output is useless. | |
513 | ||
514 | 2001-09-10 Akim Demaille <akim@epita.fr> | |
515 | ||
516 | * tests/calc.at: Use m4_match. | |
517 | (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'. | |
518 | ||
519 | 2001-09-10 Marc Autret <autret_m@epita.fr>, | |
520 | Akim Demaille <akim@epita.fr> | |
521 | ||
522 | * src/vcg.h (graph_s): color, textcolor, bordercolor are now | |
523 | enum color_e. | |
524 | * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm | |
525 | to `normal'. | |
526 | * src/reader.c (parse_token_decl): Initialize token with tok_eof. | |
527 | * src/lex.h: Adjust prototype. | |
528 | (token_t): Add `tok_undef'. | |
529 | * src/lex.c (struct percent_table_struct): Retval is now a token_t. | |
530 | (parse_percent_token): Now returns token_t. | |
531 | Add default statement in switch. | |
532 | (lex): Separate `c' as an input variable, from the token_t result | |
533 | part. | |
534 | (unlexed): Is a token_t. | |
535 | ||
536 | 2001-09-10 Akim Demaille <akim@epita.fr> | |
537 | ||
538 | * configure.in: Bump to 1.29a. | |
539 | ||
540 | 2001-09-07 Akim Demaille <akim@epita.fr> | |
541 | ||
542 | Version 1.29. | |
543 | ||
544 | 2001-08-30 Akim Demaille <akim@epita.fr> | |
545 | ||
546 | * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove. | |
547 | * m4/atconfig.m4: Remove. | |
548 | * tests/testsuite.at, tests/atlocal.in, tests/output.at, | |
549 | * tests/bison: New. | |
550 | * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER, | |
551 | m4_if, m4_patsubst, and m4_regexp. | |
552 | * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an | |
553 | `input' file instead of echo. | |
554 | ||
555 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
556 | ||
557 | Bump to 1.28e. | |
558 | ||
559 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
560 | ||
561 | Version 1.28d. | |
562 | ||
563 | 2001-08-29 Paul Eggert <eggert@twinsun.com> | |
564 | ||
565 | * src/bison.simple (yyparse): Don't take the address of an | |
566 | item before the start of an array, as that doesn't conform to | |
567 | the C Standard. | |
568 | ||
569 | 2001-08-29 Robert Anisko <anisko_r@epita.fr> | |
570 | ||
571 | * doc/bison.texinfo (Location Tracking Calc): New node. | |
572 | ||
573 | 2001-08-29 Paul Eggert <eggert@twinsun.com> | |
574 | ||
575 | * src/output.c (output): Do not define const, as this now | |
576 | causes more problems than it cures. | |
577 | ||
578 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
579 | ||
580 | * doc/bison.texinfo: Modernize `@node' and `@top' use: just name | |
581 | the nodes. | |
582 | Be sure to tag the `detailmenu'. | |
583 | ||
584 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
585 | ||
586 | * Makefile.maint (do-po-update): Wget refuses to overwrite files: | |
587 | download in a tmp dir. | |
588 | ||
589 | 2001-08-28 Marc Autret <autret_m@epita.fr> | |
590 | ||
591 | * config/depcomp: New file. | |
592 | ||
593 | 2001-08-28 Marc Autret <autret_m@epita.fr> | |
594 | ||
595 | * doc/bison.1 (mandoc): Adjust. | |
596 | From Juan Manuel Guerrero. | |
597 | ||
598 | 2001-08-28 Marc Autret <autret_m@epita.fr> | |
599 | ||
600 | * src/print_graph.c (print_state): Fix. | |
601 | ||
602 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
603 | ||
604 | * src/vcg.h (classname_s, infoname_s, node_s): Constify the | |
605 | char * members. | |
606 | Echo modifications to the functions prototypes. | |
607 | * src/vcg.c (add_classname, add_infoname): Adjust arguments. | |
608 | ||
609 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
610 | ||
611 | * src/vcg.c: Include `xalloc.h'. | |
612 | (add_colorentry): New. | |
613 | (add_classname): New. | |
614 | (add_infoname): New. | |
615 | * src/vcg.h: Add new prototypes. | |
616 | ||
617 | 2001-08-27 Akim Demaille <akim@epita.fr> | |
618 | ||
619 | * Makefile.maint: Sync. again with CVS Autoconf. | |
620 | ||
621 | 2001-08-27 Akim Demaille <akim@epita.fr> | |
622 | ||
623 | * Makefile.maint: Formatting changes. | |
624 | (po-update, cvs-update, update): New targets. | |
625 | (AMTAR): Remove. | |
626 | ||
627 | 2001-08-27 Akim Demaille <akim@epita.fr> | |
628 | ||
629 | * Makefile.am (AUTOMAKE_OPTIONS): 1.5. | |
630 | * Makefile.maint: Sync. with CVS Autoconf. | |
631 | ||
632 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
633 | ||
634 | * src/vcg.h (struct infoname_s): New. | |
635 | (struct colorentry_s): New. | |
636 | (graph_s): New fields {vertical,horizontal}_order in structure. | |
637 | Add `infoname' field. | |
638 | Add `colorentry' field; | |
639 | * src/vcg_defaults.h (G_VERTICAL_ORDER): New. | |
640 | (G_HORIZONTAL_ORDER): New. | |
641 | (G_INFONAME): New. | |
642 | (G_COLORENTRY): New. | |
643 | * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order. | |
644 | Add output of `infoname'. | |
645 | Add output of `colorentry'. | |
646 | ||
647 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
648 | ||
649 | * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'. | |
650 | This one shadowed a global parameter. | |
651 | ||
652 | 2001-08-24 Marc Autret <autret_m@epita.fr> | |
653 | ||
654 | * src/print_graph.c (node_output_size): Declared POSIX `size_t' type, | |
655 | instead of `unsigned'. | |
656 | (print_state): Do not call obstack_object_size () in obstack_grow () | |
657 | to avoid macro variables shadowing. | |
658 | ||
659 | 2001-08-23 Marc Autret <autret_m@epita.fr> | |
660 | ||
661 | * src/lex.c (percent_table): Typo: s/naem/name/. | |
662 | Add graph option. | |
663 | Normalize new options declarations. | |
664 | ||
665 | 2001-08-20 Pascal Bart <pascal.bart@epita.fr> | |
666 | ||
667 | * tests/suite.at: Exercise %header_extension and %source_extension. | |
668 | ||
669 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
670 | ||
671 | * src/reader.c (parse_dquoted_param): New. | |
672 | (parse_header_extension_decl): Use it. | |
673 | (parse_source_extension_decl): Likewise. | |
674 | ||
675 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
676 | ||
677 | * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'. | |
678 | (get_xxxx_str): Use assert () instead of complain (). | |
679 | Remove return invokations in default cases. | |
680 | (get_decision_str): Modify default behaviour. Remove second argument. | |
681 | Echo modifications on calls. | |
682 | (output_graph): Fix. | |
683 | ||
684 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
685 | ||
686 | * src/getargs.c (usage): Update with ``-g, --graph''. | |
687 | ||
688 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
689 | ||
690 | * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'. | |
691 | (Option Cross Key): Likewise. | |
692 | * doc/bison.1: Update. | |
693 | ||
1c8c2190 PB |
694 | 2001-09-25 Pascal Bart <pascal.bart@epita.fr> |
695 | ||
696 | * src/output.c (output_master_parser): Don't finish action_obstack. | |
697 | (output_parser): Don't care about the muscle action, here. | |
698 | (prepare): Copy the action_obstack in the action muscle. | |
699 | (output): Free action_obstack. | |
700 | ||
180d45ba PB |
701 | 2001-09-23 Pascal Bart <pascal.bart@epita.fr> |
702 | ||
703 | * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which | |
704 | will contain `%union' declaration. | |
705 | (parse_union_decl): Delete #line directive output. | |
706 | (parse_union_decl): Substitute /attrs_obstack/union_obstack for all | |
707 | informations about %union. | |
708 | (parse_union_decl): Copy the union_obstack in the muscle stype. | |
709 | * src/bison.simple: Add new #line directive. | |
710 | Add typdef %%stype YYSTYPE. | |
711 | ||
c51d1a19 PB |
712 | 2001-09-23 Pascal Bart <pascal.bart@epita.fr> |
713 | ||
714 | * src/bison.simple: Add new `#line' directive. | |
715 | ||
6f9344da PB |
716 | 2001-09-22 Pascal Bart <pascal.bart@epita.fr> |
717 | ||
718 | * src/bison.simple: New `#line' directive. | |
719 | * src/output.c (output_parser): Support new dynamic muscle input_line. | |
720 | ||
652def80 MA |
721 | 2001-09-22 Marc Autret <autret_m@epita.fr> |
722 | ||
723 | * src/output.c (output_master_parser): New. | |
724 | (output_parser): Be more re-entrant. | |
725 | ||
25b222fa MA |
726 | 2001-09-21 Marc Autret <autret_m@epita.fr> |
727 | ||
728 | * src/reader.c (copy_definition, parse_union_decl): Update and use | |
729 | `linef' muscle. | |
730 | (copy_action): Likewise. | |
731 | Use obstack_1grow (). | |
732 | * src/muscle_tab.c (muscle_init): Add muscle `linef'. | |
733 | ||
6bc35ae5 MA |
734 | 2001-09-21 Marc Autret <autret_m@epita.fr> |
735 | ||
736 | * src/options.c (option_table): Adjust. | |
737 | * src/lex.c (parse_percent_token): Fix. | |
738 | ||
c0629aa1 PB |
739 | 2001-09-20 Pascal Bart <pascal.bart@epita.fr> |
740 | ||
741 | * src/options.c (symtab.h): Include it, need by lex.h. | |
342b8b6e | 742 | |
82b6d266 PB |
743 | 2001-09-20 Pascal Bart <pascal.bart@epita.fr> |
744 | ||
745 | * src/lex.c (parse_percent_token): Change type of variable `tx', which | |
746 | is now an option_table_struct*. | |
747 | (option_strcmp): New function option_strcmp. | |
748 | (parse_percent_token): Call option_strcmp. | |
749 | * src/getargs.c (xalloc.h, options.h): Include it. | |
750 | (getargs): Call create_long_option_table. | |
751 | (getargs): Free longopts at the end of the function. | |
752 | (shortopts): Move in options.c. | |
753 | * src/options.c (create_long_option_table): New function. Convert | |
754 | information from option_table to option structure. | |
755 | * src/reader.c (options.h): Include it. | |
756 | ||
757 | * src/Makefile.am: Adjust. | |
758 | * src/options.c (option_table): Create from longopts and percent_table. | |
759 | * src/getargs.c (longopts): Delete. | |
760 | * src/lex.c (struct percent_table_struct): Delete. | |
761 | (percent_table): Delete. | |
762 | (options.h): Include it. | |
763 | * src/options.c: Create. | |
764 | * src/options.h: Create. | |
765 | Declare enum opt_access_e. | |
766 | Define struct option_table_struct. | |
767 | ||
75f5aaea MA |
768 | 2001-09-20 Marc Autret <autret_m@epita.fr> |
769 | ||
770 | * doc/bison.texinfo: Adjust terminologies about prologue and epilogue | |
771 | sections of Bison. | |
772 | ||
f508cb0a PB |
773 | 2001-09-19 Pascal Bart <pascal.bart@epita.fr> |
774 | ||
775 | * src/bison.simple: s/%%filename/%%skeleton. | |
776 | * src/muscle_tab.c (getargs.h): Include it. | |
777 | (muscle_init): Insert new muscle skeleton. | |
778 | ||
13105fc1 PB |
779 | 2001-09-18 Pascal Bart <pascal.bart@epita.fr> |
780 | ||
781 | * src/output.c (output_parser): Delete unused variable actions_dumped. | |
782 | ||
b0c4483e PB |
783 | 2001-09-07 Pascal Bart <pascal.bart@epita.fr> |
784 | ||
785 | * src/output.c (output): Delete call to reader_output_yylsp. | |
786 | * src/reader.c (reader): Likewise. | |
787 | * src/reader.h: Delete declaration of reader_output_yylsp. | |
342b8b6e | 788 | |
11d82f03 MA |
789 | 2001-09-02 Marc Autret <autret_m@epita.fr> |
790 | ||
791 | * src/reader.c: Include muscle_tab.h. | |
792 | (parse_union_decl): Update. | |
793 | (parse_macro_decl): Rename parse_muscle_decl. | |
794 | Update to use renamed functions and variable. | |
795 | (read_declarations, copy_action, read_additionnal_code, : Updated | |
796 | with correct variables and functions names. | |
797 | (packsymbols, reader): Likewise. | |
342b8b6e | 798 | |
11d82f03 | 799 | * src/reader.h (muscle_obstack): Extern declaration update. |
342b8b6e | 800 | |
11d82f03 MA |
801 | * src/output.c: Include muscle_tab.h |
802 | In all functions using macro_insert, change by using muscle_insert (). | |
803 | (macro_obstack): Rename muscle_obstack. | |
804 | Echo modifications in the whole file. | |
805 | (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT. | |
806 | (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING. | |
807 | (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX. | |
808 | ||
809 | * src/muscle_tab.h: Update double inclusion macros. | |
810 | (macro_entry_s): Rename muscle_entry_s. | |
811 | Update prototypes. | |
342b8b6e | 812 | |
11d82f03 MA |
813 | * src/muscle_tab.c: Include muscle_tab.h. |
814 | Rename macro_tabble to muscle_table. | |
815 | (mhash1, mhash2, mcmp): Use muscle_entry. | |
816 | (macro_init): Rename muscle_init. Update. | |
817 | (macro_insert): Rename muscle_insert. Update. | |
818 | (macro_find): Rename muscle_find. Update. | |
819 | ||
820 | * src/main.c: Include muscle_tab.h. | |
821 | (main): Call muscle_init (). | |
822 | * src/Makefile.am (bison_SOURCES): Echo modifications. | |
823 | ||
93a37297 MA |
824 | 2001-09-02 Marc Autret <autret_m@epita.fr> |
825 | ||
f753cd62 | 826 | Now the files macro_tab.[ch] are named muscle_tab.[ch]. |
342b8b6e | 827 | |
f753cd62 MA |
828 | * src/muscle_tab.c, src/muscle_tab.h: Add files. |
829 | ||
830 | 2001-09-02 Marc Autret <autret_m@epita.fr> | |
831 | ||
832 | * src/macrotab.c, src/macrotab.h: Remove. | |
93a37297 | 833 | |
682d48cd PB |
834 | 2001-09-01 Pascal Bart <pascal.bart@epita.fr> |
835 | ||
342b8b6e | 836 | * src/reader.c (copy_guard): Use muscle to specify the `#line' |
682d48cd PB |
837 | filename. |
838 | ||
087c8fda MA |
839 | 2001-09-01 Marc Autret <autret_m@epita.fr> |
840 | ||
841 | * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set | |
842 | to an explicit value to activate the feature. We do it here. | |
843 | ||
dda680cb PB |
844 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
845 | ||
846 | * src/output.c (prepare): Delete the `filename' muscule insertion. | |
847 | * src/reader.c (copy_action): Use `filename' muscule with `#line'. | |
848 | (parse_union_decl): Likewise. | |
849 | * src/macrotab.c (macro_init): Initialize filename by infile. | |
850 | ||
9e644e64 MA |
851 | 2001-08-31 Marc Autret <autret_m@epita.fr> |
852 | ||
853 | * src/bison.simple (YYLSP_NEEDED): New definition. | |
854 | * src/output.c (prepare): Add macro insertion of `locations_flag' | |
855 | ||
17da6427 PB |
856 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
857 | ||
858 | * src/output.c (prepare): Delete insertion of previous muscles, | |
859 | and insert the `prefix' muscles. | |
860 | * src/macrotab.c (macro_init): Likewise. | |
861 | (macro_init): Initialization prefix directive by `yy'. | |
342b8b6e | 862 | * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval, |
17da6427 PB |
863 | %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar, |
864 | yylval, yydebug, yyerror, yynerrs and yyparse. | |
342b8b6e | 865 | New directive `#define' to substitute yydebug, ... with option |
17da6427 PB |
866 | name_prefix. |
867 | ||
e8cb70b9 PB |
868 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
869 | ||
870 | * src/main.c (main): Standardize. | |
871 | * src/output.c (output_table_data, output_parser): Likewise. | |
872 | * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise. | |
873 | ||
63c2d5de MA |
874 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr> |
875 | ||
342b8b6e | 876 | * src/reader.c (read_additionnal_code): Rename %%user_code to |
63c2d5de MA |
877 | %%epilogue. |
878 | * src/output.c (output): Rename %%declarations to %%prologue. | |
879 | * src/bison.simple: Echo modifications. | |
342b8b6e | 880 | |
d8cb5183 MA |
881 | 2001-08-31 Marc Autret <autret_m@epita.fr> |
882 | ||
883 | * src/reader.c (readgram): CleanUp. | |
884 | (output_token_defines): Likewise. | |
885 | (packsymbols): Likewise. | |
886 | (reader): Likewise. | |
887 | * src/output.c (output): CPP-out useless code. | |
888 | ||
6c686258 PB |
889 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
890 | ||
342b8b6e | 891 | * src/reader.c (reader): Delete obsolete call to function |
6c686258 PB |
892 | output_trailers and output_headers. |
893 | * src/output.h: Remove obsolete functions prototypes of output_headers | |
894 | and output_trailers. | |
895 | ||
8f451ef7 PB |
896 | 2001-08-30 Pascal Bart <pascal.bart@epita.fr> |
897 | ||
898 | * src/main.c: Include macrotab.h. | |
342b8b6e | 899 | * src/macrotab.h (macro_entry_s): Constify fields. |
8f451ef7 PB |
900 | Adjust functions prototypes. |
901 | * src/macrotab.c (macro_insert): Constify key and value. | |
902 | (macro_find): Constify key. | |
903 | (macro_insert): Include 'xalloc.h' | |
904 | (macro_insert): Use XMALLOC. | |
905 | (macro_find): Constify return value. | |
906 | * src/output.c (output_table_data): Rename table to table_data. | |
907 | (output_parser): Constify macro_key, macro_value. | |
908 | ||
997b6fd0 | 909 | 2001-08-30 Marc Autret <autret_m@epita.fr> |
2ba3b73c MA |
910 | |
911 | * src/reader.c (parse_skel_decl): New. | |
342b8b6e | 912 | (read_declarations): Add case `tok_skel', call parse_skel_decl (). |
2ba3b73c MA |
913 | * src/lex.h (token_t): New token `tok_skel'. |
914 | * src/lex.c (percent_table): Add skeleton option entry. | |
915 | Standardize. | |
916 | ||
ff48177d MA |
917 | 2001-08-29 Marc Autret <autret_m@epita.fr> |
918 | ||
919 | * src/bison.simple: Add %%user_code directive at the end. | |
920 | * src/reader.c (read_additionnal_code): New. | |
921 | (reader): Use it. | |
922 | * src/output.c (output_program): Remove. | |
923 | (output): Update. | |
924 | ||
b33160bf MA |
925 | 2001-08-28 Marc Autret <autret_m@epita.fr> |
926 | ||
927 | * src/output.c (output_actions): Clean up. | |
4e5caae2 | 928 | (output_gram): CPP-out useless code. |
b33160bf MA |
929 | * src/reader.c (reader): Clean up, CPP-out useless code. |
930 | ||
d1a2daf7 PB |
931 | 2001-08-28 Pascal Bart <pascal.bart@epita.fr> |
932 | ||
342b8b6e | 933 | * src/output.c (output): Copy attrs_obstack in the '%%definitions' |
535c0e75 | 934 | directive. |
d1a2daf7 PB |
935 | * src/bison.simple: Add `%%definitions'. |
936 | ||
2b763dfe MA |
937 | 2001-08-28 Marc Autret <autret_m@epita.fr> |
938 | ||
939 | * config/depcomp: New file. | |
940 | ||
f1a87ef6 PE |
941 | 2001-08-27 Paul Eggert <eggert@twinsun.com> |
942 | ||
943 | * src/bison.simple (yyparse): Don't take the address of an | |
944 | item before the start of an array, as that doesn't conform to | |
945 | the C Standard. | |
946 | ||
82e236e2 RA |
947 | 2001-08-27 Robert Anisko <robert.anisko@epita.fr> |
948 | ||
f1a87ef6 | 949 | * src/output.c (output): Remove the initialization of the macro |
82e236e2 RA |
950 | obstack. It was done too late here. |
951 | ||
952 | * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was | |
953 | completely wrong. | |
954 | (reader): Initialize the macro obstack here, since we need it to grow | |
955 | '%define' directives. | |
956 | ||
957 | * src/reader.h: Declare the macro obstack as extern. | |
958 | ||
b0cfa28a RA |
959 | 2001-08-27 Robert Anisko <robert.anisko@epita.fr> |
960 | ||
961 | * src/output.c (output_parser): Fix. Store single '%' characters in | |
962 | the output obstack instead of throwing them away. | |
963 | ||
6fc74234 AD |
964 | 2001-08-27 Akim Demaille <akim@epita.fr> |
965 | ||
966 | * Makefile.am (AUTOMAKE_OPTIONS): 1.5. | |
967 | ||
9c76d118 RA |
968 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
969 | ||
970 | * lib/Makefile.am: Adjust. | |
971 | ||
a8289c62 RA |
972 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
973 | ||
974 | * src/bison.simple: Update and add '%%' directives. | |
975 | ||
b6610515 RA |
976 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
977 | ||
978 | * src/reader.c (reader): Remove calls to 'output_headers' and | |
979 | 'output_trailers'. Remove some C output. | |
980 | (readgram): Disable a piece of code that was writing a default | |
981 | definition for 'YYSTYPE'. | |
982 | (reader_output_yylsp): Remove. | |
983 | (packsymbols): Output token defintions to a macro. | |
984 | (copy_definition): Disable C output. | |
6fc74234 | 985 | |
b6610515 RA |
986 | * src/reader.c (parse_macro_decl): New function used to parse macro |
987 | declarations. | |
988 | (copy_string2): Put the body of copy_string into this new function. | |
989 | Add a parameter to let the caller choose whether he wants to copy the | |
990 | string delimiters or not. | |
991 | (copy_string): Be a simple call to copy_string2 with the last argument | |
992 | bound to true. | |
993 | (read_declarations): Add case for macro definition. | |
994 | (copy_identifier): New. | |
6fc74234 | 995 | (parse_macro_decl): Read macro identifiers using copy_identifier |
b6610515 RA |
996 | rather than lex. |
997 | ||
26f609ff RA |
998 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
999 | ||
1000 | * src/output.c (prepare): Add prefixed names. | |
1001 | (output_parser): Output semantic actions. | |
1002 | (output_parser): Fix bug on '%%line' directives. | |
6fc74234 | 1003 | |
26f609ff RA |
1004 | * src/output.c (output_headers): Remove. The C code printed by this |
1005 | function should now be in the skeletons. | |
1006 | (output_trailers): Remove. | |
1007 | (output): Disable call to 'reader_output_yylsp'. | |
1008 | (output_rule_data): Do not output tables to the table obstack. | |
1009 | ||
1010 | * src/output.c: Remove some C dedicated output. | |
1011 | Improve the use of macro and output obstacks. | |
1012 | (output_defines): Remove. | |
6fc74234 | 1013 | |
26f609ff RA |
1014 | * src/output.c (output_token_translations): Associate 'translate' |
1015 | table with a macro. No output to the table obstack. | |
1016 | (output_gram): Same for 'rhs' and 'prhs'. | |
1017 | (output_stos): Same for 'stos'. | |
1018 | (output_rule_data): Same for 'r1' and 'r2'. | |
1019 | (token_actions): Same for 'defact'. | |
1020 | (goto_actions): Same for 'defgoto'. | |
1021 | (output_base): Same for 'pact' and 'pgoto'. | |
1022 | (output_table): Same for 'table'. | |
1023 | (output_check): Same for 'check'. | |
6fc74234 | 1024 | |
26f609ff RA |
1025 | * src/output.c (output_table_data): New function. |
1026 | (output_short_table): Remove. | |
1027 | (output_short_or_char_table): Remove. | |
6fc74234 | 1028 | |
26f609ff RA |
1029 | * src/output.c (output_parser): Replace most of the skeleton copy code |
1030 | with something new. Skeletons are now processed character by character | |
1031 | rather than line by line, and Bison looks for '%%' macros. This is the | |
1032 | first step in making Bison's output process (a lot) more flexible. | |
1033 | (output_parser): Use the macro table. | |
1034 | ||
6f43b113 RA |
1035 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
1036 | ||
1037 | * src/main.c (main): Initialize the macro table. | |
1038 | ||
dd3127cf RA |
1039 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
1040 | ||
1041 | * src/lex.c (percent_table): Add tok_define. | |
1042 | * src/lex.h: Add tok_define. | |
1043 | ||
aa321494 RA |
1044 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
1045 | ||
1046 | * src/macrotab.c: New file. | |
1047 | * src/macrotab.h: New file. | |
1048 | * src/Makefile.am: Update. | |
1049 | ||
68bd3b6b RA |
1050 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
1051 | ||
1052 | * lib/hash.c: New file. | |
1053 | * lib/hash.h: New file. | |
1054 | * lib/Makefile.am: Update. | |
1055 | ||
45f8dd1e AD |
1056 | 2001-08-15 Akim Demaille <akim@epita.fr> |
1057 | ||
1058 | Version 1.28c. | |
1059 | ||
40a64a7a | 1060 | 2001-08-15 Marc Autret <autret_m@epita.fr> |
0b8afb77 AD |
1061 | |
1062 | * src/reader.c (readgram): Indent output macro YYSTYPE. | |
1063 | (packsymbols): Likewise. | |
1064 | (output_token_defines): Likewise. | |
1065 | * src/files.c: Standardize. | |
1066 | (compute_header_macro): New. | |
1067 | (defines_obstack_save): New. Use compute_header_macro. | |
1068 | (output_files): Update. Use defines_obstack_save. | |
1069 | ||
f9a8293a AD |
1070 | 2001-08-15 Akim Demaille <akim@epita.fr> |
1071 | ||
1072 | * doc/bison.texinfo (Table of Symbols): Document | |
1073 | YYSTACK_USE_ALLOCA. | |
1074 | ||
150ca7a7 AD |
1075 | 2001-08-15 Akim Demaille <akim@epita.fr> |
1076 | ||
1077 | * missing: Update from CVS Automake. | |
1078 | * config/config.guess, config/config.sub, config/texinfo.tex: | |
1079 | Update from gnu.org. | |
1080 | ||
69b5cec4 AD |
1081 | 2001-08-15 Akim Demaille <akim@epita.fr> |
1082 | ||
1083 | * Makefile.maint: Sync with CVS Autoconf. | |
1084 | ||
f2b5126e PB |
1085 | 2001-08-14 Pascal Bart <pascal.bart@epita.fr> |
1086 | ||
69b5cec4 | 1087 | * doc/bison.texinfo: Include GNU Free Documentation License from |
f2b5126e PB |
1088 | `fdl.texi'. |
1089 | * doc/fdl.texi: Add to package. | |
1090 | ||
4ecbf796 MA |
1091 | 2001-08-14 Marc Autret <autret_m@epita.fr> |
1092 | ||
1093 | Turn on %{source,header}_extension features. | |
1094 | ||
69b5cec4 | 1095 | * src/lex.c (percent_table): Un-CPP out header_extension and |
4ecbf796 MA |
1096 | source_extension. |
1097 | * src/files.c (compute_exts_from_gf): Compare pointers with NULL. | |
69b5cec4 | 1098 | (compute_exts_from_src): Remove conditions. It restores priorities |
4ecbf796 MA |
1099 | between options. |
1100 | ||
95fb5662 MA |
1101 | 2001-08-14 Marc Autret <autret_m@epita.fr> |
1102 | ||
1103 | * src/files.c (compute_base_names): Add extensions computing when | |
1104 | `--file-prefix' used. | |
1105 | Standardize function calls. | |
1106 | ||
78d09da9 MA |
1107 | 2001-08-13 Marc Autret <autret_m@epita.fr> |
1108 | ||
69b5cec4 | 1109 | * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users |
78d09da9 MA |
1110 | defining it (defined but null disables alloca). |
1111 | ||
5a009f2c MA |
1112 | 2001-08-13 Marc Autret <autret_m@epita.fr> |
1113 | ||
1114 | * src/bison.simple (_yy_memcpy): CPP reformat. | |
1115 | ||
1e41465a PB |
1116 | 2001-08-13 Pascal Bart <pascal.bart@epita.fr> |
1117 | ||
1118 | * tests/atconfig.in (CPPFLAGS): Fix. | |
1119 | ||
c67a198d PB |
1120 | 2001-08-10 Pascal Bart <pascal.bart@epita.fr> |
1121 | ||
79282c6c | 1122 | * doc/bison.texinfo: Include GNU General Public License from |
c67a198d PB |
1123 | `gpl.texi'. |
1124 | * doc/gpl.texi: Add to package. | |
1125 | ||
09a6de7e MA |
1126 | 2001-08-10 Marc Autret <autret_m@epita.fr> |
1127 | ||
1128 | * src/print_graph.h: Fix. | |
1129 | * src/reader.c (read_declarations): Use parse_header_extension_decl (). | |
1130 | ||
b77b9ee0 AD |
1131 | 2001-08-10 Akim Demaille <akim@epita.fr> |
1132 | ||
1133 | * src/system.h: Provide default declarations for stpcpy, strndup, | |
1134 | and strnlen. | |
1135 | ||
3e259915 MA |
1136 | 2001-08-10 Robert Anisko <anisko_r@epita.fr> |
1137 | ||
1138 | * doc/bison.texinfo (Locations): Update @$ stuff. | |
1139 | ||
ca96bc2d MA |
1140 | 2001-08-09 Robert Anisko <anisko_r@epita.fr> |
1141 | ||
1142 | * src/bison.simple (YYLLOC_DEFAULT): Update. | |
1143 | (yyparse): Adjust. | |
1144 | ||
fdc6758b MA |
1145 | 2001-08-08 Marc Autret <autret_m@epita.fr> |
1146 | ||
b77b9ee0 | 1147 | * doc/bison.texinfo: Change @samp{$<@dots{}>} to |
fdc6758b MA |
1148 | @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule. |
1149 | Reported by Fabrice Bauzac. | |
957d4dbf | 1150 | |
600cad3b MA |
1151 | 2001-08-08 Marc Autret <autret_m@epita.fr> |
1152 | ||
1153 | * src/vcg_default.h: Use NULL instead of 0 to initialize pointers. | |
1154 | * src/vcg.c (output_node): Fix. | |
1155 | * src/vcg.h: Cleanup. | |
1156 | * src/print_graph.c: Add comments. | |
b77b9ee0 | 1157 | (node_output_size): New global variable. Simplify the formatting of |
600cad3b | 1158 | the VCG graph output. |
b77b9ee0 | 1159 | (print_actions): Unused code is now used. It notifies the final state |
600cad3b | 1160 | and no action states in the VCG graph. It also give the reduce actions. |
b77b9ee0 | 1161 | The `shift and goto' edges are red and the `go to state' edges are |
600cad3b MA |
1162 | blue. |
1163 | Get the current node name and node_obstack by argument. | |
1164 | (node_obstack): New variable. | |
1165 | (print_state): Manage node_obstack. | |
1166 | (print_core): Use node_obstack given by argument. | |
1167 | A node is not only computed here but in print_actions also. | |
1168 | (print_graph): CPP out useless code instead of commenting it. | |
1169 | ||
976e528f AD |
1170 | 2001-08-07 Pascal Bart <pascal.bart@epita.fr> |
1171 | ||
1172 | * tests/atconfig.in (CPPFLAGS): Fix. | |
1173 | ||
20e8e5ca AD |
1174 | 2001-08-07 Akim Demaille <akim@epita.fr> |
1175 | ||
1176 | * src/print_graph.c (quote): New. | |
1177 | (print_core): Use it. | |
1178 | ||
957d4dbf | 1179 | 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr> |
3e3da797 | 1180 | |
3e3da797 AD |
1181 | * src/vcg.c (complain.h): Include it. |
1182 | Unepitaize `return' invocations. | |
c4b66126 | 1183 | [NDEBUG] (main): Remove. |
79282c6c | 1184 | * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members. |
c4b66126 AD |
1185 | * src/files.c (open_files): Initialize graph_obstack. |
1186 | * src/print_graph.c (print_actions): CPP out useless code. | |
1187 | (print_core): Don't output the last `\n' in labels. | |
1188 | Use `quote'. | |
1189 | * src/files.c (output_files): Output the VCG file. | |
1190 | * src/main.c (main): Invoke print_graph (); | |
3e3da797 | 1191 | |
957d4dbf | 1192 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
22c2cbc0 AD |
1193 | |
1194 | Automaton VCG graph output. | |
1195 | Using option ``-g'' or long option ``--graph'', you can generate | |
1196 | a gram_filename.vcg file containing a VCG description of the LALR (1) | |
1197 | automaton of your grammar. | |
1198 | ||
1199 | * src/main.c: Call to print_graph() function. | |
1200 | * src/getargs.h: Update. | |
1201 | * src/getargs.c (options): Update to catch `-g' and `--graph' options. | |
1202 | (graph_flag): New flag. | |
1203 | (longopts): Update. | |
1204 | (getargs): Add case `g'. | |
1205 | * src/files.c (graph_obstack): New obstack struct. | |
1206 | (open_files): Initialize new obstack. | |
1207 | (output_files): Saves graph_obstack if required. | |
1208 | * src/files.h (graph_obstack): New extern declaration. | |
1209 | * src/Makefile.am: Add new source files. | |
1210 | ||
957d4dbf | 1211 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
ce4d5ce0 AD |
1212 | |
1213 | * src/print_graph.c, src/print_graph.h (graph): New. | |
1214 | * src/vcg.h: New file. | |
1215 | * src/vcg.c: New file, VCG graph handling. | |
1216 | ||
7333d403 AD |
1217 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
1218 | ||
1219 | Add of %source_extension and %header_extension which specify | |
1220 | the source or/and the header output file extension. | |
1221 | ||
1222 | * src/files.c (compute_base_names): Remove initialisation of | |
1223 | src_extension and header_extension. | |
1224 | (compute_exts_from_gf): Update. | |
1225 | (compute_exts_from_src): Update. | |
1226 | (output_files): Update. | |
1227 | * src/reader.c (parse_header_extension_decl): New. | |
1228 | (parse_source_extension_decl): New. | |
1229 | (read_declarations): New case statements for the new tokens. | |
1230 | * src/lex.c (percent_table): Add entries for %source_extension | |
1231 | and %header_extension. | |
1232 | * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext. | |
1233 | ||
84163231 AD |
1234 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
1235 | ||
1236 | * configure.in: Bump to 1.28c. | |
1237 | * doc/bison.texinfo: Texinfo thingies. | |
1238 | ||
8303fc42 AD |
1239 | 2001-08-04 Pascal Bart <pascal.bart@epita.fr> |
1240 | ||
1241 | * tests/atconfig.in (CPPFLAGS): Add. | |
1242 | * tests/calc.at (AT_CHECK): Use CPPFLAGS. | |
1243 | ||
70a84437 AD |
1244 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1245 | ||
1246 | Version 1.28b. | |
1247 | ||
2ce10144 AD |
1248 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1249 | ||
1250 | * tests/Makefile.am (check-local): Ship testsuite. | |
1251 | * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions. | |
1252 | Include `string.h'. | |
1253 | ||
1e3e4bc1 AD |
1254 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1255 | ||
1256 | * configure.in: Try using -Wformat when compiling. | |
1257 | ||
42b45b7f AD |
1258 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1259 | ||
1260 | * configure.in: Bump to 1.28b. | |
1261 | ||
8f13fe33 AD |
1262 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1263 | ||
1264 | * src/complain.c: Adjust strerror_r portability issues. | |
1265 | ||
b37ba92c AD |
1266 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1267 | ||
1268 | Version 1.28a. | |
1269 | ||
b0ce6046 AD |
1270 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1271 | ||
1272 | * src/getargs.c, src/getarg.h (skeleton)): Constify. | |
1273 | * src/lex.c (literalchar): Avoid name clashes on `buf'. | |
1274 | * src/getargs.c: Include complain.h. | |
1275 | * src/files.c, src/files.h (skeleton_find): Avoid name clashes. | |
1276 | * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1. | |
1277 | ||
d01c415b AD |
1278 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1279 | ||
1280 | * src/reader.c (readgram): Display hidden chars in error messages. | |
1281 | ||
459dd1a6 AD |
1282 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1283 | ||
1284 | Update to gettext 0.10.39. | |
1285 | ||
53b74c0c AD |
1286 | 2001-08-03 Akim Demaille <akim@epita.fr> |
1287 | ||
1288 | * lib/strspn.c: New. | |
1289 | ||
234a3be3 AD |
1290 | 2001-08-01 Marc Autret <autret_m@epita.fr> |
1291 | ||
1292 | * doc/bison.texinfo: Update. | |
1293 | * doc/bison.1 (mandoc): Update. | |
1294 | * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h. | |
1295 | * src/files.c: Support output files extensions computing. | |
1296 | (src_extension): New static variable. | |
1297 | (header_extension): New static variable. | |
1298 | (tr): New function. | |
1299 | (get_extension_index): New function, gets the index of an extension | |
1300 | filename in a string. | |
1301 | (compute_exts_from_gf): New function, computes extensions from the | |
1302 | grammar file extension. | |
1303 | (compute_exts_from_src): New functions, computes extensions from the | |
1304 | C source file extension, file given by ``-o'' option. | |
1305 | (compute_base_names): Update. | |
1306 | (output_files): Update. | |
1307 | ||
847bf1f5 AD |
1308 | 2001-08-01 Robert Anisko <anisko_r@epita.fr> |
1309 | ||
d995fee7 | 1310 | * doc/bison.texi: Document @$. |
847bf1f5 AD |
1311 | (Locations): New section. |
1312 | ||
d074a105 AD |
1313 | 2001-07-18 Akim Demaille <akim@epita.fr> |
1314 | ||
1315 | * Makefile.maint, GNUmakefile: New, from Autoconf 2.52. | |
1316 | * config/prev-version.txt, config/move-if-change: New. | |
1317 | * Makefile.am: Adjust. | |
1318 | ||
3419715d AD |
1319 | 2001-07-08 Pascal Bart <pascal.bart@epita.fr> |
1320 | ||
1321 | * src/bison.simple (yyparse): Suppress warning `comparaison | |
1322 | between signed and unsigned'. | |
1323 | ||
62ab6972 AD |
1324 | 2001-07-05 Pascal Bart <pascal.bart@epita.fr> |
1325 | ||
1326 | * src/getargs.h (raw_flag): Remove. | |
1327 | * src/getargs.c: Die on `-r'/`--raw'. | |
1328 | * src/lex.c (parse_percent_token): Die on `%raw'. | |
1329 | * src/reader.c (output_token_defines): Suppress call to `raw_flag'. | |
1330 | * tests/calc.at: Suppress test with option `--raw'. | |
1331 | ||
1e24cc5b AD |
1332 | 2001-07-14 Akim Demaille <akim@epita.fr> |
1333 | ||
1334 | * config/: New. | |
1335 | * configure.in: Require Autoconf 2.50. | |
1336 | Update to gettext 0.10.38. | |
1337 | ||
32dfccf8 AD |
1338 | 2001-03-16 Akim Demaille <akim@epita.fr> |
1339 | ||
1340 | * doc/bison.texinfo: ANSIfy the examples. | |
1341 | ||
cd5bd6ac AD |
1342 | 2001-03-16 Akim Demaille <akim@epita.fr> |
1343 | ||
1344 | * getargs.c (skeleton): New variable. | |
1345 | (longopts): --skeleton is a new option. | |
1346 | (shortopts, getargs): -S is a new option. | |
1347 | * getargs.h: Declare skeleton. | |
1348 | * output.c (output_parser): Use it. | |
1349 | ||
5141b016 AD |
1350 | 2001-03-16 Akim Demaille <akim@epita.fr> |
1351 | ||
1352 | * m4/strerror_r.m4: New. | |
1353 | * m4/error.m4: Run AC_FUNC_STRERROR_R. | |
1354 | * lib/error.h, lib/error.c: Update. | |
1355 | ||
447992b9 AD |
1356 | 2001-03-16 Akim Demaille <akim@epita.fr> |
1357 | ||
1358 | * src/getargs.c (longopts): Clean up. | |
1359 | ||
274d42ce AD |
1360 | 2001-02-21 Akim Demaille <akim@epita.fr> |
1361 | ||
1362 | * src/reader.c (gensym): `gensym_count' is your own. | |
1363 | Use a static buf to create the symbol name, as token_buffer is no | |
1364 | longer a buffer. | |
1365 | ||
22c821f3 AD |
1366 | 2001-02-08 Akim Demaille <akim@epita.fr> |
1367 | ||
1368 | * src/conflicts.c (conflict_report): Be sure not to append to res | |
1369 | between two calls, which could happen if both first sprintf were | |
1370 | skipped, but not the first cp += strlen. | |
1371 | ||
18569462 AD |
1372 | 2001-02-08 Akim Demaille <akim@epita.fr> |
1373 | ||
1374 | * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c: | |
1375 | New, from fileutils 4.0.37. | |
1376 | * configure.in: Require Autoconf 2.49c. I took some time before | |
1377 | making this decision. This is the only way out for portability | |
1378 | issues in Bison, it would mean way too much duplicate effort to | |
1379 | import in Bison features implemented in 2.49c since 2.13. | |
1380 | AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above. | |
1381 | ||
0d8f3c8a AD |
1382 | 2001-02-02 Akim Demaille <akim@epita.fr> |
1383 | ||
1384 | * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37. | |
66075dcf | 1385 | * lib/xalloc.h, lib/xmalloc.c: Update. |
0d8f3c8a | 1386 | |
f17bcd1f AD |
1387 | 2001-01-19 Akim Demaille <akim@epita.fr> |
1388 | ||
1389 | Get rid of the ad hoc handling of token_buffer in the scanner: use | |
1390 | the obstacks. | |
1391 | ||
1392 | * src/lex.c (token_obstack): New. | |
1393 | (init_lex): Initialize it. No longer call... | |
1394 | (grow_token_buffer): this. Remove it. | |
1395 | Adjust all the places which used it to use the obstack. | |
1396 | ||
511e79b3 AD |
1397 | 2001-01-19 Akim Demaille <akim@epita.fr> |
1398 | ||
1399 | * src/lex.h: Rename all the tokens: | |
1400 | s/\bENDFILE\b/tok_eof/g; | |
1401 | s/\bIDENTIFIER\b/tok_identifier/g; | |
1402 | etc. | |
1403 | Let them be enums, not #define, to ease debugging. | |
1404 | Adjust all the code. | |
1405 | ||
0d6508ef AD |
1406 | 2001-01-18 Akim Demaille <akim@epita.fr> |
1407 | ||
1408 | * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private. | |
1409 | * src/lex.c (maxtoken, grow_token_buffer): Static. | |
1410 | ||
6deb4447 AD |
1411 | 2001-01-18 Akim Demaille <akim@epita.fr> |
1412 | ||
1413 | Since we now use obstacks, more % directives can be enabled. | |
1414 | ||
1415 | * src/lex.c (percent_table): Also accept `%yacc', | |
1416 | `%fixed_output_files', `%defines', `%no_parser', `%verbose', and | |
1417 | `%debug'. | |
1418 | Handle the actions for `%semantic_parser' and `%pure_parser' here, | |
1419 | instead of returning a token. | |
1420 | * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused. | |
1421 | * src/reader.c (read_declarations): Adjust. | |
1422 | * src/files.c (open_files): Don't call `compute_base_names', don't | |
1423 | compute `attrsfile' since they depend upon data which might be | |
1424 | *in* the input file now. | |
1425 | (output_files): Do it here. | |
1426 | * src/output.c (output_headers): Document the fact that this patch | |
1427 | introduces a guaranteed SEGV for semantic parsers. | |
1428 | * doc/bison.texinfo: Document them. | |
1429 | * tests/suite.at: Exercise these %options. | |
1430 | ||
ff4423cc AD |
1431 | 2000-12-20 Akim Demaille <akim@epita.fr> |
1432 | ||
1433 | Also handle the output file (--verbose) with obstacks. | |
1434 | ||
1435 | * files.c (foutput): Remove. | |
1436 | (output_obstack): New. | |
1437 | Adjust all dependencies. | |
1438 | * src/conflicts.c: Return a string. | |
1439 | * src/system.h (obstack_grow_string): Rename as... | |
1440 | (obstack_sgrow): this. Be ready to work with non literals. | |
1441 | (obstack_fgrow4): New. | |
1442 | ||
956dba3a AD |
1443 | 2000-12-20 Akim Demaille <akim@epita.fr> |
1444 | ||
1445 | * src/files.c (open_files): Fix the computation of short_base_name | |
1446 | in the case of `-o foo.tab.c'. | |
1447 | ||
337bab46 AD |
1448 | 2000-12-20 Akim Demaille <akim@epita.fr> |
1449 | ||
1450 | * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at) | |
1451 | (copy_dollar): Now that everything uses obstacks, get rid of the | |
1452 | FILE * parameters. | |
1453 | ||
5d3214b8 AD |
1454 | 2000-12-20 Akim Demaille <akim@epita.fr> |
1455 | ||
1456 | * src/files.c (open_files): Actually the `.output' file is based | |
1457 | on the short_base_name, not base_name. | |
1458 | * tests/suite.at (Checking output file names): Adjust. | |
1459 | ||
29092a57 AD |
1460 | 2000-12-20 Akim Demaille <akim@epita.fr> |
1461 | ||
1462 | * src/bison.s1: Remove, we now use directly... | |
1463 | * src/bison.simple: this. | |
1464 | * src/Makefile.am: Use pkgdata instead of data. | |
1465 | ||
ea5607fd AD |
1466 | 2000-12-20 Akim Demaille <akim@epita.fr> |
1467 | ||
1468 | * src/files.c (guard_obstack): New. | |
1469 | (open_files): Initialize it. | |
1470 | (output_files): Dump it... | |
1471 | * src/files.h: Export it. | |
1472 | * src/reader.c (copy_guard): Use it. | |
1473 | ||
27110317 AD |
1474 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1475 | ||
1476 | * src/files.c (outfile, defsfile, actfile): Removed as global | |
1477 | vars. | |
1478 | (open_files): Don't compute them. | |
1479 | (output_files): Adjust. | |
1480 | (base_name, short_base_name): Be global. | |
1481 | Adjust dependencies. | |
1482 | ||
19c50364 AD |
1483 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1484 | ||
1485 | * src/files.c (strsuffix): New. | |
1486 | (stringappend): Be just like strcat but allocate. | |
1487 | (base_names): Eve out from open_files. | |
1488 | Try to simplify the rather hairy computation of base_name and | |
1489 | short_base_name. | |
1490 | (open_files): Use it. | |
1491 | * tests/suite.at (Checking output file names): New test. | |
1492 | ||
573c1d9f AD |
1493 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1494 | ||
1495 | * src/system.h (obstack_grow_literal_string): Rename as... | |
1496 | (obstack_grow_string): this. | |
1497 | * src/output.c (output_parser): Recognize `%% actions' instead of | |
1498 | `$'. | |
1499 | * src/bison.s1: s/$/%% actions/. | |
1500 | * src/bison.hairy: Likewise. | |
1501 | ||
ef7ddedd AD |
1502 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1503 | ||
1504 | * src/output.c (output_parser): Compute the `#line' lines when | |
1505 | there are. | |
1506 | * src/Makefile.am (bison.simple): Be a simple copy of bison.s1. | |
1507 | Suggested by Hans Aberg. | |
1508 | ||
ff61dabd AD |
1509 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1510 | ||
1511 | Let the handling of the skeleton files be local to the procedures | |
1512 | that use it. | |
1513 | ||
1514 | * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No | |
1515 | longer static. | |
1516 | (fparser, open_extra_files): Remove. | |
1517 | (open_files, output_files): Don't take care of fparser. | |
1518 | * src/files.h: Adjust. | |
1519 | * src/output.c (output_parser): Open and close the file to the | |
1520 | skeleton. | |
1521 | * src/reader.c (read_declarations): When %semantic_parser, open | |
1522 | fguard. | |
1523 | ||
55b96341 AD |
1524 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1525 | ||
1526 | * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here... | |
1527 | * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here. | |
1528 | ||
358c15b7 AD |
1529 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1530 | ||
1531 | * src/files.c (open_files): Yipee! We no longer need all the code | |
1532 | looking for `/tmp' since we have no tmp file. | |
1533 | ||
7de3329e AD |
1534 | 2000-12-19 Akim Demaille <akim@epita.fr> |
1535 | ||
1536 | * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C): | |
1537 | New macros. | |
1538 | * src/files.c (open_files): Less dependency on MSDOS etc. | |
1539 | ||
3abcd459 AD |
1540 | 2000-12-14 Akim Demaille <akim@epita.fr> |
1541 | ||
1542 | * src/bison.s1 (YYLLOC_DEFAULT): New macro. | |
1543 | Provide a default definition. | |
1544 | Use it when executing the default @ action. | |
1545 | * src/reader.c (reader_output_yylsp): No longer include | |
1546 | `timestamp' and `text' in the default YYLTYPE. | |
1547 | ||
2a91a95e AD |
1548 | 2000-12-12 Akim Demaille <akim@epita.fr> |
1549 | ||
1550 | * src/reader.c (copy_definition, parse_union_decl, copy_action) | |
1551 | (copy_guard): Quote the file names. | |
1552 | Reported by Laurent Mascherpa. | |
1553 | ||
14d3eb9b AD |
1554 | 2000-12-12 Akim Demaille <akim@epita.fr> |
1555 | ||
1556 | * src/output.c (output_headers, output_program, output): Be sure | |
1557 | to escape special characters when outputting filenames. | |
1558 | (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove. | |
1559 | (output_headers): Don't depend on them, Use ACTSTR. | |
1560 | ||
d7045ec6 AD |
1561 | 2000-11-17 Akim Demaille <akim@epita.fr> |
1562 | ||
1563 | * lib/obstack.h: Formatting changes. | |
1564 | (obstack_grow, obstack_grow0): Don't cast WHERE at all: it | |
1565 | prevents type checking. | |
1566 | (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't | |
1567 | cast the value to (void *): assigning a `foo *' to a `void *' | |
1568 | variable is valid. | |
1569 | (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. | |
1570 | * src/reader.c (parse_union_decl): Typo: use obstack_1grow to | |
1571 | append characters. | |
1572 | ||
6fd54b73 AD |
1573 | 2000-11-17 Akim Demaille <akim@epita.fr> |
1574 | ||
1575 | * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename | |
1576 | as... | |
1577 | (suite.m4, regression.m4, calc.m4): these. | |
1578 | * tests/atgeneral.m4: Update from CVS Autoconf. | |
1579 | ||
4c50eae6 AD |
1580 | 2000-11-17 Akim Demaille <akim@epita.fr> |
1581 | ||
1582 | * tests/regression.m4 (%union and --defines): New test, | |
1583 | demonstrating a current bug in the obstack implementation. | |
1584 | ||
a35f64ea AD |
1585 | 2000-11-17 Akim Demaille <akim@epita.fr> |
1586 | ||
1587 | * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New | |
1588 | macros. | |
1589 | Use them to declare the variables which are global or local to | |
1590 | `yyparse'. | |
1591 | ||
7de23534 AD |
1592 | 2000-11-17 Akim Demaille <akim@epita.fr> |
1593 | ||
1594 | * acconfig.h: Remove, no longer used. | |
1595 | ||
aa7815f5 AD |
1596 | 2000-11-07 Akim Demaille <akim@epita.fr> |
1597 | ||
1598 | * src: s/Copyright (C)/Copyright/g. | |
1599 | ||
5af1f549 AD |
1600 | 2000-11-07 Akim Demaille <akim@epita.fr> |
1601 | ||
1602 | * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just | |
1603 | defining. | |
1604 | * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/. | |
1605 | ||
553e2b22 AD |
1606 | 2000-11-07 Akim Demaille <akim@epita.fr> |
1607 | ||
1608 | * src/bison.s1 (YYLEX): Use #if instead of #ifdef. | |
1609 | Merge in a single CPP if/else. | |
1610 | ||
8a4f41d6 AD |
1611 | 2000-11-07 Akim Demaille <akim@epita.fr> |
1612 | ||
1613 | * src/output.c (output): Remove useless variables. | |
1614 | * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second | |
1615 | argument `data' for consistency with the prototypes. | |
1616 | Qualify it `const'. | |
1617 | (obstack_copy, obstack_copy0): Rename the second argument as | |
1618 | `address' for consistency. Qualify it `const'. | |
1619 | * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow) | |
1620 | (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify | |
1621 | `const' their input argument (`data' or `address'). | |
1622 | Adjust the corresponding macros to include `const' in casts. | |
1623 | ||
095a3fb5 AD |
1624 | 2000-11-03 Akim Demaille <akim@epita.fr> |
1625 | ||
1626 | * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/. | |
1627 | s/PFILE1/BISON_HAIRY/. | |
1628 | Adjust dependencies. | |
1629 | ||
d1cdce7c AD |
1630 | 2000-11-03 Akim Demaille <akim@epita.fr> |
1631 | ||
090c5ebf | 1632 | For some reason, this was not applied. |
d1cdce7c AD |
1633 | |
1634 | * src/files.c [VMS]: No longer include `ssdef.h', no longer define | |
1635 | `unlink': it's no longer used. | |
1636 | ||
9311529b AD |
1637 | 2000-11-03 Akim Demaille <akim@epita.fr> |
1638 | ||
1639 | * src/files.c (skeleton_find): New function, eved out of... | |
1640 | (open_files, open_extra_files): here. | |
1641 | ||
d8880f69 AD |
1642 | 2000-11-03 Akim Demaille <akim@epita.fr> |
1643 | ||
1644 | Don't use `atexit'. | |
1645 | ||
1646 | * src/files.c (obstack_save): New function. | |
1647 | (done): Rename as... | |
1648 | (output_files): this. | |
1649 | Use `obstack_save'. | |
1650 | * src/main.c (main): Don't use `atexit' to register `done', since | |
1651 | it no longer has to remove tmp files, just call `output_files' | |
1652 | when there are no errors. | |
1653 | ||
0dbb648e AD |
1654 | 2000-11-02 Akim Demaille <akim@epita.fr> |
1655 | ||
1656 | * src/files.c [VMS]: No longer include `ssdef.h', no longer define | |
1657 | `unlink': it's no longer used. | |
1658 | * src/files.h: Formatting changes. | |
1659 | ||
896fe5c1 AD |
1660 | 2000-11-02 Akim Demaille <akim@epita.fr> |
1661 | ||
1662 | Remove the last uses of mktemp and unlink/delete. | |
1663 | ||
1664 | * src/files.c (fdefines, ftable): Removed. | |
1665 | (defines_ostack, table_obstack): New. | |
1666 | Adjust dependencies of the former into uses of the latter. | |
1667 | * src/output.c (output_short_or_char_table, output_short_table): | |
1668 | Convert to using obstacks. | |
1669 | * src/reader.c (copy_comment2): Accept one FILE * and two | |
1670 | obstacks. | |
1671 | (output_token_defines, reader_output_yylsp): Use obstacks. | |
1672 | * src/system.h (obstack_fgrow3): New. | |
1673 | ||
dd60faec AD |
1674 | 2000-11-01 Akim Demaille <akim@epita.fr> |
1675 | ||
1676 | Change each use of `fattrs' into a use of `attrs_obstack'. | |
1677 | ||
1678 | * src/reader.c (copy_at): Typo: s/yylloc/yyloc/. | |
1679 | * src/files.c (fattrs): Remove. | |
1680 | (attrs_obstack): New. | |
1681 | Adjust all dependencies. | |
1682 | (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile. | |
1683 | ||
8c7ebe49 AD |
1684 | 2000-11-01 Akim Demaille <akim@epita.fr> |
1685 | ||
1686 | Introduce obstacks. | |
1687 | Change each use of `faction' into a use of `action_obstack'. | |
1688 | ||
1689 | * lib/obstack.h, lib/obstack.c: New files. | |
1690 | * src/files.c (faction): Remove. | |
1691 | (action_obstack): New. | |
1692 | Adjust all dependencies. | |
1693 | ||
77aee789 AD |
1694 | 2000-10-20 Akim Demaille <akim@epita.fr> |
1695 | ||
1696 | * lib/quote.h (PARAMS): New macro. Use it. | |
1697 | ||
43591cec AD |
1698 | 2000-10-16 Akim Demaille <akim@epita.fr> |
1699 | ||
1700 | * src/output.c (output_short_or_char_table): New function. | |
1701 | (output_short_table, output_token_translations): Use it. | |
1702 | (goto_actions): Use output_short_table. | |
1703 | ||
1e9798d5 AD |
1704 | 2000-10-16 Akim Demaille <akim@epita.fr> |
1705 | ||
1706 | * src/symtab.c (bucket_new): New function. | |
1707 | (getsym): Use it. | |
1708 | ||
1709 | * src/output.c (output_short_table): New argument to display the | |
1710 | comment associated with the table. | |
1711 | Adjust dependencies. | |
1712 | (output_gram): Use it. | |
1713 | (output_rule_data): Nicer output layout for YYTNAME. | |
1714 | ||
f282676b AD |
1715 | 2000-10-16 Akim Demaille <akim@epita.fr> |
1716 | ||
1717 | * src/lex.c (read_typename): New function. | |
1718 | (lex): Use it. | |
1719 | * src/reader.c (copy_dollar): Likewise. | |
1720 | ||
550a72a3 AD |
1721 | 2000-10-16 Akim Demaille <akim@epita.fr> |
1722 | ||
1723 | * src/reader.c (copy_comment2): Expect the input stream to be on | |
1724 | the `/' which is suspected to open a comment, instead of being | |
1725 | called after `//' or `/*' was read. | |
1726 | (copy_comment, copy_definition, parse_union_decl, copy_action) | |
1727 | (copy_guard): Adjust. | |
1728 | ||
131e2fef AD |
1729 | 2000-10-16 Akim Demaille <akim@epita.fr> |
1730 | ||
1731 | * src/reader.c (parse_expect_decl): Use `skip_white_space' and | |
1732 | `read_signed_integer'. | |
1733 | ||
79282c5a AD |
1734 | 2000-10-16 Akim Demaille <akim@epita.fr> |
1735 | ||
1736 | * src/reader.c (copy_dollar): New function. | |
1737 | (copy_guard, copy_action): Use it. | |
1738 | ||
ff4a34be AD |
1739 | 2000-10-16 Akim Demaille <akim@epita.fr> |
1740 | ||
1741 | * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c: | |
1742 | * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4: | |
1743 | New files, from Fileutils 4.0.27. | |
1744 | * src/main.c (printable_version): Remove. | |
1745 | * src/lex.c, src/reader.c: Use `quote'. | |
1746 | ||
1747 | 2000-10-04 Akim Demaille <akim@epita.fr> | |
1748 | ||
1749 | * lib/error.c, lib/error.h: New files, needed by xmalloc.c. | |
1750 | ||
14ded682 AD |
1751 | 2000-10-04 Akim Demaille <akim@epita.fr> |
1752 | ||
1753 | * doc/bison.texinfo: Various typos spotted by Neil Booth. | |
1754 | ||
8e03724b AD |
1755 | 2000-10-04 Akim Demaille <akim@epita.fr> |
1756 | ||
1757 | When a literal string is used to define two different tokens, | |
1758 | `bison -v' segfaults. | |
1759 | Reported by Piotr Gackiewicz, and fixed by Neil Booth. | |
1760 | ||
1761 | * tests/regression.m4: New file. | |
1762 | Include the core of the sample provided by Piotr Gackiewicz. | |
1763 | * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed | |
1764 | properly. | |
1765 | ||
a9e64249 AD |
1766 | 2000-10-04 Akim Demaille <akim@epita.fr> |
1767 | ||
1768 | * src/reader.c (parse_expect_decl): Keep `count' within the size | |
1769 | of `buffer'. | |
1770 | From Neil Booth. | |
1771 | ||
da9abf43 AD |
1772 | 2000-10-02 Paul Eggert <eggert@twinsun.com> |
1773 | ||
1774 | * bison.s1 (yyparse): Assign the default value | |
1775 | unconditionally, to avoid a GCC warning and make the parser a | |
1776 | tad smaller. | |
1777 | ||
c33638bb AD |
1778 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1779 | ||
1780 | * src/getargs.c (getargs): Don't dump `--help' on unrecognized | |
1781 | options. | |
1782 | ||
444c570a AD |
1783 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1784 | ||
1785 | * src/derives.c, src/print.c, src/reduce.c: To ease the | |
1786 | translation, move some `\n' out of the translated strings. | |
1787 | ||
89cab50d AD |
1788 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1789 | ||
1790 | The location tracking mechanism is precious for parse error | |
1791 | messages. Nevertheless, it is enabled only when `@n' is used in | |
1792 | the grammar, which is a different issue (you can use it in error | |
1793 | message, but not in the grammar per se). Therefore, there should | |
1794 | be another means to enable it. | |
1795 | ||
1796 | * src/getargs.c (getargs): Support `--locations'. | |
1797 | (usage): Report it. | |
1798 | * src/getargs.h (locationsflag): Export it. | |
1799 | * src/lex.c (percent_table): Support `%locations'. | |
1800 | * src/reader.c (yylsp_needed): Remove this variable, now replaced | |
1801 | with `locationsflag'. | |
1802 | * doc/bison.texinfo: Document `--locations' and `%locations'. | |
1803 | Sort the options. | |
1804 | * tests/calc.m4: Test it. | |
1805 | ||
1806 | For regularity of the names, replace each | |
1807 | (nolineflag, toknumflag, rawtokenumflag, noparserflag): with... | |
1808 | (no_lineflag, token_tableflag, rawflag, no_parserflag): this. | |
1809 | In addition replace each `flag' with `_flag'. | |
1810 | ||
d6c2cba0 AD |
1811 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1812 | ||
1813 | Also test parse error messages, including with YYERROR_VERBOSE. | |
1814 | ||
1815 | * tests/calc.m4 (calc.y): Add support for `exp = exp' (non | |
1816 | associative). | |
1817 | Use it to check the computations. | |
1818 | Use it to check `nonassoc' is honored. | |
1819 | (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed | |
1820 | `--yyerror-verbose'. | |
1821 | (_AT_CHECK_CALC): Adjust to this option. | |
1822 | (_AT_CHECK_CALC_ERROR): New macro to check parse error messages. | |
1823 | ||
5a35a6cb AD |
1824 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1825 | ||
1826 | Test also `--verbose', `--defines' and `--name-prefix'. Testing | |
1827 | the latter demonstrates a flaw in the handling of non debugging | |
1828 | parsers introduced by myself on 2000-03-16: `#define yydebug 0' | |
1829 | was used in order to simplify: | |
1830 | ||
1831 | #if YYDEBUG | |
1832 | if (yydebug) | |
1833 | { | |
1834 | ... | |
1835 | } | |
1836 | #endif | |
1837 | ||
1838 | into | |
1839 | ||
1840 | if (yydebug) | |
1841 | { | |
1842 | ... | |
1843 | } | |
1844 | ||
1845 | unfortunately this leads to a CPP conflict when | |
1846 | `--name-prefix=foo' is used since it produces `#define yydebug | |
1847 | foodebug'. | |
1848 | ||
1849 | * src/bison.s1 [!YYDEBUG]: Do not define yydebug. | |
1850 | (YYDPRINTF): New macro. | |
1851 | Spread its use. | |
1852 | * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from | |
1853 | the bison options. | |
1854 | Also test `--verbose', `--defines' and `--name-prefix'. | |
1855 | ||
71da9eea AD |
1856 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1857 | ||
1858 | Improve the readability of the produced parsers. | |
1859 | ||
1860 | * src/bison.s1: Formatting changes. | |
1861 | Improve the comment related to the `$' mark. | |
1862 | (yydefault): Don't fall through to `yyresume': `goto' there. | |
1863 | * src/output.c (output_parser): When the `$' is met, skip the end | |
1864 | of its line. | |
1865 | New variable, `number_of_dollar_signs', to check there's exactly | |
1866 | one `$' in the parser skeleton. | |
1867 | ||
95e36146 AD |
1868 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1869 | ||
1870 | * lib/xstrdup.c: New file, from the fileutils. | |
1871 | * src/reader.c (parse_token_decl, get_type_name, parse_type_decl) | |
1872 | (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup' | |
1873 | instead of strlen + xmalloc + strcpy. | |
1874 | * src/symtab.c (copys): Remove, use xstrdup instead. | |
1875 | ||
d7020c20 AD |
1876 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1877 | ||
1878 | * src/gram.h (associativity): New enum type which replaces the | |
1879 | former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with | |
1880 | `right_assoc', `left_assoc' and `non_assoc'. | |
1881 | Adjust all dependencies. | |
1882 | * src/reader.c: Formatting changes. | |
1883 | (LTYPESTR): Don't define it, use it as a literal in | |
1884 | `reader_output_yylsp'. | |
1885 | * src/symtab.h (symbol_class): New enum type which replaces the | |
1886 | former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with | |
1887 | `sunknown', `stoken and `snterm'. | |
1888 | ||
1916f98e AD |
1889 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1890 | ||
1891 | * src/getargs.c (fixed_outfiles): Rename as... | |
1892 | (yaccflag): for consistency and accuracy. | |
1893 | Adjust dependencies. | |
1894 | ||
d7913476 AD |
1895 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1896 | ||
1897 | Use the more standard files `xalloc.h' and `xmalloc.c' instead of | |
1898 | Bison's `allocate.c' and `alloc.h'. This patch was surprisingly | |
1899 | difficult and introduced a lot of core dump. It turns out that | |
1900 | Bison used an implementation of `xmalloc' based on `calloc', and | |
1901 | at various places it does depend upon the initialization to 0. I | |
1902 | have not tried to isolate the pertinent places, and all the former | |
1903 | calls to Bison's `xmalloc' are now using `XCALLOC'. Someday, | |
1904 | someone should address this issue. | |
1905 | ||
1906 | * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove. | |
1907 | * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New | |
1908 | files. | |
1909 | Adjust dependencies. | |
1910 | * src/warshall.h: New file. | |
1911 | Propagate. | |
1912 | ||
340ef489 AD |
1913 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1914 | ||
1915 | Various anti-`extern in *.c' changes. | |
1916 | ||
1917 | * src/system.h: Include `assert.h'. | |
1918 | ||
b2ca4022 AD |
1919 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1920 | ||
1921 | * src/state.h (nstates, final_state, first_state, first_shift) | |
1922 | (first_reduction): Move their exportation from here... | |
1923 | * src/LR0.h: to here. | |
1924 | Adjust dependencies. | |
1925 | * src/getargs.c (statisticsflag): New variable. | |
1926 | Add support for `--statistics'. | |
1927 | Adjust dependencies. | |
1928 | ||
1929 | Remove a lot of now useless `extern' statements in most files. | |
1930 | ||
403b315b AD |
1931 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1932 | ||
1933 | * src/LR0.h: New file. | |
1934 | Propagate its use. | |
1935 | ||
07a58c13 AD |
1936 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1937 | ||
1938 | * src/print.h: New file. | |
1939 | Propagate its use. | |
1940 | * src/print.c: Formatting and ordering changes. | |
1941 | (verbose, terse): Replace with... | |
1942 | (print_results): this new function. | |
1943 | Adjust dependencies. | |
1944 | ||
0619caf0 AD |
1945 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1946 | ||
1947 | * src/conflicts.c (conflict_report): New function. | |
1948 | (conflict_log, verbose_conflict_log): Replace with... | |
1949 | (print_conflicts): this function. | |
1950 | Adjust dependencies. | |
1951 | * src/conflicts.h: New file. | |
1952 | Propagate its inclusion. | |
1953 | ||
3519ec76 AD |
1954 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1955 | ||
1956 | * src/nullable.h: New file. | |
1957 | Propagate its inclusion. | |
1958 | * src/nullable.c: Formatting changes. | |
1959 | ||
015acc48 AD |
1960 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1961 | ||
1962 | * src/reduce.h: New file. | |
1963 | Propagate its inclusion. | |
1964 | * src/reduce.c: Topological sort and other formatting changes. | |
1965 | (bool, TRUE, FALSE): Move their definition to... | |
1966 | * src/system.h: here. | |
1967 | ||
8963a27b AD |
1968 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1969 | ||
1970 | * src/files.c: Formatting changes. | |
1971 | (tryopen, tryclose, openfiles): Rename as... | |
1972 | (xfopen, xfclose, open_files): this. | |
1973 | (stringappend): static. | |
1974 | * src/files.h: Complete the list of exported symbols. | |
1975 | Propagate its use. | |
1976 | ||
a70083a3 AD |
1977 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1978 | ||
1979 | * src/reader.h: New file. | |
1980 | Propagate its use instead of tedious list of `extern' and | |
1981 | prototypes. | |
1982 | * src/reader.c: Formatting changes, topological sort, | |
1983 | s/register//. | |
1984 | ||
abadc117 AD |
1985 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1986 | ||
1987 | * src/lex.h: Prototype `lex.c' exported functions. | |
1988 | * src/reader.c: Adjust. | |
1989 | * src/lex.c: Formatting changes. | |
1990 | (safegetc): Rename as... | |
1991 | (xgetc): this. | |
1992 | ||
720d742f AD |
1993 | 2000-10-02 Akim Demaille <akim@epita.fr> |
1994 | ||
1995 | * src/lalr.h: New file. | |
1996 | Propagate its inclusion instead of prototypes and `extern'. | |
1997 | * src/lalr.c: Formatting changes, topological sorting etc. | |
1998 | ||
f2acea59 AD |
1999 | 2000-10-02 Akim Demaille <akim@epita.fr> |
2000 | ||
2001 | * src/output.c (token_actions): Introduce a temporary array, | |
2002 | YYDEFACT, that makes it possible for this function to use | |
2003 | output_short_table. | |
2004 | ||
d019d655 AD |
2005 | 2000-10-02 Akim Demaille <akim@epita.fr> |
2006 | ||
2007 | `user_toknums' is output as a `short[]' in `output.c', while it is | |
2008 | defined as a `int[]' in `reader.c'. For consistency with the | |
2009 | other output tables, `user_toknums' is now defined as a table of | |
2010 | shorts. | |
2011 | ||
2012 | * src/reader.c (user_toknums): Be a short table instead of an int | |
2013 | table. | |
2014 | Adjust dependencies. | |
2015 | ||
2016 | Factor the short table outputs. | |
2017 | ||
2018 | * src/output.c (output_short_table): New function. | |
2019 | * src/output.c (output_gram, output_stos, output_rule_data) | |
2020 | (output_base, output_table, output_check): Use it. | |
2021 | ||
6c89f1c1 AD |
2022 | 2000-10-02 Akim Demaille <akim@epita.fr> |
2023 | ||
2024 | * src/output.c (output): Topological sort of the functions, in | |
2025 | order to get rid of the `static' prototypes. | |
2026 | No longer use `register'. | |
2027 | * src/output.h: New file. | |
2028 | Propagate its inclusion in files explicitly prototyping functions | |
2029 | from output.c. | |
2030 | ||
d9efd181 AD |
2031 | 2000-09-21 Akim Demaille <akim@epita.fr> |
2032 | ||
2033 | * src/atgeneral.m4: Update from Autoconf. | |
2034 | ||
c29240e7 | 2035 | 2000-09-21 Akim Demaille <akim@epita.fr> |
2fa6973e AD |
2036 | |
2037 | * src/closure.h: New file. | |
2038 | * src/closure.c: Formatting changes, topological sort over the | |
2039 | functions, use of closure.h. | |
2040 | (initialize_closure, finalize_closure): Rename as... | |
2041 | (new_closure, free_closure): these. Adjust dependencies. | |
2042 | * src/LR0.c: Formatting changes, topological sort, use of | |
2043 | cloture.h. | |
2044 | (initialize_states): Rename as... | |
2045 | (new_states): this. | |
2046 | * src/Makefile.am (noinst_HEADERS): Adjust. | |
2047 | ||
499daa50 AD |
2048 | 2000-09-20 Akim Demaille <akim@epita.fr> |
2049 | ||
2050 | * src/acconfig.h: Don't protect config.h against multiple | |
2051 | inclusion. | |
2052 | Don't define PARAMS. | |
2053 | * src/system.h: Define PARAMS. | |
2054 | Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the | |
2055 | purpose of config.h. system.h must not try to fix wrong | |
2056 | definitions in config.h. | |
2057 | ||
cc84fd5d AD |
2058 | 2000-09-20 Akim Demaille <akim@epita.fr> |
2059 | ||
2060 | * src/derives.h: New file. | |
2061 | * src/main.c, src/derives.h: Use it. | |
2062 | Formatting changes. | |
2063 | * src/Makefile.am (noinst_HEADERS): Adjust. | |
2064 | ||
db5b3a89 AD |
2065 | 2000-09-20 Akim Demaille <akim@epita.fr> |
2066 | ||
2067 | * tests/atgeneral.m4: Update from Autoconf. | |
2068 | * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC) | |
2069 | (AT_CHECK_CALC): New macros. | |
2070 | Use these macros to test bison with options `', `--raw', | |
2071 | `--debug', `--yacc', `--yacc --debug'. | |
2072 | ||
ceed8467 AD |
2073 | 2000-09-19 Akim Demaille <akim@epita.fr> |
2074 | ||
2075 | * src/output.c: Formatting changes. | |
2076 | * src/machine.h: Remove, leaving its contents in... | |
2077 | * src/system.h: here. | |
2078 | Include stdio.h. | |
2079 | Adjust all dependencies on stdio.h and machine.h. | |
2080 | * src/getargs.h: New file. | |
2081 | Let all `extern' declarations about getargs.c be replaced with | |
2082 | inclusion of `getargs.h'. | |
2083 | * src/Makefile.am (noinst_HEADERS): Adjust. | |
2084 | ||
2085 | * tests/calc.m4 (yyin): Be initialized in main, not on the global | |
2086 | scope. | |
2087 | (yyerror): Returns void, not int. | |
2088 | * doc/bison.texinfo: Formatting changes. | |
2089 | ||
05a1d24b AD |
2090 | 2000-09-19 Akim Demaille <akim@epita.fr> |
2091 | ||
2092 | * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not | |
2093 | portable. | |
2094 | ||
cbd25751 AD |
2095 | 2000-09-18 Akim Demaille <akim@epita.fr> |
2096 | ||
2097 | * configure.in: Append WARNING_CFLAGS to CFLAGS. | |
2098 | * src/Makefile.am (INCLUDES): Don't. | |
2099 | Be ready to fetch headers in lib/. | |
2100 | ||
13863333 AD |
2101 | 2000-09-18 Akim Demaille <akim@epita.fr> |
2102 | ||
2103 | * doc/bison.texinfo: Update the copyright. | |
2104 | ANSIfy and GNUify the examples. | |
2105 | Remove the old menu. | |
2106 | ||
0d533154 AD |
2107 | 2000-09-18 Akim Demaille <akim@epita.fr> |
2108 | ||
2109 | First set of tests: use the `calc' example from the documentation. | |
2110 | ||
2111 | * src/bison.s1 (yyparse): Condition the code using `yytname' which | |
2112 | is defined only when YYDEBUG is. | |
2113 | * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13. | |
2114 | * src/files.c (tryopen, tryclose): Formatting changes. | |
2115 | Move to the top and be static. | |
2116 | * src/reader.c (read_signed_integer): Likewise. | |
2117 | * tests/calc.m4: New file. | |
2118 | * Makefile.am, suite.m4: Adjust. | |
2119 | * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY. | |
2120 | ||
e79137ac AD |
2121 | 2000-09-18 Akim Demaille <akim@epita.fr> |
2122 | ||
2123 | Add support for an Autotest test suite for Bison. | |
2124 | ||
2125 | * m4/m4.m4, m4/atconfig.m4: New files. | |
2126 | * m4/Makefile.am (EXTRA_DIST): Adjust. | |
2127 | * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New | |
2128 | files. | |
2129 | * src/getargs.c: Display a more standard --version message. | |
2130 | * src/reader.c (reader): Formatting changes. | |
2131 | No longer depend upon VERSION_STRING. | |
2132 | * configure.in: No longer use `dnl'. | |
2133 | Set up the test suite and the new directory `tests/. | |
2134 | (VERSION_STRING): Remove. | |
2135 | ||
27821bff AD |
2136 | 2000-04-14 Akim Demaille <akim@epita.fr> |
2137 | ||
2138 | * src/reader.c (copy_comment2): New function, same as former | |
2139 | `copy_comment', but outputs into two FILE *. | |
2140 | (copy_comment): Use it. | |
2141 | (parse_union_decl): Use it. | |
2142 | (get_type, parse_start_decl): Use the same `invalid' message. | |
2143 | (parse_start_decl, parse_union_decl): Use the same `multiple' | |
2144 | message. | |
2145 | (parse_union_decl, copy_guard, copy_action): Use the same | |
2146 | `unmatched' message. | |
2147 | * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'. | |
2148 | ||
cfe5fbc0 AD |
2149 | 2000-03-31 Akim Demaille <akim@epita.fr> |
2150 | ||
2151 | * src/files.c (tryopen, tryclose): Move to the top. | |
2152 | Be static. | |
2153 | ||
cb7db13e AD |
2154 | 2000-03-31 Akim Demaille <akim@epita.fr> |
2155 | ||
2156 | * src/main.c (main): Don't call `done', exit does it. | |
2157 | ||
a0f6b076 AD |
2158 | 2000-03-31 Akim Demaille <akim@epita.fr> |
2159 | ||
36281465 AD |
2160 | * allocate.c: s/return (foo)/return foo/. |
2161 | * lalr.c: Likewise. | |
2162 | * LR0.c: Likewise. | |
2163 | * output.c: Likewise. | |
2164 | * reader.c: Likewise. | |
2165 | * symtab.c: Likewise. | |
2166 | * vmsgetargs.c: Likewise. | |
2167 | ||
2168 | 2000-03-31 Akim Demaille <akim@epita.fr> | |
2169 | ||
2170 | Clean up the error reporting functions. | |
a0f6b076 AD |
2171 | |
2172 | * src/report.c: New file. | |
2173 | * src/report.h: Likewise. | |
2174 | * src/Makefile.am: Adjust. | |
2175 | * m4/error.m4: New file. | |
2176 | * m4/Makefile.am: Adjust. | |
2177 | * configure.in (jm_PREREQ_ERROR): Call it. | |
2178 | * src/main.c (int_to_string, banner, fatal_banner, warn_banner): | |
2179 | Remove. | |
2180 | (fatal, fatals): Remove. All callers use complain.c::fatal. | |
2181 | (warn, warni, warns, warnss, warnss): Remove. All callers use | |
2182 | complain.c::complain. | |
2183 | (toomany): Remove, use fatal instead. | |
2184 | * src/files.c (done): No argument, use complain_message_count. | |
2185 | * src/main.c (main): Register `done' to `atexit'. | |
2186 | ||
2187 | * src/getargs.c (usage): More `fputs', less `fprintf'. | |
2188 | ||
18539825 AD |
2189 | 2000-03-28 Akim Demaille <akim@epita.fr> |
2190 | ||
2191 | * lib/: New directory. | |
2192 | * Makefile.am (SUBDIRS): Adjust. | |
2193 | * configure.in: Adjust. | |
2194 | (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's | |
2195 | useless. | |
2196 | * src/alloca.c: Moved to lib/. | |
2197 | * src/getopt.c: Likewise. | |
2198 | * src/getopt1.c: Likewise. | |
2199 | * src/getopt.h: Likewise. | |
2200 | * src/ansi2knr.c: Likewise. | |
2201 | * src/ansi2knr.1: Likewise. | |
2202 | * src/Makefile.am: Adjust. | |
2203 | * lib/Makefile.am: New file. | |
2204 | ||
9f306f2a AD |
2205 | 2000-03-28 Akim Demaille <akim@epita.fr> |
2206 | ||
2207 | * src/getargs.c (usage): Refresh the help message. | |
2208 | ||
0ba347b6 AD |
2209 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2210 | ||
2211 | * src/getopt1.c: Updated from textutils 2.0e | |
2212 | * src/getopt.c: Likewise. | |
2213 | * src/getopt.h: Likewise. | |
2214 | ||
dbe7f271 AD |
2215 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2216 | ||
2217 | * src/Makefile.am (bison.simple): Fix the awk program: quote only | |
2218 | the file name, not the whole `#line LINE FILE'. | |
2219 | ||
75bbe78d AD |
2220 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2221 | ||
2222 | On syntax errors, report the token on which we choked. | |
2223 | ||
aa5fd0ee AD |
2224 | * src/bison.s1 (yyparse): In the label yyerrlab, when |
2225 | YYERROR_VERBOSE, add yychar in msg. | |
75bbe78d | 2226 | |
7b306f52 AD |
2227 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2228 | ||
aa5fd0ee | 2229 | * src/reader.c (copy_at): New function. |
7b306f52 AD |
2230 | (copy_guard): Use it. |
2231 | (copy_action): Use it. | |
2232 | ||
e87b5700 AD |
2233 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2234 | ||
2235 | Be kind to translators, save some useless translations. | |
2236 | ||
aa5fd0ee | 2237 | * src/main.c (banner): New function. |
e87b5700 AD |
2238 | (fatal_banner): Use it. |
2239 | (warn_banner): Use it. | |
2240 | ||
ae3c3164 AD |
2241 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2242 | ||
aa5fd0ee AD |
2243 | * src/reader.c (copy_definition): Use copy_string and |
2244 | copy_comment. Removed now unused `match', `ended', | |
2245 | `cplus_comment'. | |
ae3c3164 AD |
2246 | (copy_comment, copy_string): Moved, to be visible from |
2247 | copy_definition. | |
2248 | ||
4dc58e7c AD |
2249 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2250 | ||
aa5fd0ee AD |
2251 | * src/reader.c (copy_string): Declare `static inline'. No |
2252 | problems with inline, since it is checked by configure. | |
4dc58e7c AD |
2253 | (copy_comment): Likewise. |
2254 | ||
0a6384c4 AD |
2255 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2256 | ||
aa5fd0ee | 2257 | * src/reader.c (packsymbols): Formatting changes. |
0a6384c4 | 2258 | |
3cef001a AD |
2259 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2260 | ||
aa5fd0ee | 2261 | * src/reader.c (copy_comment): New function, factored out from: |
3cef001a AD |
2262 | (copy_action): Use it. Removed now unused `match', `ended', |
2263 | `cplus_comment'. | |
2264 | (copy_guard): Likewise. | |
2265 | ||
ca36d2ef AD |
2266 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2267 | ||
aa5fd0ee | 2268 | * src/reader.c (copy_string): New function, factored out from: |
ca36d2ef AD |
2269 | (copy_action): Use it. |
2270 | (copy_guard): Likewise. | |
2271 | ||
6666f98f AD |
2272 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2273 | ||
2274 | Change the handling of @s so that they behave exactly like $s. | |
2275 | There is now a pseudo variable @$ (readble and writable), location | |
2276 | of the lhs of the rule (by default ranging from the location of | |
2277 | the first symbol of the rhs, to the location of the last symbol, | |
2278 | or, if the rhs is empty, YYLLOC). | |
2279 | ||
2280 | * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of | |
2281 | yyval. | |
2282 | (yyparse): When providing a default semantic action, provide a | |
2283 | default location action. | |
2284 | (after the $): No longer change `*YYLSP', just stack YYLOC the | |
2285 | same way you stack YYVAL. | |
2286 | * src/reader.c (read_declarations): Use warns. | |
2287 | (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'. | |
2288 | (copy_action, case '@'): Likewise. | |
2289 | Use a standard error message, to save useless work from | |
2290 | translators. | |
2291 | ||
41aca2e0 AD |
2292 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2293 | ||
aa5fd0ee AD |
2294 | * src/bison.s1: Formatting and cosmetics changes. |
2295 | * src/reader.c: Likewise. | |
41aca2e0 AD |
2296 | Update the Copyright notice. |
2297 | ||
dc08c1d5 AD |
2298 | 2000-03-17 Akim Demaille <akim@epita.fr> |
2299 | ||
aa5fd0ee AD |
2300 | * src/bison.s1 (#line): All set to `#line' only, since the |
2301 | Makefile now handles them. | |
dc08c1d5 | 2302 | |
9ee3c97b AD |
2303 | 2000-03-16 Akim Demaille <akim@epita.fr> |
2304 | ||
2305 | * src/output.c (output_rule_data): Output the documentation of | |
2306 | some of the tables. | |
2307 | (Copyright notice): Update. | |
2308 | Formatting changes. | |
2309 | ||
0de741ca AD |
2310 | 2000-03-16 Akim Demaille <akim@epita.fr> |
2311 | ||
2312 | * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to | |
2313 | remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough. | |
2314 | One `#if YYDEBUG' remains, since it uses variables which are | |
2315 | defined only if `YYDEBUG != 0'. | |
2316 | ||
bb10be54 AD |
2317 | 2000-03-16 Akim Demaille <akim@epita.fr> |
2318 | ||
2319 | * src/bison.s1 (yyparse): Reorganize the definitions of the stacks | |
2320 | and related variables so that the similarities are highlighted. | |
2321 | ||
b07b484a AD |
2322 | 2000-03-16 Akim Demaille <akim@epita.fr> |
2323 | ||
2324 | * src/bison.s1: Properly indent CPP directives. | |
2325 | ||
361f60b3 AD |
2326 | 2000-03-16 Akim Demaille <akim@epita.fr> |
2327 | ||
2328 | * src/bison.s1: Properly indent the `alloca' CPP section. | |
2329 | ||
8c44d3ec AD |
2330 | 2000-03-16 Akim Demaille <akim@epita.fr> |
2331 | ||
2332 | Do not hard code values of directories in `configure.in'. | |
2333 | Update the `configure' tool chain. | |
2334 | ||
2335 | * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by | |
2336 | src/makefile.am. | |
2337 | (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED. | |
2338 | (AC_OUTPUT): Add m4/Makefile. | |
2339 | Bump to bison 1.28a, 1.29 has never been released. | |
2340 | * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are | |
2341 | handled via src/Makefile.am. | |
2342 | (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS, | |
2343 | HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by | |
2344 | autoheader. | |
2345 | * Makefile.am (SUBDIRS): Add m4. | |
2346 | (ACLOCAL_AM_FLAGS): New variable. | |
2347 | (AUTOMAKE_OPTIONS): Add check-news. | |
2348 | * src/Makefile.am (bison.simple): Use awk to replace #line lines with | |
2349 | the proper line number and file name. | |
2350 | (DEFS): Propagate the location of bison library files and of the | |
2351 | locale files. | |
2352 | (INCLUDES): Added `-I ..' so that one can compile with srcdir != | |
2353 | builddir. | |
2354 | * acinclude.m4: Remove, replaced by the directory m4. | |
2355 | * m4/Makefile.am (EXTRA_DIST): New variable. | |
2356 | * m4/gettext.m4: New file, from the fileutils. | |
2357 | * m4/lcmessage.m4: Likewise | |
2358 | * m4/progtest.m4: Likewise. | |
2359 | * m4/bison-decl.m4: New file, extracted from former acinclude.m4. | |
2360 | ||
f95997e7 AD |
2361 | 2000-03-10 Akim Demaille <akim@epita.fr> |
2362 | ||
2363 | * src/closure.c: | |
2364 | Formatting changes of various comments. | |
2365 | Respect the GNU coding standards at various places. | |
2366 | Don't use `_()' when no translation is needed. | |
2367 | ||
2368 | 1999-12-13 Jesse Thilo <jthilo@gnu.org> | |
2369 | ||
2370 | * src/files.c: | |
2371 | OS/2 honors TMPDIR environment variable. | |
2372 | ||
2373 | 1999-12-13 Jesse Thilo <jthilo@gnu.org> | |
2374 | ||
2375 | * doc/bison.texinfo: Tweaked spelling and grammar. | |
2376 | Updated ISBN. | |
2377 | Removed reference to price of printed copy. | |
2378 | Mention BISON_SIMPLE and BISON_HAIRY. | |
2379 | ||
2380 | 1999-12-13 Jesse Thilo <jthilo@gnu.org> | |
2381 | ||
2382 | * configure.in, NEWS: | |
2383 | Bison 1.29 released. | |
2384 | ||
2385 | 1999-10-27 Jesse Thilo <jthilo@gnu.org> | |
2386 | ||
2387 | * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex: | |
2388 | Added reference card. | |
2389 | ||
2390 | 1999-07-26 Jesse Thilo <jthilo@gnu.org> | |
2391 | ||
2392 | * po/ru.po: Added Russian translation. | |
2393 | ||
2394 | 1999-07-26 Jesse Thilo <jthilo@gnu.org> | |
2395 | ||
2396 | * configure.in: Added Russian translation. | |
2397 | ||
2398 | 1999-07-06 Jesse Thilo <jthilo@gnu.org> | |
2399 | ||
2400 | * configure.in, NEWS, README: | |
2401 | Released version 1.28. | |
2402 | ||
2403 | 1999-06-14 Jesse Thilo <jthilo@gnu.org> | |
2404 | ||
2405 | * src/system.h: | |
2406 | Squashed redefinition warning on some systems. | |
2407 | ||
2408 | * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c: | |
2409 | Have configure build version string instead of relying on ANSI string | |
2410 | concatentation. | |
2411 | ||
2412 | 1999-06-14 Jesse Thilo <jthilo@gnu.org> | |
2413 | ||
2414 | * po/POTFILES.in: Got rid of version.c. | |
2415 | ||
2416 | 1999-06-14 Jesse Thilo <jthilo@gnu.org> | |
2417 | ||
2418 | * acconfig.h, configure.in: | |
2419 | Have configure build version string instead of relying on ANSI string | |
2420 | concatentation. | |
2421 | ||
2422 | 1999-06-08 Jesse Thilo <jthilo@gnu.org> | |
2423 | ||
2424 | * doc/bison.1: | |
2425 | Dropped mention of `+' for long-named options. | |
2426 | ||
2427 | 1999-05-30 Jesse Thilo <jthilo@gnu.org> | |
2428 | ||
2429 | * src/files.c: Added <unistd.h> for unlink(). | |
2430 | ||
2431 | * src/Makefile.am, src/system.h: | |
2432 | I18n fixes. | |
2433 | ||
2434 | 1999-05-30 Jesse Thilo <jthilo@gnu.org> | |
2435 | ||
2436 | * README: Added a FAQ list. | |
2437 | ||
2438 | * configure.in, acconfig.h: | |
2439 | I18n fixes. | |
2440 | ||
2441 | 1999-05-30 Jesse Thilo <jthilo@gnu.org> | |
2442 | ||
2443 | * doc/FAQ, doc/Makefile.am: | |
2444 | Added a FAQ list. | |
2445 | ||
2446 | 1999-05-19 Jesse Thilo <jthilo@gnu.org> | |
2447 | ||
2448 | * src/alloc.h, src/symtab.h, src/version.c: | |
2449 | Protected inclusion of "config.h" with HAVE_CONFIG_H. | |
2450 | ||
2451 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
2452 | ||
2453 | * src/.cvsignore, src/Makefile.am: | |
2454 | Reorganized: sources in `src', documentation in `doc'. | |
2455 | ||
2456 | * src/lex.c (literalchar): | |
2457 | fixed the code for escaping double quotes (thanks | |
2458 | Jonathan Czisny.) | |
2459 | ||
2460 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
2461 | ||
2462 | * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in: | |
2463 | Adjusted paths to reflect directory reorganization. | |
2464 | ||
2465 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
2466 | ||
2467 | * doc/.cvsignore, doc/Makefile.am: | |
2468 | Reorganized: sources in `src', documentation in `doc'. | |
2469 | ||
2470 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
2471 | ||
2472 | * configure.in: | |
2473 | Updated AC_INIT file to reflect directory reorganization. | |
2474 | ||
2475 | * configure.in, .cvsignore, Makefile.am, POTFILES.in: | |
2476 | Reorganized: sources in `src', documentation in `doc'. | |
2477 | ||
2478 | 1999-04-13 Jesse Thilo <jthilo@gnu.org> | |
2479 | ||
2480 | * src/allocate.c: | |
2481 | Don't declare calloc() and realloc() if not necessary. | |
2482 | ||
2483 | 1999-04-13 Jesse Thilo <jthilo@gnu.org> | |
2484 | ||
2485 | * configure.in, acconfig.h, acinclude.m4: | |
2486 | Don't declare calloc() and realloc() if not necessary. | |
2487 | ||
2488 | 1999-03-23 Jesse Thilo <jthilo@gnu.org> | |
2489 | ||
2490 | * po/.cvsignore: Added i18n support. | |
2491 | ||
2492 | 1999-03-23 Jesse Thilo <jthilo@gnu.org> | |
2493 | ||
2494 | * acconfig.h, configure.in, Makefile.am: | |
2495 | Added i18n support. | |
2496 | ||
2497 | 1999-03-22 Jesse Thilo <jthilo@gnu.org> | |
2498 | ||
2499 | * src/bison.s1: Fixed #line numbers. | |
2500 | ||
2501 | 1999-03-15 Jesse Thilo <jthilo@gnu.org> | |
2502 | ||
2503 | * po/es.po, po/fr.po, po/nl.po, po/de.po: | |
2504 | Added PO files from Translation Project. | |
2505 | ||
2506 | 1999-03-03 Jesse Thilo <jthilo@gnu.org> | |
2507 | ||
2508 | * Makefile.am: | |
2509 | Added support for non-ANSI compilers (ansi2knr). | |
2510 | ||
2511 | 1999-02-16 Jesse Thilo <jthilo@gnu.org> | |
2512 | ||
2513 | * configure.in: Bumped version number to 1.27. | |
2514 | ||
2515 | * Makefile.am: | |
2516 | Added `bison.simple' to list of files removed by `make distclean'. | |
2517 | ||
2518 | 1999-02-12 Jesse Thilo <jthilo@gnu.org> | |
2519 | ||
2520 | * src/files.c, src/files.h: | |
2521 | Defined locations of parser files in config.h instead of Makefile. | |
2522 | ||
2523 | 1999-02-12 Jesse Thilo <jthilo@gnu.org> | |
2524 | ||
2525 | * acconfig.h, acinclude.m4, configure.in, Makefile.am: | |
2526 | Defined locations of parser files in config.h instead of Makefile. | |
2527 | ||
2528 | 1999-02-09 Jesse Thilo <jthilo@gnu.org> | |
2529 | ||
2530 | * Makefile.am: | |
2531 | Removed inappropriate use of $< macro. | |
2532 | ||
2533 | 1999-02-05 Jesse Thilo <jthilo@gnu.org> | |
2534 | ||
2535 | * po/Makefile.in.in, po/POTFILES.in: | |
2536 | Add `po' directory skeleton. | |
2537 | ||
2538 | 1999-01-27 Jesse Thilo <jthilo@gnu.org> | |
2539 | ||
2540 | * README: Document help-bison list. | |
2541 | ||
2542 | * configure.in: Add check for mkstemp(). | |
2543 | ||
2544 | 1999-01-20 Jesse Thilo <jthilo@gnu.org> | |
2545 | ||
2546 | * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c: | |
2547 | Hush a few compiler warnings. | |
2548 | ||
2549 | * src/files.c: | |
2550 | Add tryclose(), which verifies that fclose was successful. | |
2551 | Hush a couple of compiler warnings. | |
2552 | ||
2553 | 1999-01-20 Jesse Thilo <jthilo@gnu.org> | |
2554 | ||
2555 | * Makefile.am, OChangeLog: | |
2556 | ChangeLog is now automatically generated. Include the old version as | |
2557 | OChangeLog. | |
2558 | ||
2559 | 1999-01-14 Jesse Thilo <jthilo@gnu.org> | |
2560 | ||
2561 | * 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: | |
2562 | Update FSF address. | |
2563 | ||
2564 | 1999-01-14 Jesse Thilo <jthilo@gnu.org> | |
2565 | ||
2566 | * doc/bison.texinfo: Fix formatting glitch. | |
2567 | ||
2568 | * doc/bison.texinfo: Update FSF address. | |
2569 | ||
2570 | 1999-01-14 Jesse Thilo <jthilo@gnu.org> | |
2571 | ||
2572 | * acconfig.h: Update FSF address. | |
2573 | ||
2574 | 1999-01-08 Jesse Thilo <jthilo@gnu.org> | |
2575 | ||
2576 | * src/system.h: | |
2577 | Don't define PACKAGE here, since config.h defines it. | |
2578 | ||
2579 | 1998-12-30 Jesse Thilo <jthilo@gnu.org> | |
2580 | ||
2581 | * src/reader.c: Update copyright date. | |
2582 | ||
2583 | * src/main.c: | |
2584 | Ditch sprintf to statically-sized buffers in fatal/warn functions in | |
2585 | favor of output directly to stderr (avoids buffer overruns). | |
2586 | ||
2587 | * src/reader.c: Some checks for premature EOF. | |
2588 | ||
2589 | * 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: | |
2590 | Use prototypes if the compiler understands them. | |
2591 | ||
2592 | * src/files.c: Honor TMPDIR on Unix hosts. | |
2593 | Use prototypes if the compiler understands them. | |
2594 | ||
2595 | * src/reader.c: | |
2596 | Fix a couple of buffer overrun bugs. | |
2597 | Use prototypes if the compiler understands them. | |
2598 | ||
2599 | * src/system.h: Include unistd.h and ctype.h. | |
2600 | Use #ifdef instead of #if for NLS symbols. | |
2601 | ||
2602 | 1998-12-30 Jesse Thilo <jthilo@gnu.org> | |
2603 | ||
2604 | * doc/bison.texinfo: | |
2605 | Delete comment "consider using @set for edition number, etc..." since | |
2606 | we now are doing so. | |
2607 | ||
2608 | 1998-12-30 Jesse Thilo <jthilo@gnu.org> | |
2609 | ||
2610 | * configure.in: | |
2611 | Use prototypes if the compiler understands them. | |
2612 | ||
2613 | * NEWS: Document 1.26 highlights. | |
2614 | ||
2615 | * Makefile.am: Require Automake 1.3 or later. | |
2616 | ||
2617 | * acconfig.h: | |
2618 | Use prototypes if the compiler understands them. | |
2619 | ||
2620 | 1998-12-29 Jesse Thilo <jthilo@gnu.org> | |
2621 | ||
2622 | * src/version.c: | |
2623 | Use VERSION symbol from automake for version number. | |
2624 | ||
2625 | 1998-12-29 Jesse Thilo <jthilo@gnu.org> | |
2626 | ||
2627 | * acconfig.h, configure.in, version.cin: | |
2628 | Use VERSION symbol from automake for version number. | |
2629 | ||
2630 | 1998-11-28 Jesse Thilo <jthilo@gnu.org> | |
2631 | ||
2632 | * Makefile.am: | |
2633 | Distribute original version of simple parser (bison.s1), not built | |
2634 | version (bison.simple). | |
2635 | ||
2636 | 1998-11-28 Jesse Thilo <jthilo@gnu.org> | |
2637 | ||
2638 | * doc/bison.texinfo: Add info dir entry. | |
2639 | ||
2640 | * doc/bison.texinfo: | |
2641 | Let automake put version number into documentation. | |
2642 | ||
2643 | 1998-11-26 Jesse Thilo <jthilo@gnu.org> | |
2644 | ||
2645 | * src/bison.cld, src/build.com, src/vmshlp.mar: | |
2646 | Add non-RCS files from /gd/gnu/bison. | |
2647 | ||
2648 | 1998-11-26 Jesse Thilo <jthilo@gnu.org> | |
2649 | ||
2650 | * doc/bison.1: | |
2651 | Document the BISON_HAIRY and BISON_SIMPLE variables. | |
2652 | ||
2653 | 1998-11-25 Jesse Thilo <jthilo@gnu.org> | |
2654 | ||
2655 | * src/version.c: Build version.c automatically. | |
2656 | ||
2657 | * src/reader.c: | |
2658 | Fix token numbering (used to start at 258, not 257). | |
2659 | ||
2660 | * src/system.h: Include config.h. | |
2661 | ||
2662 | * src/getargs.c: Update bug report address. | |
2663 | ||
2664 | * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h: | |
2665 | Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org. | |
2666 | ||
2667 | 1998-11-25 Jesse Thilo <jthilo@gnu.org> | |
2668 | ||
2669 | * Makefile.am: | |
2670 | Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1). | |
2671 | ||
2672 | * configure.in, version.cin: | |
2673 | Build version.c automatically. | |
2674 | ||
2675 | * AUTHORS: Add AUTHORS file. | |
2676 | ||
2677 | * README: Update bug report address. | |
2678 | ||
2679 | * bison.simple: | |
2680 | Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1). | |
2681 | ||
2682 | * configure.in, Makefile.am, Makefile.in, stamp-h.in: | |
2683 | Add automake stuff. | |
2684 | ||
2685 | 1998-11-25 Jesse Thilo <jthilo@gnu.org> | |
2686 | ||
2687 | * doc/bison.texinfo: Clean up some formatting. | |
2688 | ||
2689 | 1998-05-05 Richard Stallman <rms@gnu.org> | |
2690 | ||
2691 | * doc/bison.texinfo: | |
2692 | Explain better why to make a pure parser. | |
2693 | ||
2694 | 1998-01-05 Richard Stallman <rms@gnu.org> | |
2695 | ||
2696 | * src/files.c (openfiles): | |
2697 | [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to | |
2698 | find a temporary directory, if possible. Do not unlink files while | |
2699 | they are open. | |
2700 | ||
2701 | 1997-08-25 Richard Stallman <rms@gnu.org> | |
2702 | ||
2703 | * src/reader.c (stack_offset;): | |
2704 | Change some warni to warns. | |
2705 | ||
2706 | * src/lex.c (literalchar): Use warns, not warni. | |
2707 | ||
2708 | 1997-06-28 Richard Stallman <rms@gnu.org> | |
2709 | ||
2710 | * src/bison.s1: Add a Bison version comment. | |
2711 | ||
2712 | * src/main.c (fatal, warn, berror): | |
2713 | Use program_name. | |
2714 | ||
2715 | 1997-06-28 Richard Stallman <rms@gnu.org> | |
2716 | ||
2717 | * Makefile.in (bison_version): New variable. | |
2718 | (dist): Use that variable. | |
2719 | (bison.s1): Substitute the Bison version into bison.simple. | |
2720 | ||
2721 | * bison.simple: Add a Bison version comment. | |
2722 | ||
2723 | 1997-06-18 Richard Stallman <rms@gnu.org> | |
2724 | ||
2725 | * src/main.c (fatal, warn, berror): | |
2726 | Make error messages standard. | |
2727 | (toomany): Improve error message text. | |
2728 | ||
2729 | * 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: | |
2730 | new.h renamed to alloc.h. | |
2731 | ||
2732 | 1997-06-18 Richard Stallman <rms@gnu.org> | |
2733 | ||
2734 | * Makefile.in: new.h renamed to alloc.h. | |
2735 | ||
2736 | 1997-05-24 Richard Stallman <rms@gnu.org> | |
2737 | ||
2738 | * src/lex.c (literalchar): | |
2739 | Fix the code for escaping \, " and '. | |
2740 | ||
2741 | (lex): Avoid trouble when there are many chars | |
2742 | to discard in a char literal with just several chars in it. | |
2743 | ||
2744 | 1997-05-17 Richard Stallman <rms@gnu.org> | |
2745 | ||
2746 | * src/bison.s1: | |
2747 | Use malloc, if using alloca is troublesome. | |
2748 | (YYSTACK_USE_ALLOCA): New flag macro. | |
2749 | Define it for some systems and compilers. | |
2750 | (YYSTACK_ALLOC): New macro. | |
2751 | (yyparse): Use YYSTACK_ALLOC to allocate stack. | |
2752 | If it was malloc'd, free it. | |
2753 | ||
2754 | 1997-05-17 Richard Stallman <rms@gnu.org> | |
2755 | ||
2756 | * bison.simple: | |
2757 | Use malloc, if using alloca is troublesome. | |
2758 | (YYSTACK_USE_ALLOCA): New flag macro. | |
2759 | Define it for some systems and compilers. | |
2760 | (YYSTACK_ALLOC): New macro. | |
2761 | (yyparse): Use YYSTACK_ALLOC to allocate stack. | |
2762 | If it was malloc'd, free it. | |
2763 | ||
2764 | 1997-04-23 Richard Stallman <rms@gnu.org> | |
2765 | ||
2766 | * src/bison.s1: | |
2767 | (alloca) [__hpux]: Always define as __builtin_alloca. | |
2768 | ||
2769 | 1997-04-23 Richard Stallman <rms@gnu.org> | |
2770 | ||
2771 | * bison.simple: | |
2772 | (alloca) [__hpux]: Always define as __builtin_alloca. | |
2773 | ||
2774 | 1997-04-22 Richard Stallman <rms@gnu.org> | |
2775 | ||
2776 | * src/bison.s1: | |
2777 | [__hpux]: Include alloca.h (right for HPUX 10) | |
2778 | instead of declaring alloca (right for HPUX 9). | |
2779 | ||
2780 | * src/bison.s1 (__yy_memcpy): | |
2781 | Declare arg `count' as unsigned int. | |
2782 | (yyparse): Cast third arg to __yy_memcpy to unsigned int. | |
2783 | ||
2784 | 1997-04-22 Richard Stallman <rms@gnu.org> | |
2785 | ||
2786 | * bison.simple: | |
2787 | [__hpux]: Include alloca.h (right for HPUX 10) | |
2788 | instead of declaring alloca (right for HPUX 9). | |
2789 | ||
2790 | * bison.simple (__yy_memcpy): | |
2791 | Declare arg `count' as unsigned int. | |
2792 | (yyparse): Cast third arg to __yy_memcpy to unsigned int. | |
2793 | ||
2794 | 1997-01-03 Richard Stallman <rms@gnu.org> | |
2795 | ||
2796 | * src/allocate.c: [__STDC__ or _MSC_VER]: | |
2797 | Declare calloc and realloc to return void *. | |
2798 | ||
2799 | 1997-01-02 Richard Stallman <rms@gnu.org> | |
2800 | ||
2801 | * src/system.h: | |
2802 | [_MSC_VER]: Include stdlib.h and process.h. | |
2803 | [_MSC_VER] (getpid): Define as macro--translate it to _getpid. | |
2804 | ||
2805 | * src/main.c (main): Return FAILURE as a value. | |
2806 | (printable_version): Declare arg as int, not char. | |
2807 | ||
2808 | 1997-01-02 Richard Stallman <rms@gnu.org> | |
2809 | ||
2810 | * Makefile.in (dist): | |
2811 | Explicitly check for symlinks, and copy them. | |
2812 | ||
2813 | 1996-12-19 Richard Stallman <rms@gnu.org> | |
2814 | ||
2815 | * src/files.c: | |
2816 | [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined. | |
2817 | ||
2818 | 1996-12-18 Paul Eggert <eggert@gnu.org> | |
2819 | ||
2820 | * src/bison.s1 (yyparse): | |
2821 | If __GNUC__ and YYPARSE_PARAM are both defined, | |
2822 | declare yyparse to have a void * argument. | |
2823 | ||
2824 | 1996-12-18 Paul Eggert <eggert@gnu.org> | |
2825 | ||
2826 | * bison.simple (yyparse): | |
2827 | If __GNUC__ and YYPARSE_PARAM are both defined, | |
2828 | declare yyparse to have a void * argument. | |
2829 | ||
2830 | 1996-12-17 Richard Stallman <rms@gnu.org> | |
2831 | ||
2832 | * src/reduce.c (nbits): Add some casts. | |
2833 | ||
2834 | 1996-08-12 Richard Stallman <rms@gnu.org> | |
2835 | ||
2836 | * src/bison.s1: Test _MSDOS as well as _MSDOS_. | |
2837 | ||
2838 | 1996-08-12 Richard Stallman <rms@gnu.org> | |
2839 | ||
2840 | * bison.simple: Test _MSDOS as well as _MSDOS_. | |
2841 | ||
2842 | 1996-07-31 Richard Stallman <rms@gnu.org> | |
2843 | ||
2844 | * src/bison.s1: | |
2845 | [__sun && __i386]: Include alloca.h. | |
2846 | ||
2847 | 1996-07-31 Richard Stallman <rms@gnu.org> | |
2848 | ||
2849 | * bison.simple: | |
2850 | [__sun && __i386]: Include alloca.h. | |
2851 | ||
2852 | 1996-07-30 Richard Stallman <rms@gnu.org> | |
2853 | ||
2854 | * src/bison.s1: Comment change. | |
2855 | ||
2856 | * src/bison.s1: Test _MSDOS_, not MSDOS. | |
2857 | ||
2858 | 1996-07-30 Richard Stallman <rms@gnu.org> | |
2859 | ||
2860 | * bison.simple: Comment change. | |
2861 | ||
2862 | * bison.simple: Test _MSDOS_, not MSDOS. | |
2863 | ||
2864 | 1996-06-01 Richard Stallman <rms@gnu.org> | |
2865 | ||
2866 | * 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: | |
2867 | Insert `_' macro around many string constants. | |
2868 | ||
2869 | * src/main.c: | |
2870 | Insert `_' macro around many string constants. | |
2871 | ||
2872 | (main): Call setlocale, bindtextdomain and textdomain. | |
2873 | ||
2874 | * src/system.h: [HAVE_LOCALE_H]: Include locale.h. | |
2875 | [! HAVE_LOCALE_H] (setlocale): Define as no-op. | |
2876 | [ENABLE_NLS]: Include libintl.h. | |
2877 | [ENABLE_NLS] (gettext): Define. | |
2878 | [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions. | |
2879 | (N_, PACKAGE, LOCALEDIR): New macros. | |
2880 | ||
2881 | 1996-06-01 Richard Stallman <rms@gnu.org> | |
2882 | ||
2883 | * POTFILES.in: New file. | |
2884 | ||
2885 | * Makefile.in (allocate.o): | |
2886 | Define target explicitly. | |
2887 | ||
2888 | * Makefile.in (CFLAGS): Set to @CFLAGS@. | |
2889 | (LDFLAGS): Set to @LDFLAGS@. | |
2890 | (configure): Run autoconf only if preceding `cd' succeeds. | |
2891 | (bison.s1): Redirect output to temporary file then move the | |
2892 | temporary to the target, rather than redirecting directly to bison.s1. | |
2893 | (clean): Remove config.status and config.log. | |
2894 | (distclean): Don't remove config.status here. | |
2895 | ||
2896 | 1996-05-12 Richard Stallman <rms@gnu.org> | |
2897 | ||
2898 | * src/bison.s1: | |
2899 | (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t. | |
2900 | ||
2901 | 1996-05-12 Richard Stallman <rms@gnu.org> | |
2902 | ||
2903 | * bison.simple: | |
2904 | (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t. | |
2905 | ||
2906 | 1996-05-11 Richard Stallman <rms@gnu.org> | |
2907 | ||
2908 | * src/bison.s1 (__yy_memcpy): | |
2909 | Really reorder the args, as was supposedly done on Feb 14 1995. | |
2910 | (yyparse): Calls changed accordingly. | |
2911 | ||
2912 | 1996-05-11 Richard Stallman <rms@gnu.org> | |
2913 | ||
2914 | * Makefile.in (dist): Don't use $(srcdir). | |
2915 | ||
2916 | * bison.simple (__yy_memcpy): | |
2917 | Really reorder the args, as was supposedly done on Feb 14 1995. | |
2918 | (yyparse): Calls changed accordingly. | |
2919 | ||
2920 | 1996-01-27 Richard Stallman <rms@gnu.org> | |
2921 | ||
2922 | * src/output.c (output_rule_data): | |
2923 | Test YYERROR_VERBOSE in the conditional | |
2924 | around the definition of ttyname. | |
2925 | ||
2926 | 1995-12-29 Richard Stallman <rms@gnu.org> | |
2927 | ||
2928 | * src/bison.s1: | |
2929 | Fix line numbers in #line commands. | |
2930 | ||
2931 | 1995-12-29 Richard Stallman <rms@gnu.org> | |
2932 | ||
2933 | * bison.simple: | |
2934 | Fix line numbers in #line commands. | |
2935 | ||
2936 | 1995-12-27 Richard Stallman <rms@gnu.org> | |
2937 | ||
2938 | * src/bison.s1 (YYPARSE_PARAM_DECL): | |
2939 | In C++, make it always null. | |
2940 | (YYPARSE_PARAM_ARG): New macro. | |
2941 | (yyparse): Use YYPARSE_PARAM_ARG. | |
2942 | ||
2943 | 1995-12-27 Richard Stallman <rms@gnu.org> | |
2944 | ||
2945 | * bison.simple (YYPARSE_PARAM_DECL): | |
2946 | In C++, make it always null. | |
2947 | (YYPARSE_PARAM_ARG): New macro. | |
2948 | (yyparse): Use YYPARSE_PARAM_ARG. | |
2949 | ||
2950 | 1995-11-29 Richard Stallman <rms@gnu.org> | |
2951 | ||
2952 | * doc/bison.texinfo: | |
2953 | Describe literal string tokens, %raw, %no_lines, %token_table. | |
2954 | ||
2955 | 1995-11-29 Daniel Hagerty <hag@gnu.org> | |
2956 | ||
2957 | * doc/bison.texinfo: Fixed update date | |
2958 | ||
2959 | 1995-10-16 Richard Stallman <rms@gnu.org> | |
2960 | ||
2961 | * src/version.c: Version 1.25. | |
2962 | ||
2963 | 1995-10-16 Richard Stallman <rms@gnu.org> | |
2964 | ||
2965 | * NEWS: *** empty log message *** | |
2966 | ||
2967 | 1995-10-16 Richard Stallman <rms@gnu.org> | |
2968 | ||
2969 | * doc/bison.1, doc/bison.rnh: | |
2970 | Add new options. | |
2971 | ||
2972 | 1995-10-15 Richard Stallman <rms@gnu.org> | |
2973 | ||
2974 | * src/vmsgetargs.c, src/getargs.c: | |
2975 | Added -n, -k, and -raw switches. | |
2976 | (noparserflag, toknumflag, rawtoknumflag): New variables. | |
2977 | ||
2978 | * src/symtab.h (SALIAS): | |
2979 | New #define for adding aliases to %token. | |
2980 | (struct bucket): Added `alias' field. | |
2981 | ||
2982 | * src/reduce.c (reduce_grammar): | |
2983 | Revise error message. | |
2984 | (print_notices): Remove final `.' from error message. | |
2985 | ||
2986 | * src/reader.c (reader_output_yylsp): | |
2987 | New function. | |
2988 | (readgram): Use `#if 0' around code that accepted %command | |
2989 | inside grammar rules: The documentation doesn't allow it, | |
2990 | and it will fail since the %command processors scan for the next %. | |
2991 | (parse_token_decl): Extended the %token | |
2992 | declaration to allow a multi-character symbol as an alias. | |
2993 | (parse_thong_decl): New function. | |
2994 | (read_declarations): Added %thong declarations. | |
2995 | (read_declarations): Handle NOOP to deal with allowing | |
2996 | % declarations as another means to specify the flags. | |
2997 | (readgram): Allow %prec prior to semantics embedded in a rule. | |
2998 | (skip_to_char, read_declarations, copy_definition) | |
2999 | (parse_token_decl, parse_start_decl, parse_type_decl) | |
3000 | (parse_assoc_decl, parse_union_decl, parse_expect_decl) | |
3001 | (get_type_name, copy_guard, copy_action, readgram) | |
3002 | (get_type, packsymbols): Revised most error messages. | |
3003 | Changed `fatal' to `warnxxx' to avoid aborting for error. | |
3004 | Revised and use multiple warnxxx functions to avoid using VARARGS1. | |
3005 | (read_declarations): Improve the error message for | |
3006 | an invalid character. Do not abort. | |
3007 | (read_declarations, copy_guard, copy_action): Use | |
3008 | printable_version to avoid unprintable characters in printed output. | |
3009 | (parse_expect_decl): Error if argument to %expect exceeds 10 digits. | |
3010 | (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type): | |
3011 | Allow the type of a non-terminal can be given | |
3012 | more than once, as long as all specifications give the same type. | |
3013 | ||
3014 | * src/output.c: | |
3015 | (output_headers, output_trailers, output, output_gram) | |
3016 | (output_rule_data): Implement noparserflag variable. | |
3017 | Implement toknumflag variable. | |
3018 | (output): Call reader_output_yylsp to output LTYPESTR. | |
3019 | ||
3020 | * src/main.c (main): | |
3021 | If reader sees an error, don't process the grammar. | |
3022 | (fatals): Updated to not use VARARGS1. | |
3023 | (printable_version, int_to_string, warn, warni, warns, warnss) | |
3024 | (warnsss): New error reporting functions. Avoid abort for error. | |
3025 | ||
3026 | * src/lex.h: | |
3027 | Added THONG and NOOP for alias processing. | |
3028 | Added SETOPT for the new code that allows setting options with %flags. | |
3029 | ||
3030 | * src/lex.c: | |
3031 | Include getopt.h. Add some extern decls. | |
3032 | (safegetc): New function to deal with EOF gracefully. | |
3033 | (literalchar); new function to deal with reading \ escapes. | |
3034 | (lex): Use literalchar. | |
3035 | (lex): Implemented "..." tokens. | |
3036 | (literalchar, lex, parse_percent_token): Made tokenbuffer | |
3037 | always contain the token. This includes growing the token | |
3038 | buffer while reading an integer. | |
3039 | (parse_percent_token): Replaced if-else statement with percent_table. | |
3040 | (parse_percent_token): Added % declarations as another | |
3041 | way to specify the flags -n, -l, and -r. Also added hooks for | |
3042 | -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires | |
3043 | major changes to files.c. | |
3044 | (lex) Retain in the incoming stream a character following | |
3045 | an incorrect '/'. | |
3046 | (skip_white_space, lex): Revised most error messages | |
3047 | and changed fatal to warn to avoid aborting. | |
3048 | (percent_table): Added %thong declarations. | |
3049 | ||
3050 | * src/gram.h: Comment changes. | |
3051 | ||
3052 | * src/files.c (openfiles, open_extra_files, done): | |
3053 | Add faction flag | |
3054 | and actfile file. Handle noparserflag. Both for -n switch. | |
3055 | ||
3056 | * src/conflicts.c (resolve_sr_conflict): | |
3057 | Remove use of alloca. | |
3058 | ||
3059 | 1995-06-01 Jim Meyering <meyering@gnu.org> | |
3060 | ||
3061 | * doc/bison.texinfo: *** empty log message *** | |
3062 | ||
3063 | 1995-05-06 Richard Stallman <rms@gnu.org> | |
3064 | ||
3065 | * src/bison.s1: Comment change. | |
3066 | ||
3067 | 1995-05-06 Richard Stallman <rms@gnu.org> | |
3068 | ||
3069 | * bison.simple: Comment change. | |
3070 | ||
3071 | 1995-05-03 Richard Stallman <rms@gnu.org> | |
3072 | ||
3073 | * src/version.c: Version now 1.24. | |
3074 | ||
3075 | * src/bison.s1: Change distribution terms. | |
3076 | ||
3077 | * src/version.c: Version now 1.23. | |
3078 | ||
3079 | 1995-05-03 Richard Stallman <rms@gnu.org> | |
3080 | ||
3081 | * doc/bison.texinfo: | |
3082 | Rewrite "Conditions for Using Bison". | |
3083 | Update version to 1.24. | |
3084 | ||
3085 | 1995-05-03 Richard Stallman <rms@gnu.org> | |
3086 | ||
3087 | * bison.simple: Change distribution terms. | |
3088 | ||
3089 | 1995-02-23 Richard Stallman <rms@gnu.org> | |
3090 | ||
3091 | * src/files.c: Test __VMS_POSIX as well as VMS. | |
3092 | ||
3093 | 1995-02-14 Jim Meyering <meyering@gnu.org> | |
3094 | ||
3095 | * src/bison.s1 (__yy_memcpy): | |
3096 | Renamed from __yy_bcopy to avoid | |
3097 | confusion. Reverse FROM and TO arguments to be consistent with | |
3098 | those of memcpy. | |
3099 | ||
3100 | 1995-02-14 Jim Meyering <meyering@gnu.org> | |
3101 | ||
3102 | * bison.simple (__yy_memcpy): | |
3103 | Renamed from __yy_bcopy to avoid | |
3104 | confusion. Reverse FROM and TO arguments to be consistent with | |
3105 | those of memcpy. | |
3106 | ||
3107 | 1994-11-10 David J. MacKenzie <djm@gnu.org> | |
3108 | ||
3109 | * NEWS: reformat | |
3110 | ||
3111 | * NEWS: New file. | |
3112 | ||
3113 | * Makefile.in (DISTFILES): Include NEWS. | |
3114 | ||
3115 | * Makefile.in (DISTFILES): | |
3116 | Include install-sh, not install.sh. | |
3117 | ||
3118 | * configure.in: Update to Autoconf v2 macro names. | |
3119 | ||
3120 | 1994-10-05 David J. MacKenzie <djm@gnu.org> | |
3121 | ||
3122 | * Makefile.in: fix typo | |
3123 | ||
3124 | * Makefile.in (prefix, exec_prefix): | |
3125 | Let configure set them. | |
3126 | ||
3127 | 1994-09-28 David J. MacKenzie <djm@gnu.org> | |
3128 | ||
3129 | * Makefile.in: Set datadir to $(prefix)/share. | |
3130 | ||
3131 | 1994-09-15 Richard Stallman <rms@gnu.org> | |
3132 | ||
3133 | * src/bison.s1: | |
3134 | Update copyright notice and GPL version. | |
3135 | ||
3136 | 1994-09-15 Richard Stallman <rms@gnu.org> | |
3137 | ||
3138 | * bison.simple: | |
3139 | Update copyright notice and GPL version. | |
3140 | ||
3141 | 1994-07-12 Richard Stallman <rms@gnu.org> | |
3142 | ||
3143 | * src/reduce.c, src/reader.c: | |
3144 | entered into RCS | |
3145 | ||
3146 | 1994-05-05 David J. MacKenzie <djm@gnu.org> | |
3147 | ||
3148 | * Makefile.in: entered into RCS | |
3149 | ||
3150 | 1994-03-26 Richard Stallman <rms@gnu.org> | |
3151 | ||
3152 | * src/bison.s1: entered into RCS | |
3153 | ||
3154 | 1994-03-26 Richard Stallman <rms@gnu.org> | |
3155 | ||
3156 | * bison.simple: entered into RCS | |
3157 | ||
3158 | 1994-03-25 Richard Stallman <rms@gnu.org> | |
3159 | ||
3160 | * src/main.c: entered into RCS | |
3161 | ||
3162 | 1994-03-24 Richard Stallman <rms@gnu.org> | |
3163 | ||
3164 | * src/conflicts.c: entered into RCS | |
3165 | ||
3166 | 1994-01-02 Richard Stallman <rms@gnu.org> | |
3167 | ||
3168 | * Makefile.in: *** empty log message *** | |
3169 | ||
3170 | 1993-11-21 Richard Stallman <rms@gnu.org> | |
3171 | ||
3172 | * src/bison.s1: *** empty log message *** | |
3173 | ||
3174 | 1993-11-21 Richard Stallman <rms@gnu.org> | |
3175 | ||
3176 | * doc/bison.texinfo: entered into RCS | |
3177 | ||
3178 | * doc/bison.texinfo: *** empty log message *** | |
3179 | ||
3180 | 1993-11-21 Richard Stallman <rms@gnu.org> | |
3181 | ||
3182 | * bison.simple: *** empty log message *** | |
3183 | ||
3184 | 1993-10-25 David J. MacKenzie <djm@gnu.org> | |
3185 | ||
3186 | * doc/bison.texinfo: *** empty log message *** | |
3187 | ||
3188 | 1993-10-19 Richard Stallman <rms@gnu.org> | |
3189 | ||
3190 | * src/bison.s1: *** empty log message *** | |
3191 | ||
3192 | 1993-10-19 Richard Stallman <rms@gnu.org> | |
3193 | ||
3194 | * bison.simple: *** empty log message *** | |
3195 | ||
3196 | 1993-10-14 Richard Stallman <rms@gnu.org> | |
3197 | ||
3198 | * src/bison.s1: *** empty log message *** | |
3199 | ||
3200 | 1993-10-14 Richard Stallman <rms@gnu.org> | |
3201 | ||
3202 | * bison.simple: *** empty log message *** | |
3203 | ||
3204 | 1993-09-14 David J. MacKenzie <djm@gnu.org> | |
3205 | ||
3206 | * doc/bison.texinfo: *** empty log message *** | |
3207 | ||
3208 | 1993-09-13 Noah Friedman <friedman@gnu.org> | |
3209 | ||
3210 | * Makefile.in: *** empty log message *** | |
3211 | ||
3212 | 1993-09-10 Richard Stallman <rms@gnu.org> | |
3213 | ||
3214 | * src/conflicts.c: *** empty log message *** | |
3215 | ||
3216 | * src/system.h: entered into RCS | |
3217 | ||
3218 | 1993-09-10 Richard Stallman <rms@gnu.org> | |
3219 | ||
3220 | * doc/bison.1: entered into RCS | |
3221 | ||
3222 | 1993-09-06 Noah Friedman <friedman@gnu.org> | |
3223 | ||
3224 | * src/version.c: entered into RCS | |
3225 | ||
3226 | 1993-09-06 Noah Friedman <friedman@gnu.org> | |
3227 | ||
3228 | * Makefile.in: *** empty log message *** | |
3229 | ||
3230 | 1993-07-30 David J. MacKenzie <djm@gnu.org> | |
3231 | ||
3232 | * Makefile.in: *** empty log message *** | |
3233 | ||
3234 | 1993-07-24 Richard Stallman <rms@gnu.org> | |
3235 | ||
3236 | * src/bison.s1: *** empty log message *** | |
3237 | ||
3238 | 1993-07-24 Richard Stallman <rms@gnu.org> | |
3239 | ||
3240 | * bison.simple: *** empty log message *** | |
3241 | ||
3242 | 1993-07-08 David J. MacKenzie <djm@gnu.org> | |
3243 | ||
3244 | * Makefile.in: *** empty log message *** | |
3245 | ||
3246 | 1993-07-04 Richard Stallman <rms@gnu.org> | |
3247 | ||
3248 | * src/bison.s1: *** empty log message *** | |
3249 | ||
3250 | 1993-07-04 Richard Stallman <rms@gnu.org> | |
3251 | ||
3252 | * bison.simple: *** empty log message *** | |
3253 | ||
3254 | 1993-06-26 David J. MacKenzie <djm@gnu.org> | |
3255 | ||
3256 | * src/getargs.c: entered into RCS | |
3257 | ||
3258 | 1993-06-26 David J. MacKenzie <djm@gnu.org> | |
3259 | ||
3260 | * doc/bison.texinfo: *** empty log message *** | |
3261 | ||
3262 | * doc/bison.1: New file. | |
3263 | ||
3264 | 1993-06-25 Richard Stallman <rms@gnu.org> | |
3265 | ||
3266 | * src/getargs.c: New file. | |
3267 | ||
3268 | 1993-06-16 Richard Stallman <rms@gnu.org> | |
3269 | ||
3270 | * src/bison.s1: *** empty log message *** | |
3271 | ||
3272 | 1993-06-16 Richard Stallman <rms@gnu.org> | |
3273 | ||
3274 | * bison.simple: *** empty log message *** | |
3275 | ||
3276 | 1993-06-03 Richard Stallman <rms@gnu.org> | |
3277 | ||
3278 | * src/bison.s1: New file. | |
3279 | ||
3280 | 1993-06-03 Richard Stallman <rms@gnu.org> | |
3281 | ||
3282 | * doc/bison.texinfo: *** empty log message *** | |
3283 | ||
3284 | 1993-06-03 Richard Stallman <rms@gnu.org> | |
3285 | ||
3286 | * bison.simple: New file. | |
3287 | ||
3288 | 1993-05-19 Richard Stallman <rms@gnu.org> | |
3289 | ||
3290 | * doc/bison.texinfo: New file. | |
3291 | ||
3292 | 1993-05-07 Noah Friedman <friedman@gnu.org> | |
3293 | ||
3294 | * Makefile.in: *** empty log message *** | |
3295 | ||
3296 | 1993-04-28 Noah Friedman <friedman@gnu.org> | |
3297 | ||
3298 | * src/reader.c: *** empty log message *** | |
3299 | ||
3300 | 1993-04-23 Noah Friedman <friedman@gnu.org> | |
3301 | ||
3302 | * src/alloc.h: entered into RCS | |
3303 | ||
3304 | 1993-04-20 David J. MacKenzie <djm@gnu.org> | |
3305 | ||
3306 | * src/version.c: *** empty log message *** | |
3307 | ||
3308 | * src/files.c, src/allocate.c: | |
3309 | entered into RCS | |
3310 | ||
3311 | * src/reader.c: *** empty log message *** | |
3312 | ||
3313 | * src/lex.c: entered into RCS | |
3314 | ||
3315 | * src/conflicts.c: New file. | |
3316 | ||
3317 | * src/symtab.c: entered into RCS | |
3318 | ||
3319 | * src/alloc.h: New file. | |
3320 | ||
3321 | * src/LR0.c: entered into RCS | |
3322 | ||
3323 | 1993-04-18 Noah Friedman <friedman@gnu.org> | |
3324 | ||
3325 | * src/reader.c: New file. | |
3326 | ||
3327 | * src/version.c: *** empty log message *** | |
3328 | ||
3329 | 1993-04-18 Noah Friedman <friedman@gnu.org> | |
3330 | ||
3331 | * Makefile.in: *** empty log message *** | |
3332 | ||
3333 | 1993-04-17 Noah Friedman <friedman@gnu.org> | |
3334 | ||
3335 | * Makefile.in: *** empty log message *** | |
3336 | ||
3337 | 1993-04-15 Richard Stallman <rms@gnu.org> | |
3338 | ||
3339 | * src/main.c, src/files.c: | |
3340 | New file. | |
3341 | ||
3342 | 1993-04-15 Noah Friedman <friedman@gnu.org> | |
3343 | ||
3344 | * configure.in: entered into RCS | |
3345 | ||
3346 | * configure.in: *** empty log message *** | |
3347 | ||
3348 | * configure.in: New file. | |
3349 | ||
3350 | 1993-04-14 Richard Stallman <rms@gnu.org> | |
3351 | ||
3352 | * Makefile.in: New file. | |
3353 | ||
3354 | 1993-04-13 Richard Stallman <rms@gnu.org> | |
3355 | ||
3356 | * src/version.c: New file. | |
3357 | ||
3358 | 1993-03-25 Richard Stallman <rms@gnu.org> | |
3359 | ||
3360 | * src/output.c: entered into RCS | |
3361 | ||
3362 | 1992-09-25 Richard Stallman <rms@gnu.org> | |
3363 | ||
3364 | * configure.bat: entered into RCS | |
3365 | ||
3366 | 1992-06-22 Richard Stallman <rms@gnu.org> | |
3367 | ||
3368 | * src/vmsgetargs.c: entered into RCS | |
3369 | ||
3370 | 1992-06-22 Richard Stallman <rms@gnu.org> | |
3371 | ||
3372 | * doc/bison.rnh: entered into RCS | |
3373 | ||
3374 | 1992-04-20 David J. MacKenzie <djm@gnu.org> | |
3375 | ||
3376 | * README: entered into RCS | |
3377 | ||
3378 | 1992-01-22 Richard Stallman <rms@gnu.org> | |
3379 | ||
3380 | * src/machine.h: entered into RCS | |
3381 | ||
3382 | 1991-12-21 Richard Stallman <rms@gnu.org> | |
3383 | ||
3384 | * src/lalr.c, src/closure.c: | |
3385 | entered into RCS | |
3386 | ||
3387 | 1991-12-20 Richard Stallman <rms@gnu.org> | |
3388 | ||
3389 | * src/state.h: entered into RCS | |
3390 | ||
3391 | 1991-12-18 Richard Stallman <rms@gnu.org> | |
3392 | ||
3393 | * src/print.c, src/nullable.c, src/derives.c: | |
3394 | entered into RCS | |
3395 | ||
3396 | 1991-11-03 David J. MacKenzie <djm@gnu.org> | |
3397 | ||
3398 | * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h: | |
3399 | entered into RCS | |
3400 | ||
3401 | 1988-09-09 Richard Stallman <rms@gnu.org> | |
3402 | ||
3403 | * src/bison.hairy: entered into RCS | |
3404 | ||
3405 | 1987-12-16 Richard Stallman <rms@gnu.org> | |
3406 | ||
3407 | * REFERENCES: entered into RCS |