]> git.saurik.com Git - bison.git/blob - ChangeLog
* src/reader.c (packgram): Catch nitems overflows.
[bison.git] / ChangeLog
1 2001-12-27 Akim Demaille <akim@epita.fr>
2
3 * src/reader.c (packgram): Catch nitems overflows.
4
5
6 2001-12-27 Akim Demaille <akim@epita.fr>
7
8 * src/files.c, src/files.h (guard_obstack): Remove.
9 * src/output.c (output): Adjust.
10 * src/reader.c (parse_braces): New, factoring...
11 (copy_action, copy_guard): these two which are renamed as...
12 (parse_action, parse_guard): these.
13 As a voluntary consequence, using braces around guards is now
14 mandatory.
15
16
17 2001-12-27 Akim Demaille <akim@epita.fr>
18
19 * src/gram.h (rule_t): `guard' and `guard_line' are new members.
20 * src/reader.c (symbol_list): `guard' and `guard_line' are new
21 members.
22 (symbol_list_new): Adjust.
23 (copy_action): action_line is the first line, not the last.
24 (copy_guard): Just as for actions, store the `action' only, not
25 the switch/case/break flesh.
26 Don't parse the user action that might follow the guard, let...
27 (readgram): do it, i.e., now, there can be an action after a
28 guard.
29 In other words the guard is just explicitly optional.
30 (packgram): Adjust.
31 * src/output.c (guards_output): New.
32 (output_parser): Call it when needed.
33 (output): Also free the guard and attrs obstacks.
34 * src/files.c, src/files.h (obstack_save): Remove.
35 (output_files): Remove.
36 As a result, if one needs the former `.act' file, using an
37 appropriate skeleton which requires actions and guards is now
38 required.
39 * src/main.c (main): Adjust.
40 * tests/semantic.at: New.
41 * tests/regression.at: Use `input.y' as input file name.
42 Avoid 8+3 problems by requiring input.c when the test needs the
43 parser.
44
45 2001-12-27 Akim Demaille <akim@epita.fr>
46
47 * src/reader.c (symbol_list_new): Be sure to initialize all the
48 fields.
49
50 2001-12-27 Akim Demaille <akim@epita.fr>
51
52 All the hacks using a final pseudo state are now useless.
53
54 * src/LR0.c (set_state_table): state_table holds exactly nstates.
55 * src/lalr.c (nLA): New.
56 (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it
57 instead of lookaheadsp from the pseudo state (nstate + 1).
58
59 2001-12-27 Akim Demaille <akim@epita.fr>
60
61 * src/output.c (action_row, token_actions): Use a state_t instead
62 of a integer, and nlookaheads instead of the following state's
63 lookaheadsp.
64
65
66 2001-12-27 Akim Demaille <akim@epita.fr>
67
68 * src/conflicts.c (log_resolution, flush_shift)
69 (resolve_sr_conflict, set_conflicts, solve_conflicts)
70 (count_sr_conflicts, count_rr_conflicts, conflicts_output)
71 (conflicts_print, print_reductions): Use a state_t instead of an
72 integer when referring to a state.
73 As much as possible, depend upon nlookaheads, instead of the
74 `lookaheadsp' member of the following state (since lookaheads of
75 successive states are successive, the difference between state n + 1
76 and n served as the number of lookaheads for state n).
77 * src/lalr.c (add_lookback_edge): Likewise.
78 * src/print.c (print_core, print_actions, print_state)
79 (print_results): Likewise.
80 * src/print_graph.c (print_core, print_actions, print_state)
81 (print_graph): Likewise.
82 * src/conflicts.h: Adjust.
83
84 2001-12-27 Akim Demaille <akim@epita.fr>
85
86 * src/bison.hairy: Formatting/comment changes.
87 ANSIfy.
88 Remove `register' indications.
89 Add plenty of `static'.
90
91 2001-12-27 Akim Demaille <akim@epita.fr>
92
93 * src/output.c (prepare): Drop the muscle `ntbase' which
94 duplicates ntokens.
95 * src/bison.simple: Formatting/comment changes.
96 Use YYNTOKENS only, which is documented, but not YYNTBASE, which
97 is an undocumented synonym.
98
99
100 2001-12-22 Akim Demaille <akim@epita.fr>
101
102 * src/output.c (output_table_data): Change the prototype to use
103 `int' for array ranges: some invocations do pass an int, not a
104 short.
105 Reported by Wayne Green.
106
107 2001-12-22 Akim Demaille <akim@epita.fr>
108
109 Some actions of web2c.y are improperly triggered.
110 Reported by Mike Castle.
111
112 * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/.
113 * tests/regression.at (Web2c): Rename as...
114 (Web2c Report): this.
115 (Web2c Actions): New.
116
117 2001-12-22 Akim Demaille <akim@epita.fr>
118
119 Reductions in web2c.y are improperly reported.
120 Reported by Mike Castle.
121
122 * src/conflicts.c (print_reductions): Fix.
123 * tests/regression.at (Web2c): New.
124
125 2001-12-18 Akim Demaille <akim@epita.fr>
126
127 Some host fail on `assert (!"foo")', which expands to
128 ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__))
129 Reported by Nelson Beebee.
130
131 * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with
132 `#define it_succeeded 0' and `assert (it_succeeded)'.
133
134 2001-12-17 Marc Autret <autret_m@epita.fr>
135
136 * src/bison.simple: Don't hard code the skeleton line and filename.
137 * src/output.c (output_parser): Rename 'line' as 'output_line'.
138 New line counter 'skeleton_line' (skeleton-line muscle).
139
140 2001-12-17 Paul Eggert <eggert@twinsun.com>
141
142 * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that
143 YYDEBUG must be defined to a nonzero value.
144
145 * src/bison.simple (yytname): Do not assume that the user defines
146 YYDEBUG to a properly parenthesized expression.
147
148 2001-12-17 Akim Demaille <akim@epita.fr>
149
150 * src/state.h (state_t): Rename lookaheads as lookaheadsp.
151 nlookaheads is a new member.
152 Adjust all users.
153 * src/lalr.h (nlookaheads): Remove this orphan declaration.
154 * src/lalr.c (initialize_lookaheads): Set nlookaheads for each
155 state.
156
157 2001-12-17 Akim Demaille <akim@epita.fr>
158
159 * src/files.h, src/files.c (open_files, close_files): Remove.
160 * src/main.c (main): Don't open/close files, nor invoke lex_free,
161 let...
162 * src/reader.c (reader): Do it.
163
164 2001-12-17 Akim Demaille <akim@epita.fr>
165
166 * src/conflicts.c (print_reductions): Formatting changes.
167
168 2001-12-17 Akim Demaille <akim@epita.fr>
169
170 * src/conflicts.c (flush_shift): Also adjust lookaheadset.
171 (flush_reduce): New.
172 (resolve_sr_conflict): Adjust.
173
174 2001-12-17 Akim Demaille <akim@epita.fr>
175
176 * src/output.c (output_obstack): Be static and rename as...
177 (format_obstack): this, to avoid any confusion with files.c's
178 output_obstack.
179 * src/reader.h (muscle_obstack): Move to...
180 * src/output.h: here, since it's defined in output.c.
181
182 2001-12-17 Akim Demaille <akim@epita.fr>
183
184 * src/output.c (action_row, save_column, default_goto)
185 (sort_actions, matching_state, pack_vector): Better variable
186 locality.
187
188 2001-12-17 Akim Demaille <akim@epita.fr>
189
190 * src/output.c: Various formatting changes.
191
192 2001-12-17 Akim Demaille <akim@epita.fr>
193
194 * src/files.c (output_files): Free the output_obstack.
195 * src/main.c (main): Call print and print_graph conditionally.
196 * src/print.c (print): Work unconditionally.
197 * src/print_graph.c (print_graph): Work unconditionally.
198 * src/conflicts.c (log_resolution): Output only if verbose_flag.
199
200 2001-12-16 Marc Autret <autret_m@epita.fr>
201
202 * src/output.c (actions_output): Fix. When we use %no-lines,
203 there is one less line per action.
204
205 2001-12-16 Marc Autret <autret_m@epita.fr>
206
207 * src/bison.simple: Remove a useless #line directive.
208 s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'.
209 * src/output.c (get_lines_number): New.
210 (output_parser): Adjust, now takes care about the lines of a
211 output muscles.
212 Fix line numbering.
213 (actions_output): Computes the number of lines taken by actions.
214 (output_master_parser): Insert new skeleton which is the name of
215 the output parser file name.
216
217 2001-12-15 Marc Autret <autret_m@epita.fr>
218
219 * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility.
220
221 2001-12-15 Marc Autret <autret_m@epita.fr>
222
223 * src/output.c (output_gram): Keep track of the hairy one.
224
225 2001-12-15 Akim Demaille <akim@epita.fr>
226
227 Make `make distcheck' work.
228
229 * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses
230 system.h which uses libgettext.h.
231
232 2001-12-15 Akim Demaille <akim@epita.fr>
233
234 * src/nullable.c (set_nullable): Useless rules must be skipped,
235 otherwise, since we range over their symbols, we might look at a
236 nonterminal which no longer ``exists'', i.e., it is not counted in
237 `nvars', hence we overflow our arrays.
238
239 2001-12-15 Akim Demaille <akim@epita.fr>
240
241 The header can also be produced directly, without any obstack!
242 Yahoo!
243
244 * src/files.c, src/files.h (defines_obstack): Remove.
245 (compute_header_macro): Global.
246 (defines_obstack_save): Remove.
247 * src/reader.c (parse_union_decl): No longer output to
248 defines_obstack: its content can be found in the `stype' muscle
249 anyway.
250 (output_token_translations): Merge into...
251 (symbols_output): this.
252 Rename as...
253 (symbols_save): this.
254 (reader): Adjust.
255 * src/output.c (header_output): New.
256 (output): Call it.
257
258 2001-12-15 Akim Demaille <akim@epita.fr>
259
260 * src/reader.c (parse_union_decl): Instead of handling two obstack
261 simultaneously, use one to define the `stype' muscle, and use the
262 value of the latter to fill defines_obstack.
263 (copy_comment): Remove.
264 (copy_comment2): Work for a single obstack.
265 Rename as...
266 (copy_comment): this.
267
268 2001-12-15 Akim Demaille <akim@epita.fr>
269
270 * src/lex.c, src/lex.h (xgetc): No longer static.
271 * src/reader.c (parse_union_decl): Revamp.
272
273 2001-12-15 Akim Demaille <akim@epita.fr>
274
275 Still making progress in separating Bison into (i) input, (ii)
276 process, (iii) output: now we can directly output the parser file
277 without using table_obstack at all.
278
279 * src/files.c, src/files.h (table_obstack): Bye bye.
280 (parser_file_name): New.
281 * src/files.c (compute_output_file_names): Compute it.
282 * src/output.c (actions_output, output_parser)
283 (output_master_parser): To a file instead of an obstack.
284
285 2001-12-15 Akim Demaille <akim@epita.fr>
286
287 Attach actions to rules, instead of pre-outputting them to
288 actions_obstack.
289
290 * src/gram.h (rule_t): action and action_line are new members.
291 * src/reader.c (symbol_list): Likewise.
292 (copy_action): Save the actions within the rule.
293 (packgram): Save them in rule_table.
294 * src/output.c (actions_output): New.
295 (output_parser): Use it on `%%actions'.
296 (output_rule_data): Don't free rule_table.
297 (output): Do it.
298 (prepare): Don't save the `action' muscle.
299 * src/bison.simple: s/%%action/%%actions/.
300
301 2001-12-15 Akim Demaille <akim@epita.fr>
302
303 * src/reader.c (copy_action): When --yacc, don't append a `;'
304 to the user action: let it fail if lacking.
305 Suggested by Arnold Robbins and Tom Tromey.
306
307 2001-12-14 Akim Demaille <akim@epita.fr>
308
309 * src/lex.c (literalchar): Simply return the char you decoded, non
310 longer mess around with obstacks and int pointers.
311 Adjust all callers.
312
313 2001-12-14 Akim Demaille <akim@epita.fr>
314
315 * src/lex.c (literalchar): Don't escape the special characters,
316 just decode them, and keep them as char (before, eol was output as
317 the 2 char string `\n' etc.).
318 * src/output.c (output_rule_data): Use quotearg to output the
319 token strings.
320
321 2001-12-13 Paul Eggert <eggert@twinsun.com>
322
323 * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE):
324 Do not infringe on the global user namespace when using C++.
325 (YYFPRINTF, YYSTDERR): New macros, needed for the above.
326 All uses of `fprintf' and `stderr' changed.
327
328 * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR.
329
330 2001-12-13 Akim Demaille <akim@epita.fr>
331
332 The computation of nullable is broken: it doesn't handle empty
333 RHS's properly.
334
335 * tests/torture.at (GNU AWK Grammar): New.
336 * tests/sets.at (Nullable): New.
337 * src/nullable.c (set_nullable): Instead of blindly looping over
338 `ritems', loop over the rules, and then over their rhs's.
339
340 Work around Autotest bugs.
341
342 * src/warshall.c (bitmatrix_print): Don't use `+--+' as table
343 frame, because Autotest understand lines starting with a `+' as
344 traces from the shell. Then, they are not processed properly.
345 Admittedly an Autotest bug, but we don't have time to wait for
346 Autotest to catch up.
347 * tests/regression.at (Broken Closure): Adjust to the new table
348 frames.
349 Move to...
350 * tests/sets.at: here.
351
352 2001-12-13 Akim Demaille <akim@epita.fr>
353
354 * src/closure.c (closure): Use nrules instead of playing tricks
355 with BITS_PER_WORD.
356
357 2001-12-13 Akim Demaille <akim@epita.fr>
358
359 * src/print.c (print_actions): Output the handling of `$' as the
360 traces do: shifting the token EOF. Before EOF was treated as a
361 nonterminal.
362 * tests/regression.at: Adjust some tests.
363 * src/print_graph.c (print_core): Complete the set of items via
364 closure. The next-to-final and final states are still unsatisfying,
365 but that's to be addressed elsewhere.
366 No longer output the rule numbers, but do output the state number.
367 A single loop for the shifts + gotos is enough, but picked a
368 distinct color for each.
369 (print_graph): Initialize and finalize closure.
370
371 2001-12-13 Akim Demaille <akim@epita.fr>
372
373 * src/reader.c (readgram): Remove dead code, an strip useless
374 braces.
375 (get_type): Remove, unused.
376
377 2001-12-12 Akim Demaille <akim@epita.fr>
378
379 * src/complain.h, src/complain.c: Remove error_one_per_line, rely
380 on that of lib/error.c.
381
382 2001-12-12 Akim Demaille <akim@epita.fr>
383
384 Some hosts don't like `/' in includes.
385
386 * src/system.h: Include libgettext.h without qualifying the path.
387 * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove
388 $(top_srcdir).
389
390 2001-12-11 Marc Autret <autret_m@epita.fr>
391
392 * src/output.c (output_parser): Remove useless muscle.
393
394 2001-12-11 Marc Autret <autret_m@epita.fr>
395
396 * src/bison.simple: Remove #line just before %%epilogue. It
397 is now handled in ...
398 * src/reader.c (read_additionnal_code): Add the output of a
399 #line for the epilogue.
400
401 2001-12-10 Marc Autret <autret_m@epita.fr>
402
403 * src/reader.c (copy_definition): Re-use CPP-outed code which
404 replace precedent remove.
405 * src/bison.simple: Remove #line before %%prologue because
406 %%input-line is wrong at this time.
407
408 2001-12-10 Marc Autret <autret_m@epita.fr>
409
410 * src/reader.c (symbols_output): Clean up.
411 * src/output.c (output_gram, output): Clean up.
412
413 2001-12-10 Akim Demaille <akim@epita.fr>
414
415 * src/lalr.c (initialize_lookaheads): New. Extracted from...
416 * src/LR0.c (set_state_table): here.
417 * src/lalr.c (lalr): Call it.
418
419 2001-12-10 Akim Demaille <akim@epita.fr>
420
421 * src/state.h (shifts): Remove the `number' member: shifts are
422 attached to state, hence no longer need to be labelled with a
423 state number.
424
425 2001-12-10 Akim Demaille <akim@epita.fr>
426
427 Now that states have a complete set of members, the linked list of
428 shifts is useless: just fill directly the state's shifts member.
429
430 * src/state.h (shifts): Remove the `next' member.
431 * src/LR0.c (first_state, last_state): Remove.
432 Adjust the callers.
433 (augment_automaton): Don't look for the shifts that must be added
434 a shift on EOF: it is those of the state we looked for! But now,
435 since shifts are attached, it is no longer needed to looking
436 merely by its id: its number.
437
438 2001-12-10 Akim Demaille <akim@epita.fr>
439
440 * src/LR0.c (augment_automaton): Better variable locality.
441 Remove an impossible branch: if there is a state corresponding to
442 the start symbol being shifted, then there is shift for the start
443 symbol from the initial state.
444
445 2001-12-10 Akim Demaille <akim@epita.fr>
446
447 * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state'
448 only when appropriate: when insert_start_shifting_state' is not
449 invoked.
450 * tests/regression.at (Rule Line Numbers): Adjust.
451
452 2001-12-10 Akim Demaille <akim@epita.fr>
453
454 * src/LR0.c (augment_automaton): Now that all states have shifts,
455 merge the two cases addition shifts to the initial state.
456
457 2001-12-10 Akim Demaille <akim@epita.fr>
458
459 * src/lalr.c (set_state_table): Move to...
460 * src/LR0.c: here.
461 * src/lalr.c (lalr): Don't call it...
462 * src/LR0.c (generate_states): do it.
463 * src/LR0.h (first_state): Remove, only the table is used.
464
465 2001-12-10 Akim Demaille <akim@epita.fr>
466
467 * src/LR0.h (first_shift, first_reduction): Remove.
468 * src/lalr.c: Don't use first_shift: find shifts through the
469 states.
470
471 2001-12-10 Akim Demaille <akim@epita.fr>
472
473 * src/LR0.c: Attach shifts to states as soon as they are
474 computed.
475 * src/lalr.c (set_state_table): Instead of assigning shifts to
476 state, just assert that the mapping was properly done.
477
478 2001-12-10 Akim Demaille <akim@epita.fr>
479
480 * src/LR0.c (insert_start_shift): Rename as...
481 (insert_start_shifting_state): this.
482 (insert_eof_shifting_state, insert_accepting_state): New.
483 (augment_automaton): Adjust.
484 Better locality of the variables.
485 When looking if the start_symbol is shifted from the initial
486 state, using `while (... symbol != start_symbol ...)' sounds
487 better than `while (... symbol < start_symbol ...)': If fail
488 to see how the order between symbols could be relevant!
489
490 2001-12-10 Akim Demaille <akim@epita.fr>
491
492 * src/getargs.h: Don't declare `spec_name_prefix' and
493 `spec_file_prefix', declared by src/files.h.
494 * src/files.c, src/files.h: Default for spec_name_prefix is "yy".
495 * src/muscle_tab.c (muscle_init): Default prefix to NULL.
496 * src/output.c (prepare): Adjust.
497 * src/reader.c (symbols_output): Likewise.
498 * src/vmsgetargs.c: Vaguely adjust, but who cares?
499
500 2001-12-10 Akim Demaille <akim@epita.fr>
501
502 * src/muscle_tab.c (muscle_init): NULL is a better default than
503 `"0"'.
504
505 2001-12-10 Akim Demaille <akim@epita.fr>
506
507 * src/reader.c (reader): Calling symbols_output once is enough.
508
509 2001-12-10 Akim Demaille <akim@epita.fr>
510
511 Now that states have a complete set of members, the linked list of
512 reductions is useless: just fill directly the state's reductions
513 member.
514
515 * src/state.h (struct reductions): Remove member `number' and
516 `next'.
517 * src/LR0.c (first_reduction, last_reduction): Remove.
518 (save_reductions): Don't link the new reductions, store them in
519 this_state.
520 * src/lalr.c (set_state_table): No need to attach reductions to
521 states, it's already done.
522 * src/output.c (output_actions): No longer free the shifts, then
523 the reductions, then the states: free all the states and their
524 members.
525
526 2001-12-10 Akim Demaille <akim@epita.fr>
527
528 * src/options.c (OPTN, DRTV, BOTH): New.
529 (option_table): Use them.
530
531 * src/muscle_tab.c: Don't include xalloc.h and string.h: that's
532 the job of system.h.
533 * src/options.c: Don't include stdio.h and xalloc.h for the same
534 reasons.
535
536 2001-12-10 Akim Demaille <akim@epita.fr>
537
538 * src/output.c (output, prepare): Make sure the values of the
539 muscles `action' and `prologue' are 0-terminated.
540
541 2001-12-10 Akim Demaille <akim@epita.fr>
542
543 Clean up GCC warnings.
544
545 * src/reader.c (copy_action): `buf' is not used.
546 (parse_skel_decl): Be static.
547 * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'.
548 * src/options.h (create_long_option_table): Have a real prototype.
549 * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete)
550 (hash_delete_at): Return const void *.
551 Adjust casts to preserve the const.
552
553 2001-12-10 Akim Demaille <akim@epita.fr>
554
555 * configure.in: Require 2.52g.
556 M4 is not needed, but AUTOM4TE is.
557 * m4/m4.m4: Remove.
558 * tests/Makefile.am: Adjust.
559
560 2001-12-10 Akim Demaille <akim@epita.fr>
561
562 One structure for states is enough, even though theoretically
563 there are LR(0) states and LALR(1) states.
564
565 * src/lalr.h (state_t): Remove.
566 (state_table): Be state_t **, not state_t *.
567 * src/state.h (core, CORE_ALLOC): Rename as...
568 (state_t, STATE_ALLOC): this.
569 Add the LALR(1) members: shifts, reductions, errs.
570 * src/LR0.c (state_table): Rename as...
571 (state_hash): this, to avoid name clashes with the global
572 `state_table'.
573 * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c
574 * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust.
575
576 2001-12-10 Akim Demaille <akim@epita.fr>
577
578 Bison dumps core on bash.y.
579 Reported by Pascal Bart.
580
581 * src/warshall.c (bitmatrix_print): New.
582 (TC): Use it.
583 When performing a transitive closure R(i, j) && R(j, k) => R(i, k),
584 j must be the outer loop.
585 * tests/regression.at (Broken Closure): New.
586
587 2001-12-05 Akim Demaille <akim@epita.fr>
588
589 * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and
590 its argument.
591 Reported by Peter Hámorský.
592
593 2001-12-05 Akim Demaille <akim@epita.fr>
594
595 * src/conflicts.c (err_table): Remove.
596 (resolve_sr_conflict): Adjust.
597 * src/lalr.h (state_t.reduction_table, state_t.shift_table):
598 Rename as...
599 (state_t.reductions, state_t.shifts): this.
600
601 2001-12-05 Akim Demaille <akim@epita.fr>
602
603 * src/reduce.c (reduce_grammar_tables): No longer disable the
604 removal of useless rules via CPP but via `if (0)', so that the
605 compiler still check the code is valid.
606 For instance, it should have noticed `rline' no longer exists: use
607 the `line' member of rule_t.
608 * src/gram.c (dummy, rline): Remove, unused.
609
610 2001-12-05 Akim Demaille <akim@epita.fr>
611
612 * src/output.c (pack_vector): Use assert, not berror.
613 * src/main.c (berror): Remove, unused.
614
615 2001-12-05 Akim Demaille <akim@epita.fr>
616
617 New experimental feature: if --verbose --trace output all the
618 items of a state, not only its kernel.
619
620 * src/print.c (print_core): If `trace_flag', then invoke closure
621 before outputting the items of the state (print_core is no longer
622 a correct name them).
623 (print_results): Invoke new_closure/free_closure if needed.
624
625 2001-12-05 Akim Demaille <akim@epita.fr>
626
627 * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount.
628 * src/closure.c, src/closure.h (itemsetsize): Rename as...
629 (nitemset): for consistency with the rest of the project.
630
631 2001-12-05 Akim Demaille <akim@epita.fr>
632
633 * src/closure.c (print_closure): Improve.
634 (closure): Use it for printing input and output.
635
636 2001-12-05 Akim Demaille <akim@epita.fr>
637
638 * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are
639 indexed by nonterminals.
640
641 2001-12-05 Akim Demaille <akim@epita.fr>
642
643 * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of
644 what it was!).
645 * src/warshall.h: Remove accidental duplication of the content.
646
647 2001-12-05 Akim Demaille <akim@epita.fr>
648
649 * src/closure.c (set_fderives): De-obfuscate.
650
651 2001-12-05 Akim Demaille <akim@epita.fr>
652
653 * src/closure.c (print_firsts, print_fderives): De-obfuscate.
654
655 2001-12-05 Akim Demaille <akim@epita.fr>
656
657 * src/closure.c (set_firsts): De-obfuscate.
658
659 2001-12-05 Akim Demaille <akim@epita.fr>
660
661 * src/output.c (action_row): De-obfuscate
662 using the good o' techniques: arrays not pointers, variable
663 locality, BITISSET, RESETBIT etc.
664
665 2001-12-05 Akim Demaille <akim@epita.fr>
666
667 Pessimize the code to simplify it: from now on, all the states
668 have a valid SHIFTS, which NSHIFTS is possibly 0.
669
670 * src/LR0.c (shifts_new): Be global and move to..
671 * src/state.c, src/state.h: here.
672 * src/conflicts, src/lalr.c, src/output.c, src/print.c,
673 * src/print_graph: Adjust.
674
675 2001-12-05 Akim Demaille <akim@epita.fr>
676
677 * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New.
678 * src/conflicts.c: Use it.
679 Restore a few missing `if (!SHIFT_IS_DISABLED)' which were
680 incorrectly ``simplified''.
681
682 2001-12-05 Akim Demaille <akim@epita.fr>
683
684 * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate
685 using the good o' techniques: arrays not pointers, variable
686 locality, BITISSET, RESETBIT etc.
687
688 2001-12-05 Akim Demaille <akim@epita.fr>
689
690 * src/state.h (SHIFT_SYMBOL): New.
691 * src/conflicts.c: Use it to deobfuscate.
692
693 2001-12-05 Akim Demaille <akim@epita.fr>
694
695 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts)
696 (print_reductions): De-obfuscate using the good o' techniques:
697 arrays not pointers, variable locality, BITISSET.
698
699 2001-12-05 Akim Demaille <akim@epita.fr>
700
701 * src/conflicts.c (print_reductions): Arrays, not pointers.
702 Use BITISSET.
703
704 2001-12-05 Akim Demaille <akim@epita.fr>
705
706 * src/conflicts.c (print_reductions): Pessimize, but clarify.
707
708 2001-12-05 Akim Demaille <akim@epita.fr>
709
710 * src/conflicts.c (print_reductions): Improve variable locality.
711
712 2001-12-05 Akim Demaille <akim@epita.fr>
713
714 * src/conflicts.c (print_reductions): Pessimize, but clarify.
715
716 2001-12-05 Akim Demaille <akim@epita.fr>
717
718 * src/conflicts.c (print_reductions): Improve variable locality.
719
720 2001-12-05 Akim Demaille <akim@epita.fr>
721
722 * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New.
723 * src/lalr.c: Use them.
724
725 2001-12-05 Akim Demaille <akim@epita.fr>
726
727 * src/LR0.c (augment_automaton): Formatting changes.
728 Better variable locality.
729
730 2001-12-05 Akim Demaille <akim@epita.fr>
731
732 * src/lalr.c (matrix_print): New.
733 (transpose): Use it.
734 Use arrays instead of pointers.
735
736 2001-12-05 Akim Demaille <akim@epita.fr>
737
738 * src/lalr.c (maxrhs): Move to...
739 * src/gram.c, src/gram.h (ritem_longest_rhs): here.
740 * src/lalr.c (build_relations): Adjust.
741
742 2001-12-05 Akim Demaille <akim@epita.fr>
743
744 * src/lalr.c (transpose): Free the memory allocated to the
745 argument, as it is replaced by the results by the unique caller.
746 (build_relations): Merely invoke transpose: it handles the memory
747 deallocation.
748 Improve variable locality.
749 Avoid variables used as mere abbreviations.
750 (compute_lookaheads): Use arrays instead of pointers.
751
752 2001-12-05 Akim Demaille <akim@epita.fr>
753
754 * src/lalr.c (initialize_F): Improve variable locality.
755 Avoid variables used as mere abbreviations.
756
757 2001-12-05 Akim Demaille <akim@epita.fr>
758
759 * src/derives.c (print_derives): Display the ruleno.
760 * src/lalr.c (initialize_F, transpose): Better variable locality
761 to improve readability.
762 Avoid variables used as mere abbreviations.
763
764 2001-12-05 Akim Demaille <akim@epita.fr>
765
766 * src/lalr.c (traverse): Use arrays instead of pointers.
767
768 2001-12-05 Akim Demaille <akim@epita.fr>
769
770 * src/nullable.c (set_nullable): Use a for loop to de-obfuscate
771 the handling of squeue.
772 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
773
774 2001-12-05 Akim Demaille <akim@epita.fr>
775
776 Because useless nonterminals are now kept alive (instead of being
777 `destroyed'), we now sometimes examine them, and store information
778 related to them. Hence we need to know their number, and adjust
779 memory allocations.
780
781 * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer
782 static.
783 * src/LR0.c (allocate_itemsets): The memory allocated to
784 `symbol_count' was used for two different purpose: once to count
785 the number of occurrences of each symbol, and later reassigned to
786 `shift_symbol', containing the symbol that can be shifted from a
787 given state.
788 Deobfuscate, i.e., allocate, use and free `symbol_count' here
789 only, and...
790 (new_itemsets): Allocate `shift_symbol' here.
791 (allocate_itemsets): symbol_count includes useless nonterminals.
792 Make room for them.
793 (free_storage): Use `free', not `XFREE', for pointers that cannot
794 be null.
795
796 2001-12-05 Akim Demaille <akim@epita.fr>
797
798 * src/nullable.c (set_nullable): Deobfuscate the handling of
799 ritem.
800 `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'.
801
802 2001-12-05 Akim Demaille <akim@epita.fr>
803
804 * src/gram.c, src/gram.h (ritem_print): New.
805 * src/gram.c (dummy): Remove, now there is actual code in gram.c.
806 (This useless function was defined only to work around VMS linkers
807 that can't handle compilation units with variables only).
808 * src/reduce.c (dump_grammar): Use it to trace the construction of
809 ritem.
810
811 2001-12-04 Paul Eggert <eggert@twinsun.com>
812
813 * src/bison.simple (union yyalloc): Change member names
814 to be the same as the stack names.
815 (yyparse): yyptr is now union yyalloc *, not char *.
816 (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning,
817 and may generate better code on some machines.
818 (yystpcpy): Use prototype if __STDC__ is defined, not just
819 if __cplusplus is defined.
820
821 2001-11-30 Akim Demaille <akim@epita.fr>
822
823 * configure.in (WARNING_CFLAGS): Add -Werror when possible.
824 (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU
825 Gettext doesn't compile cleanly, and dies with -Werror.
826 * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS):
827 Include WARNING_CFLAGS here.
828 * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared
829 before being defined.
830
831 2001-11-27 Paul Eggert <eggert@twinsun.com>
832
833 * lib/quotearg.h (quotearg_n, quotearg_n_style):
834 First arg is int, not unsigned.
835 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
836 (SIZE_MAX, UINT_MAX): New macros.
837 (quotearg_n_options): Abort if N is negative.
838 Avoid overflow check on hosts where size_t is 64 bits and int
839 is 32 bits, as overflow is impossible there.
840 Fix off-by-one typo that caused unnecessary reallocation.
841
842 2001-11-29 Paul Eggert <eggert@twinsun.com>
843
844 Name space cleanup in generated parser.
845
846 * doc/bison.texinfo (Bison Parser): Discuss system headers
847 and their effect on the user name space.
848
849 * src/bison.simple:
850 (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX,
851 YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary,
852 i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE).
853
854 (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing
855 on user names when possible.
856
857 (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn.
858 Simplify test for whather <alloca.h> exists.
859
860 (<stdlib.h>): Include if we will use malloc, and if standard C or C++.
861
862 (<stdio.h>): Include if YYDEBUG.
863
864 (yymemcpy): Renamed from __yy_memcpy. Do not define unless
865 ! defined (yyoverflow) && ! defined (yymemcpy).
866
867 (yymemcpy, yyparse): Rename local variables as needed so that
868 they all begin with 'yy'.
869
870 (yystrlen, yystpcpy): New functions.
871
872 (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES.
873 All uses changed.
874
875 (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy
876 instead of relying on string.h functions. Use YYSTACK_ALLOC
877 and YYSTACK_FREE instead of malloc and free.
878
879 2001-11-30 Akim Demaille <akim@epita.fr>
880
881 * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions
882 before their first uses.
883 (YYBISON, YYPURE): Move to the top of the output.
884
885 2001-11-30 Akim Demaille <akim@epita.fr>
886
887 * tests/reduce.at (Useless Nonterminals): Fix.
888
889 2001-11-30 Akim Demaille <akim@epita.fr>
890
891 * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty
892 if body instead of `;' to pacify GCC's warnings.
893
894 2001-11-30 Akim Demaille <akim@epita.fr>
895
896 Instead of mapping the LHS of unused rules to -1, keep the LHS
897 valid, but flag the rules as invalid.
898
899 * src/gram.h (rule_t): `useful' is a new member.
900 * src/print.c (print_grammar): Adjust.
901 * src/derives.c (set_derives): Likewise.
902 * src/reader.c (packgram, reduce_output): Likewise.
903 * src/reduce.c (reduce_grammar_tables): Likewise.
904 * tests/reduce.at (Underivable Rules, Useless Rules): New.
905
906 2001-11-30 Akim Demaille <akim@epita.fr>
907
908 * src/reduce.c (reduce_output): Formatting changes.
909 * src/print.c (print_results, print_grammar): Likewise.
910 * tests/regression.at (Rule Line Numbers)
911 (Solved SR Conflicts, Unresolved SR Conflicts): Adjust.
912
913 2001-11-30 Akim Demaille <akim@epita.fr>
914
915 * src/reduce.c (nonterminals_reduce): Instead of throwing away
916 useless nonterminals, move them at the end of the symbol arrays.
917 (reduce_output): Adjust.
918 * tests/reduce.at (Useless Nonterminals): Adjust.
919
920 2001-11-30 Akim Demaille <akim@epita.fr>
921
922 * src/reduce.c: Various comment/formatting changes.
923 (nonterminals_reduce): New, extracted from...
924 (reduce_grammar_tables): here.
925 (reduce_grammar): Call nonterminals_reduce.
926
927 2001-11-29 Paul Eggert <eggert@twinsun.com>
928
929 * src/bison.simple (YYSTACK_REALLOC): Remove.
930 (YYSTACK_ALLOC): Resurrect this macro, with its old meaning.
931 (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE):
932 New macros.
933 (union yyalloc): New type.
934 (__yy_memcpy): Last arg is size_t, not unsigned int, to remove
935 an arbitrary restriction on hosts where size_t is wider than int.
936
937 (yyparse): Don't dump core if alloca or malloc fails; instead, report
938 a parser stack overflow. Allocate just one block of memory for all
939 three stacks, instead of allocating three blocks; this typically is
940 faster and reduces fragmentation.
941
942 Do not limit the number of items in the stack to a value that fits
943 in 'int', as this is an arbitrary limit on hosts with 64-bit
944 size_t and 32-bit int.
945
946 2001-11-29 Marc Autret <autret_m@epita.fr>
947
948 * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead
949 of defining YYERROR_VERBOSE.
950 [AT_DATA]: $4 is now out of C declarations in the prologue.
951
952 2001-11-28 Marc Autret <autret_m@epita.fr>
953
954 * src/reader.c (parse_dquoted_param): New.
955 (parse_skel_decl): Use it.
956 * src/lex.h: Add its prototype.
957 * src/lex.c (literalchar): Become not static.
958
959 2001-11-28 Marc Autret <autret_m@epita.fr>
960
961 * src/output.h: And put its extern declaration here.
962 * src/output.c (error_verbose): Define here.
963 (prepare): Echo name modification.
964 * src/getargs.h: Clean its extern declaration.
965 * src/getargs.c (error_verbose_flag): Remove.
966 (getargs): Remove case 'e'.
967 * src/options.c (option_table): 'error-verbose' is now seen as simple
968 percent option.
969 Include output.h.
970
971 * src/reader.c (read_declarations): Remove case tok_include.
972 (parse_include_decl): Remove.
973 * src/lex.h (token_t): Remove tok_include.
974 * src/options.c (option_table): 'include' is now a simple command line
975 option.
976
977 2001-11-28 Marc Autret <autret_m@epita.fr>
978
979 * src/bison.simple: Adjust muscle names.
980 * src/muscle_tab.c (muscle_init): Also rename the muscles.
981 * src/output.c (prepare): s/_/-/ for the muscles names.
982 (output_parser): When scanning for a muscle, allow '-' instead of '_'.
983
984 2001-11-28 Marc Autret <autret_m@epita.fr>
985
986 * src/bison.simple: Fix debug.
987 [YYERROR_VERBOSE]: Re-integrate as an internal macro.
988
989 2001-11-28 Akim Demaille <akim@epita.fr>
990
991 * src/LR0.c (shifts_new): New.
992 (save_shifts, insert_start_shift, augment_automaton): Use it.
993
994 2001-11-28 Akim Demaille <akim@epita.fr>
995
996 * src/closure.c (closure): `b' and `ruleno' denote the same value:
997 keep ruleno only.
998
999 2001-11-28 Akim Demaille <akim@epita.fr>
1000
1001 * src/closure.c (closure): Instead of looping over word in array
1002 then bits in words, loop over bits in array.
1003
1004 2001-11-28 Akim Demaille <akim@epita.fr>
1005
1006 * src/closure.c (closure): No longer optimize the special case
1007 where all the bits of `ruleset[r]' are set to 0, to make the code
1008 clearer.
1009
1010 2001-11-28 Akim Demaille <akim@epita.fr>
1011
1012 * src/closure.c (closure): `r' and `c' are new variables, used to
1013 de-obfuscate accesses to RULESET and CORE.
1014
1015 2001-11-28 Akim Demaille <akim@epita.fr>
1016
1017 * src/reduce.c (reduce_print): Use ngettext.
1018 (dump_grammar): Improve the trace accuracy.
1019
1020 2001-11-28 Akim Demaille <akim@epita.fr>
1021
1022 * src/reduce.c (dump_grammar): Don't translate trace messages.
1023
1024 2001-11-28 Akim Demaille <akim@epita.fr>
1025
1026 * tests/reduce.at (Useless Terminals, Useless Nonterminals): New.
1027 * src/reduce.c (reduce_grammar_tables): Do not free useless tags,
1028 as all tags are free'ed afterwards.
1029 From Enrico Scholz.
1030
1031 2001-11-27 Paul Eggert <eggert@twinsun.com>
1032
1033 * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to
1034 use alloca when we didn't want to, and vice versa.
1035
1036 2001-11-27 Marc Autret <autret_m@epita.fr>
1037
1038 * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle
1039 initialization.
1040 * src/output.c (prepare): Remove its update.
1041
1042 2001-11-27 Marc Autret <autret_m@epita.fr>
1043
1044 * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition.
1045 Use %error-verbose.
1046
1047 2001-11-27 Marc Autret <autret_m@epita.fr>
1048
1049 * src/bison.simple: Remove YYERROR_VERBOSE using.
1050 Use %%error_verbose.
1051 (yyparse): Likewise.
1052 * src/output.c (prepare): Give its final value.
1053 * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'.
1054 * src/getargs.h: Add its extern declaration.
1055 * src/getargs.c (error_verbose_flag): New int.
1056 (getargs): Update to catch new case.
1057 * src/options.c (option_table): 'error-verbose' is a new option.
1058 (shortopts): Update.
1059
1060 2001-11-27 Akim Demaille <akim@epita.fr>
1061
1062 * src/system.h: Use intl/libgettext.h.
1063 * src/Makefile.am (INCLUDES): Add -I $(top_srcdir).
1064
1065 2001-11-27 Akim Demaille <akim@epita.fr>
1066
1067 * tests/torture.at (Exploding the Stack Size with Malloc):
1068 s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/.
1069
1070 2001-11-27 Akim Demaille <akim@epita.fr>
1071
1072 * src/files.c: Include error.h.
1073 Reported by Hans Aberg.
1074
1075 2001-11-26 Marc Autret <autret_m@epita.fr>
1076
1077 * src/reader.c (parse_include_decl): New, not yet implemented.
1078 (read_declarations): Add case tok_include.
1079 * src/getargs.h (include): Add its extern definition.
1080 * src/getargs.c (include): New const char *.
1081 (getargs): Add case '-I'.
1082 * src/options.c (option_table): Add include as command line and
1083 percent option.
1084 * src/lex.h (token_t): Add tok_include.
1085
1086 2001-11-26 Akim Demaille <akim@epita.fr>
1087
1088 * src/reader.c (readgram): Make sure rules for mid-rule actions
1089 have a lineno equal to that of their host rule.
1090 Reported by Hans Aberg.
1091 * tests/regression.at (Rule Line Numbers): New.
1092
1093 2001-11-26 Akim Demaille <akim@epita.fr>
1094
1095 * src/LR0.c (allocate_itemsets): kernel_size contains ints, not
1096 size_ts.
1097
1098 2001-11-26 Akim Demaille <akim@epita.fr>
1099
1100 * src/complain.c, src/complain.h (error): Remove, provided by
1101 lib/error.[ch].
1102
1103 2001-11-26 Akim Demaille <akim@epita.fr>
1104
1105 * src/reader.c (read_declarations): Don't abort on tok_illegal,
1106 issue an error message.
1107 * tests/regression.at (Invalid %directive): New.
1108 Reported by Hans Aberg.
1109
1110 2001-11-26 Akim Demaille <akim@epita.fr>
1111
1112 * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE.
1113 * lib/Makefile.am (libbison_a_SOURCES): Adjust.
1114
1115 2001-11-26 Akim Demaille <akim@epita.fr>
1116
1117 * src/conflicts.c (conflicts_print): Don't complain at all when
1118 there are no reduce/reduce conflicts, and as many shift/reduce
1119 conflicts as expected.
1120 * tests/regression.at (%expect right): Adjust.
1121
1122 2001-11-23 Akim Demaille <akim@epita.fr>
1123
1124 * lib/alloca.c: Update, from fileutils.
1125
1126 2001-11-23 Akim Demaille <akim@epita.fr>
1127
1128 * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@.
1129
1130 2001-11-23 Akim Demaille <akim@epita.fr>
1131
1132 * src/system.h: Include alloca.h.
1133 * src/main.c (main) [C_ALLOCA]: Call alloca (0).
1134
1135 2001-11-23 Akim Demaille <akim@epita.fr>
1136
1137 * src/print_graph.c (print_actions): Remove `rule', unused.
1138 * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to
1139 pacify GCC's signed < unsigned warnings.
1140 * src/closure.c (itemsetsize): Likewise.
1141 * src/reader.c (symbol_list_new): Static.
1142
1143 2001-11-23 Akim Demaille <akim@epita.fr>
1144
1145 Attaching lineno to buckets is stupid, since only one copy of each
1146 symbol is kept, only the line of the first occurrence is kept too.
1147
1148 * src/symtab.h, src/symtab.c (bucket): Remove the line member.
1149 * src/reader.c (rline_allocated): Remove, unused.
1150 (symbol_list): Have a `line' member.
1151 (symbol_list_new): New.
1152 (readgram): Use it.
1153 * src/print.c (print_grammar): Output the rule line numbers.
1154 * tests/regression.at (Solved SR Conflicts)
1155 (Unresolved SR Conflicts): Adjust.
1156 Reported by Hans Aberg.
1157
1158 2001-11-22 Marc Autret <autret_m@epita.fr>
1159
1160 * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0.
1161
1162 2001-11-22 Marc Autret <autret_m@epita.fr>
1163
1164 * src/muscle_tab.c (muscle_init): Remove initialization of
1165 skeleton muscle.
1166 * src/output.c (output_master_parser): Do it here.
1167
1168 2001-11-20 Akim Demaille <akim@epita.fr>
1169
1170 * po/sv.po: New.
1171 * configure.in (ALL_LINGUAS): Adjust.
1172 * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no
1173 longer contains strings to translate.
1174
1175 2001-11-19 Akim Demaille <akim@epita.fr>
1176
1177 * src/conflicts.c (conflicts_print): Add a missing \n.
1178
1179 2001-11-19 Akim Demaille <akim@epita.fr>
1180
1181 * src/nullable.c (nullable_print): New.
1182 (set_nullable): Call it when tracing.
1183 Better locality of variables.
1184
1185 2001-11-19 Akim Demaille <akim@epita.fr>
1186
1187 * src/print.c (print_actions): Better locality of variables.
1188
1189 2001-11-19 Akim Demaille <akim@epita.fr>
1190
1191 * src/derives.c (print_derives): Fix and enrich.
1192 * src/closure.c (print_fderives): Likewise.
1193
1194 2001-11-19 Akim Demaille <akim@epita.fr>
1195
1196 * src/closure.c (itemsetend): Remove, replaced with...
1197 (itemsetsize): new.
1198
1199 2001-11-19 Akim Demaille <akim@epita.fr>
1200
1201 * src/LR0.c (kernel_end): Remove, replaced with...
1202 (kernel_size): new.
1203
1204 2001-11-19 Akim Demaille <akim@epita.fr>
1205
1206 * src/conflicts.c (set_conflicts): Use arrays instead of pointers
1207 to clarify.
1208
1209 2001-11-19 Akim Demaille <akim@epita.fr>
1210
1211 * src/closure.c (closure): Use arrays instead of pointers to clarify.
1212
1213 2001-11-19 Akim Demaille <akim@epita.fr>
1214
1215 * src/closure.c, src/derives.c, src/nullable.c: Adjust various
1216 trace messages.
1217 * src/LR0.c: Likewise.
1218 (allocate_itemsets): Use arrays instead of pointers to clarify.
1219
1220 2001-11-19 Akim Demaille <akim@epita.fr>
1221
1222 * src/getargs.c (statistics_flag): Replace with...
1223 (trace_flag): New.
1224 (longopts): Accept --trace instead of --statistics.
1225 * src/getargs.h, src/options.c: Adjust.
1226 * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
1227 * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
1228
1229 2001-11-19 Akim Demaille <akim@epita.fr>
1230
1231 * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer
1232 pointers to clarify the code.
1233 (save_reductions, save_shifts): Factor common parts of alternatives.
1234
1235 2001-11-19 Akim Demaille <akim@epita.fr>
1236
1237 * src/LR0.c (new_state, get_state): Complete TRACE code.
1238 * src/closure.c: Include `reader.h' to get `tags', needed by the
1239 trace code.
1240 Rename the conditional DEBUG as TRACE.
1241 Output consistently TRACEs to stderr, not stdout.
1242 * src/derives.c: Likewise.
1243 * src/reduce.c: (inaccessable_symbols): Using if is better style
1244 than goto.
1245 Use `#if TRACE' instead of `#if 0' for tracing code.
1246
1247 2001-11-19 Akim Demaille <akim@epita.fr>
1248
1249 * src/system.h (LIST_FREE, shortcpy): New.
1250 * src/LR0.c: Use them.
1251 * src/output.c (free_itemsets, free_reductions, free_shifts):
1252 Remove, replaced by LIST_FREE.
1253
1254 2001-11-19 Akim Demaille <akim@epita.fr>
1255
1256 * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC)
1257 (REDUCTIONS_ALLOC): New.
1258 * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory
1259 allocation.
1260
1261 2001-11-19 Akim Demaille <akim@epita.fr>
1262
1263 * src/LR0.c (new_state): Complete trace code.
1264 * src/nullable.c (set_nullable): Don't translate traces.
1265
1266 2001-11-19 Akim Demaille <akim@epita.fr>
1267
1268 * src/print_graph.c (print_core): Better locality of variables.
1269 * src/print.c (print_core): Likewise.
1270
1271 2001-11-19 Akim Demaille <akim@epita.fr>
1272
1273 * src/vcg.c: You do the output, so you are responsible of the
1274 handling of VCG syntax, in particular: use quotearg.
1275 * src/print_graph.c: Don't.
1276 (print_actions): Don't output the actions as part of the nodes,
1277 since that's the job of the edges.
1278 (print_state): Don't output by hand: fill the node description,
1279 and ask for its output.
1280
1281 2001-11-19 Akim Demaille <akim@epita.fr>
1282
1283 * src/bison.simple (yyparse): When verbosely reporting an error,
1284 no longer put additional quotes around token names.
1285 * tests/calc.at: Adjust.
1286
1287 2001-11-19 Akim Demaille <akim@epita.fr>
1288
1289 * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'.
1290 * src/reader.c (record_rule_lines, rline, rline_allocated): Remove.
1291 * src/output.c: Adjust.
1292
1293 2001-11-19 Akim Demaille <akim@epita.fr>
1294
1295 * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
1296 (rule_t): this.
1297 * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
1298
1299 2001-11-19 Akim Demaille <akim@epita.fr>
1300
1301 * src/gram.h (rule_t): New.
1302 (rule_table): New.
1303 (rrhs, rlhs): Remove, part of state_t.
1304 * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c,
1305 * src/lalr.c, src/nullable.c, src/output.c, src/print.c,
1306 * src/reader.c, src/reduce.c: Adjust.
1307
1308 2001-11-19 Akim Demaille <akim@epita.fr>
1309
1310 * src/reader.c (symbols_output): New, extracted from...
1311 (packsymbols): Here.
1312 (reader): Call it.
1313
1314 2001-11-19 Akim Demaille <akim@epita.fr>
1315
1316 * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with...
1317 (maxrhs): this new function.
1318
1319 2001-11-19 Akim Demaille <akim@epita.fr>
1320
1321 * src/lalr.c (F): New macro to access the variable F.
1322 Adjust.
1323
1324 2001-11-19 Akim Demaille <akim@epita.fr>
1325
1326 * src/lalr.h (LA): New macro to access the variable LA.
1327 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1328 * src/lalr.c: Adjust.
1329
1330 2001-11-19 Akim Demaille <akim@epita.fr>
1331
1332 * src/lalr.c (initialize_LA): Only initialize LA. Let...
1333 (set_state_table): handle the `lookaheads' members.
1334
1335 2001-11-19 Akim Demaille <akim@epita.fr>
1336
1337 * src/lalr.h (lookaheads): Removed array, whose contents is now
1338 a member of...
1339 (state_t): this structure.
1340 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1341 Adjust.
1342
1343 2001-11-19 Akim Demaille <akim@epita.fr>
1344
1345 * src/lalr.h (consistent): Removed array, whose contents is now
1346 a member of...
1347 (state_t): this structure.
1348 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1349 Adjust.
1350
1351 2001-11-19 Akim Demaille <akim@epita.fr>
1352
1353 * src/lalr.h (reduction_table, shift_table): Removed arrays, whose
1354 contents are now members of...
1355 (state_t): this structure.
1356 * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
1357 Adjust.
1358
1359 2001-11-19 Akim Demaille <akim@epita.fr>
1360
1361 * src/lalr.h (state_t): New.
1362 (state_table): Be a state_t * instead of a core **.
1363 (accessing_symbol): Remove, part of state_t.
1364 * src/lalr.c: Adjust.
1365 (set_accessing_symbol): Merge into...
1366 (set_state_table): this.
1367 * src/print_graph.c, src/conflicts.c: Adjust.
1368
1369 2001-11-14 Akim Demaille <akim@epita.fr>
1370
1371 * tests/calc.at, tests/output.at, tests/regression.at,
1372 * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g:
1373 now the tests are run in private dirs, therefore AC_CLEANUP and
1374 family can be simplified to 0-ary.
1375 * tests/atlocal.in: Now that we run `elsewhere' than in tests/,
1376 use abs. path to find config.h.
1377 * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's
1378 stderr, there can be way too much random noise.
1379 Instead pass -Werror to GCC and rely on the exit status.
1380 Reported by Wolfram Wagner.
1381
1382 2001-11-14 Akim Demaille <akim@epita.fr>
1383
1384 * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be
1385 defined only if yyoverflow is defined, to avoid `warning: unused
1386 variable `yyvs1''.
1387 Reported by The Test Suite.
1388
1389 2001-11-14 Akim Demaille <akim@epita.fr>
1390
1391 * src/print.c: Include reduce.h.
1392 Reported by Hans Aberg.
1393
1394 2001-11-14 Akim Demaille <akim@epita.fr>
1395
1396 * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer):
1397 Revert a previous patch: these are really const.
1398 * src/conflicts.c (conflict_report): Additional useless pair of
1399 braces to pacify GCC's warnings for `if () if () {} else {}'.
1400 * src/lex.c (parse_percent_token): Replace equal_offset with
1401 arg_offset.
1402 arg is const.
1403 Be sure to strdup `arg' when used, since there is no reason for
1404 token_buffer not to change.
1405
1406 2001-11-14 Akim Demaille <akim@epita.fr>
1407
1408 * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper
1409 definition.
1410 * src/main.c (main): Use them.
1411 Suggested by Hans Aberg.
1412
1413 2001-11-12 Akim Demaille <akim@epita.fr>
1414
1415 * src/system.h (ngettext): Now that we use ngettext, be sure to
1416 provide a default definition when NLS are not used.
1417
1418 2001-11-12 Akim Demaille <akim@epita.fr>
1419
1420 * doc/bison.texinfo: Use `$' as shell prompt, not `%'.
1421 Use @kbd to denote user input.
1422 (Language and Grammar): ANSIfy the example.
1423 Adjust its layout for info/notinfo.
1424 (Location Tracking Calc): Output error messages to stderr.
1425 Output locations in a more GNUtically correct way.
1426 Fix a couple of Englishos.
1427 Adjust @group/@end group pairs.
1428
1429 2001-11-12 Akim Demaille <akim@epita.fr>
1430
1431 %expext was not functioning at all.
1432
1433 * src/conflicts.c (expected_conflicts): Set to -1.
1434 (conflict_report): Use ngettext.
1435 (conflicts_print): Check %expect and make its violation an error.
1436 * doc/bison.texinfo (Expect Decl): Adjust.
1437 * configure.in (AM_GNU_GETTEXT): Ask for ngettext.
1438 * tests/regression.at (%expect not enough, %expect right)
1439 (%expect too much): New.
1440
1441 2001-11-12 Akim Demaille <akim@epita.fr>
1442
1443 * tests/regression.at (Conflicts): Rename as...
1444 (Unresolved SR Conflicts): this.
1445 (Solved SR Conflicts): New.
1446
1447 2001-11-12 Akim Demaille <akim@epita.fr>
1448
1449 * src/reduce.c (print_results): Rename as...
1450 (reduce_output): This.
1451 Output to OUT, passed as argument, instead of output_obstack.
1452 (dump_grammar): Likewise.
1453 (reduce_free): New.
1454 Also free V1.
1455 (reduce_grammar): No longer call reduce_output, since...
1456 * src/print.c (print_results): do it.
1457 * src/main.c (main): Call reduce_free;
1458
1459 2001-11-12 Akim Demaille <akim@epita.fr>
1460
1461 * src/conflicts.c (print_reductions): Accept OUT as argument.
1462 Output to it, not to output_obstack.
1463 * src/print.c (print_actions): Adjust.
1464
1465 2001-11-12 Akim Demaille <akim@epita.fr>
1466
1467 * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
1468 the result instead of using...
1469 (src_total, rrc_total, src_count, rrc_count): Remove.
1470 (any_conflicts): Remove.
1471 (print_conflicts): Split into...
1472 (conflicts_print, conflicts_output): New.
1473 * src/conflicts.h: Adjust.
1474 * src/main.c (main): Invoke both conflicts_output and conflicts_print.
1475 * src/print.c (print_grammar): Issue `\n' between two rules.
1476 * tests/regression.at (Conflicts): New.
1477 Reported by Tom Lane.
1478
1479 2001-11-12 Akim Demaille <akim@epita.fr>
1480
1481 * tests/regression.at (Invalid input): Remove, duplicate with
1482 ``Invalid input: 1''.
1483
1484 2001-11-12 Akim Demaille <akim@epita.fr>
1485
1486 * tests/torture.at (AT_DATA_STACK_TORTURE)
1487 (Exploding the Stack Size with Alloca)
1488 (Exploding the Stack Size with Malloc): New.
1489
1490 2001-11-12 Akim Demaille <akim@epita.fr>
1491
1492 * src/bison.simple (YYSTACK_REALLOC): New.
1493 (yyparse) [!yyoverflow]: Use it and free the old stack.
1494 Reported by Per Allansson.
1495
1496 2001-11-12 Pascal Bart <pascal.bart@epita.fr>
1497
1498 * src/bison.simple: Define type yystype instead of YYSTYPE, and
1499 define CPP macro, which substitute YYSTYPE by yystype.
1500 * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do
1501 with yyltype/YYLTYPE. This allows inclusion of the generated
1502 header within the parser if the compiler, such as GGC, accepts
1503 multiple equivalent #defines.
1504 From Akim.
1505
1506 2001-11-05 Akim Demaille <akim@epita.fr>
1507
1508 * src/reader.c (symbols_output): New, extracted from...
1509 (packsymbols): here.
1510 (reader): Adjust.
1511
1512 2001-11-05 Akim Demaille <akim@epita.fr>
1513
1514 * src/lex.c (parse_percent_token): s/quotearg/quote/.
1515
1516 2001-11-05 Akim Demaille <akim@epita.fr>
1517
1518 * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
1519 pattern.
1520
1521 2001-11-05 Akim Demaille <akim@epita.fr>
1522
1523 * src/options.h (struct option_table_struct): set_flags is void*.
1524 * src/options.c (longopts): Support `--output' and `%output'.
1525 (usage): Adjust.
1526 * src/lex.h (tok_setopt): Remove, replaced with...
1527 (tok_intopt, tok_stropt): these new guys.
1528 * src/lex.c (getopt.h): Not needed.
1529 (token_buffer, unlexed_token_buffer): Not const.
1530 (percent_table): Promote `-' over `_' in directive names.
1531 Active `%name-prefix', `file-prefix', and `output'.
1532 (parse_percent_token): Accept possible arguments to directives.
1533 Promote `-' over `_' in directive names.
1534
1535 2001-11-04 Akim Demaille <akim@epita.fr>
1536
1537 * doc/bison.texinfo (Decl Summary): Split the list into
1538 `directives for grammars' and `directives for bison'.
1539 Sort'em.
1540 Add description of `%name-prefix', `file-prefix', and `output'.
1541 Promote `-' over `_' in directive names.
1542 (Bison Options): s/%locactions/%locations/. Nice Freudian slip.
1543 Simplify the description of `--name-prefix'.
1544 Promote `-' over `_' in directive names.
1545 Promote `--output' over `--output-file'.
1546 Fix the description of `--defines'.
1547 * tests/output.at: Exercise %file-prefix and %output.
1548
1549 2001-11-02 Akim Demaille <akim@epita.fr>
1550
1551 * doc/refcard.tex: Update.
1552
1553 2001-11-02 Akim Demaille <akim@epita.fr>
1554
1555 * src/symtab.h (SUNDEF): New.
1556 * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to
1557 stand for `uninitialized', instead of 0.
1558 * src/reader.c (packsymbols, parse_thong_decl): Adjust.
1559 * src/lex.c (lex): Adjust.
1560
1561 * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF.
1562 Number it 0.
1563 Let yylex return it instead of a plain 0.
1564 Reported by Dick Streefland.
1565
1566 2001-11-02 Akim Demaille <akim@epita.fr>
1567
1568 * tests/regression.at (Mixing %token styles): New test.
1569
1570 2001-11-02 Akim Demaille <akim@epita.fr>
1571
1572 * src/reader.c (parse_thong_decl): Formatting changes.
1573 (token_translations_init): New, extracted from...
1574 (packsymbols): Here.
1575 Adjust.
1576
1577 2001-11-01 Akim Demaille <akim@epita.fr>
1578
1579 * tests/regression.at (AT_TEST_CPP_GUARD_H): New.
1580 Check that `9foo.y' produces correct cpp guards.
1581 * src/files.c (compute_header_macro): Prepend `BISON_' to CPP
1582 guards.
1583 Reported by Wwp.
1584
1585 2001-11-01 Akim Demaille <akim@epita.fr>
1586
1587 * tests/regression.at (Invalid input: 2): New.
1588 * src/lex.c (unlexed_token_buffer): New.
1589 (lex, unlex): Adjust: when unlexing, be sure to save token_buffer
1590 too.
1591 Reported by Wwp.
1592
1593 2001-11-01 Akim Demaille <akim@epita.fr>
1594
1595 * tests/calc.at: Catch up with 1.30.
1596 * configure.in: Bump to 1.49a.
1597 Adjust to newer Autotest.
1598
1599 2001-10-19 Pascal Bart <pascal.bart@epita.fr>
1600
1601 * src/conflicts.c: Move global variables rrc_total and src_total ...
1602 (print_conflicts): here.
1603 * src/output.c (output): Free global variable user_toknums.
1604 * src/lex.c (token_obstack): Become static.
1605
1606 2001-10-18 Akim Demaille <akim@epita.fr>
1607
1608 * tests/atlocal.in (GCC): Add.
1609 * tests/calc.at: s/m4_match/m4_bmatch/.
1610 s/m4_patsubst/m4_bpatsubst/.
1611 (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC.
1612 * configure.in: AC_SUBST(GCC).
1613
1614 2001-10-14 Marc Autret <autret_m@epita.fr>
1615
1616 * src/options.c (create_long_option_table): Fix.
1617
1618 2001-10-10 Akim Demaille <akim@epita.fr>
1619
1620 * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA.
1621
1622 2001-10-04 Akim Demaille <akim@epita.fr>
1623
1624 * src/reader.c (parse_union_decl): Push the caracters in
1625 union_obstack, not attrs_obstack.
1626
1627 2001-10-04 Akim Demaille <akim@epita.fr>
1628
1629 Merge in the branch 1.29.
1630
1631 * src/reader.c (packsymbols): Use a temporary obstack for
1632 `%%tokendef', since output_stack is already used elsewhere.
1633
1634 2001-10-02 Akim Demaille <akim@epita.fr>
1635
1636 Bump 1.29d.
1637
1638 2001-10-02 Akim Demaille <akim@epita.fr>
1639
1640 Version 1.29c.
1641
1642 2001-10-02 Akim Demaille <akim@epita.fr>
1643
1644 * tests/regression.at (Invalid CPP headers): New.
1645 From Alexander Belopolsky.
1646 * src/files.c (compute_header_macro): Map non alnum chars to `_'.
1647
1648 2001-10-02 Akim Demaille <akim@epita.fr>
1649
1650 * tests/regression.at (Invalid input): New.
1651 * src/lex.c (lex): Be sure to set `token_buffer' in any case.
1652 Reported by Shura.
1653
1654 2001-10-02 Akim Demaille <akim@epita.fr>
1655
1656 * tests/calc.at: Now that --debug works, the tests must be adjusted.
1657
1658 2001-10-02 Akim Demaille <akim@epita.fr>
1659
1660 * src/output.c (output_parser): Assert `skeleton'.
1661 * src/files.c (skeleton_find): Look harder for skeletons on DOSish
1662 systems.
1663 From Shura.
1664
1665 2001-10-01 Marc Autret <autret_m@epita.fr>
1666
1667 * src/lex.h: Echo modifications.
1668 * src/lex.c (unlex): Parameter is now token_t.
1669 From Hans Aberg.
1670
1671 2001-10-01 Marc Autret <autret_m@epita.fr>
1672
1673 * src/main.c: Include lex.h.
1674 From Hans Aberg.
1675
1676 2001-09-29 Akim Demaille <akim@epita.fr>
1677
1678 * src/getargs.c (longopts): `--debug' is `-t', not `-d'.
1679
1680 2001-09-28 Akim Demaille <akim@epita.fr>
1681
1682 * tests/testsuite.at: Update to newer Autotest.
1683 * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped.
1684
1685 2001-09-27 Akim Demaille <akim@epita.fr>
1686
1687 Position independent wrapper.
1688
1689 * tests/bison: Remove.
1690 * tests/bison.in: New.
1691 * configure.in: Adjust.
1692
1693 2001-09-27 Paul Eggert <eggert@twinsun.com>
1694
1695 Port quotearg fixes from tar 1.13.24.
1696
1697 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
1698 tm to be declared.
1699 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
1700 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
1701
1702 * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4.
1703 * m4/mbrtowc.m4: New file.
1704 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h.
1705 Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc).
1706
1707 2001-09-27 Akim Demaille <akim@epita.fr>
1708
1709 Bump to 1.29c.
1710
1711 2001-09-27 Akim Demaille <akim@epita.fr>
1712
1713 Version 1.29b.
1714
1715 2001-09-25 Akim Demaille <akim@epita.fr>
1716
1717 * src/system.h: Include `xalloc.h'.
1718 Remove it from the C files.
1719 * src/files.c (output_files): Free the obstacks.
1720 * src/lex.c (init_lex): Rename as...
1721 (lex_init): this.
1722 (lex_free): New.
1723 * src/main.c (main): Use it.
1724
1725 2001-09-24 Marc Autret <autret_m@epita.fr>
1726
1727 * src/vcg.c (open_edge, close_edge, open_node, close_node): Change
1728 to output informations in fout (FILE*).
1729 (open_graph, close_graph): Likewise.
1730 (output_graph, output_edge, output_node): Likewise.
1731 * src/vcg.h: Update function prototypes.
1732 * src/print_graph.c (print_graph): Open output graph file.
1733 (print_actions): Adjust.
1734 * src/files.h: Remove extern declaration.
1735 * src/files.c: Remove graph_obstack declaration.
1736 (open_files): Remove graph_obstack initialization.
1737 (output_files): Remove graph_obstack saving.
1738
1739 2001-09-24 Marc Autret <autret_m@epita.fr>
1740
1741 * src/files.c (compute_output_file_names): Fix.
1742
1743 2001-09-24 Marc Autret <autret_m@epita.fr>,
1744 Akim Demaille <akim@epita.fr>
1745
1746 * src/reader.c (reader): Remove call to free_symtab ().
1747 * src/main.c (main): Call it here.
1748 Include symtab.h.
1749 * src/conflicts.c (initialize_conflicts): Rename as...
1750 (solve_conflicts): this.
1751 * src/print.c (print_core, print_actions, print_state)
1752 (print_grammar): Dump to a file instead a `output_obstack'.
1753 (print_results): Dump `output_obstack', and then proceed with the
1754 FILE *.
1755 * src/files.c (compute_output_file_names, close_files): New.
1756 (output_files): Adjust.
1757 * src/main.c (main): Adjust.
1758
1759 2001-09-23 Marc Autret <autret_m@epita.fr>
1760
1761 * src/files.c (compute_header_macro): Computes header macro name
1762 from spec_defines_file when given.
1763
1764 2001-09-23 Marc Autret <autret_m@epita.fr>
1765
1766 * src/files.c (output_files): Add default extensions.
1767
1768 2001-09-22 Akim Demaille <akim@epita.fr>
1769
1770 * src/conflicts.c (finalize_conflicts): Rename as...
1771 (free_conflicts): this.
1772
1773 2001-09-22 Akim Demaille <akim@epita.fr>
1774
1775 * src/gram.c (gram_free): Rename back as...
1776 (dummy): this.
1777 (output_token_translations): Free `token_translations'.
1778 * src/symtab.c (free_symtab): Free the tag field.
1779
1780 2001-09-22 Akim Demaille <akim@epita.fr>
1781
1782 Remove `translations' as it is always set to true.
1783
1784 * src/gram.h: Adjust.
1785 * src/reader.c (packsymbols, parse_token_decl): Adjust
1786 * src/print.c (print_grammar): Adjust.
1787 * src/output.c (output_token_translations): Adjust.
1788 * src/lex.c (lex): Adjust.
1789 * src/gram.c: Be sure the set pointers to NULL.
1790 (dummy): Rename as...
1791 (gram_free): this.
1792
1793 2001-09-22 Akim Demaille <akim@epita.fr>
1794
1795 * configure.in: Invoke AM_LIB_DMALLOC.
1796 * src/system.h: Use dmalloc.
1797 * src/LR0.c: Be sure to have pointers initialized to NULL.
1798 (allocate_itemsets): Allocate kernel_items only if needed.
1799
1800 2001-09-22 Akim Demaille <akim@epita.fr>
1801
1802 * configure.in: Bump to 1.29b.
1803 * tests/Makefile.am (DISTCLEANFILES): Add package.m4.
1804 * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't
1805 need xmalloc.c in calc.y.
1806 From Pascal Bart.
1807
1808 2001-09-21 Akim Demaille <akim@epita.fr>
1809
1810 Version 1.29a.
1811 * Makefile.maint, config/config.guess, config/config.sub,
1812 * config/missing: Update from masters.
1813 * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend
1814 upon package.m4.
1815 * configure.in (ALL_LINGUAS): Add `tr'.
1816
1817 2001-09-21 Akim Demaille <akim@epita.fr>
1818
1819 * tests/Makefile.am (package.m4): Move to...
1820 ($(srcdir)/$(TESTSUITE)): here.
1821
1822 2001-09-20 Akim Demaille <akim@epita.fr>
1823
1824 * src/complain.c: No longer try to be standalone: use system.h.
1825 Don't assume __STDC__ is defined to 1. Just test if it is defined.
1826 * src/complain.h: Likewise.
1827 * src/reduce.c (useless_nonterminals, inaccessable_symbols):
1828 Remove the unused variable `n'.
1829 From Albert Chin-A-Young.
1830
1831 2001-09-18 Marc Autret <autret_m@epita.fr>
1832
1833 * doc/bison.1: Update.
1834 * doc/bison.texinfo (Bison Options): Update --defines and --graph
1835 descriptions.
1836 (Option Cross Key): Update.
1837 Add --graph.
1838
1839 2001-09-18 Marc Autret <autret_m@epita.fr>
1840
1841 * tests/regression.at: New test (comment in %union).
1842
1843 2001-09-18 Marc Autret <autret_m@epita.fr>
1844
1845 * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment
1846 do that.
1847 Reported by Keith Browne.
1848
1849 2001-09-18 Marc Autret <autret_m@epita.fr>
1850
1851 * tests/output.at: Add tests for --defines and --graph.
1852
1853 2001-09-18 Marc Autret <autret_m@epita.fr>
1854
1855 * tests/output.at: Removes tests of %{header,src}_extension features.
1856
1857 2001-09-18 Akim Demaille <akim@epita.fr>
1858
1859 * tests/Makefile.am (package.m4): New.
1860 * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'.
1861 (_AT_CHECK_CALC_ERROR): Likewise.
1862 Factor the `, ' part of verbose error messages.
1863
1864 2001-09-18 Marc Autret <autret_m@epita.fr>
1865
1866 * src/getargs.c (longopts): Declare --defines and --graph as options
1867 with optional arguments.
1868 * src/files.h: Add extern declarations.
1869 * src/files.c (spec_graph_file, spec_defines_file): New.
1870 (output_files): Update.
1871 Remove CPP-outed code.
1872
1873 2001-09-18 Marc Autret <autret_m@epita.fr>
1874
1875 Turn off %{source,header}_extension feature.
1876
1877 * src/files.c (compute_exts_from_gf): Update.
1878 (compute_exts_from_src): Update.
1879 (output_files): CPP-out useless code.
1880 * src/files.h: Remove {header,source}_extension extern declarations.
1881 * src/reader.c (parse_dquoted_param): CPP-out.
1882 (parse_header_extension_decl): Remove.
1883 (parse_source_extension_decl): Remove.
1884 (read_declarations): Remove cases tok_{hdrext,srcext}.
1885 * src/lex.c (percent_table): Remove {header,source}_extension entries.
1886 * src/lex.h (token_t): Remove tok_hdrext and tok_srcext.
1887
1888 2001-09-10 Akim Demaille <akim@epita.fr>
1889
1890 * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT):
1891 (AT_CHECK_BISON_PERCENT_FLAGS): Merge into...
1892 (AT_CHECK_OUTPUT): this.
1893 Merely check ls' exit status, its output is useless.
1894
1895 2001-09-10 Akim Demaille <akim@epita.fr>
1896
1897 * tests/calc.at: Use m4_match.
1898 (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'.
1899
1900 2001-09-10 Marc Autret <autret_m@epita.fr>,
1901 Akim Demaille <akim@epita.fr>
1902
1903 * src/vcg.h (graph_s): color, textcolor, bordercolor are now
1904 enum color_e.
1905 * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm
1906 to `normal'.
1907 * src/reader.c (parse_token_decl): Initialize token with tok_eof.
1908 * src/lex.h: Adjust prototype.
1909 (token_t): Add `tok_undef'.
1910 * src/lex.c (struct percent_table_struct): Retval is now a token_t.
1911 (parse_percent_token): Now returns token_t.
1912 Add default statement in switch.
1913 (lex): Separate `c' as an input variable, from the token_t result
1914 part.
1915 (unlexed): Is a token_t.
1916
1917 2001-09-10 Akim Demaille <akim@epita.fr>
1918
1919 * configure.in: Bump to 1.29a.
1920
1921 2001-09-07 Akim Demaille <akim@epita.fr>
1922
1923 Version 1.29.
1924
1925 2001-08-30 Akim Demaille <akim@epita.fr>
1926
1927 * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove.
1928 * m4/atconfig.m4: Remove.
1929 * tests/testsuite.at, tests/atlocal.in, tests/output.at,
1930 * tests/bison: New.
1931 * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER,
1932 m4_if, m4_patsubst, and m4_regexp.
1933 * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an
1934 `input' file instead of echo.
1935
1936 2001-08-29 Akim Demaille <akim@epita.fr>
1937
1938 Bump to 1.28e.
1939
1940 2001-08-29 Akim Demaille <akim@epita.fr>
1941
1942 Version 1.28d.
1943
1944 2001-08-29 Paul Eggert <eggert@twinsun.com>
1945
1946 * src/bison.simple (yyparse): Don't take the address of an
1947 item before the start of an array, as that doesn't conform to
1948 the C Standard.
1949
1950 2001-08-29 Robert Anisko <anisko_r@epita.fr>
1951
1952 * doc/bison.texinfo (Location Tracking Calc): New node.
1953
1954 2001-08-29 Paul Eggert <eggert@twinsun.com>
1955
1956 * src/output.c (output): Do not define const, as this now
1957 causes more problems than it cures.
1958
1959 2001-08-29 Akim Demaille <akim@epita.fr>
1960
1961 * doc/bison.texinfo: Modernize `@node' and `@top' use: just name
1962 the nodes.
1963 Be sure to tag the `detailmenu'.
1964
1965 2001-08-29 Akim Demaille <akim@epita.fr>
1966
1967 * Makefile.maint (do-po-update): Wget refuses to overwrite files:
1968 download in a tmp dir.
1969
1970 2001-08-28 Marc Autret <autret_m@epita.fr>
1971
1972 * config/depcomp: New file.
1973
1974 2001-08-28 Marc Autret <autret_m@epita.fr>
1975
1976 * doc/bison.1 (mandoc): Adjust.
1977 From Juan Manuel Guerrero.
1978
1979 2001-08-28 Marc Autret <autret_m@epita.fr>
1980
1981 * src/print_graph.c (print_state): Fix.
1982
1983 2001-08-27 Marc Autret <autret_m@epita.fr>
1984
1985 * src/vcg.h (classname_s, infoname_s, node_s): Constify the
1986 char * members.
1987 Echo modifications to the functions prototypes.
1988 * src/vcg.c (add_classname, add_infoname): Adjust arguments.
1989
1990 2001-08-27 Marc Autret <autret_m@epita.fr>
1991
1992 * src/vcg.c: Include `xalloc.h'.
1993 (add_colorentry): New.
1994 (add_classname): New.
1995 (add_infoname): New.
1996 * src/vcg.h: Add new prototypes.
1997
1998 2001-08-27 Akim Demaille <akim@epita.fr>
1999
2000 * Makefile.maint: Sync. again with CVS Autoconf.
2001
2002 2001-08-27 Akim Demaille <akim@epita.fr>
2003
2004 * Makefile.maint: Formatting changes.
2005 (po-update, cvs-update, update): New targets.
2006 (AMTAR): Remove.
2007
2008 2001-08-27 Akim Demaille <akim@epita.fr>
2009
2010 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2011 * Makefile.maint: Sync. with CVS Autoconf.
2012
2013 2001-08-27 Marc Autret <autret_m@epita.fr>
2014
2015 * src/vcg.h (struct infoname_s): New.
2016 (struct colorentry_s): New.
2017 (graph_s): New fields {vertical,horizontal}_order in structure.
2018 Add `infoname' field.
2019 Add `colorentry' field;
2020 * src/vcg_defaults.h (G_VERTICAL_ORDER): New.
2021 (G_HORIZONTAL_ORDER): New.
2022 (G_INFONAME): New.
2023 (G_COLORENTRY): New.
2024 * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order.
2025 Add output of `infoname'.
2026 Add output of `colorentry'.
2027
2028 2001-08-27 Marc Autret <autret_m@epita.fr>
2029
2030 * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'.
2031 This one shadowed a global parameter.
2032
2033 2001-08-24 Marc Autret <autret_m@epita.fr>
2034
2035 * src/print_graph.c (node_output_size): Declared POSIX `size_t' type,
2036 instead of `unsigned'.
2037 (print_state): Do not call obstack_object_size () in obstack_grow ()
2038 to avoid macro variables shadowing.
2039
2040 2001-08-23 Marc Autret <autret_m@epita.fr>
2041
2042 * src/lex.c (percent_table): Typo: s/naem/name/.
2043 Add graph option.
2044 Normalize new options declarations.
2045
2046 2001-08-20 Pascal Bart <pascal.bart@epita.fr>
2047
2048 * tests/suite.at: Exercise %header_extension and %source_extension.
2049
2050 2001-08-16 Marc Autret <autret_m@epita.fr>
2051
2052 * src/reader.c (parse_dquoted_param): New.
2053 (parse_header_extension_decl): Use it.
2054 (parse_source_extension_decl): Likewise.
2055
2056 2001-08-16 Marc Autret <autret_m@epita.fr>
2057
2058 * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'.
2059 (get_xxxx_str): Use assert () instead of complain ().
2060 Remove return invokations in default cases.
2061 (get_decision_str): Modify default behaviour. Remove second argument.
2062 Echo modifications on calls.
2063 (output_graph): Fix.
2064
2065 2001-08-16 Marc Autret <autret_m@epita.fr>
2066
2067 * src/getargs.c (usage): Update with ``-g, --graph''.
2068
2069 2001-08-16 Marc Autret <autret_m@epita.fr>
2070
2071 * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'.
2072 (Option Cross Key): Likewise.
2073 * doc/bison.1: Update.
2074
2075 2001-09-25 Pascal Bart <pascal.bart@epita.fr>
2076
2077 * src/output.c (output_master_parser): Don't finish action_obstack.
2078 (output_parser): Don't care about the muscle action, here.
2079 (prepare): Copy the action_obstack in the action muscle.
2080 (output): Free action_obstack.
2081
2082 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2083
2084 * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which
2085 will contain `%union' declaration.
2086 (parse_union_decl): Delete #line directive output.
2087 (parse_union_decl): Substitute /attrs_obstack/union_obstack for all
2088 informations about %union.
2089 (parse_union_decl): Copy the union_obstack in the muscle stype.
2090 * src/bison.simple: Add new #line directive.
2091 Add typdef %%stype YYSTYPE.
2092
2093 2001-09-23 Pascal Bart <pascal.bart@epita.fr>
2094
2095 * src/bison.simple: Add new `#line' directive.
2096
2097 2001-09-22 Pascal Bart <pascal.bart@epita.fr>
2098
2099 * src/bison.simple: New `#line' directive.
2100 * src/output.c (output_parser): Support new dynamic muscle input_line.
2101
2102 2001-09-22 Marc Autret <autret_m@epita.fr>
2103
2104 * src/output.c (output_master_parser): New.
2105 (output_parser): Be more re-entrant.
2106
2107 2001-09-21 Marc Autret <autret_m@epita.fr>
2108
2109 * src/reader.c (copy_definition, parse_union_decl): Update and use
2110 `linef' muscle.
2111 (copy_action): Likewise.
2112 Use obstack_1grow ().
2113 * src/muscle_tab.c (muscle_init): Add muscle `linef'.
2114
2115 2001-09-21 Marc Autret <autret_m@epita.fr>
2116
2117 * src/options.c (option_table): Adjust.
2118 * src/lex.c (parse_percent_token): Fix.
2119
2120 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2121
2122 * src/options.c (symtab.h): Include it, need by lex.h.
2123
2124 2001-09-20 Pascal Bart <pascal.bart@epita.fr>
2125
2126 * src/lex.c (parse_percent_token): Change type of variable `tx', which
2127 is now an option_table_struct*.
2128 (option_strcmp): New function option_strcmp.
2129 (parse_percent_token): Call option_strcmp.
2130 * src/getargs.c (xalloc.h, options.h): Include it.
2131 (getargs): Call create_long_option_table.
2132 (getargs): Free longopts at the end of the function.
2133 (shortopts): Move in options.c.
2134 * src/options.c (create_long_option_table): New function. Convert
2135 information from option_table to option structure.
2136 * src/reader.c (options.h): Include it.
2137
2138 * src/Makefile.am: Adjust.
2139 * src/options.c (option_table): Create from longopts and percent_table.
2140 * src/getargs.c (longopts): Delete.
2141 * src/lex.c (struct percent_table_struct): Delete.
2142 (percent_table): Delete.
2143 (options.h): Include it.
2144 * src/options.c: Create.
2145 * src/options.h: Create.
2146 Declare enum opt_access_e.
2147 Define struct option_table_struct.
2148
2149 2001-09-20 Marc Autret <autret_m@epita.fr>
2150
2151 * doc/bison.texinfo: Adjust terminologies about prologue and epilogue
2152 sections of Bison.
2153
2154 2001-09-19 Pascal Bart <pascal.bart@epita.fr>
2155
2156 * src/bison.simple: s/%%filename/%%skeleton.
2157 * src/muscle_tab.c (getargs.h): Include it.
2158 (muscle_init): Insert new muscle skeleton.
2159
2160 2001-09-18 Pascal Bart <pascal.bart@epita.fr>
2161
2162 * src/output.c (output_parser): Delete unused variable actions_dumped.
2163
2164 2001-09-07 Pascal Bart <pascal.bart@epita.fr>
2165
2166 * src/output.c (output): Delete call to reader_output_yylsp.
2167 * src/reader.c (reader): Likewise.
2168 * src/reader.h: Delete declaration of reader_output_yylsp.
2169
2170 2001-09-02 Marc Autret <autret_m@epita.fr>
2171
2172 * src/reader.c: Include muscle_tab.h.
2173 (parse_union_decl): Update.
2174 (parse_macro_decl): Rename parse_muscle_decl.
2175 Update to use renamed functions and variable.
2176 (read_declarations, copy_action, read_additionnal_code, : Updated
2177 with correct variables and functions names.
2178 (packsymbols, reader): Likewise.
2179
2180 * src/reader.h (muscle_obstack): Extern declaration update.
2181
2182 * src/output.c: Include muscle_tab.h
2183 In all functions using macro_insert, change by using muscle_insert ().
2184 (macro_obstack): Rename muscle_obstack.
2185 Echo modifications in the whole file.
2186 (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT.
2187 (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING.
2188 (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX.
2189
2190 * src/muscle_tab.h: Update double inclusion macros.
2191 (macro_entry_s): Rename muscle_entry_s.
2192 Update prototypes.
2193
2194 * src/muscle_tab.c: Include muscle_tab.h.
2195 Rename macro_tabble to muscle_table.
2196 (mhash1, mhash2, mcmp): Use muscle_entry.
2197 (macro_init): Rename muscle_init. Update.
2198 (macro_insert): Rename muscle_insert. Update.
2199 (macro_find): Rename muscle_find. Update.
2200
2201 * src/main.c: Include muscle_tab.h.
2202 (main): Call muscle_init ().
2203 * src/Makefile.am (bison_SOURCES): Echo modifications.
2204
2205 2001-09-02 Marc Autret <autret_m@epita.fr>
2206
2207 Now the files macro_tab.[ch] are named muscle_tab.[ch].
2208
2209 * src/muscle_tab.c, src/muscle_tab.h: Add files.
2210
2211 2001-09-02 Marc Autret <autret_m@epita.fr>
2212
2213 * src/macrotab.c, src/macrotab.h: Remove.
2214
2215 2001-09-01 Pascal Bart <pascal.bart@epita.fr>
2216
2217 * src/reader.c (copy_guard): Use muscle to specify the `#line'
2218 filename.
2219
2220 2001-09-01 Marc Autret <autret_m@epita.fr>
2221
2222 * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set
2223 to an explicit value to activate the feature. We do it here.
2224
2225 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2226
2227 * src/output.c (prepare): Delete the `filename' muscule insertion.
2228 * src/reader.c (copy_action): Use `filename' muscule with `#line'.
2229 (parse_union_decl): Likewise.
2230 * src/macrotab.c (macro_init): Initialize filename by infile.
2231
2232 2001-08-31 Marc Autret <autret_m@epita.fr>
2233
2234 * src/bison.simple (YYLSP_NEEDED): New definition.
2235 * src/output.c (prepare): Add macro insertion of `locations_flag'
2236
2237 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2238
2239 * src/output.c (prepare): Delete insertion of previous muscles,
2240 and insert the `prefix' muscles.
2241 * src/macrotab.c (macro_init): Likewise.
2242 (macro_init): Initialization prefix directive by `yy'.
2243 * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval,
2244 %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar,
2245 yylval, yydebug, yyerror, yynerrs and yyparse.
2246 New directive `#define' to substitute yydebug, ... with option
2247 name_prefix.
2248
2249 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2250
2251 * src/main.c (main): Standardize.
2252 * src/output.c (output_table_data, output_parser): Likewise.
2253 * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise.
2254
2255 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr>
2256
2257 * src/reader.c (read_additionnal_code): Rename %%user_code to
2258 %%epilogue.
2259 * src/output.c (output): Rename %%declarations to %%prologue.
2260 * src/bison.simple: Echo modifications.
2261
2262 2001-08-31 Marc Autret <autret_m@epita.fr>
2263
2264 * src/reader.c (readgram): CleanUp.
2265 (output_token_defines): Likewise.
2266 (packsymbols): Likewise.
2267 (reader): Likewise.
2268 * src/output.c (output): CPP-out useless code.
2269
2270 2001-08-31 Pascal Bart <pascal.bart@epita.fr>
2271
2272 * src/reader.c (reader): Delete obsolete call to function
2273 output_trailers and output_headers.
2274 * src/output.h: Remove obsolete functions prototypes of output_headers
2275 and output_trailers.
2276
2277 2001-08-30 Pascal Bart <pascal.bart@epita.fr>
2278
2279 * src/main.c: Include macrotab.h.
2280 * src/macrotab.h (macro_entry_s): Constify fields.
2281 Adjust functions prototypes.
2282 * src/macrotab.c (macro_insert): Constify key and value.
2283 (macro_find): Constify key.
2284 (macro_insert): Include 'xalloc.h'
2285 (macro_insert): Use XMALLOC.
2286 (macro_find): Constify return value.
2287 * src/output.c (output_table_data): Rename table to table_data.
2288 (output_parser): Constify macro_key, macro_value.
2289
2290 2001-08-30 Marc Autret <autret_m@epita.fr>
2291
2292 * src/reader.c (parse_skel_decl): New.
2293 (read_declarations): Add case `tok_skel', call parse_skel_decl ().
2294 * src/lex.h (token_t): New token `tok_skel'.
2295 * src/lex.c (percent_table): Add skeleton option entry.
2296 Standardize.
2297
2298 2001-08-29 Marc Autret <autret_m@epita.fr>
2299
2300 * src/bison.simple: Add %%user_code directive at the end.
2301 * src/reader.c (read_additionnal_code): New.
2302 (reader): Use it.
2303 * src/output.c (output_program): Remove.
2304 (output): Update.
2305
2306 2001-08-28 Marc Autret <autret_m@epita.fr>
2307
2308 * src/output.c (output_actions): Clean up.
2309 (output_gram): CPP-out useless code.
2310 * src/reader.c (reader): Clean up, CPP-out useless code.
2311
2312 2001-08-28 Pascal Bart <pascal.bart@epita.fr>
2313
2314 * src/output.c (output): Copy attrs_obstack in the '%%definitions'
2315 directive.
2316 * src/bison.simple: Add `%%definitions'.
2317
2318 2001-08-28 Marc Autret <autret_m@epita.fr>
2319
2320 * config/depcomp: New file.
2321
2322 2001-08-27 Paul Eggert <eggert@twinsun.com>
2323
2324 * src/bison.simple (yyparse): Don't take the address of an
2325 item before the start of an array, as that doesn't conform to
2326 the C Standard.
2327
2328 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2329
2330 * src/output.c (output): Remove the initialization of the macro
2331 obstack. It was done too late here.
2332
2333 * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was
2334 completely wrong.
2335 (reader): Initialize the macro obstack here, since we need it to grow
2336 '%define' directives.
2337
2338 * src/reader.h: Declare the macro obstack as extern.
2339
2340 2001-08-27 Robert Anisko <robert.anisko@epita.fr>
2341
2342 * src/output.c (output_parser): Fix. Store single '%' characters in
2343 the output obstack instead of throwing them away.
2344
2345 2001-08-27 Akim Demaille <akim@epita.fr>
2346
2347 * Makefile.am (AUTOMAKE_OPTIONS): 1.5.
2348
2349 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2350
2351 * lib/Makefile.am: Adjust.
2352
2353 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2354
2355 * src/bison.simple: Update and add '%%' directives.
2356
2357 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2358
2359 * src/reader.c (reader): Remove calls to 'output_headers' and
2360 'output_trailers'. Remove some C output.
2361 (readgram): Disable a piece of code that was writing a default
2362 definition for 'YYSTYPE'.
2363 (reader_output_yylsp): Remove.
2364 (packsymbols): Output token defintions to a macro.
2365 (copy_definition): Disable C output.
2366
2367 * src/reader.c (parse_macro_decl): New function used to parse macro
2368 declarations.
2369 (copy_string2): Put the body of copy_string into this new function.
2370 Add a parameter to let the caller choose whether he wants to copy the
2371 string delimiters or not.
2372 (copy_string): Be a simple call to copy_string2 with the last argument
2373 bound to true.
2374 (read_declarations): Add case for macro definition.
2375 (copy_identifier): New.
2376 (parse_macro_decl): Read macro identifiers using copy_identifier
2377 rather than lex.
2378
2379 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2380
2381 * src/output.c (prepare): Add prefixed names.
2382 (output_parser): Output semantic actions.
2383 (output_parser): Fix bug on '%%line' directives.
2384
2385 * src/output.c (output_headers): Remove. The C code printed by this
2386 function should now be in the skeletons.
2387 (output_trailers): Remove.
2388 (output): Disable call to 'reader_output_yylsp'.
2389 (output_rule_data): Do not output tables to the table obstack.
2390
2391 * src/output.c: Remove some C dedicated output.
2392 Improve the use of macro and output obstacks.
2393 (output_defines): Remove.
2394
2395 * src/output.c (output_token_translations): Associate 'translate'
2396 table with a macro. No output to the table obstack.
2397 (output_gram): Same for 'rhs' and 'prhs'.
2398 (output_stos): Same for 'stos'.
2399 (output_rule_data): Same for 'r1' and 'r2'.
2400 (token_actions): Same for 'defact'.
2401 (goto_actions): Same for 'defgoto'.
2402 (output_base): Same for 'pact' and 'pgoto'.
2403 (output_table): Same for 'table'.
2404 (output_check): Same for 'check'.
2405
2406 * src/output.c (output_table_data): New function.
2407 (output_short_table): Remove.
2408 (output_short_or_char_table): Remove.
2409
2410 * src/output.c (output_parser): Replace most of the skeleton copy code
2411 with something new. Skeletons are now processed character by character
2412 rather than line by line, and Bison looks for '%%' macros. This is the
2413 first step in making Bison's output process (a lot) more flexible.
2414 (output_parser): Use the macro table.
2415
2416 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2417
2418 * src/main.c (main): Initialize the macro table.
2419
2420 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2421
2422 * src/lex.c (percent_table): Add tok_define.
2423 * src/lex.h: Add tok_define.
2424
2425 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2426
2427 * src/macrotab.c: New file.
2428 * src/macrotab.h: New file.
2429 * src/Makefile.am: Update.
2430
2431 2001-08-25 Robert Anisko <robert.anisko@epita.fr>
2432
2433 * lib/hash.c: New file.
2434 * lib/hash.h: New file.
2435 * lib/Makefile.am: Update.
2436
2437 2001-08-15 Akim Demaille <akim@epita.fr>
2438
2439 Version 1.28c.
2440
2441 2001-08-15 Marc Autret <autret_m@epita.fr>
2442
2443 * src/reader.c (readgram): Indent output macro YYSTYPE.
2444 (packsymbols): Likewise.
2445 (output_token_defines): Likewise.
2446 * src/files.c: Standardize.
2447 (compute_header_macro): New.
2448 (defines_obstack_save): New. Use compute_header_macro.
2449 (output_files): Update. Use defines_obstack_save.
2450
2451 2001-08-15 Akim Demaille <akim@epita.fr>
2452
2453 * doc/bison.texinfo (Table of Symbols): Document
2454 YYSTACK_USE_ALLOCA.
2455
2456 2001-08-15 Akim Demaille <akim@epita.fr>
2457
2458 * missing: Update from CVS Automake.
2459 * config/config.guess, config/config.sub, config/texinfo.tex:
2460 Update from gnu.org.
2461
2462 2001-08-15 Akim Demaille <akim@epita.fr>
2463
2464 * Makefile.maint: Sync with CVS Autoconf.
2465
2466 2001-08-14 Pascal Bart <pascal.bart@epita.fr>
2467
2468 * doc/bison.texinfo: Include GNU Free Documentation License from
2469 `fdl.texi'.
2470 * doc/fdl.texi: Add to package.
2471
2472 2001-08-14 Marc Autret <autret_m@epita.fr>
2473
2474 Turn on %{source,header}_extension features.
2475
2476 * src/lex.c (percent_table): Un-CPP out header_extension and
2477 source_extension.
2478 * src/files.c (compute_exts_from_gf): Compare pointers with NULL.
2479 (compute_exts_from_src): Remove conditions. It restores priorities
2480 between options.
2481
2482 2001-08-14 Marc Autret <autret_m@epita.fr>
2483
2484 * src/files.c (compute_base_names): Add extensions computing when
2485 `--file-prefix' used.
2486 Standardize function calls.
2487
2488 2001-08-13 Marc Autret <autret_m@epita.fr>
2489
2490 * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users
2491 defining it (defined but null disables alloca).
2492
2493 2001-08-13 Marc Autret <autret_m@epita.fr>
2494
2495 * src/bison.simple (_yy_memcpy): CPP reformat.
2496
2497 2001-08-13 Pascal Bart <pascal.bart@epita.fr>
2498
2499 * tests/atconfig.in (CPPFLAGS): Fix.
2500
2501 2001-08-10 Pascal Bart <pascal.bart@epita.fr>
2502
2503 * doc/bison.texinfo: Include GNU General Public License from
2504 `gpl.texi'.
2505 * doc/gpl.texi: Add to package.
2506
2507 2001-08-10 Marc Autret <autret_m@epita.fr>
2508
2509 * src/print_graph.h: Fix.
2510 * src/reader.c (read_declarations): Use parse_header_extension_decl ().
2511
2512 2001-08-10 Akim Demaille <akim@epita.fr>
2513
2514 * src/system.h: Provide default declarations for stpcpy, strndup,
2515 and strnlen.
2516
2517 2001-08-10 Robert Anisko <anisko_r@epita.fr>
2518
2519 * doc/bison.texinfo (Locations): Update @$ stuff.
2520
2521 2001-08-09 Robert Anisko <anisko_r@epita.fr>
2522
2523 * src/bison.simple (YYLLOC_DEFAULT): Update.
2524 (yyparse): Adjust.
2525
2526 2001-08-08 Marc Autret <autret_m@epita.fr>
2527
2528 * doc/bison.texinfo: Change @samp{$<@dots{}>} to
2529 @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule.
2530 Reported by Fabrice Bauzac.
2531
2532 2001-08-08 Marc Autret <autret_m@epita.fr>
2533
2534 * src/vcg_default.h: Use NULL instead of 0 to initialize pointers.
2535 * src/vcg.c (output_node): Fix.
2536 * src/vcg.h: Cleanup.
2537 * src/print_graph.c: Add comments.
2538 (node_output_size): New global variable. Simplify the formatting of
2539 the VCG graph output.
2540 (print_actions): Unused code is now used. It notifies the final state
2541 and no action states in the VCG graph. It also give the reduce actions.
2542 The `shift and goto' edges are red and the `go to state' edges are
2543 blue.
2544 Get the current node name and node_obstack by argument.
2545 (node_obstack): New variable.
2546 (print_state): Manage node_obstack.
2547 (print_core): Use node_obstack given by argument.
2548 A node is not only computed here but in print_actions also.
2549 (print_graph): CPP out useless code instead of commenting it.
2550
2551 2001-08-07 Pascal Bart <pascal.bart@epita.fr>
2552
2553 * tests/atconfig.in (CPPFLAGS): Fix.
2554
2555 2001-08-07 Akim Demaille <akim@epita.fr>
2556
2557 * src/print_graph.c (quote): New.
2558 (print_core): Use it.
2559
2560 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr>
2561
2562 * src/vcg.c (complain.h): Include it.
2563 Unepitaize `return' invocations.
2564 [NDEBUG] (main): Remove.
2565 * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members.
2566 * src/files.c (open_files): Initialize graph_obstack.
2567 * src/print_graph.c (print_actions): CPP out useless code.
2568 (print_core): Don't output the last `\n' in labels.
2569 Use `quote'.
2570 * src/files.c (output_files): Output the VCG file.
2571 * src/main.c (main): Invoke print_graph ();
2572
2573 2001-08-06 Marc Autret <autret_m@epita.fr>
2574
2575 Automaton VCG graph output.
2576 Using option ``-g'' or long option ``--graph'', you can generate
2577 a gram_filename.vcg file containing a VCG description of the LALR (1)
2578 automaton of your grammar.
2579
2580 * src/main.c: Call to print_graph() function.
2581 * src/getargs.h: Update.
2582 * src/getargs.c (options): Update to catch `-g' and `--graph' options.
2583 (graph_flag): New flag.
2584 (longopts): Update.
2585 (getargs): Add case `g'.
2586 * src/files.c (graph_obstack): New obstack struct.
2587 (open_files): Initialize new obstack.
2588 (output_files): Saves graph_obstack if required.
2589 * src/files.h (graph_obstack): New extern declaration.
2590 * src/Makefile.am: Add new source files.
2591
2592 2001-08-06 Marc Autret <autret_m@epita.fr>
2593
2594 * src/print_graph.c, src/print_graph.h (graph): New.
2595 * src/vcg.h: New file.
2596 * src/vcg.c: New file, VCG graph handling.
2597
2598 2001-08-06 Marc Autret <autret_m@epita.fr>
2599
2600 Add of %source_extension and %header_extension which specify
2601 the source or/and the header output file extension.
2602
2603 * src/files.c (compute_base_names): Remove initialisation of
2604 src_extension and header_extension.
2605 (compute_exts_from_gf): Update.
2606 (compute_exts_from_src): Update.
2607 (output_files): Update.
2608 * src/reader.c (parse_header_extension_decl): New.
2609 (parse_source_extension_decl): New.
2610 (read_declarations): New case statements for the new tokens.
2611 * src/lex.c (percent_table): Add entries for %source_extension
2612 and %header_extension.
2613 * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext.
2614
2615 2001-08-06 Marc Autret <autret_m@epita.fr>
2616
2617 * configure.in: Bump to 1.28c.
2618 * doc/bison.texinfo: Texinfo thingies.
2619
2620 2001-08-04 Pascal Bart <pascal.bart@epita.fr>
2621
2622 * tests/atconfig.in (CPPFLAGS): Add.
2623 * tests/calc.at (AT_CHECK): Use CPPFLAGS.
2624
2625 2001-08-03 Akim Demaille <akim@epita.fr>
2626
2627 Version 1.28b.
2628
2629 2001-08-03 Akim Demaille <akim@epita.fr>
2630
2631 * tests/Makefile.am (check-local): Ship testsuite.
2632 * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions.
2633 Include `string.h'.
2634
2635 2001-08-03 Akim Demaille <akim@epita.fr>
2636
2637 * configure.in: Try using -Wformat when compiling.
2638
2639 2001-08-03 Akim Demaille <akim@epita.fr>
2640
2641 * configure.in: Bump to 1.28b.
2642
2643 2001-08-03 Akim Demaille <akim@epita.fr>
2644
2645 * src/complain.c: Adjust strerror_r portability issues.
2646
2647 2001-08-03 Akim Demaille <akim@epita.fr>
2648
2649 Version 1.28a.
2650
2651 2001-08-03 Akim Demaille <akim@epita.fr>
2652
2653 * src/getargs.c, src/getarg.h (skeleton)): Constify.
2654 * src/lex.c (literalchar): Avoid name clashes on `buf'.
2655 * src/getargs.c: Include complain.h.
2656 * src/files.c, src/files.h (skeleton_find): Avoid name clashes.
2657 * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1.
2658
2659 2001-08-03 Akim Demaille <akim@epita.fr>
2660
2661 * src/reader.c (readgram): Display hidden chars in error messages.
2662
2663 2001-08-03 Akim Demaille <akim@epita.fr>
2664
2665 Update to gettext 0.10.39.
2666
2667 2001-08-03 Akim Demaille <akim@epita.fr>
2668
2669 * lib/strspn.c: New.
2670
2671 2001-08-01 Marc Autret <autret_m@epita.fr>
2672
2673 * doc/bison.texinfo: Update.
2674 * doc/bison.1 (mandoc): Update.
2675 * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h.
2676 * src/files.c: Support output files extensions computing.
2677 (src_extension): New static variable.
2678 (header_extension): New static variable.
2679 (tr): New function.
2680 (get_extension_index): New function, gets the index of an extension
2681 filename in a string.
2682 (compute_exts_from_gf): New function, computes extensions from the
2683 grammar file extension.
2684 (compute_exts_from_src): New functions, computes extensions from the
2685 C source file extension, file given by ``-o'' option.
2686 (compute_base_names): Update.
2687 (output_files): Update.
2688
2689 2001-08-01 Robert Anisko <anisko_r@epita.fr>
2690
2691 * doc/bison.texi: Document @$.
2692 (Locations): New section.
2693
2694 2001-07-18 Akim Demaille <akim@epita.fr>
2695
2696 * Makefile.maint, GNUmakefile: New, from Autoconf 2.52.
2697 * config/prev-version.txt, config/move-if-change: New.
2698 * Makefile.am: Adjust.
2699
2700 2001-07-08 Pascal Bart <pascal.bart@epita.fr>
2701
2702 * src/bison.simple (yyparse): Suppress warning `comparaison
2703 between signed and unsigned'.
2704
2705 2001-07-05 Pascal Bart <pascal.bart@epita.fr>
2706
2707 * src/getargs.h (raw_flag): Remove.
2708 * src/getargs.c: Die on `-r'/`--raw'.
2709 * src/lex.c (parse_percent_token): Die on `%raw'.
2710 * src/reader.c (output_token_defines): Suppress call to `raw_flag'.
2711 * tests/calc.at: Suppress test with option `--raw'.
2712
2713 2001-07-14 Akim Demaille <akim@epita.fr>
2714
2715 * config/: New.
2716 * configure.in: Require Autoconf 2.50.
2717 Update to gettext 0.10.38.
2718
2719 2001-03-16 Akim Demaille <akim@epita.fr>
2720
2721 * doc/bison.texinfo: ANSIfy the examples.
2722
2723 2001-03-16 Akim Demaille <akim@epita.fr>
2724
2725 * getargs.c (skeleton): New variable.
2726 (longopts): --skeleton is a new option.
2727 (shortopts, getargs): -S is a new option.
2728 * getargs.h: Declare skeleton.
2729 * output.c (output_parser): Use it.
2730
2731 2001-03-16 Akim Demaille <akim@epita.fr>
2732
2733 * m4/strerror_r.m4: New.
2734 * m4/error.m4: Run AC_FUNC_STRERROR_R.
2735 * lib/error.h, lib/error.c: Update.
2736
2737 2001-03-16 Akim Demaille <akim@epita.fr>
2738
2739 * src/getargs.c (longopts): Clean up.
2740
2741 2001-02-21 Akim Demaille <akim@epita.fr>
2742
2743 * src/reader.c (gensym): `gensym_count' is your own.
2744 Use a static buf to create the symbol name, as token_buffer is no
2745 longer a buffer.
2746
2747 2001-02-08 Akim Demaille <akim@epita.fr>
2748
2749 * src/conflicts.c (conflict_report): Be sure not to append to res
2750 between two calls, which could happen if both first sprintf were
2751 skipped, but not the first cp += strlen.
2752
2753 2001-02-08 Akim Demaille <akim@epita.fr>
2754
2755 * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c:
2756 New, from fileutils 4.0.37.
2757 * configure.in: Require Autoconf 2.49c. I took some time before
2758 making this decision. This is the only way out for portability
2759 issues in Bison, it would mean way too much duplicate effort to
2760 import in Bison features implemented in 2.49c since 2.13.
2761 AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above.
2762
2763 2001-02-02 Akim Demaille <akim@epita.fr>
2764
2765 * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37.
2766 * lib/xalloc.h, lib/xmalloc.c: Update.
2767
2768 2001-01-19 Akim Demaille <akim@epita.fr>
2769
2770 Get rid of the ad hoc handling of token_buffer in the scanner: use
2771 the obstacks.
2772
2773 * src/lex.c (token_obstack): New.
2774 (init_lex): Initialize it. No longer call...
2775 (grow_token_buffer): this. Remove it.
2776 Adjust all the places which used it to use the obstack.
2777
2778 2001-01-19 Akim Demaille <akim@epita.fr>
2779
2780 * src/lex.h: Rename all the tokens:
2781 s/\bENDFILE\b/tok_eof/g;
2782 s/\bIDENTIFIER\b/tok_identifier/g;
2783 etc.
2784 Let them be enums, not #define, to ease debugging.
2785 Adjust all the code.
2786
2787 2001-01-18 Akim Demaille <akim@epita.fr>
2788
2789 * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private.
2790 * src/lex.c (maxtoken, grow_token_buffer): Static.
2791
2792 2001-01-18 Akim Demaille <akim@epita.fr>
2793
2794 Since we now use obstacks, more % directives can be enabled.
2795
2796 * src/lex.c (percent_table): Also accept `%yacc',
2797 `%fixed_output_files', `%defines', `%no_parser', `%verbose', and
2798 `%debug'.
2799 Handle the actions for `%semantic_parser' and `%pure_parser' here,
2800 instead of returning a token.
2801 * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused.
2802 * src/reader.c (read_declarations): Adjust.
2803 * src/files.c (open_files): Don't call `compute_base_names', don't
2804 compute `attrsfile' since they depend upon data which might be
2805 *in* the input file now.
2806 (output_files): Do it here.
2807 * src/output.c (output_headers): Document the fact that this patch
2808 introduces a guaranteed SEGV for semantic parsers.
2809 * doc/bison.texinfo: Document them.
2810 * tests/suite.at: Exercise these %options.
2811
2812 2000-12-20 Akim Demaille <akim@epita.fr>
2813
2814 Also handle the output file (--verbose) with obstacks.
2815
2816 * files.c (foutput): Remove.
2817 (output_obstack): New.
2818 Adjust all dependencies.
2819 * src/conflicts.c: Return a string.
2820 * src/system.h (obstack_grow_string): Rename as...
2821 (obstack_sgrow): this. Be ready to work with non literals.
2822 (obstack_fgrow4): New.
2823
2824 2000-12-20 Akim Demaille <akim@epita.fr>
2825
2826 * src/files.c (open_files): Fix the computation of short_base_name
2827 in the case of `-o foo.tab.c'.
2828
2829 2000-12-20 Akim Demaille <akim@epita.fr>
2830
2831 * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at)
2832 (copy_dollar): Now that everything uses obstacks, get rid of the
2833 FILE * parameters.
2834
2835 2000-12-20 Akim Demaille <akim@epita.fr>
2836
2837 * src/files.c (open_files): Actually the `.output' file is based
2838 on the short_base_name, not base_name.
2839 * tests/suite.at (Checking output file names): Adjust.
2840
2841 2000-12-20 Akim Demaille <akim@epita.fr>
2842
2843 * src/bison.s1: Remove, we now use directly...
2844 * src/bison.simple: this.
2845 * src/Makefile.am: Use pkgdata instead of data.
2846
2847 2000-12-20 Akim Demaille <akim@epita.fr>
2848
2849 * src/files.c (guard_obstack): New.
2850 (open_files): Initialize it.
2851 (output_files): Dump it...
2852 * src/files.h: Export it.
2853 * src/reader.c (copy_guard): Use it.
2854
2855 2000-12-19 Akim Demaille <akim@epita.fr>
2856
2857 * src/files.c (outfile, defsfile, actfile): Removed as global
2858 vars.
2859 (open_files): Don't compute them.
2860 (output_files): Adjust.
2861 (base_name, short_base_name): Be global.
2862 Adjust dependencies.
2863
2864 2000-12-19 Akim Demaille <akim@epita.fr>
2865
2866 * src/files.c (strsuffix): New.
2867 (stringappend): Be just like strcat but allocate.
2868 (base_names): Eve out from open_files.
2869 Try to simplify the rather hairy computation of base_name and
2870 short_base_name.
2871 (open_files): Use it.
2872 * tests/suite.at (Checking output file names): New test.
2873
2874 2000-12-19 Akim Demaille <akim@epita.fr>
2875
2876 * src/system.h (obstack_grow_literal_string): Rename as...
2877 (obstack_grow_string): this.
2878 * src/output.c (output_parser): Recognize `%% actions' instead of
2879 `$'.
2880 * src/bison.s1: s/$/%% actions/.
2881 * src/bison.hairy: Likewise.
2882
2883 2000-12-19 Akim Demaille <akim@epita.fr>
2884
2885 * src/output.c (output_parser): Compute the `#line' lines when
2886 there are.
2887 * src/Makefile.am (bison.simple): Be a simple copy of bison.s1.
2888 Suggested by Hans Aberg.
2889
2890 2000-12-19 Akim Demaille <akim@epita.fr>
2891
2892 Let the handling of the skeleton files be local to the procedures
2893 that use it.
2894
2895 * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No
2896 longer static.
2897 (fparser, open_extra_files): Remove.
2898 (open_files, output_files): Don't take care of fparser.
2899 * src/files.h: Adjust.
2900 * src/output.c (output_parser): Open and close the file to the
2901 skeleton.
2902 * src/reader.c (read_declarations): When %semantic_parser, open
2903 fguard.
2904
2905 2000-12-19 Akim Demaille <akim@epita.fr>
2906
2907 * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here...
2908 * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here.
2909
2910 2000-12-19 Akim Demaille <akim@epita.fr>
2911
2912 * src/files.c (open_files): Yipee! We no longer need all the code
2913 looking for `/tmp' since we have no tmp file.
2914
2915 2000-12-19 Akim Demaille <akim@epita.fr>
2916
2917 * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C):
2918 New macros.
2919 * src/files.c (open_files): Less dependency on MSDOS etc.
2920
2921 2000-12-14 Akim Demaille <akim@epita.fr>
2922
2923 * src/bison.s1 (YYLLOC_DEFAULT): New macro.
2924 Provide a default definition.
2925 Use it when executing the default @ action.
2926 * src/reader.c (reader_output_yylsp): No longer include
2927 `timestamp' and `text' in the default YYLTYPE.
2928
2929 2000-12-12 Akim Demaille <akim@epita.fr>
2930
2931 * src/reader.c (copy_definition, parse_union_decl, copy_action)
2932 (copy_guard): Quote the file names.
2933 Reported by Laurent Mascherpa.
2934
2935 2000-12-12 Akim Demaille <akim@epita.fr>
2936
2937 * src/output.c (output_headers, output_program, output): Be sure
2938 to escape special characters when outputting filenames.
2939 (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove.
2940 (output_headers): Don't depend on them, Use ACTSTR.
2941
2942 2000-11-17 Akim Demaille <akim@epita.fr>
2943
2944 * lib/obstack.h: Formatting changes.
2945 (obstack_grow, obstack_grow0): Don't cast WHERE at all: it
2946 prevents type checking.
2947 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
2948 cast the value to (void *): assigning a `foo *' to a `void *'
2949 variable is valid.
2950 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
2951 * src/reader.c (parse_union_decl): Typo: use obstack_1grow to
2952 append characters.
2953
2954 2000-11-17 Akim Demaille <akim@epita.fr>
2955
2956 * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename
2957 as...
2958 (suite.m4, regression.m4, calc.m4): these.
2959 * tests/atgeneral.m4: Update from CVS Autoconf.
2960
2961 2000-11-17 Akim Demaille <akim@epita.fr>
2962
2963 * tests/regression.m4 (%union and --defines): New test,
2964 demonstrating a current bug in the obstack implementation.
2965
2966 2000-11-17 Akim Demaille <akim@epita.fr>
2967
2968 * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New
2969 macros.
2970 Use them to declare the variables which are global or local to
2971 `yyparse'.
2972
2973 2000-11-17 Akim Demaille <akim@epita.fr>
2974
2975 * acconfig.h: Remove, no longer used.
2976
2977 2000-11-07 Akim Demaille <akim@epita.fr>
2978
2979 * src: s/Copyright (C)/Copyright/g.
2980
2981 2000-11-07 Akim Demaille <akim@epita.fr>
2982
2983 * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just
2984 defining.
2985 * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/.
2986
2987 2000-11-07 Akim Demaille <akim@epita.fr>
2988
2989 * src/bison.s1 (YYLEX): Use #if instead of #ifdef.
2990 Merge in a single CPP if/else.
2991
2992 2000-11-07 Akim Demaille <akim@epita.fr>
2993
2994 * src/output.c (output): Remove useless variables.
2995 * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second
2996 argument `data' for consistency with the prototypes.
2997 Qualify it `const'.
2998 (obstack_copy, obstack_copy0): Rename the second argument as
2999 `address' for consistency. Qualify it `const'.
3000 * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow)
3001 (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify
3002 `const' their input argument (`data' or `address').
3003 Adjust the corresponding macros to include `const' in casts.
3004
3005 2000-11-03 Akim Demaille <akim@epita.fr>
3006
3007 * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/.
3008 s/PFILE1/BISON_HAIRY/.
3009 Adjust dependencies.
3010
3011 2000-11-03 Akim Demaille <akim@epita.fr>
3012
3013 For some reason, this was not applied.
3014
3015 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3016 `unlink': it's no longer used.
3017
3018 2000-11-03 Akim Demaille <akim@epita.fr>
3019
3020 * src/files.c (skeleton_find): New function, eved out of...
3021 (open_files, open_extra_files): here.
3022
3023 2000-11-03 Akim Demaille <akim@epita.fr>
3024
3025 Don't use `atexit'.
3026
3027 * src/files.c (obstack_save): New function.
3028 (done): Rename as...
3029 (output_files): this.
3030 Use `obstack_save'.
3031 * src/main.c (main): Don't use `atexit' to register `done', since
3032 it no longer has to remove tmp files, just call `output_files'
3033 when there are no errors.
3034
3035 2000-11-02 Akim Demaille <akim@epita.fr>
3036
3037 * src/files.c [VMS]: No longer include `ssdef.h', no longer define
3038 `unlink': it's no longer used.
3039 * src/files.h: Formatting changes.
3040
3041 2000-11-02 Akim Demaille <akim@epita.fr>
3042
3043 Remove the last uses of mktemp and unlink/delete.
3044
3045 * src/files.c (fdefines, ftable): Removed.
3046 (defines_ostack, table_obstack): New.
3047 Adjust dependencies of the former into uses of the latter.
3048 * src/output.c (output_short_or_char_table, output_short_table):
3049 Convert to using obstacks.
3050 * src/reader.c (copy_comment2): Accept one FILE * and two
3051 obstacks.
3052 (output_token_defines, reader_output_yylsp): Use obstacks.
3053 * src/system.h (obstack_fgrow3): New.
3054
3055 2000-11-01 Akim Demaille <akim@epita.fr>
3056
3057 Change each use of `fattrs' into a use of `attrs_obstack'.
3058
3059 * src/reader.c (copy_at): Typo: s/yylloc/yyloc/.
3060 * src/files.c (fattrs): Remove.
3061 (attrs_obstack): New.
3062 Adjust all dependencies.
3063 (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile.
3064
3065 2000-11-01 Akim Demaille <akim@epita.fr>
3066
3067 Introduce obstacks.
3068 Change each use of `faction' into a use of `action_obstack'.
3069
3070 * lib/obstack.h, lib/obstack.c: New files.
3071 * src/files.c (faction): Remove.
3072 (action_obstack): New.
3073 Adjust all dependencies.
3074
3075 2000-10-20 Akim Demaille <akim@epita.fr>
3076
3077 * lib/quote.h (PARAMS): New macro. Use it.
3078
3079 2000-10-16 Akim Demaille <akim@epita.fr>
3080
3081 * src/output.c (output_short_or_char_table): New function.
3082 (output_short_table, output_token_translations): Use it.
3083 (goto_actions): Use output_short_table.
3084
3085 2000-10-16 Akim Demaille <akim@epita.fr>
3086
3087 * src/symtab.c (bucket_new): New function.
3088 (getsym): Use it.
3089
3090 * src/output.c (output_short_table): New argument to display the
3091 comment associated with the table.
3092 Adjust dependencies.
3093 (output_gram): Use it.
3094 (output_rule_data): Nicer output layout for YYTNAME.
3095
3096 2000-10-16 Akim Demaille <akim@epita.fr>
3097
3098 * src/lex.c (read_typename): New function.
3099 (lex): Use it.
3100 * src/reader.c (copy_dollar): Likewise.
3101
3102 2000-10-16 Akim Demaille <akim@epita.fr>
3103
3104 * src/reader.c (copy_comment2): Expect the input stream to be on
3105 the `/' which is suspected to open a comment, instead of being
3106 called after `//' or `/*' was read.
3107 (copy_comment, copy_definition, parse_union_decl, copy_action)
3108 (copy_guard): Adjust.
3109
3110 2000-10-16 Akim Demaille <akim@epita.fr>
3111
3112 * src/reader.c (parse_expect_decl): Use `skip_white_space' and
3113 `read_signed_integer'.
3114
3115 2000-10-16 Akim Demaille <akim@epita.fr>
3116
3117 * src/reader.c (copy_dollar): New function.
3118 (copy_guard, copy_action): Use it.
3119
3120 2000-10-16 Akim Demaille <akim@epita.fr>
3121
3122 * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c:
3123 * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4:
3124 New files, from Fileutils 4.0.27.
3125 * src/main.c (printable_version): Remove.
3126 * src/lex.c, src/reader.c: Use `quote'.
3127
3128 2000-10-04 Akim Demaille <akim@epita.fr>
3129
3130 * lib/error.c, lib/error.h: New files, needed by xmalloc.c.
3131
3132 2000-10-04 Akim Demaille <akim@epita.fr>
3133
3134 * doc/bison.texinfo: Various typos spotted by Neil Booth.
3135
3136 2000-10-04 Akim Demaille <akim@epita.fr>
3137
3138 When a literal string is used to define two different tokens,
3139 `bison -v' segfaults.
3140 Reported by Piotr Gackiewicz, and fixed by Neil Booth.
3141
3142 * tests/regression.m4: New file.
3143 Include the core of the sample provided by Piotr Gackiewicz.
3144 * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed
3145 properly.
3146
3147 2000-10-04 Akim Demaille <akim@epita.fr>
3148
3149 * src/reader.c (parse_expect_decl): Keep `count' within the size
3150 of `buffer'.
3151 From Neil Booth.
3152
3153 2000-10-02 Paul Eggert <eggert@twinsun.com>
3154
3155 * bison.s1 (yyparse): Assign the default value
3156 unconditionally, to avoid a GCC warning and make the parser a
3157 tad smaller.
3158
3159 2000-10-02 Akim Demaille <akim@epita.fr>
3160
3161 * src/getargs.c (getargs): Don't dump `--help' on unrecognized
3162 options.
3163
3164 2000-10-02 Akim Demaille <akim@epita.fr>
3165
3166 * src/derives.c, src/print.c, src/reduce.c: To ease the
3167 translation, move some `\n' out of the translated strings.
3168
3169 2000-10-02 Akim Demaille <akim@epita.fr>
3170
3171 The location tracking mechanism is precious for parse error
3172 messages. Nevertheless, it is enabled only when `@n' is used in
3173 the grammar, which is a different issue (you can use it in error
3174 message, but not in the grammar per se). Therefore, there should
3175 be another means to enable it.
3176
3177 * src/getargs.c (getargs): Support `--locations'.
3178 (usage): Report it.
3179 * src/getargs.h (locationsflag): Export it.
3180 * src/lex.c (percent_table): Support `%locations'.
3181 * src/reader.c (yylsp_needed): Remove this variable, now replaced
3182 with `locationsflag'.
3183 * doc/bison.texinfo: Document `--locations' and `%locations'.
3184 Sort the options.
3185 * tests/calc.m4: Test it.
3186
3187 For regularity of the names, replace each
3188 (nolineflag, toknumflag, rawtokenumflag, noparserflag): with...
3189 (no_lineflag, token_tableflag, rawflag, no_parserflag): this.
3190 In addition replace each `flag' with `_flag'.
3191
3192 2000-10-02 Akim Demaille <akim@epita.fr>
3193
3194 Also test parse error messages, including with YYERROR_VERBOSE.
3195
3196 * tests/calc.m4 (calc.y): Add support for `exp = exp' (non
3197 associative).
3198 Use it to check the computations.
3199 Use it to check `nonassoc' is honored.
3200 (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed
3201 `--yyerror-verbose'.
3202 (_AT_CHECK_CALC): Adjust to this option.
3203 (_AT_CHECK_CALC_ERROR): New macro to check parse error messages.
3204
3205 2000-10-02 Akim Demaille <akim@epita.fr>
3206
3207 Test also `--verbose', `--defines' and `--name-prefix'. Testing
3208 the latter demonstrates a flaw in the handling of non debugging
3209 parsers introduced by myself on 2000-03-16: `#define yydebug 0'
3210 was used in order to simplify:
3211
3212 #if YYDEBUG
3213 if (yydebug)
3214 {
3215 ...
3216 }
3217 #endif
3218
3219 into
3220
3221 if (yydebug)
3222 {
3223 ...
3224 }
3225
3226 unfortunately this leads to a CPP conflict when
3227 `--name-prefix=foo' is used since it produces `#define yydebug
3228 foodebug'.
3229
3230 * src/bison.s1 [!YYDEBUG]: Do not define yydebug.
3231 (YYDPRINTF): New macro.
3232 Spread its use.
3233 * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from
3234 the bison options.
3235 Also test `--verbose', `--defines' and `--name-prefix'.
3236
3237 2000-10-02 Akim Demaille <akim@epita.fr>
3238
3239 Improve the readability of the produced parsers.
3240
3241 * src/bison.s1: Formatting changes.
3242 Improve the comment related to the `$' mark.
3243 (yydefault): Don't fall through to `yyresume': `goto' there.
3244 * src/output.c (output_parser): When the `$' is met, skip the end
3245 of its line.
3246 New variable, `number_of_dollar_signs', to check there's exactly
3247 one `$' in the parser skeleton.
3248
3249 2000-10-02 Akim Demaille <akim@epita.fr>
3250
3251 * lib/xstrdup.c: New file, from the fileutils.
3252 * src/reader.c (parse_token_decl, get_type_name, parse_type_decl)
3253 (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup'
3254 instead of strlen + xmalloc + strcpy.
3255 * src/symtab.c (copys): Remove, use xstrdup instead.
3256
3257 2000-10-02 Akim Demaille <akim@epita.fr>
3258
3259 * src/gram.h (associativity): New enum type which replaces the
3260 former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with
3261 `right_assoc', `left_assoc' and `non_assoc'.
3262 Adjust all dependencies.
3263 * src/reader.c: Formatting changes.
3264 (LTYPESTR): Don't define it, use it as a literal in
3265 `reader_output_yylsp'.
3266 * src/symtab.h (symbol_class): New enum type which replaces the
3267 former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with
3268 `sunknown', `stoken and `snterm'.
3269
3270 2000-10-02 Akim Demaille <akim@epita.fr>
3271
3272 * src/getargs.c (fixed_outfiles): Rename as...
3273 (yaccflag): for consistency and accuracy.
3274 Adjust dependencies.
3275
3276 2000-10-02 Akim Demaille <akim@epita.fr>
3277
3278 Use the more standard files `xalloc.h' and `xmalloc.c' instead of
3279 Bison's `allocate.c' and `alloc.h'. This patch was surprisingly
3280 difficult and introduced a lot of core dump. It turns out that
3281 Bison used an implementation of `xmalloc' based on `calloc', and
3282 at various places it does depend upon the initialization to 0. I
3283 have not tried to isolate the pertinent places, and all the former
3284 calls to Bison's `xmalloc' are now using `XCALLOC'. Someday,
3285 someone should address this issue.
3286
3287 * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove.
3288 * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New
3289 files.
3290 Adjust dependencies.
3291 * src/warshall.h: New file.
3292 Propagate.
3293
3294 2000-10-02 Akim Demaille <akim@epita.fr>
3295
3296 Various anti-`extern in *.c' changes.
3297
3298 * src/system.h: Include `assert.h'.
3299
3300 2000-10-02 Akim Demaille <akim@epita.fr>
3301
3302 * src/state.h (nstates, final_state, first_state, first_shift)
3303 (first_reduction): Move their exportation from here...
3304 * src/LR0.h: to here.
3305 Adjust dependencies.
3306 * src/getargs.c (statisticsflag): New variable.
3307 Add support for `--statistics'.
3308 Adjust dependencies.
3309
3310 Remove a lot of now useless `extern' statements in most files.
3311
3312 2000-10-02 Akim Demaille <akim@epita.fr>
3313
3314 * src/LR0.h: New file.
3315 Propagate its use.
3316
3317 2000-10-02 Akim Demaille <akim@epita.fr>
3318
3319 * src/print.h: New file.
3320 Propagate its use.
3321 * src/print.c: Formatting and ordering changes.
3322 (verbose, terse): Replace with...
3323 (print_results): this new function.
3324 Adjust dependencies.
3325
3326 2000-10-02 Akim Demaille <akim@epita.fr>
3327
3328 * src/conflicts.c (conflict_report): New function.
3329 (conflict_log, verbose_conflict_log): Replace with...
3330 (print_conflicts): this function.
3331 Adjust dependencies.
3332 * src/conflicts.h: New file.
3333 Propagate its inclusion.
3334
3335 2000-10-02 Akim Demaille <akim@epita.fr>
3336
3337 * src/nullable.h: New file.
3338 Propagate its inclusion.
3339 * src/nullable.c: Formatting changes.
3340
3341 2000-10-02 Akim Demaille <akim@epita.fr>
3342
3343 * src/reduce.h: New file.
3344 Propagate its inclusion.
3345 * src/reduce.c: Topological sort and other formatting changes.
3346 (bool, TRUE, FALSE): Move their definition to...
3347 * src/system.h: here.
3348
3349 2000-10-02 Akim Demaille <akim@epita.fr>
3350
3351 * src/files.c: Formatting changes.
3352 (tryopen, tryclose, openfiles): Rename as...
3353 (xfopen, xfclose, open_files): this.
3354 (stringappend): static.
3355 * src/files.h: Complete the list of exported symbols.
3356 Propagate its use.
3357
3358 2000-10-02 Akim Demaille <akim@epita.fr>
3359
3360 * src/reader.h: New file.
3361 Propagate its use instead of tedious list of `extern' and
3362 prototypes.
3363 * src/reader.c: Formatting changes, topological sort,
3364 s/register//.
3365
3366 2000-10-02 Akim Demaille <akim@epita.fr>
3367
3368 * src/lex.h: Prototype `lex.c' exported functions.
3369 * src/reader.c: Adjust.
3370 * src/lex.c: Formatting changes.
3371 (safegetc): Rename as...
3372 (xgetc): this.
3373
3374 2000-10-02 Akim Demaille <akim@epita.fr>
3375
3376 * src/lalr.h: New file.
3377 Propagate its inclusion instead of prototypes and `extern'.
3378 * src/lalr.c: Formatting changes, topological sorting etc.
3379
3380 2000-10-02 Akim Demaille <akim@epita.fr>
3381
3382 * src/output.c (token_actions): Introduce a temporary array,
3383 YYDEFACT, that makes it possible for this function to use
3384 output_short_table.
3385
3386 2000-10-02 Akim Demaille <akim@epita.fr>
3387
3388 `user_toknums' is output as a `short[]' in `output.c', while it is
3389 defined as a `int[]' in `reader.c'. For consistency with the
3390 other output tables, `user_toknums' is now defined as a table of
3391 shorts.
3392
3393 * src/reader.c (user_toknums): Be a short table instead of an int
3394 table.
3395 Adjust dependencies.
3396
3397 Factor the short table outputs.
3398
3399 * src/output.c (output_short_table): New function.
3400 * src/output.c (output_gram, output_stos, output_rule_data)
3401 (output_base, output_table, output_check): Use it.
3402
3403 2000-10-02 Akim Demaille <akim@epita.fr>
3404
3405 * src/output.c (output): Topological sort of the functions, in
3406 order to get rid of the `static' prototypes.
3407 No longer use `register'.
3408 * src/output.h: New file.
3409 Propagate its inclusion in files explicitly prototyping functions
3410 from output.c.
3411
3412 2000-09-21 Akim Demaille <akim@epita.fr>
3413
3414 * src/atgeneral.m4: Update from Autoconf.
3415
3416 2000-09-21 Akim Demaille <akim@epita.fr>
3417
3418 * src/closure.h: New file.
3419 * src/closure.c: Formatting changes, topological sort over the
3420 functions, use of closure.h.
3421 (initialize_closure, finalize_closure): Rename as...
3422 (new_closure, free_closure): these. Adjust dependencies.
3423 * src/LR0.c: Formatting changes, topological sort, use of
3424 cloture.h.
3425 (initialize_states): Rename as...
3426 (new_states): this.
3427 * src/Makefile.am (noinst_HEADERS): Adjust.
3428
3429 2000-09-20 Akim Demaille <akim@epita.fr>
3430
3431 * src/acconfig.h: Don't protect config.h against multiple
3432 inclusion.
3433 Don't define PARAMS.
3434 * src/system.h: Define PARAMS.
3435 Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the
3436 purpose of config.h. system.h must not try to fix wrong
3437 definitions in config.h.
3438
3439 2000-09-20 Akim Demaille <akim@epita.fr>
3440
3441 * src/derives.h: New file.
3442 * src/main.c, src/derives.h: Use it.
3443 Formatting changes.
3444 * src/Makefile.am (noinst_HEADERS): Adjust.
3445
3446 2000-09-20 Akim Demaille <akim@epita.fr>
3447
3448 * tests/atgeneral.m4: Update from Autoconf.
3449 * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC)
3450 (AT_CHECK_CALC): New macros.
3451 Use these macros to test bison with options `', `--raw',
3452 `--debug', `--yacc', `--yacc --debug'.
3453
3454 2000-09-19 Akim Demaille <akim@epita.fr>
3455
3456 * src/output.c: Formatting changes.
3457 * src/machine.h: Remove, leaving its contents in...
3458 * src/system.h: here.
3459 Include stdio.h.
3460 Adjust all dependencies on stdio.h and machine.h.
3461 * src/getargs.h: New file.
3462 Let all `extern' declarations about getargs.c be replaced with
3463 inclusion of `getargs.h'.
3464 * src/Makefile.am (noinst_HEADERS): Adjust.
3465
3466 * tests/calc.m4 (yyin): Be initialized in main, not on the global
3467 scope.
3468 (yyerror): Returns void, not int.
3469 * doc/bison.texinfo: Formatting changes.
3470
3471 2000-09-19 Akim Demaille <akim@epita.fr>
3472
3473 * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not
3474 portable.
3475
3476 2000-09-18 Akim Demaille <akim@epita.fr>
3477
3478 * configure.in: Append WARNING_CFLAGS to CFLAGS.
3479 * src/Makefile.am (INCLUDES): Don't.
3480 Be ready to fetch headers in lib/.
3481
3482 2000-09-18 Akim Demaille <akim@epita.fr>
3483
3484 * doc/bison.texinfo: Update the copyright.
3485 ANSIfy and GNUify the examples.
3486 Remove the old menu.
3487
3488 2000-09-18 Akim Demaille <akim@epita.fr>
3489
3490 First set of tests: use the `calc' example from the documentation.
3491
3492 * src/bison.s1 (yyparse): Condition the code using `yytname' which
3493 is defined only when YYDEBUG is.
3494 * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13.
3495 * src/files.c (tryopen, tryclose): Formatting changes.
3496 Move to the top and be static.
3497 * src/reader.c (read_signed_integer): Likewise.
3498 * tests/calc.m4: New file.
3499 * Makefile.am, suite.m4: Adjust.
3500 * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY.
3501
3502 2000-09-18 Akim Demaille <akim@epita.fr>
3503
3504 Add support for an Autotest test suite for Bison.
3505
3506 * m4/m4.m4, m4/atconfig.m4: New files.
3507 * m4/Makefile.am (EXTRA_DIST): Adjust.
3508 * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New
3509 files.
3510 * src/getargs.c: Display a more standard --version message.
3511 * src/reader.c (reader): Formatting changes.
3512 No longer depend upon VERSION_STRING.
3513 * configure.in: No longer use `dnl'.
3514 Set up the test suite and the new directory `tests/.
3515 (VERSION_STRING): Remove.
3516
3517 2000-04-14 Akim Demaille <akim@epita.fr>
3518
3519 * src/reader.c (copy_comment2): New function, same as former
3520 `copy_comment', but outputs into two FILE *.
3521 (copy_comment): Use it.
3522 (parse_union_decl): Use it.
3523 (get_type, parse_start_decl): Use the same `invalid' message.
3524 (parse_start_decl, parse_union_decl): Use the same `multiple'
3525 message.
3526 (parse_union_decl, copy_guard, copy_action): Use the same
3527 `unmatched' message.
3528 * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'.
3529
3530 2000-03-31 Akim Demaille <akim@epita.fr>
3531
3532 * src/files.c (tryopen, tryclose): Move to the top.
3533 Be static.
3534
3535 2000-03-31 Akim Demaille <akim@epita.fr>
3536
3537 * src/main.c (main): Don't call `done', exit does it.
3538
3539 2000-03-31 Akim Demaille <akim@epita.fr>
3540
3541 * allocate.c: s/return (foo)/return foo/.
3542 * lalr.c: Likewise.
3543 * LR0.c: Likewise.
3544 * output.c: Likewise.
3545 * reader.c: Likewise.
3546 * symtab.c: Likewise.
3547 * vmsgetargs.c: Likewise.
3548
3549 2000-03-31 Akim Demaille <akim@epita.fr>
3550
3551 Clean up the error reporting functions.
3552
3553 * src/report.c: New file.
3554 * src/report.h: Likewise.
3555 * src/Makefile.am: Adjust.
3556 * m4/error.m4: New file.
3557 * m4/Makefile.am: Adjust.
3558 * configure.in (jm_PREREQ_ERROR): Call it.
3559 * src/main.c (int_to_string, banner, fatal_banner, warn_banner):
3560 Remove.
3561 (fatal, fatals): Remove. All callers use complain.c::fatal.
3562 (warn, warni, warns, warnss, warnss): Remove. All callers use
3563 complain.c::complain.
3564 (toomany): Remove, use fatal instead.
3565 * src/files.c (done): No argument, use complain_message_count.
3566 * src/main.c (main): Register `done' to `atexit'.
3567
3568 * src/getargs.c (usage): More `fputs', less `fprintf'.
3569
3570 2000-03-28 Akim Demaille <akim@epita.fr>
3571
3572 * lib/: New directory.
3573 * Makefile.am (SUBDIRS): Adjust.
3574 * configure.in: Adjust.
3575 (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's
3576 useless.
3577 * src/alloca.c: Moved to lib/.
3578 * src/getopt.c: Likewise.
3579 * src/getopt1.c: Likewise.
3580 * src/getopt.h: Likewise.
3581 * src/ansi2knr.c: Likewise.
3582 * src/ansi2knr.1: Likewise.
3583 * src/Makefile.am: Adjust.
3584 * lib/Makefile.am: New file.
3585
3586 2000-03-28 Akim Demaille <akim@epita.fr>
3587
3588 * src/getargs.c (usage): Refresh the help message.
3589
3590 2000-03-17 Akim Demaille <akim@epita.fr>
3591
3592 * src/getopt1.c: Updated from textutils 2.0e
3593 * src/getopt.c: Likewise.
3594 * src/getopt.h: Likewise.
3595
3596 2000-03-17 Akim Demaille <akim@epita.fr>
3597
3598 * src/Makefile.am (bison.simple): Fix the awk program: quote only
3599 the file name, not the whole `#line LINE FILE'.
3600
3601 2000-03-17 Akim Demaille <akim@epita.fr>
3602
3603 On syntax errors, report the token on which we choked.
3604
3605 * src/bison.s1 (yyparse): In the label yyerrlab, when
3606 YYERROR_VERBOSE, add yychar in msg.
3607
3608 2000-03-17 Akim Demaille <akim@epita.fr>
3609
3610 * src/reader.c (copy_at): New function.
3611 (copy_guard): Use it.
3612 (copy_action): Use it.
3613
3614 2000-03-17 Akim Demaille <akim@epita.fr>
3615
3616 Be kind to translators, save some useless translations.
3617
3618 * src/main.c (banner): New function.
3619 (fatal_banner): Use it.
3620 (warn_banner): Use it.
3621
3622 2000-03-17 Akim Demaille <akim@epita.fr>
3623
3624 * src/reader.c (copy_definition): Use copy_string and
3625 copy_comment. Removed now unused `match', `ended',
3626 `cplus_comment'.
3627 (copy_comment, copy_string): Moved, to be visible from
3628 copy_definition.
3629
3630 2000-03-17 Akim Demaille <akim@epita.fr>
3631
3632 * src/reader.c (copy_string): Declare `static inline'. No
3633 problems with inline, since it is checked by configure.
3634 (copy_comment): Likewise.
3635
3636 2000-03-17 Akim Demaille <akim@epita.fr>
3637
3638 * src/reader.c (packsymbols): Formatting changes.
3639
3640 2000-03-17 Akim Demaille <akim@epita.fr>
3641
3642 * src/reader.c (copy_comment): New function, factored out from:
3643 (copy_action): Use it. Removed now unused `match', `ended',
3644 `cplus_comment'.
3645 (copy_guard): Likewise.
3646
3647 2000-03-17 Akim Demaille <akim@epita.fr>
3648
3649 * src/reader.c (copy_string): New function, factored out from:
3650 (copy_action): Use it.
3651 (copy_guard): Likewise.
3652
3653 2000-03-17 Akim Demaille <akim@epita.fr>
3654
3655 Change the handling of @s so that they behave exactly like $s.
3656 There is now a pseudo variable @$ (readble and writable), location
3657 of the lhs of the rule (by default ranging from the location of
3658 the first symbol of the rhs, to the location of the last symbol,
3659 or, if the rhs is empty, YYLLOC).
3660
3661 * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of
3662 yyval.
3663 (yyparse): When providing a default semantic action, provide a
3664 default location action.
3665 (after the $): No longer change `*YYLSP', just stack YYLOC the
3666 same way you stack YYVAL.
3667 * src/reader.c (read_declarations): Use warns.
3668 (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'.
3669 (copy_action, case '@'): Likewise.
3670 Use a standard error message, to save useless work from
3671 translators.
3672
3673 2000-03-17 Akim Demaille <akim@epita.fr>
3674
3675 * src/bison.s1: Formatting and cosmetics changes.
3676 * src/reader.c: Likewise.
3677 Update the Copyright notice.
3678
3679 2000-03-17 Akim Demaille <akim@epita.fr>
3680
3681 * src/bison.s1 (#line): All set to `#line' only, since the
3682 Makefile now handles them.
3683
3684 2000-03-16 Akim Demaille <akim@epita.fr>
3685
3686 * src/output.c (output_rule_data): Output the documentation of
3687 some of the tables.
3688 (Copyright notice): Update.
3689 Formatting changes.
3690
3691 2000-03-16 Akim Demaille <akim@epita.fr>
3692
3693 * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to
3694 remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough.
3695 One `#if YYDEBUG' remains, since it uses variables which are
3696 defined only if `YYDEBUG != 0'.
3697
3698 2000-03-16 Akim Demaille <akim@epita.fr>
3699
3700 * src/bison.s1 (yyparse): Reorganize the definitions of the stacks
3701 and related variables so that the similarities are highlighted.
3702
3703 2000-03-16 Akim Demaille <akim@epita.fr>
3704
3705 * src/bison.s1: Properly indent CPP directives.
3706
3707 2000-03-16 Akim Demaille <akim@epita.fr>
3708
3709 * src/bison.s1: Properly indent the `alloca' CPP section.
3710
3711 2000-03-16 Akim Demaille <akim@epita.fr>
3712
3713 Do not hard code values of directories in `configure.in'.
3714 Update the `configure' tool chain.
3715
3716 * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by
3717 src/makefile.am.
3718 (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED.
3719 (AC_OUTPUT): Add m4/Makefile.
3720 Bump to bison 1.28a, 1.29 has never been released.
3721 * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are
3722 handled via src/Makefile.am.
3723 (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS,
3724 HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by
3725 autoheader.
3726 * Makefile.am (SUBDIRS): Add m4.
3727 (ACLOCAL_AM_FLAGS): New variable.
3728 (AUTOMAKE_OPTIONS): Add check-news.
3729 * src/Makefile.am (bison.simple): Use awk to replace #line lines with
3730 the proper line number and file name.
3731 (DEFS): Propagate the location of bison library files and of the
3732 locale files.
3733 (INCLUDES): Added `-I ..' so that one can compile with srcdir !=
3734 builddir.
3735 * acinclude.m4: Remove, replaced by the directory m4.
3736 * m4/Makefile.am (EXTRA_DIST): New variable.
3737 * m4/gettext.m4: New file, from the fileutils.
3738 * m4/lcmessage.m4: Likewise
3739 * m4/progtest.m4: Likewise.
3740 * m4/bison-decl.m4: New file, extracted from former acinclude.m4.
3741
3742 2000-03-10 Akim Demaille <akim@epita.fr>
3743
3744 * src/closure.c:
3745 Formatting changes of various comments.
3746 Respect the GNU coding standards at various places.
3747 Don't use `_()' when no translation is needed.
3748
3749 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3750
3751 * src/files.c:
3752 OS/2 honors TMPDIR environment variable.
3753
3754 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3755
3756 * doc/bison.texinfo: Tweaked spelling and grammar.
3757 Updated ISBN.
3758 Removed reference to price of printed copy.
3759 Mention BISON_SIMPLE and BISON_HAIRY.
3760
3761 1999-12-13 Jesse Thilo <jthilo@gnu.org>
3762
3763 * configure.in, NEWS:
3764 Bison 1.29 released.
3765
3766 1999-10-27 Jesse Thilo <jthilo@gnu.org>
3767
3768 * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex:
3769 Added reference card.
3770
3771 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3772
3773 * po/ru.po: Added Russian translation.
3774
3775 1999-07-26 Jesse Thilo <jthilo@gnu.org>
3776
3777 * configure.in: Added Russian translation.
3778
3779 1999-07-06 Jesse Thilo <jthilo@gnu.org>
3780
3781 * configure.in, NEWS, README:
3782 Released version 1.28.
3783
3784 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3785
3786 * src/system.h:
3787 Squashed redefinition warning on some systems.
3788
3789 * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c:
3790 Have configure build version string instead of relying on ANSI string
3791 concatentation.
3792
3793 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3794
3795 * po/POTFILES.in: Got rid of version.c.
3796
3797 1999-06-14 Jesse Thilo <jthilo@gnu.org>
3798
3799 * acconfig.h, configure.in:
3800 Have configure build version string instead of relying on ANSI string
3801 concatentation.
3802
3803 1999-06-08 Jesse Thilo <jthilo@gnu.org>
3804
3805 * doc/bison.1:
3806 Dropped mention of `+' for long-named options.
3807
3808 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3809
3810 * src/files.c: Added <unistd.h> for unlink().
3811
3812 * src/Makefile.am, src/system.h:
3813 I18n fixes.
3814
3815 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3816
3817 * README: Added a FAQ list.
3818
3819 * configure.in, acconfig.h:
3820 I18n fixes.
3821
3822 1999-05-30 Jesse Thilo <jthilo@gnu.org>
3823
3824 * doc/FAQ, doc/Makefile.am:
3825 Added a FAQ list.
3826
3827 1999-05-19 Jesse Thilo <jthilo@gnu.org>
3828
3829 * src/alloc.h, src/symtab.h, src/version.c:
3830 Protected inclusion of "config.h" with HAVE_CONFIG_H.
3831
3832 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3833
3834 * src/.cvsignore, src/Makefile.am:
3835 Reorganized: sources in `src', documentation in `doc'.
3836
3837 * src/lex.c (literalchar):
3838 fixed the code for escaping double quotes (thanks
3839 Jonathan Czisny.)
3840
3841 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3842
3843 * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in:
3844 Adjusted paths to reflect directory reorganization.
3845
3846 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3847
3848 * doc/.cvsignore, doc/Makefile.am:
3849 Reorganized: sources in `src', documentation in `doc'.
3850
3851 1999-04-18 Jesse Thilo <jthilo@gnu.org>
3852
3853 * configure.in:
3854 Updated AC_INIT file to reflect directory reorganization.
3855
3856 * configure.in, .cvsignore, Makefile.am, POTFILES.in:
3857 Reorganized: sources in `src', documentation in `doc'.
3858
3859 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3860
3861 * src/allocate.c:
3862 Don't declare calloc() and realloc() if not necessary.
3863
3864 1999-04-13 Jesse Thilo <jthilo@gnu.org>
3865
3866 * configure.in, acconfig.h, acinclude.m4:
3867 Don't declare calloc() and realloc() if not necessary.
3868
3869 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3870
3871 * po/.cvsignore: Added i18n support.
3872
3873 1999-03-23 Jesse Thilo <jthilo@gnu.org>
3874
3875 * acconfig.h, configure.in, Makefile.am:
3876 Added i18n support.
3877
3878 1999-03-22 Jesse Thilo <jthilo@gnu.org>
3879
3880 * src/bison.s1: Fixed #line numbers.
3881
3882 1999-03-15 Jesse Thilo <jthilo@gnu.org>
3883
3884 * po/es.po, po/fr.po, po/nl.po, po/de.po:
3885 Added PO files from Translation Project.
3886
3887 1999-03-03 Jesse Thilo <jthilo@gnu.org>
3888
3889 * Makefile.am:
3890 Added support for non-ANSI compilers (ansi2knr).
3891
3892 1999-02-16 Jesse Thilo <jthilo@gnu.org>
3893
3894 * configure.in: Bumped version number to 1.27.
3895
3896 * Makefile.am:
3897 Added `bison.simple' to list of files removed by `make distclean'.
3898
3899 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3900
3901 * src/files.c, src/files.h:
3902 Defined locations of parser files in config.h instead of Makefile.
3903
3904 1999-02-12 Jesse Thilo <jthilo@gnu.org>
3905
3906 * acconfig.h, acinclude.m4, configure.in, Makefile.am:
3907 Defined locations of parser files in config.h instead of Makefile.
3908
3909 1999-02-09 Jesse Thilo <jthilo@gnu.org>
3910
3911 * Makefile.am:
3912 Removed inappropriate use of $< macro.
3913
3914 1999-02-05 Jesse Thilo <jthilo@gnu.org>
3915
3916 * po/Makefile.in.in, po/POTFILES.in:
3917 Add `po' directory skeleton.
3918
3919 1999-01-27 Jesse Thilo <jthilo@gnu.org>
3920
3921 * README: Document help-bison list.
3922
3923 * configure.in: Add check for mkstemp().
3924
3925 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3926
3927 * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c:
3928 Hush a few compiler warnings.
3929
3930 * src/files.c:
3931 Add tryclose(), which verifies that fclose was successful.
3932 Hush a couple of compiler warnings.
3933
3934 1999-01-20 Jesse Thilo <jthilo@gnu.org>
3935
3936 * Makefile.am, OChangeLog:
3937 ChangeLog is now automatically generated. Include the old version as
3938 OChangeLog.
3939
3940 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3941
3942 * 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:
3943 Update FSF address.
3944
3945 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3946
3947 * doc/bison.texinfo: Fix formatting glitch.
3948
3949 * doc/bison.texinfo: Update FSF address.
3950
3951 1999-01-14 Jesse Thilo <jthilo@gnu.org>
3952
3953 * acconfig.h: Update FSF address.
3954
3955 1999-01-08 Jesse Thilo <jthilo@gnu.org>
3956
3957 * src/system.h:
3958 Don't define PACKAGE here, since config.h defines it.
3959
3960 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3961
3962 * src/reader.c: Update copyright date.
3963
3964 * src/main.c:
3965 Ditch sprintf to statically-sized buffers in fatal/warn functions in
3966 favor of output directly to stderr (avoids buffer overruns).
3967
3968 * src/reader.c: Some checks for premature EOF.
3969
3970 * 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:
3971 Use prototypes if the compiler understands them.
3972
3973 * src/files.c: Honor TMPDIR on Unix hosts.
3974 Use prototypes if the compiler understands them.
3975
3976 * src/reader.c:
3977 Fix a couple of buffer overrun bugs.
3978 Use prototypes if the compiler understands them.
3979
3980 * src/system.h: Include unistd.h and ctype.h.
3981 Use #ifdef instead of #if for NLS symbols.
3982
3983 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3984
3985 * doc/bison.texinfo:
3986 Delete comment "consider using @set for edition number, etc..." since
3987 we now are doing so.
3988
3989 1998-12-30 Jesse Thilo <jthilo@gnu.org>
3990
3991 * configure.in:
3992 Use prototypes if the compiler understands them.
3993
3994 * NEWS: Document 1.26 highlights.
3995
3996 * Makefile.am: Require Automake 1.3 or later.
3997
3998 * acconfig.h:
3999 Use prototypes if the compiler understands them.
4000
4001 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4002
4003 * src/version.c:
4004 Use VERSION symbol from automake for version number.
4005
4006 1998-12-29 Jesse Thilo <jthilo@gnu.org>
4007
4008 * acconfig.h, configure.in, version.cin:
4009 Use VERSION symbol from automake for version number.
4010
4011 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4012
4013 * Makefile.am:
4014 Distribute original version of simple parser (bison.s1), not built
4015 version (bison.simple).
4016
4017 1998-11-28 Jesse Thilo <jthilo@gnu.org>
4018
4019 * doc/bison.texinfo: Add info dir entry.
4020
4021 * doc/bison.texinfo:
4022 Let automake put version number into documentation.
4023
4024 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4025
4026 * src/bison.cld, src/build.com, src/vmshlp.mar:
4027 Add non-RCS files from /gd/gnu/bison.
4028
4029 1998-11-26 Jesse Thilo <jthilo@gnu.org>
4030
4031 * doc/bison.1:
4032 Document the BISON_HAIRY and BISON_SIMPLE variables.
4033
4034 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4035
4036 * src/version.c: Build version.c automatically.
4037
4038 * src/reader.c:
4039 Fix token numbering (used to start at 258, not 257).
4040
4041 * src/system.h: Include config.h.
4042
4043 * src/getargs.c: Update bug report address.
4044
4045 * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h:
4046 Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org.
4047
4048 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4049
4050 * Makefile.am:
4051 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4052
4053 * configure.in, version.cin:
4054 Build version.c automatically.
4055
4056 * AUTHORS: Add AUTHORS file.
4057
4058 * README: Update bug report address.
4059
4060 * bison.simple:
4061 Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1).
4062
4063 * configure.in, Makefile.am, Makefile.in, stamp-h.in:
4064 Add automake stuff.
4065
4066 1998-11-25 Jesse Thilo <jthilo@gnu.org>
4067
4068 * doc/bison.texinfo: Clean up some formatting.
4069
4070 1998-05-05 Richard Stallman <rms@gnu.org>
4071
4072 * doc/bison.texinfo:
4073 Explain better why to make a pure parser.
4074
4075 1998-01-05 Richard Stallman <rms@gnu.org>
4076
4077 * src/files.c (openfiles):
4078 [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to
4079 find a temporary directory, if possible. Do not unlink files while
4080 they are open.
4081
4082 1997-08-25 Richard Stallman <rms@gnu.org>
4083
4084 * src/reader.c (stack_offset;):
4085 Change some warni to warns.
4086
4087 * src/lex.c (literalchar): Use warns, not warni.
4088
4089 1997-06-28 Richard Stallman <rms@gnu.org>
4090
4091 * src/bison.s1: Add a Bison version comment.
4092
4093 * src/main.c (fatal, warn, berror):
4094 Use program_name.
4095
4096 1997-06-28 Richard Stallman <rms@gnu.org>
4097
4098 * Makefile.in (bison_version): New variable.
4099 (dist): Use that variable.
4100 (bison.s1): Substitute the Bison version into bison.simple.
4101
4102 * bison.simple: Add a Bison version comment.
4103
4104 1997-06-18 Richard Stallman <rms@gnu.org>
4105
4106 * src/main.c (fatal, warn, berror):
4107 Make error messages standard.
4108 (toomany): Improve error message text.
4109
4110 * 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:
4111 new.h renamed to alloc.h.
4112
4113 1997-06-18 Richard Stallman <rms@gnu.org>
4114
4115 * Makefile.in: new.h renamed to alloc.h.
4116
4117 1997-05-24 Richard Stallman <rms@gnu.org>
4118
4119 * src/lex.c (literalchar):
4120 Fix the code for escaping \, " and '.
4121
4122 (lex): Avoid trouble when there are many chars
4123 to discard in a char literal with just several chars in it.
4124
4125 1997-05-17 Richard Stallman <rms@gnu.org>
4126
4127 * src/bison.s1:
4128 Use malloc, if using alloca is troublesome.
4129 (YYSTACK_USE_ALLOCA): New flag macro.
4130 Define it for some systems and compilers.
4131 (YYSTACK_ALLOC): New macro.
4132 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4133 If it was malloc'd, free it.
4134
4135 1997-05-17 Richard Stallman <rms@gnu.org>
4136
4137 * bison.simple:
4138 Use malloc, if using alloca is troublesome.
4139 (YYSTACK_USE_ALLOCA): New flag macro.
4140 Define it for some systems and compilers.
4141 (YYSTACK_ALLOC): New macro.
4142 (yyparse): Use YYSTACK_ALLOC to allocate stack.
4143 If it was malloc'd, free it.
4144
4145 1997-04-23 Richard Stallman <rms@gnu.org>
4146
4147 * src/bison.s1:
4148 (alloca) [__hpux]: Always define as __builtin_alloca.
4149
4150 1997-04-23 Richard Stallman <rms@gnu.org>
4151
4152 * bison.simple:
4153 (alloca) [__hpux]: Always define as __builtin_alloca.
4154
4155 1997-04-22 Richard Stallman <rms@gnu.org>
4156
4157 * src/bison.s1:
4158 [__hpux]: Include alloca.h (right for HPUX 10)
4159 instead of declaring alloca (right for HPUX 9).
4160
4161 * src/bison.s1 (__yy_memcpy):
4162 Declare arg `count' as unsigned int.
4163 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4164
4165 1997-04-22 Richard Stallman <rms@gnu.org>
4166
4167 * bison.simple:
4168 [__hpux]: Include alloca.h (right for HPUX 10)
4169 instead of declaring alloca (right for HPUX 9).
4170
4171 * bison.simple (__yy_memcpy):
4172 Declare arg `count' as unsigned int.
4173 (yyparse): Cast third arg to __yy_memcpy to unsigned int.
4174
4175 1997-01-03 Richard Stallman <rms@gnu.org>
4176
4177 * src/allocate.c: [__STDC__ or _MSC_VER]:
4178 Declare calloc and realloc to return void *.
4179
4180 1997-01-02 Richard Stallman <rms@gnu.org>
4181
4182 * src/system.h:
4183 [_MSC_VER]: Include stdlib.h and process.h.
4184 [_MSC_VER] (getpid): Define as macro--translate it to _getpid.
4185
4186 * src/main.c (main): Return FAILURE as a value.
4187 (printable_version): Declare arg as int, not char.
4188
4189 1997-01-02 Richard Stallman <rms@gnu.org>
4190
4191 * Makefile.in (dist):
4192 Explicitly check for symlinks, and copy them.
4193
4194 1996-12-19 Richard Stallman <rms@gnu.org>
4195
4196 * src/files.c:
4197 [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined.
4198
4199 1996-12-18 Paul Eggert <eggert@gnu.org>
4200
4201 * src/bison.s1 (yyparse):
4202 If __GNUC__ and YYPARSE_PARAM are both defined,
4203 declare yyparse to have a void * argument.
4204
4205 1996-12-18 Paul Eggert <eggert@gnu.org>
4206
4207 * bison.simple (yyparse):
4208 If __GNUC__ and YYPARSE_PARAM are both defined,
4209 declare yyparse to have a void * argument.
4210
4211 1996-12-17 Richard Stallman <rms@gnu.org>
4212
4213 * src/reduce.c (nbits): Add some casts.
4214
4215 1996-08-12 Richard Stallman <rms@gnu.org>
4216
4217 * src/bison.s1: Test _MSDOS as well as _MSDOS_.
4218
4219 1996-08-12 Richard Stallman <rms@gnu.org>
4220
4221 * bison.simple: Test _MSDOS as well as _MSDOS_.
4222
4223 1996-07-31 Richard Stallman <rms@gnu.org>
4224
4225 * src/bison.s1:
4226 [__sun && __i386]: Include alloca.h.
4227
4228 1996-07-31 Richard Stallman <rms@gnu.org>
4229
4230 * bison.simple:
4231 [__sun && __i386]: Include alloca.h.
4232
4233 1996-07-30 Richard Stallman <rms@gnu.org>
4234
4235 * src/bison.s1: Comment change.
4236
4237 * src/bison.s1: Test _MSDOS_, not MSDOS.
4238
4239 1996-07-30 Richard Stallman <rms@gnu.org>
4240
4241 * bison.simple: Comment change.
4242
4243 * bison.simple: Test _MSDOS_, not MSDOS.
4244
4245 1996-06-01 Richard Stallman <rms@gnu.org>
4246
4247 * 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:
4248 Insert `_' macro around many string constants.
4249
4250 * src/main.c:
4251 Insert `_' macro around many string constants.
4252
4253 (main): Call setlocale, bindtextdomain and textdomain.
4254
4255 * src/system.h: [HAVE_LOCALE_H]: Include locale.h.
4256 [! HAVE_LOCALE_H] (setlocale): Define as no-op.
4257 [ENABLE_NLS]: Include libintl.h.
4258 [ENABLE_NLS] (gettext): Define.
4259 [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions.
4260 (N_, PACKAGE, LOCALEDIR): New macros.
4261
4262 1996-06-01 Richard Stallman <rms@gnu.org>
4263
4264 * POTFILES.in: New file.
4265
4266 * Makefile.in (allocate.o):
4267 Define target explicitly.
4268
4269 * Makefile.in (CFLAGS): Set to @CFLAGS@.
4270 (LDFLAGS): Set to @LDFLAGS@.
4271 (configure): Run autoconf only if preceding `cd' succeeds.
4272 (bison.s1): Redirect output to temporary file then move the
4273 temporary to the target, rather than redirecting directly to bison.s1.
4274 (clean): Remove config.status and config.log.
4275 (distclean): Don't remove config.status here.
4276
4277 1996-05-12 Richard Stallman <rms@gnu.org>
4278
4279 * src/bison.s1:
4280 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4281
4282 1996-05-12 Richard Stallman <rms@gnu.org>
4283
4284 * bison.simple:
4285 (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t.
4286
4287 1996-05-11 Richard Stallman <rms@gnu.org>
4288
4289 * src/bison.s1 (__yy_memcpy):
4290 Really reorder the args, as was supposedly done on Feb 14 1995.
4291 (yyparse): Calls changed accordingly.
4292
4293 1996-05-11 Richard Stallman <rms@gnu.org>
4294
4295 * Makefile.in (dist): Don't use $(srcdir).
4296
4297 * bison.simple (__yy_memcpy):
4298 Really reorder the args, as was supposedly done on Feb 14 1995.
4299 (yyparse): Calls changed accordingly.
4300
4301 1996-01-27 Richard Stallman <rms@gnu.org>
4302
4303 * src/output.c (output_rule_data):
4304 Test YYERROR_VERBOSE in the conditional
4305 around the definition of ttyname.
4306
4307 1995-12-29 Richard Stallman <rms@gnu.org>
4308
4309 * src/bison.s1:
4310 Fix line numbers in #line commands.
4311
4312 1995-12-29 Richard Stallman <rms@gnu.org>
4313
4314 * bison.simple:
4315 Fix line numbers in #line commands.
4316
4317 1995-12-27 Richard Stallman <rms@gnu.org>
4318
4319 * src/bison.s1 (YYPARSE_PARAM_DECL):
4320 In C++, make it always null.
4321 (YYPARSE_PARAM_ARG): New macro.
4322 (yyparse): Use YYPARSE_PARAM_ARG.
4323
4324 1995-12-27 Richard Stallman <rms@gnu.org>
4325
4326 * bison.simple (YYPARSE_PARAM_DECL):
4327 In C++, make it always null.
4328 (YYPARSE_PARAM_ARG): New macro.
4329 (yyparse): Use YYPARSE_PARAM_ARG.
4330
4331 1995-11-29 Richard Stallman <rms@gnu.org>
4332
4333 * doc/bison.texinfo:
4334 Describe literal string tokens, %raw, %no_lines, %token_table.
4335
4336 1995-11-29 Daniel Hagerty <hag@gnu.org>
4337
4338 * doc/bison.texinfo: Fixed update date
4339
4340 1995-10-16 Richard Stallman <rms@gnu.org>
4341
4342 * src/version.c: Version 1.25.
4343
4344 1995-10-16 Richard Stallman <rms@gnu.org>
4345
4346 * NEWS: *** empty log message ***
4347
4348 1995-10-16 Richard Stallman <rms@gnu.org>
4349
4350 * doc/bison.1, doc/bison.rnh:
4351 Add new options.
4352
4353 1995-10-15 Richard Stallman <rms@gnu.org>
4354
4355 * src/vmsgetargs.c, src/getargs.c:
4356 Added -n, -k, and -raw switches.
4357 (noparserflag, toknumflag, rawtoknumflag): New variables.
4358
4359 * src/symtab.h (SALIAS):
4360 New #define for adding aliases to %token.
4361 (struct bucket): Added `alias' field.
4362
4363 * src/reduce.c (reduce_grammar):
4364 Revise error message.
4365 (print_notices): Remove final `.' from error message.
4366
4367 * src/reader.c (reader_output_yylsp):
4368 New function.
4369 (readgram): Use `#if 0' around code that accepted %command
4370 inside grammar rules: The documentation doesn't allow it,
4371 and it will fail since the %command processors scan for the next %.
4372 (parse_token_decl): Extended the %token
4373 declaration to allow a multi-character symbol as an alias.
4374 (parse_thong_decl): New function.
4375 (read_declarations): Added %thong declarations.
4376 (read_declarations): Handle NOOP to deal with allowing
4377 % declarations as another means to specify the flags.
4378 (readgram): Allow %prec prior to semantics embedded in a rule.
4379 (skip_to_char, read_declarations, copy_definition)
4380 (parse_token_decl, parse_start_decl, parse_type_decl)
4381 (parse_assoc_decl, parse_union_decl, parse_expect_decl)
4382 (get_type_name, copy_guard, copy_action, readgram)
4383 (get_type, packsymbols): Revised most error messages.
4384 Changed `fatal' to `warnxxx' to avoid aborting for error.
4385 Revised and use multiple warnxxx functions to avoid using VARARGS1.
4386 (read_declarations): Improve the error message for
4387 an invalid character. Do not abort.
4388 (read_declarations, copy_guard, copy_action): Use
4389 printable_version to avoid unprintable characters in printed output.
4390 (parse_expect_decl): Error if argument to %expect exceeds 10 digits.
4391 (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type):
4392 Allow the type of a non-terminal can be given
4393 more than once, as long as all specifications give the same type.
4394
4395 * src/output.c:
4396 (output_headers, output_trailers, output, output_gram)
4397 (output_rule_data): Implement noparserflag variable.
4398 Implement toknumflag variable.
4399 (output): Call reader_output_yylsp to output LTYPESTR.
4400
4401 * src/main.c (main):
4402 If reader sees an error, don't process the grammar.
4403 (fatals): Updated to not use VARARGS1.
4404 (printable_version, int_to_string, warn, warni, warns, warnss)
4405 (warnsss): New error reporting functions. Avoid abort for error.
4406
4407 * src/lex.h:
4408 Added THONG and NOOP for alias processing.
4409 Added SETOPT for the new code that allows setting options with %flags.
4410
4411 * src/lex.c:
4412 Include getopt.h. Add some extern decls.
4413 (safegetc): New function to deal with EOF gracefully.
4414 (literalchar); new function to deal with reading \ escapes.
4415 (lex): Use literalchar.
4416 (lex): Implemented "..." tokens.
4417 (literalchar, lex, parse_percent_token): Made tokenbuffer
4418 always contain the token. This includes growing the token
4419 buffer while reading an integer.
4420 (parse_percent_token): Replaced if-else statement with percent_table.
4421 (parse_percent_token): Added % declarations as another
4422 way to specify the flags -n, -l, and -r. Also added hooks for
4423 -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires
4424 major changes to files.c.
4425 (lex) Retain in the incoming stream a character following
4426 an incorrect '/'.
4427 (skip_white_space, lex): Revised most error messages
4428 and changed fatal to warn to avoid aborting.
4429 (percent_table): Added %thong declarations.
4430
4431 * src/gram.h: Comment changes.
4432
4433 * src/files.c (openfiles, open_extra_files, done):
4434 Add faction flag
4435 and actfile file. Handle noparserflag. Both for -n switch.
4436
4437 * src/conflicts.c (resolve_sr_conflict):
4438 Remove use of alloca.
4439
4440 1995-06-01 Jim Meyering <meyering@gnu.org>
4441
4442 * doc/bison.texinfo: *** empty log message ***
4443
4444 1995-05-06 Richard Stallman <rms@gnu.org>
4445
4446 * src/bison.s1: Comment change.
4447
4448 1995-05-06 Richard Stallman <rms@gnu.org>
4449
4450 * bison.simple: Comment change.
4451
4452 1995-05-03 Richard Stallman <rms@gnu.org>
4453
4454 * src/version.c: Version now 1.24.
4455
4456 * src/bison.s1: Change distribution terms.
4457
4458 * src/version.c: Version now 1.23.
4459
4460 1995-05-03 Richard Stallman <rms@gnu.org>
4461
4462 * doc/bison.texinfo:
4463 Rewrite "Conditions for Using Bison".
4464 Update version to 1.24.
4465
4466 1995-05-03 Richard Stallman <rms@gnu.org>
4467
4468 * bison.simple: Change distribution terms.
4469
4470 1995-02-23 Richard Stallman <rms@gnu.org>
4471
4472 * src/files.c: Test __VMS_POSIX as well as VMS.
4473
4474 1995-02-14 Jim Meyering <meyering@gnu.org>
4475
4476 * src/bison.s1 (__yy_memcpy):
4477 Renamed from __yy_bcopy to avoid
4478 confusion. Reverse FROM and TO arguments to be consistent with
4479 those of memcpy.
4480
4481 1995-02-14 Jim Meyering <meyering@gnu.org>
4482
4483 * bison.simple (__yy_memcpy):
4484 Renamed from __yy_bcopy to avoid
4485 confusion. Reverse FROM and TO arguments to be consistent with
4486 those of memcpy.
4487
4488 1994-11-10 David J. MacKenzie <djm@gnu.org>
4489
4490 * NEWS: reformat
4491
4492 * NEWS: New file.
4493
4494 * Makefile.in (DISTFILES): Include NEWS.
4495
4496 * Makefile.in (DISTFILES):
4497 Include install-sh, not install.sh.
4498
4499 * configure.in: Update to Autoconf v2 macro names.
4500
4501 1994-10-05 David J. MacKenzie <djm@gnu.org>
4502
4503 * Makefile.in: fix typo
4504
4505 * Makefile.in (prefix, exec_prefix):
4506 Let configure set them.
4507
4508 1994-09-28 David J. MacKenzie <djm@gnu.org>
4509
4510 * Makefile.in: Set datadir to $(prefix)/share.
4511
4512 1994-09-15 Richard Stallman <rms@gnu.org>
4513
4514 * src/bison.s1:
4515 Update copyright notice and GPL version.
4516
4517 1994-09-15 Richard Stallman <rms@gnu.org>
4518
4519 * bison.simple:
4520 Update copyright notice and GPL version.
4521
4522 1994-07-12 Richard Stallman <rms@gnu.org>
4523
4524 * src/reduce.c, src/reader.c:
4525 entered into RCS
4526
4527 1994-05-05 David J. MacKenzie <djm@gnu.org>
4528
4529 * Makefile.in: entered into RCS
4530
4531 1994-03-26 Richard Stallman <rms@gnu.org>
4532
4533 * src/bison.s1: entered into RCS
4534
4535 1994-03-26 Richard Stallman <rms@gnu.org>
4536
4537 * bison.simple: entered into RCS
4538
4539 1994-03-25 Richard Stallman <rms@gnu.org>
4540
4541 * src/main.c: entered into RCS
4542
4543 1994-03-24 Richard Stallman <rms@gnu.org>
4544
4545 * src/conflicts.c: entered into RCS
4546
4547 1994-01-02 Richard Stallman <rms@gnu.org>
4548
4549 * Makefile.in: *** empty log message ***
4550
4551 1993-11-21 Richard Stallman <rms@gnu.org>
4552
4553 * src/bison.s1: *** empty log message ***
4554
4555 1993-11-21 Richard Stallman <rms@gnu.org>
4556
4557 * doc/bison.texinfo: entered into RCS
4558
4559 * doc/bison.texinfo: *** empty log message ***
4560
4561 1993-11-21 Richard Stallman <rms@gnu.org>
4562
4563 * bison.simple: *** empty log message ***
4564
4565 1993-10-25 David J. MacKenzie <djm@gnu.org>
4566
4567 * doc/bison.texinfo: *** empty log message ***
4568
4569 1993-10-19 Richard Stallman <rms@gnu.org>
4570
4571 * src/bison.s1: *** empty log message ***
4572
4573 1993-10-19 Richard Stallman <rms@gnu.org>
4574
4575 * bison.simple: *** empty log message ***
4576
4577 1993-10-14 Richard Stallman <rms@gnu.org>
4578
4579 * src/bison.s1: *** empty log message ***
4580
4581 1993-10-14 Richard Stallman <rms@gnu.org>
4582
4583 * bison.simple: *** empty log message ***
4584
4585 1993-09-14 David J. MacKenzie <djm@gnu.org>
4586
4587 * doc/bison.texinfo: *** empty log message ***
4588
4589 1993-09-13 Noah Friedman <friedman@gnu.org>
4590
4591 * Makefile.in: *** empty log message ***
4592
4593 1993-09-10 Richard Stallman <rms@gnu.org>
4594
4595 * src/conflicts.c: *** empty log message ***
4596
4597 * src/system.h: entered into RCS
4598
4599 1993-09-10 Richard Stallman <rms@gnu.org>
4600
4601 * doc/bison.1: entered into RCS
4602
4603 1993-09-06 Noah Friedman <friedman@gnu.org>
4604
4605 * src/version.c: entered into RCS
4606
4607 1993-09-06 Noah Friedman <friedman@gnu.org>
4608
4609 * Makefile.in: *** empty log message ***
4610
4611 1993-07-30 David J. MacKenzie <djm@gnu.org>
4612
4613 * Makefile.in: *** empty log message ***
4614
4615 1993-07-24 Richard Stallman <rms@gnu.org>
4616
4617 * src/bison.s1: *** empty log message ***
4618
4619 1993-07-24 Richard Stallman <rms@gnu.org>
4620
4621 * bison.simple: *** empty log message ***
4622
4623 1993-07-08 David J. MacKenzie <djm@gnu.org>
4624
4625 * Makefile.in: *** empty log message ***
4626
4627 1993-07-04 Richard Stallman <rms@gnu.org>
4628
4629 * src/bison.s1: *** empty log message ***
4630
4631 1993-07-04 Richard Stallman <rms@gnu.org>
4632
4633 * bison.simple: *** empty log message ***
4634
4635 1993-06-26 David J. MacKenzie <djm@gnu.org>
4636
4637 * src/getargs.c: entered into RCS
4638
4639 1993-06-26 David J. MacKenzie <djm@gnu.org>
4640
4641 * doc/bison.texinfo: *** empty log message ***
4642
4643 * doc/bison.1: New file.
4644
4645 1993-06-25 Richard Stallman <rms@gnu.org>
4646
4647 * src/getargs.c: New file.
4648
4649 1993-06-16 Richard Stallman <rms@gnu.org>
4650
4651 * src/bison.s1: *** empty log message ***
4652
4653 1993-06-16 Richard Stallman <rms@gnu.org>
4654
4655 * bison.simple: *** empty log message ***
4656
4657 1993-06-03 Richard Stallman <rms@gnu.org>
4658
4659 * src/bison.s1: New file.
4660
4661 1993-06-03 Richard Stallman <rms@gnu.org>
4662
4663 * doc/bison.texinfo: *** empty log message ***
4664
4665 1993-06-03 Richard Stallman <rms@gnu.org>
4666
4667 * bison.simple: New file.
4668
4669 1993-05-19 Richard Stallman <rms@gnu.org>
4670
4671 * doc/bison.texinfo: New file.
4672
4673 1993-05-07 Noah Friedman <friedman@gnu.org>
4674
4675 * Makefile.in: *** empty log message ***
4676
4677 1993-04-28 Noah Friedman <friedman@gnu.org>
4678
4679 * src/reader.c: *** empty log message ***
4680
4681 1993-04-23 Noah Friedman <friedman@gnu.org>
4682
4683 * src/alloc.h: entered into RCS
4684
4685 1993-04-20 David J. MacKenzie <djm@gnu.org>
4686
4687 * src/version.c: *** empty log message ***
4688
4689 * src/files.c, src/allocate.c:
4690 entered into RCS
4691
4692 * src/reader.c: *** empty log message ***
4693
4694 * src/lex.c: entered into RCS
4695
4696 * src/conflicts.c: New file.
4697
4698 * src/symtab.c: entered into RCS
4699
4700 * src/alloc.h: New file.
4701
4702 * src/LR0.c: entered into RCS
4703
4704 1993-04-18 Noah Friedman <friedman@gnu.org>
4705
4706 * src/reader.c: New file.
4707
4708 * src/version.c: *** empty log message ***
4709
4710 1993-04-18 Noah Friedman <friedman@gnu.org>
4711
4712 * Makefile.in: *** empty log message ***
4713
4714 1993-04-17 Noah Friedman <friedman@gnu.org>
4715
4716 * Makefile.in: *** empty log message ***
4717
4718 1993-04-15 Richard Stallman <rms@gnu.org>
4719
4720 * src/main.c, src/files.c:
4721 New file.
4722
4723 1993-04-15 Noah Friedman <friedman@gnu.org>
4724
4725 * configure.in: entered into RCS
4726
4727 * configure.in: *** empty log message ***
4728
4729 * configure.in: New file.
4730
4731 1993-04-14 Richard Stallman <rms@gnu.org>
4732
4733 * Makefile.in: New file.
4734
4735 1993-04-13 Richard Stallman <rms@gnu.org>
4736
4737 * src/version.c: New file.
4738
4739 1993-03-25 Richard Stallman <rms@gnu.org>
4740
4741 * src/output.c: entered into RCS
4742
4743 1992-09-25 Richard Stallman <rms@gnu.org>
4744
4745 * configure.bat: entered into RCS
4746
4747 1992-06-22 Richard Stallman <rms@gnu.org>
4748
4749 * src/vmsgetargs.c: entered into RCS
4750
4751 1992-06-22 Richard Stallman <rms@gnu.org>
4752
4753 * doc/bison.rnh: entered into RCS
4754
4755 1992-04-20 David J. MacKenzie <djm@gnu.org>
4756
4757 * README: entered into RCS
4758
4759 1992-01-22 Richard Stallman <rms@gnu.org>
4760
4761 * src/machine.h: entered into RCS
4762
4763 1991-12-21 Richard Stallman <rms@gnu.org>
4764
4765 * src/lalr.c, src/closure.c:
4766 entered into RCS
4767
4768 1991-12-20 Richard Stallman <rms@gnu.org>
4769
4770 * src/state.h: entered into RCS
4771
4772 1991-12-18 Richard Stallman <rms@gnu.org>
4773
4774 * src/print.c, src/nullable.c, src/derives.c:
4775 entered into RCS
4776
4777 1991-11-03 David J. MacKenzie <djm@gnu.org>
4778
4779 * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h:
4780 entered into RCS
4781
4782 1988-09-09 Richard Stallman <rms@gnu.org>
4783
4784 * src/bison.hairy: entered into RCS
4785
4786 1987-12-16 Richard Stallman <rms@gnu.org>
4787
4788 * REFERENCES: entered into RCS