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