]>
Commit | Line | Data |
---|---|---|
6e93d810 PE |
1 | 2006-05-13 Paul Eggert <eggert@cs.ucla.edu> |
2 | ||
3 | * data/c.m4 (b4_copyright): Put the special exception for Bison | |
4 | skeletons here, so we don't have to put it in each skeleton. All | |
5 | uses changed. Wrap the copyright notice, in case it is longer | |
6 | than 80 columns. Replace comma by newline after title. | |
7 | ||
eaea13f5 PE |
8 | 2006-05-11 Paul Eggert <eggert@cs.ucla.edu> |
9 | ||
10 | * doc/bison.texinfo (Calc++ Scanner): The flex behavior is an | |
11 | incompatibility, not a bug. Mention that it wasn't fixed as of | |
12 | flex 2.5.33. | |
13 | ||
3cf084ec AD |
14 | 2006-05-11 Akim Demaille <akim@lrde.epita.fr> |
15 | ||
16 | * examples/extexi: Enforce the precedence of concatenation over | |
17 | >>. | |
18 | Reported by tommy.nordgren@chello.se | |
19 | ||
32c96bd7 AD |
20 | 2006-05-11 Akim Demaille <akim@lrde.epita.fr> |
21 | ||
22 | * data/lalr1.cc (yytranslate_): Rename token as t to avoid clashes | |
23 | with the member "token". | |
f94705b2 | 24 | Reported by Martin Nylin. |
32c96bd7 | 25 | |
eaea13f5 PE |
26 | 2006-05-08 Paul Eggert <eggert@cs.ucla.edu> |
27 | ||
28 | * data/glr.c: Switch to Bison 2.2 special-exception language in | |
29 | the copyright notice. Use more-regular format for titles and | |
30 | copyright notices. | |
31 | * data/glr.cc: Likewise. | |
32 | * data/location.cc: Likewise. | |
33 | * data/yacc.cc: Likewise. | |
34 | * doc/bison.texinfo (Conditions): Document this. | |
35 | * NEWS: likewise. Upgrade version to 2.2. | |
36 | ||
6e2d1146 AD |
37 | 2006-04-27 Akim Demaille <akim@lrde.epita.fr> |
38 | ||
39 | * data/glr.cc: Remove dead code. | |
40 | ||
47671055 PE |
41 | 2006-04-25 Paul Eggert <eggert@cs.ucla.edu> |
42 | ||
43 | * bootstrap: Comment out the AM_CPPFLAGS line, since we don't use | |
44 | that variable and the line breaks the bootstrap. Problem reported | |
45 | by Juan M. Guerrero. | |
46 | ||
ed2e6384 AD |
47 | 2006-04-24 Akim Demaille <akim@lrde.epita.fr> |
48 | ||
49 | * doc/bison.texinfo (Multiple start-symbols): New. | |
50 | ||
3cedc2dc AD |
51 | 2006-04-24 Akim Demaille <akim@lrde.epita.fr> |
52 | ||
53 | * etc/README, etc/bench.pl: New. | |
54 | ||
b2ddc3f3 AD |
55 | 2006-04-03 Akim Demaille <akim@lrde.epita.fr> |
56 | ||
57 | * src/scan-gram.l: Be robust to BRACED_CODE appearing before any | |
58 | rule. | |
59 | Reported by Mickael Labau. | |
60 | * tests/input.at (Torturing the Scanner): Test it. | |
61 | ||
91e3ac9a PE |
62 | 2006-03-16 Paul Eggert <eggert@cs.ucla.edu> |
63 | ||
64 | * doc/bison.texinfo (Decl Summary): Don't mention yylloc twice. | |
65 | Problem reported by Bob Rossi. | |
66 | ||
67 | 2006-03-13 Paul Eggert <eggert@cs.ucla.edu> | |
68 | ||
69 | * doc/bison.texinfo: Remove @shorttitlepage stuff; it wasn't used | |
70 | and didn't really work. | |
71 | For the index, use @ifnotinfo, not @iftex. | |
72 | Minor cleanups of spacing and terminology. | |
73 | ||
5cf61e93 AD |
74 | 2006-03-12 Akim Demaille <akim@lrde.epita.fr> |
75 | ||
76 | * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Fix the definition | |
77 | of AT_NAME_PREFIX when %name-prefix is not used. | |
78 | ||
aa08666d AD |
79 | 2006-03-12 Akim Demaille <akim@lrde.epita.fr> |
80 | ||
81 | Apply --prefix to C++ skeletons too: they change the namespace. | |
82 | The test suite already exercize these cases. | |
83 | * data/c++.m4 (b4_namespace): New. | |
84 | * data/lalr1.cc, data/glr.cc, data/location.cc: Use it instead of `yy'. | |
85 | * data/lalr1.cc (yytnameerr_): Move its definition into the namespace. | |
86 | * data/yacc.c, data/glr.c: Remove a useless `[]'. | |
87 | * doc/bison.texinfo: Document it. | |
88 | (Option Cross Key): Use @multitable in all formats. It looks | |
89 | nicer, even in TeX outputs. | |
90 | (Rules): Use the same code whatever the output type is. | |
91 | * tests/local.at (_AT_BISON_OPTION_PUSHDEFS) | |
92 | (_AT_BISON_OPTION_POPDEFS): Support AT_NAME_PREFIX. | |
93 | * tests/calc.at: Use it, instead of hard coding `yy'. | |
91e3ac9a | 94 | |
45567173 AD |
95 | 2006-03-10 Akim Demaille <akim@lrde.epita.fr> |
96 | ||
97 | * TODO: Remove dead items. | |
98 | ||
e9d8f881 | 99 | 2006-03-10 Akim Demaille <akim@lrde.epita.fr> |
55ba27be AD |
100 | |
101 | * doc/FAQ: Remove, merged into... | |
102 | * doc/bison.texinfo (FAQ): this. | |
103 | * doc/Makefile.am (EXTRA_DIST): Adjust. | |
104 | ||
c095d689 AD |
105 | 2006-03-10 Akim Demaille <akim@lrde.epita.fr> |
106 | ||
107 | * data/c.m4 (b4_token_enum): Always define the enum of tokens, | |
108 | even if empty. | |
109 | * data/lalrl1.cc, data/glr.cc (parser::token_type): New. | |
110 | * doc/bison.texinfo (Calc++ Scanner): Use it. | |
111 | ||
6e0f8287 PE |
112 | 2006-03-09 Paul Eggert <eggert@cs.ucla.edu> |
113 | ||
114 | Fix two nits reported by twlevo, plus one more that I discovered. | |
115 | ||
116 | * src/assoc.h (assoc_to_string): Give a name to the arg, as | |
117 | this is the usual Bison style. | |
118 | * src/location.h (location_print): Likewise. | |
119 | ||
120 | * src/reader.h (token_name): Likewise. | |
121 | ||
d6b771c3 PE |
122 | 2006-03-08 Paul Eggert <eggert@cs.ucla.edu> |
123 | ||
124 | Fix some nits reported by twlevo. | |
125 | * doc/FAQ: Remove ancient Y2K FAQ, replacing it with "secure" | |
126 | and "POSIX". Use more-modern syntax for URLs. Mention C++ | |
127 | and ask for Java. Don't hardwire OS version numbers. Add | |
128 | copyright notice. | |
129 | * m4/.cvsignore: Add unistd_h.m4, for latest gnulib. | |
130 | * src/conflicts.c (solved_conflicts_obstack): Now static. | |
131 | ||
1e137b71 JD |
132 | 2006-03-08 Joel E. Denny <jdenny@ces.clemson.edu> |
133 | ||
134 | * doc/bison.texinfo (Introduction): Mention GLR and C++ as on the web | |
135 | page. Say "you can use it" not "you may use it" as on the web page; | |
136 | we're describing capabilities not granting permission. | |
137 | ||
73f2e47e PE |
138 | 2006-03-06 Paul Eggert <eggert@cs.ucla.edu> |
139 | ||
6d05403d PE |
140 | * data/glr.c (yyresolveLocations): Rename local variables to avoid |
141 | shadowing warnings. Use usual patter for iterating through RHS. | |
142 | * tests/glr-regression.at | |
143 | (Uninitialized location when reporting ambiguity): | |
144 | Modify yylex so that it uses its argument, rather than trying | |
145 | to rely on ARGSUSED (which doesn't work for gcc with warnings). | |
146 | const char -> char const. | |
147 | ||
73f2e47e PE |
148 | * tests/Makefile.am ($(srcdir)/package.m4, maintainer-check-valgrind): |
149 | Don't use tabs inside commands; it messes up 'ps'. | |
150 | Problem reported by twlevo. | |
151 | ||
8710fc41 JD |
152 | 2006-03-06 Joel E. Denny <jdenny@ces.clemson.edu> |
153 | ||
154 | * tests/glr-regression.at (Uninitialized location when reporting | |
155 | ambiguity): New test case. | |
156 | * data/glr.c (yyresolveLocations): New function, which uses | |
157 | YYLLOC_DEFAULT. | |
158 | (yyresolveValue): Invoke yyresolveLocations before reporting an | |
159 | ambiguity. | |
160 | * doc/bison.texinfo (Default Action for Locations): Note | |
161 | YYLLOC_DEFAULT's usage for ambiguity locations. | |
162 | (GLR Semantic Actions): Cross-reference those notes. | |
163 | ||
ae952af2 JD |
164 | 2006-03-04 Joel E. Denny <jdenny@ces.clemson.edu> |
165 | ||
166 | * tests/glr-regression.at (Leaked semantic values when reporting | |
167 | ambiguity): Remove unnecessary union and type declarations. | |
168 | (Leaked lookahead after nondeterministic parse syntax error): New test | |
169 | case. | |
170 | * data/glr.c (yyparse): Check for zero stacks remaining before | |
171 | attempting to shift the lookahead so that you don't lose it. | |
172 | ||
35ee866a JD |
173 | 2006-03-02 Joel E. Denny <jdenny@ces.clemson.edu> |
174 | ||
175 | Avoid memory leaks by not invoking longjmp in yyreportAmbiguity. | |
176 | * tests/glr-regression.at (Leaked semantic values when reporting | |
177 | ambiguity): New test case. | |
178 | * data/glr.c (yyreportAmbiguity): Invoke yyyerror directly and return | |
179 | yyabort rather than invoking yyFail, which invokes longjmp. Remove the | |
180 | now unnecessary yystackp parameter. | |
181 | (yyresolveValue): Return yyreportAmbiguity's result. Now the necessary | |
182 | destructors can be called. | |
183 | ||
184 | * tests/glr-regression.at: Don't invoke bison with `-t' unnecessarily | |
185 | in existing testcases. | |
186 | ||
520181ab JD |
187 | 2006-03-02 Joel E. Denny <jdenny@ces.clemson.edu> |
188 | ||
189 | Don't leak semantic values for parent RHS when a user action cuts the | |
190 | parser, and clean up related code a bit. | |
191 | * tests/glr-regression.at (Leaked merged semantic value if user action | |
35ee866a JD |
192 | cuts parse): Rename to... |
193 | (Leaked semantic values if user action cuts parse): ... this. Add check | |
520181ab JD |
194 | for leaked parent RHS values. |
195 | * data/glr.c (yydestroyGLRState): In debugging output, distinguish | |
196 | between an unresolved state (non-empty chain of semantic options) and | |
197 | an incomplete one (signaled by an empty chain). | |
ae952af2 | 198 | (yyresolveStates): Document the interface. Move all manipulation of a |
520181ab JD |
199 | successfully or unsuccessfully resolved yyGLRState to... |
200 | (yyresolveValue): ... here so that yyresolveValue always leaves a | |
201 | yyGLRState with consistent data and thus is easier to understand. | |
202 | Remove the yyvalp and yylocp parameters since they are always just | |
203 | taken from the yys parameter. When reporting a discarded merged value | |
204 | in debugging output, note that it is incompletely merged. Document the | |
205 | interface. | |
206 | (yyresolveAction): If resolving any of the RHS states fails, destroy | |
207 | them all rather than leaking them. Thus, as long as user actions are | |
208 | written to clean up the RHS correctly, yyresolveAction always cleans up | |
209 | the RHS of a semantic option. Document the interface. | |
210 | ||
18d9185c PE |
211 | 2006-02-27 Paul Eggert <eggert@cs.ucla.edu> |
212 | ||
213 | * data/glr.c (yyexpandGLRStack): Catch an off-by-one error that | |
214 | led to a segmentation fault in GNU Pascal. Problem reported | |
215 | by Waldek Hebisch. | |
216 | ||
841a7737 JD |
217 | 2006-02-21 Joel E. Denny <jdenny@ces.clemson.edu> |
218 | ||
219 | * doc/bison.texinfo (Mid-Rule Actions): Explain how to bury a | |
220 | mid-rule action inside a nonterminal symbol in order to declare a | |
221 | destructor for its semantic value. | |
222 | ||
fc3f467f PE |
223 | 2006-02-16 Paul Eggert <eggert@cs.ucla.edu> |
224 | ||
225 | * data/yacc.c [(! defined yyoverflow || YYERROR_VERBOSE) && ! | |
226 | YYSTACK_USE_ALLOCA && ! defined YYSTACK_ALLOC && defined | |
227 | __cplusplus && ! defined _STDLIB_H && ! | |
228 | ((defined YYMALLOC || defined malloc) && (defined YYFREE || | |
229 | defined free))]: Include <stdlib.h> rather than rolling our own | |
230 | declarations of malloc and free, to avoid problems with | |
231 | incompatible declarations (using 'throw') C++'s stdlib.h. This | |
232 | should fix Debian bug 340012 | |
233 | <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=340012>, | |
234 | reported by Guillaume Melquiond. | |
235 | ||
a3af26dd PE |
236 | 2006-02-13 Paul Eggert <eggert@cs.ucla.edu> |
237 | ||
4d7bc38c PE |
238 | * NEWS: Clarify symbols versus types in unused-value warnings. |
239 | ||
a3af26dd PE |
240 | * configure.ac (AC_INIT): Bump version number. |
241 | ||
4e26c69e PE |
242 | 2006-02-13 Paul Eggert <eggert@cs.ucla.edu> |
243 | ||
244 | * NEWS: Version 2.1a. | |
245 | * tests/headers.at (AT_TEST_CPP_GUARD_H): Declare yyerror and yylex, | |
246 | since C99 requires this. | |
247 | ||
498e897c PE |
248 | 2006-02-11 Paul Eggert <eggert@cs.ucla.edu> |
249 | ||
250 | * m4/c-working.m4: New file. | |
251 | * configure.ac (BISON_TEST_FOR_WORKING_C_COMPILER): Use it. | |
252 | ||
57bb17ca PE |
253 | 2006-02-10 Paul Eggert <eggert@cs.ucla.edu> |
254 | ||
255 | * Makefile.maint: Merge from coreutils. | |
256 | ||
0be105dc PE |
257 | 2006-02-09 Paul Eggert <eggert@cs.ucla.edu> |
258 | ||
259 | More portability fixes for problems summarized by Nelson H. F. Beebe. | |
260 | ||
261 | * m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Catch a | |
262 | configuration screwup "./configure CC=/opt/SUNWspro/bin/c89 | |
263 | CFLAGS="-xarch=generic64" CXX=/opt/SUNWspro/bin/CC | |
264 | LDFLAGS="-xarch=generic64" with Sun C 5.7 on Solaris 10; this | |
265 | messes up because C++ code is compiled in 32-bit mode but linked | |
266 | in 64-bit mode. | |
267 | ||
6fc0c024 PE |
268 | 2006-02-08 Paul Eggert <eggert@cs.ucla.edu> |
269 | ||
270 | More portability fixes for problems summarized by Nelson H. F. Beebe. | |
271 | ||
7870f699 PE |
272 | * doc/bison.texinfo (Calc++ Scanner): Work around a bug in flex |
273 | 2.5.31. This resembles the 2005-10-10 patch to src/scan-skel.l. | |
274 | ||
6fc0c024 PE |
275 | * examples/calc++/Makefile.am (check_PROGRAMS): Renamed from |
276 | nodist_PROGRAMS, since we don't need to actually compile the | |
277 | example if we're just doing a plain 'make'. This avoids bothering | |
278 | the installer unnecessarily about problems due to weird C++ | |
279 | compilers. | |
280 | ||
fe6c2fde PE |
281 | 2006-02-06 Paul Eggert <eggert@cs.ucla.edu> |
282 | ||
283 | More portability fixes for problems summarized by Nelson H. F. Beebe. | |
284 | ||
285 | * tests/headers.at (AT_TEST_CPP_GUARD_H): Use #include <...> rather | |
286 | than #include "...", and compile with -I'.'. The old method was | |
287 | not portable, according to Posix and the C standard, and it does | |
288 | not work with Sun C 5.7, where previous #line directives affect | |
289 | the working directory used in later #include "..." directives. | |
290 | ||
927b425b JMG |
291 | 2006-02-06 Juan Manuel Guerrero <juan.guerrero@gmx.de> |
292 | ||
293 | Various DJGGP specific issues in /djgpp | |
294 | ||
d9735e9e PE |
295 | 2006-02-02 Paul Eggert <eggert@cs.ucla.edu> |
296 | ||
297 | More portability fixes for problems summarized by Nelson H. F. Beebe. | |
298 | ||
299 | * m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check that | |
300 | '#include <map>' works and that you can apply ++ to iterators. | |
301 | ||
5a6755af PE |
302 | 2006-02-01 Paul Eggert <eggert@cs.ucla.edu> |
303 | ||
67a0dc4f PE |
304 | Work around portability problems summarized by Nelson H. F. Beebe in |
305 | <http://lists.gnu.org/archive/html/bug-bison/2005-09/msg00021.html>. | |
306 | ||
8c86f0ef PE |
307 | * m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check |
308 | that '#include <string>' works. | |
309 | ||
de35dd59 PE |
310 | * data/lalr1.cc (yytranslate_): No longer inline, to work around a |
311 | porting problem to g++ 3.4.3 on Darwin 7.9.0, where g++ complained | |
312 | "warning: sorry: semantics of inline function static data `const | |
313 | unsigned char translate_table[262]' are wrong (you'll wind up with | |
314 | multiple copies)". | |
315 | ||
67a0dc4f PE |
316 | * lib/bbitset.h (struct bitset_vtable): Rename members not, and, |
317 | or, xor to not_, and_, or_, and xor_, respectively. This works | |
318 | around a bug in GCC 3.4.3 on Irix 6.5, which apparently has a | |
319 | random system header somewhere that includes the equivalent of | |
320 | <iso646.h>. | |
321 | ||
5a6755af PE |
322 | * tests/headers.at (AT_TEST_CPP_GUARD_H): Don't assume that "$CC |
323 | -E" works; it apparently doesn't work with PathScale EKO Compiler | |
67a0dc4f | 324 | Suite Version 2.0. |
5a6755af | 325 | |
3f001415 JD |
326 | 2006-01-30 Joel E. Denny <jdenny@ces.clemson.edu> |
327 | ||
328 | During deterministic GLR operation, user actions should be able to | |
329 | influence the parse by changing yychar. To make this easier to fix and | |
330 | to make glr.c easier to evolve in general, don't maintain yytoken in | |
331 | parallel with yychar; just compute yytoken when needed. | |
332 | * tests/glr-regression.at (Incorrect lookahead during deterministic | |
333 | GLR): Check that setting yychar in a user action has the intended | |
334 | effect. | |
335 | * data/glr.c (yyGLRStack): Remove yytokenp member. | |
336 | (yyclearin): Don't set *yytokenp. | |
337 | (yyprocessOneStack, yyreportSyntaxError, yyrecoverSyntaxError): Examine | |
338 | yychar rather than *yytokenp to determine the current lookahead. | |
339 | Compute yytoken locally when needed. | |
340 | (yyparse): Likewise. Remove the local yytoken that yytokenp used to | |
341 | point to. | |
342 | ||
343 | * doc/bison.texinfo (Bison Options): Remove stray sentence fragment | |
344 | after `--report' documentation. | |
345 | ||
e2a8c0f5 PE |
346 | 2006-01-30 Paul Eggert <eggert@cs.ucla.edu> |
347 | ||
348 | * src/parse-gram.y (grammar_declaration): Location of printer | |
349 | symbol is @1, not list->location. Bug reported by twlevo. | |
350 | * tests/input.at (Incompatible Aliases): Adjust to above change. | |
351 | ||
6b702268 PE |
352 | 2006-01-29 Paul Eggert <eggert@cs.ucla.edu> |
353 | ||
27622431 PE |
354 | * tests/input.at (AT_CHECK_UNUSED_VALUES): Remove. Instead, do |
355 | all the test at once. This makes the output easier to read in the | |
356 | normal case. | |
357 | ||
6b702268 PE |
358 | Fix a longstanding bug uncovered by bro-0.9a9/src/parse.y, which I |
359 | got from <http://bro-ids.org/download.html>. The bug is that | |
360 | when two actions appeared in succession, the second one was | |
361 | scanned before the first one was added to the grammar rule | |
362 | as a midrule action. Bison then output the incorrect warning | |
363 | "parse.y:905.17-906.36: warning: unused value: $3". | |
364 | * src/parse-gram.y (BRACED_CODE, action): These are no longer | |
365 | associated with a value. | |
366 | (rhs): Don't invoke grammar_current_rule_action_append. | |
367 | (action): Invoke it here instead. | |
368 | * src/reader.c (grammar_midrule_action): Now extern. | |
369 | (grammar_current_rule_action_append): Don't invoke | |
370 | grammar_midrule_action; that is now the scanner's job. | |
371 | * src/reader.h (last_string, last_braced_code_loc): | |
372 | (grammar_midrule_action): New decls. | |
373 | * src/scan-gram.l (last_string): Now extern, sigh. | |
374 | (last_braced_code_loc): New extern variable. | |
375 | (<INITIAL>"{"): Invoke grammar_midrule_action if the current | |
376 | rule already has an action. | |
377 | (<SC_BRACED_CODE>"}"): Set last_braced_code_loc before returning. | |
378 | * tests/input.at (AT_CHECK_UNUSED_VALUES): | |
379 | Add some tests to check that the above changes fixed the bug. | |
380 | ||
d40ba6c2 PE |
381 | 2006-01-27 Paul Eggert <eggert@cs.ucla.edu> |
382 | ||
383 | * src/reader.c (symbol_should_be_used): Renamed from symbol_typed_p. | |
384 | All used changed. Check whether the symbol has a destructor, | |
385 | not whether it is typed. | |
386 | * tests/input.at (AT_CHECK_UNUSED_VALUES): Add a destructor, so | |
387 | that the values are still reported as unused. All line numbers | |
388 | adjusted. | |
389 | ||
401aace6 PE |
390 | 2006-01-23 Paul Eggert <eggert@cs.ucla.edu> |
391 | ||
392 | Work around a bug in bro 0.8, which underparenthesizes its | |
393 | definition of YYLLOC_DEFAULT. | |
394 | * data/glr.c: Change all uses of YYLLOC_DEFAULT to parenthesize | |
395 | their arguments. | |
396 | * data/lalr1.cc: Likewise. | |
397 | * data/yacc.cc: Likewise. | |
398 | ||
06f01bc4 PE |
399 | 2006-01-22 Paul Eggert <eggert@cs.ucla.edu> |
400 | ||
401aace6 PE |
401 | Work around a bug in Pike 7.0, and give the Pike folks a |
402 | better way to override the usual int widths. | |
403 | * data/yacc.c (b4_int_type): Use yytype_uint8, etc., so that the | |
404 | user can override the types. | |
405 | (short): #undef, to work around a bug in Pike 7.0. | |
406 | (yytype_uint8, yytype_int8, yytype_uint16, yytype_int16): New types. | |
407 | (union yyalloc.yyss): Use yytype_int16 rather than short. | |
408 | All uses changed. | |
409 | (yysigned_char): Remove. | |
410 | * src/parse-gram.y (YYTYPE_UINT8, YYTYPE_INT8, YYTYPE_UINT16): | |
411 | (YYTYPE_INT16): New macros, to test the new facility in yacc.c. | |
412 | * tests/regression.at (Web2c Actions): Adjust to above changes. | |
413 | ||
414 | * src/reader.c (check_and_convert_grammar): New function. | |
415 | (reader): Close the input file even if something went wrong during | |
416 | parsing. Minor file descriptor leak reported by twlevo. | |
417 | ||
06f01bc4 PE |
418 | * src/assoc.c (assoc_to_string): Use a default: abort (); case |
419 | to pacify gcc -Wswitch-default. | |
420 | * src/scan-gram.l (adjust_location): Use a default: break; case | |
421 | to pacify gcc -Wswitch-default. | |
422 | * src/scan-skel.h (skel_get_lineno, skel_get_in, skel_get_out): | |
423 | (skel_get_leng, skel_get_text, skel_set_lineno, skel_set_in): | |
424 | (skel_set_out, skel_get_debug, skel_set_debug, skel_lex_destroy): | |
425 | Move these decls to scan-skel.l, since they don't need to be | |
426 | visible elsewhere. | |
427 | * src/scan-skel.l: Accept the above decls. | |
428 | (skel_lex): New decl, to pacify GCC when unpatched flex 2.5.31 | |
429 | is used. | |
430 | ||
02650b7f PE |
431 | 2006-01-21 Paul Eggert <eggert@cs.ucla.edu> |
432 | ||
433 | * Makefile.cfg (local-checks-to-skip): Add changelog-check, | |
434 | since we don't want to insist on a version number at the start | |
435 | of the changelog every time. | |
436 | * Makefile.maint: Sync from coreutils a bit better. | |
437 | (sc_trailing_blank): Renamed from sc_trailing_space. | |
438 | All uses changed. | |
439 | (sc_no_if_have_config_h, sc_require_config_h): | |
440 | (sc_prohibit_assert_without_use): New rules. | |
441 | (sc_obsolete_symbols): Don't catch Makefile.maint itself. | |
442 | (sc_dd_max_sym_length): Fix leading spaces in rule. | |
443 | (sc_system_h_headers): Prefix with @. | |
444 | (sc_useless_cpp_parens, m4-check): Output line numbers. | |
445 | (changelog-check): Allow version only in head. | |
446 | * data/c.m4: Use "defined FOO" instead of "defined (FOO)", to | |
447 | satisfy new Makefile.maint rule. | |
448 | * data/glr.c: Likewise. | |
449 | * data/glr.cc: Likewise. | |
450 | * data/lalr1.cc: Likewise. | |
451 | * data/yacc.c: Likewise. | |
452 | * lib/ebitsetv.c: Likewise. | |
453 | * lib/lbitset.c: Likewise. | |
454 | * lib/subpipe.c: Likewise. | |
455 | * lib/timevar.c: Likewise. | |
456 | * src/system.h: Likewise. | |
457 | * data/yacc.c (YYSTYPE): Don't generate trailing spaces in output. | |
458 | * djgpp/Makefile.maint: Add copyright notice. | |
459 | * djgpp/README.in: Likewise. | |
460 | * djgpp/config.bat: Likewise. | |
461 | * djgpp/config.site: Likewise. | |
462 | * djgpp/config_h.sed: Likewise. | |
463 | * djgpp/djunpack.bat: Likewise. | |
464 | * djgpp/config.sed: Fix copyright notice to match standard format. | |
465 | * djgpp/subpipe.h: Likewise. | |
466 | * lib/bitsetv-print.c: Likewise. | |
467 | * lib/bitsetv.c: Likewise. | |
468 | * lib/subpipe.h: Likewise. | |
469 | * lib/timevar.c: Likewise. | |
470 | * lib/timevar.h: Likewise. | |
471 | * djgpp/subpipe.c: Use standard recipe for config.h. | |
472 | * lib/abitset.c: Likewise. | |
473 | * lib/bitset.c: Likewise. | |
474 | * lib/bitset_stats.c: Likewise. | |
475 | * lib/bitsetv-print.c: Likewise. | |
476 | * lib/bitsetv.c: Likewise. | |
477 | * lib/ebitsetv.c: Likewise. | |
478 | * lib/get-errno.c: Likewise. | |
479 | * lib/lbitset.c: Likewise. | |
480 | * lib/subpipe.c: Likewise. | |
481 | * lib/timevar.c: Likewise. | |
482 | * lib/vbitset.c: Likewise. | |
483 | * tests/local.at: Likewise. | |
484 | * src/scan-gram.l: Don't include verify.h, since system.h does | |
485 | that for us. | |
486 | * .x-sc_require_config_h: New file. | |
487 | * .x-sc_unmarked_diagnostics: New file. | |
488 | ||
287c78f6 PE |
489 | 2006-01-20 Paul Eggert <eggert@cs.ucla.edu> |
490 | ||
287c78f6 PE |
491 | Be a bit more systematic about using 'abort'. |
492 | * lib/abitset.c (abitset_test): Remove ATTRIBUTE_UNUSED; not needed. | |
493 | * lib/bitset.c (bitset_bytes, bitset_init, bitset_op4_cmp): | |
494 | Put 'default: abort ();' before some other case, to satisfy older | |
495 | pedantic compilers. | |
496 | * lib/bitset_stats.c (bitset_stats_init): Likewise. | |
497 | * lib/ebitset.c (ebitset_elt_find, ebitset_op3_cmp): Likewise. | |
498 | * lib/lbitset.c (lbitset_elt_find, lbitset_op3_cmp): Likewise. | |
499 | * src/conflicts.c (resolve_sr_conflict): Likewise. | |
68cae94e PE |
500 | * src/vcg.c (get_color_str, get_textmode_str, get_shape_str): |
501 | (get_decision_str, get_orientation_str, get_node_alignment_str): | |
502 | (get_arrow_mode_str, get_crossing_type_str, get_view_str): | |
503 | (get_linestyle_str, get_arrowstyle_str): Likewise. | |
504 | * src/conflicts.c (resolve_sr_conflict): | |
505 | Use a default case rather than one for the one remaining enum | |
506 | value, to catch invalid enum values as well. | |
507 | * src/lalr.c (set_goto_map, map_goto): | |
508 | Prefer "assert (FOO);" to "if (!FOO) abort ();". | |
509 | * src/nullable.c (nullable_compute, token_definitions_output): | |
510 | Likewise. | |
511 | * src/reader.c (packgram, reader): Likewise. | |
512 | * src/state.c (transitions_to, state_new, state_reduction_find): | |
513 | Likewise. | |
514 | * src/symtab.c (symbol_user_token_number_set, symbol_make_alias): | |
515 | (symbol_pack): Likewise. | |
516 | * src/tables.c (conflict_row, pack_vector): Likewise. | |
287c78f6 PE |
517 | * src/scan-skel.l (QPUTS): Remove unnecessary parens. |
518 | (BASE_QPUTS, "@output ".*\n): Remove unnecessary asserts. | |
68cae94e PE |
519 | * src/system.h: Don't include <assert.h>. |
520 | (assert): New macro. | |
521 | ||
522 | * doc/bison.texinfo (Prologue, Rules, Actions, Union Decl, Action Decl): | |
523 | (Destructor Decl, Parser Function, Pure Calling): | |
524 | Describe rules for braces inside C code more carefully. | |
287c78f6 | 525 | |
c66dfadd PE |
526 | 2006-01-19 Paul Eggert <eggert@cs.ucla.edu> |
527 | ||
c21493b8 PE |
528 | Fix some porting glitches found by Nelson H. F. Beebe. |
529 | * lib/abitset.c (abitset_resize): Rewrite to avoid warnings from | |
530 | compilers that don't understand that abort () does not return. | |
531 | * src/state.c (transitions_to): Likewise. | |
532 | * m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check | |
533 | that '#include <cstdlib>' works. | |
534 | * src/system.h (INT8_MIN, INT16_MIN, INT32_MIN, INT8_MAX): | |
535 | (INT16_MAX, UINT8_MAX, INT32_MAX, UINT16_MAX, UINT32_MAX): | |
536 | #undef if ! defined __STDC_VERSION__ || __STDC_VERSION__ < 199901, | |
537 | for the benefit of some pre-C99 compilers. | |
538 | ||
b6e3facf PE |
539 | * bootstrap: Undo changes to gnulib files that autoreconf made. |
540 | ||
c66dfadd PE |
541 | Minor fixups to get 'make maintainer-check' to work. |
542 | * configure.ac: Don't use -Wnested-externs, as it's incompatible | |
543 | with the new verify.h implementation. | |
544 | * data/c.m4 (b4_yy_symbol_print_generate): YYUSE (yyoutput). | |
545 | * data/glr.c (YYUSE): Depend on __GNUC__ as well. | |
546 | * data/yacc.c (YYUSE): Likewise. | |
547 | * data/lalr1.cc (yysyntax_error_): YYUSE (yystate). | |
548 | * lib/subpipe.c (end_of_output_subpipe): The args are unused. | |
549 | * src/parse-gram.y (declaration): Don't pass a string constant | |
550 | to a function that expects char *, since GCC might complain | |
551 | about the constant value. | |
552 | * src/reader.c (symbol_typed_p): Add parens to pacify GCC. | |
553 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): #undef yylloc and yylval | |
554 | before #defining them. | |
555 | * tests/glr-regression.at | |
556 | (Incorrectly initialized location for empty right-hand side in GLR): | |
557 | In yyerror, use the msg arg. | |
558 | (Corrupted semantic options if user action cuts parse): | |
559 | (Incorrect lookahead during deterministic GLR): | |
560 | (Incorrect lookahead during nondeterministic GLR): | |
561 | Don't name a local var 'index'; it shadows string.h's 'index'. | |
562 | ||
ed94ef2a AD |
563 | 2006-01-19 Akim Demaille <akim@epita.fr> |
564 | ||
565 | * tests/calc.at (_AT_DATA_CALC_Y): Initialize the whole initial | |
566 | location, not just parts of it. | |
567 | ||
e9ad4aec PE |
568 | 2006-01-18 Paul Eggert <eggert@cs.ucla.edu> |
569 | ||
d6ca7905 PE |
570 | * NEWS: Document the fact that multiple %unions are now allowed. |
571 | * doc/bison.texinfo (Union Decl): Likewise. | |
51cbef6f PE |
572 | * TODO: This feature is now implemented, so remove it from |
573 | the wishlist. | |
d6ca7905 | 574 | |
ef1b70e0 PE |
575 | * Makefile.maint: Merge with coreutils Makefile.maint. |
576 | (CVS_LIST): Use build-aux version if available. | |
577 | (VERSION_REGEXP): New macro. | |
578 | (syntax-check-rules): Add sc_no_if_have_config_h, | |
579 | sc_prohibit_assert_without_use, sc_require_config_h, | |
580 | sc_useless_cpp_parens. | |
581 | (sc_obsolete_symbols): Check for O_NDELAY. | |
582 | (sc_dd_max_sym_length): Track coreutils. | |
583 | (sc_unmarked_diagnostics): Look in all files, not just *.c. | |
584 | (sc_useless_cpp_parens): New rule. | |
585 | (news-date-check): Look for version or today's date. | |
586 | (changelog-check): Don't require version number near head. | |
587 | (copyright-check): Use current year instead of hardwiring 2005. | |
588 | (my-distcheck): Depend on $(release_archive_dir)/$(prev-tgz). | |
589 | (announcement): Add --gpg-key-ID. | |
590 | ||
591 | * djgpp/config.sed: Add copyright notice, and replace "filesystem" | |
592 | with "file system". | |
593 | ||
2073ce56 | 594 | Avoid undefined behavior that addressed just before the start of an |
e9ad4aec PE |
595 | array. Problem reported by twlevo. |
596 | * src/reader.c (packgram): Prepend a new sentinel before ritem. | |
597 | * src/lalr.c (build_relations): Rely on new sentinel. | |
598 | * src/gram.c (gram_free): Adjust to new sentinel. | |
599 | ||
b7691f15 JD |
600 | 2006-01-12 Joel E. Denny <jdenny@ces.clemson.edu> |
601 | ||
602 | * data/glr.c (yyGLRStateSet): Rename yylookaheadStatuses to | |
603 | yylookaheadNeeds. All uses updated. | |
604 | (yysplitStack): Rename local yynewLookaheadStatuses to | |
605 | yynewLookaheadNeeds. | |
606 | * data/glr-regression.at (Incorrect lookahead during nondeterministic | |
607 | GLR): In comments, change `lookahead status' to `lookahead need'. | |
608 | ||
ddee1b06 PH |
609 | 2006-01-11 Paul Hilfinger <hilfingr@tully.CS.Berkeley.EDU> |
610 | ||
611 | * data/glr.c (yysplitStack): A little stylistic rewrite. | |
612 | ||
12f4614d PH |
613 | 2006-01-11 Paul Hilfinger <hilfingr@tully.CS.Berkeley.EDU> |
614 | ||
615 | * data/glr.c (yyaddDeferredAction): Flesh out the comment. | |
616 | ||
32c29292 JD |
617 | 2006-01-11 Joel E. Denny <jdenny@ces.clemson.edu> |
618 | ||
619 | * doc/bison.texinfo: Fix some typos. | |
620 | (GLR Semantic Actions): New subsection discussing special | |
621 | considerations because GLR semantic actions might be deferred. | |
622 | (Actions): Mention look-ahead usage of yylval. | |
623 | (Actions and Locations): Mention look-ahead usage of yylloc. | |
624 | (Special Features for Use in Actions): Add YYEOF entry and mention it | |
625 | in the yychar entry. | |
626 | In the yychar entry, remove mention of the local yychar case (pure | |
627 | parser) since this is irrelevant information when writing semantic | |
628 | actions and since it's already discussed in `Bison Symbols' where | |
629 | yychar is otherwise described as an external variable. | |
630 | In the yychar entry, don't call it the `current' look-ahead since it | |
631 | isn't when semantic actions are deferred. | |
632 | In the yychar and yyclearin entries, add note about deferred semantic | |
633 | actions. | |
634 | Add yylloc and yylval entries discussing look-ahead usage. | |
635 | (Look-Ahead Tokens): When discussing yychar, don't call it the | |
636 | `current' look-ahead, and do mention yylval and yylloc. | |
637 | (Error Recovery): Cross-reference `Action Features' when mentioning | |
638 | yyclearin. | |
639 | (Bison Symbols): In the yychar entry, don't call it the `current' | |
640 | look-ahead. | |
641 | In the yylloc and yylval entries, mention look-ahead usage. | |
642 | ||
de366a2f | 643 | 2006-01-08 Joel E. Denny <jdenny@ces.clemson.edu> |
2781dbd1 JD |
644 | |
645 | * tests/glr-regression.at: Update copyright year to 2006. | |
646 | ||
bf70fa87 JD |
647 | 2006-01-06 Joel E. Denny <jdenny@ces.clemson.edu> |
648 | ||
649 | * data/glr.c (yyGLRStateSet): Add yybool* yylookaheadStatuses member to | |
650 | use during nondeterministic operation to track which stacks have | |
651 | actually needed the current lookahead. | |
652 | (yyinitStateSet, yyfreeStateSet, yyremoveDeletes, yysplitStack): | |
653 | Allocate, deallocate, resize, and otherwise shuffle space for | |
654 | yylookaheadStatuses in parallel with yystates member of yyGLRStateSet. | |
655 | (yysplitStack, yyprocessOneStack, yyparse): Set lookahead status | |
656 | appropriately during nondeterministic operation. | |
657 | (yySemanticOption): Add int yyrawchar, YYSTYPE yyval, and YYLTYPE yyloc | |
658 | members to store the current lookahead to be used by the deferred | |
659 | user action. | |
660 | (yyaddDeferredAction): Add size_t yyk parameter specifying the stack | |
661 | from which the RHS is taken. Set the lookahead members of the new | |
662 | yySemanticOption according to the lookahead status for stack yyk. | |
663 | (yyglrShiftDefer, yyglrReduce): Pass yyk parameter on to | |
664 | yyaddDeferredAction. | |
665 | (yyresolveAction): Set yychar, yylval, and yylloc to the lookahead | |
666 | members of yySemanticOption before invoking yyuserAction, and then set | |
667 | them back to their current values afterward. | |
668 | (yyparse): Set yychar = YYEMPTY where yytoken = YYEMPTY. | |
669 | (yyreportAmbiguity): Add /*ARGSUSED*/ to pacify lint. | |
670 | * tests/glr-regression.at: Remove `.' from the ends of recent test case | |
671 | titles for consistency. | |
672 | (Leaked merged semantic value if user action cuts parse): In order to | |
673 | suppress lint warnings, use arguments in merge function, and assign | |
674 | char value < 128 in main. | |
675 | (Incorrect lookahead during deterministic GLR): New test case. | |
676 | (Incorrect lookahead during nondeterministic GLR): New test case. | |
677 | ||
05449a2c JD |
678 | 2006-01-06 Joel E. Denny <jdenny@ces.clemson.edu> |
679 | ||
de366a2f | 680 | * data/c.m4 (b4_yy_symbol_print_generate): In yy_symbol_print, accept |
05449a2c JD |
681 | !yyvaluep as signal that no semantic value is available to print. |
682 | * data/glr.c (yydestroyGLRState): If state is not resolved, don't try | |
683 | to print a semantic value. | |
684 | ||
4158e0a1 | 685 | 2006-01-06 Joel E. Denny <jdenny@ces.clemson.edu> |
fd2493f7 | 686 | |
4158e0a1 JD |
687 | * tests/glr-regression.at: For consistency with my newer test cases, |
688 | don't thank myself. | |
689 | ||
d659304d JD |
690 | 2006-01-05 Joel E. Denny <jdenny@ces.clemson.edu> |
691 | ||
692 | * data/glr.c (yyresolveValue): When merging semantic options, if at | |
693 | least one user action succeeds but a later one cuts the parse, then | |
694 | destroy the semantic value before returning rather than leaking it. | |
695 | (yyresolveStates): If a user action cuts the parse and thus | |
696 | yyresolveValue fails, ignore the (unset) semantic value rather than | |
697 | corrupting the yyGLRState, and empty the semantic options list since | |
698 | the user actions should have called all necessary destructors. | |
699 | Simplify code with YYCHK. | |
700 | * tests/glr-regression.at (Corrupted semantic options if user action | |
701 | cuts parse): New test case. | |
702 | (Undesirable destructors if user action cuts parse): New test case. | |
703 | Before applying any of this patch, this test case never actually failed | |
704 | for me... but only because the corrupted semantic options usually | |
705 | masked this bug. | |
706 | (Leaked merged semantic value if user action cuts parse): New test | |
707 | case. | |
708 | ||
6ec2c0f2 AD |
709 | 2006-01-05 Akim Demaille <akim@epita.fr> |
710 | ||
711 | * src/reader.c, src/symlist.h, src/symlist.c: s/mid_rule/midrule/. | |
712 | ||
1b9c21fb PE |
713 | 2006-01-04 Paul Eggert <eggert@cs.ucla.edu> |
714 | ||
715 | * data/c.m4 (b4_c_modern): New macro, with a new provision for | |
716 | _MSC_VER. Problem reported by Cenzato Marco. | |
717 | (b4_c_function_def): Use it. | |
718 | * data/yacc.c (YYMODERN_C): Remove. All uses replaced by | |
719 | b4_c_modern. | |
720 | (yystrlen, yystpcpy, yyparse): Use b4_c_function... macros rather | |
721 | than rolling our own. | |
722 | ||
84866159 AD |
723 | 2006-01-04 Akim Demaille <akim@epita.fr> |
724 | ||
725 | Also warn about non-used mid-rule values. | |
726 | * src/symlist.h, src/symlist.c (symbol_list): Add a mid_rule | |
727 | member. | |
728 | (symbol_list_new): Adjust. | |
729 | * src/reader.c (symbol_typed_p): New. | |
730 | (grammar_rule_check): Use it. | |
731 | (grammar_midrule_action): Bind a mid-rule LHS to its rule. | |
732 | Check its rule. | |
733 | * tests/input.at (AT_CHECK_UNUSED_VALUES): New. | |
734 | Use it. | |
735 | * tests/actions.at (Exotic Dollars): Adjust. | |
736 | ||
378f4bd8 AD |
737 | 2006-01-04 Akim Demaille <akim@epita.fr> |
738 | ||
739 | * src/reader.c (grammar_midrule_action): If $$ is set in a | |
740 | mid-rule, move the `used' bit to its lhs. | |
741 | * tests/input.at (Unused values): New. | |
742 | * tests/actions.at (Exotic Dollars): Adjust: exp is not typed. | |
743 | ||
e2a21b6f PE |
744 | 2006-01-03 Paul Eggert <eggert@cs.ucla.edu> |
745 | ||
54662697 PE |
746 | * doc/bison.texinfo (Bison Options): Say more accurately what |
747 | --yacc does. | |
748 | * src/parse-gram.y (rules_or_grammar_declaration): Don't complain | |
749 | about declarations in the grammar when in Yacc mode, as POSIX does | |
750 | not require a diagnostic when the grammar uses extensions. | |
751 | ||
752 | * src/reduce.c (reduce_grammar): Remove unnecessary cast to bool. | |
753 | ||
073f9288 PE |
754 | Warn about dubious constructions like "%token T T". |
755 | Reported by twlevo. | |
756 | * src/symtab.h (struct symbol.declared): New member. | |
757 | * src/symtab.c (symbol_new): Initialize it to false. | |
758 | (symbol_class_set): New arg DECLARING, specifying whether | |
759 | this is a declaration that we want to warn about, if there | |
760 | is more than one of them. All uses changed. | |
761 | ||
1221b78a PE |
762 | * data/glr.c, data/glr.cc, data/lalr1.cc, data/yacc.c: |
763 | Allow multiple %union directives, whose contents concatenate. | |
764 | * src/parse-gram.y (grammar_declaration): Likewise. | |
765 | Use muscle_code_grow, so that we don't need stype_line any more. | |
766 | All uses changed. | |
767 | ||
768 | * src/muscle_tab.c (muscle_grow): Fix comment. | |
769 | ||
e2a21b6f PE |
770 | * ChangeLog, data/c.m4, data/glr.c, data/glr.cc, data/location.cc: |
771 | * data/yacc.c, src/getargs.c, src/output.c, tests/cxx-type.at: | |
772 | Update copyright year to 2006. | |
773 | ||
8f7e3cf9 AD |
774 | 2006-01-03 Akim Demaille <akim@epita.fr> |
775 | ||
776 | Have glr.cc pass (some of) the calc.at tests. | |
777 | * data/glr.cc (b4_parse_param_orig): New. | |
778 | (b4_parse_param): Improve its definition, and bound it more | |
779 | clearly in the skeleton. | |
780 | (b4_epilogue): Append, instead of prepending, in order to keep | |
781 | #line consistency. | |
782 | Simplify the generation of auxiliary functions: locations and | |
783 | purity are mandated. | |
784 | (b4_global_tokens_and_yystype): Honor it. | |
785 | * data/location.cc (c++.m4): Don't include it. | |
786 | * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Define AT_GLR_CC_IF | |
787 | and AT_SKEL_CC_IF. | |
788 | * tests/calc.at (AT_CHECK_CALC): Rely on AT_SKEL_CC_IF instead of | |
789 | AT_LALR1_CC_IF. | |
790 | Be sure to initialize the first position's filename. | |
791 | (AT_CHECK_CALC_LALR1_CC): Add %location and %defines, they are | |
792 | mandated anyway. | |
793 | (AT_CHECK_CALC_GLR_CC): New. | |
794 | Use it to exercise glr.cc as a lalr1.cc drop-in replacement. | |
795 | ||
3953ed88 AD |
796 | 2006-01-02 Akim Demaille <akim@epita.fr> |
797 | ||
798 | * src/output.c (output_skeleton): Don't hard wire the inclusion of | |
799 | c.m4. | |
0a96ba81 | 800 | * data/c++.m4, data/glr.c, data/yacc.c: Include c.m4. |
3953ed88 AD |
801 | * data/glr.cc: Do not include stack.hh. |
802 | ||
9ecafbbf AD |
803 | 2006-01-02 Joel E. Denny <jdenny@ces.clemson.edu> |
804 | ||
805 | * data/glr.c: Reformat whitespace with tabs. | |
806 | (b4_lpure_formals): Remove this unused m4 macro. | |
807 | * tests/cxx-type.at: Reformat whitespace with tabs. | |
808 | (_AT_TEST_GLR_CXXTYPES): In union Node, rename node_info to nodeInfo | |
809 | since it's a member. Rename type to isNterm for clarity. | |
810 | ||
c4d497a0 AD |
811 | 2005-12-29 Akim <akim@sulaco.local> |
812 | ||
813 | Let glr.cc catch up with symbol_value_print. | |
814 | * data/glr.cc (b4_yysymprint_generate): Replace by... | |
815 | (b4_yy_symbol_print_generate): this. | |
816 | (yy_symbol_print, yy_symbol_value_print): Declare them. | |
817 | ||
4517da37 PE |
818 | 2005-12-28 Paul Eggert <eggert@cs.ucla.edu> |
819 | ||
820 | * src/location.h (boundary): Note that a line or column equal | |
821 | to INT_MAX indicates an overflow. | |
822 | * src/scan-gram.l: Include verify.h. Don't include get-errno.h. | |
823 | (rule_length_overflow, increment_rule_length, add_column_width): | |
824 | New functions. | |
825 | (<INITIAL>{id}, <SC_ESCAPED_STRING>"\"", <SC_ESCAPED_CHARACTER>"'"): | |
826 | (<SC_BRACED_CODE>"}"): | |
827 | Use increment_rule_length rather than incrementing it by hand. | |
828 | (adjust_location, handle_syncline): Diagnose overflow. | |
829 | (handle_action_dollar, handle_action_at): | |
830 | Fix bug with monstrosities like $-2147483648. | |
831 | Remove now-unnecessary checks. | |
832 | (scan_integer): Verify assumptions and remove now-unnecessary checks. | |
833 | (convert_ucn_to_byte): Verify assumptions. | |
834 | (handle_syncline): New arg LOC. All callers changed. | |
835 | Don't store through a value derived from char const * pointer. | |
836 | ||
837 | * src/reader.c (grammar_rule_check): Rewrite slightly to avoid | |
838 | GCC warnings. | |
839 | ||
e3233bf6 PE |
840 | 2005-12-27 Paul Eggert <eggert@cs.ucla.edu> |
841 | ||
842 | * src/reader.c (grammar_midrule_action, grammar_symbol_append): | |
843 | Remove unnecessary forward static decls. | |
844 | ||
8f3596a6 AD |
845 | 2005-12-27 Akim Demaille <akim@epita.fr> |
846 | ||
847 | * src/reader.c (grammar_current_rule_check): Also check that $$ | |
848 | is used. | |
849 | Take the rule to check as argument, hence rename as... | |
850 | (grammar_rule_check): this. | |
851 | * src/reader.h, src/reader.c (grammar_rule_begin, grammar_rule_end): | |
852 | Rename as... | |
853 | (grammar_rule_begin, grammar_rule_end): these, for consistency. | |
854 | (grammar_midrule_action, grammar_symbol_append): Now static. | |
855 | * tests/torture.at (input): Don't rely on the default action | |
856 | being always performed. | |
857 | * tests/calc.at: "Set" $$ even when the action is "cut" with | |
858 | YYERROR or other. | |
859 | * tests/actions.at (Exotic Dollars): Instead of using unused | |
860 | values, check that the warning is issued. | |
861 | ||
721be13c PE |
862 | 2005-12-22 Paul Eggert <eggert@cs.ucla.edu> |
863 | ||
864 | * NEWS: Improve wording for unused-value warnings. | |
865 | ||
a0af42fc AD |
866 | 2005-12-22 Akim Demaille <akim@epita.fr> |
867 | ||
868 | * data/lalr1.cc, data/yacc.c, data/glr.c, data/c.m4 | |
869 | (b4_yysymprint_generate): Rename as... | |
870 | (b4_yy_symbol_print_generate): this. | |
871 | Generate yy_symbol_print instead of yysymprint. | |
872 | Generate also yy_symbol_value_print, and use it. | |
873 | ||
affac613 AD |
874 | 2005-12-22 Akim Demaille <akim@epita.fr> |
875 | ||
721be13c | 876 | * NEWS: Warn about unused values. |
affac613 AD |
877 | * src/symlist.h, src/symlist.c (symbol_list, symbol_list_new): Add |
878 | a `used' member. | |
879 | (symbol_list_n_get, symbol_list_n_used_set): New. | |
880 | (symbol_list_n_type_name_get): Use symbol_list_n_get. | |
881 | * src/scan-gram.l (handle_action_dollar): Flag used symbols. | |
882 | * src/reader.c (grammar_current_rule_check): Check that values are | |
883 | used. | |
884 | * src/symtab.c (symbol_print): Accept 0. | |
885 | * tests/existing.at: Remove the type information. | |
886 | Empty the actions. | |
887 | Remove useless actions (beware of mid-rule actions: perl -000 | |
888 | -pi -e 's/\s*\{\}(?=[\n\s]*[|;])//g'). | |
889 | * tests/actions.at (Exotic Dollars): Use unused values. | |
890 | * tests/calc.at: Likewise. | |
891 | * tests/glr-regression.at (No users destructors if stack 0 deleted): | |
892 | Likewise. | |
893 | ||
894 | * src/gram.c (rule_useful_p, rule_never_reduced_p): Use | |
895 | rule_useful_p. | |
896 | ||
9d9b8b70 PE |
897 | 2005-12-21 Paul Eggert <eggert@cs.ucla.edu> |
898 | ||
8bb4c753 PE |
899 | Undo 2005-12-01 tentative license wording change. The wording is |
900 | still being reviewed by the lawyers, and we don't want to wait for | |
901 | them before publishing a test release. For now, revert to the | |
902 | previous wording. | |
903 | * NEWS: Undo 2005-12-01 change. | |
904 | * data/glr.c: Revert to previous license wording. | |
905 | * data/glr.cc: Likewise. | |
906 | * data/lalr1.cc: Likewise. | |
907 | * data/location.cc: Likewise. | |
908 | * data/yacc.c: Likewise. | |
909 | ||
9d9b8b70 PE |
910 | * NEWS: Reword %destructor vs YYABORT etc. |
911 | * data/glr.c: Use American spacing, for consistency. | |
912 | * data/glr.cc: Likewise. | |
913 | * data/lalr1.cc: Likewise. | |
914 | * data/yacc.c: Likewise. | |
915 | * data/yacc.c: Reformat comments slightly. | |
916 | * doc/bison.texinfo: Replace "non-" with "non" when that makes sense, | |
917 | for consistency. Fix some spelling errors and reword recently-included | |
918 | text slightly. | |
919 | * tests/cxx-type.at: Cast results of malloc, for C++. | |
920 | ||
2c3b392a AD |
921 | 2005-12-21 Joel E. Denny <address@hidden> |
922 | ||
923 | * tests/cxx-type.at: Construct a tree, count the parents of shared | |
924 | nodes, and free each node once and only once. Previously, the memory | |
925 | for semantic values was leaked instead. | |
926 | ||
d6cff4dc AD |
927 | 2005-12-21 Joel E. Denny <address@hidden> |
928 | ||
929 | * data/glr.c (struct yyGLRStack): If pure, add yyval and yyloc members. | |
930 | (yylval, yylloc): If pure, #define to yystackp->yyval and | |
931 | yystackp->yyloc similar to yychar and yynerrs. | |
932 | (yyparse): If pure, remove local yylval and yylloc. Add local | |
933 | yystackp to accommodate pure definitions of yylval and yylloc. | |
934 | (b4_lex_param, b4_lyyerror_args, b4_lpure_args): If pure, change | |
935 | yylvalp and yyllocp to &yylval and &yylloc. | |
936 | (nerrs, char, lval, lloc): If pure, add #define's for b4_prefix[] | |
937 | namespace. Previously, nerrs and char were missing, but lval and lloc | |
938 | weren't necessary. | |
939 | (yyprocessOneStack, yyreportSyntaxError, yyrecoverSyntaxError): Remove | |
940 | yylvalp and yyllocp parameters since, if pure, these are now always | |
941 | accessible through yystackp. If not pure, they are still accessible | |
942 | globally. | |
943 | * data/glr.c, data/yacc.c (YYLLOC_DEFAULT): Change `if (N)' to | |
944 | `if (YYID (N))' to pacify lint. | |
945 | ||
a85284cf AD |
946 | 2005-12-21 Akim Demaille <akim@epita.fr> |
947 | ||
948 | YYACCEPT, YYERROR, and YYABORT, as user actions, should not | |
949 | destroy the RHS symbols of a rule. | |
950 | * data/yacc.c (yylen): Initialize to 0. | |
951 | Keep its value to the number of items to possibly shift. | |
952 | In particular, a regular successful parse that ends on YYFINAL by | |
953 | a (internal) YYACCEPT must not have yylen != 0. | |
954 | (yyerrorlab, yyreturn): Pop the RHS. | |
955 | Reorder a bit to emphasize the `shifting' bits of code. | |
956 | (YYPOPSTACK): Now accept a number of items to pop. | |
957 | * data/lalr1.cc: Likewise. | |
958 | * data/glr.c: Formatting changes. | |
959 | Use goto instead of fall through. | |
960 | * doc/bison.texinfo (Destructor Decl): Complete. | |
961 | ||
d508c281 JMG |
962 | 2005-12-20 Juan Manuel Guerrero <juan.guerrero@gmx.de> |
963 | ||
964 | * Makefile.am: DJGPP specific files added to EXTRA_DIST. | |
965 | * djgpp/Makefile.maint: Fix PACKAGE variable computation. | |
966 | * djgpp/config.bat: Replace every occurence of the file name | |
967 | scan-gram-c.c with c-scan-gram.c. The same for scan-skel-c.c with | |
968 | c-scan-skel.c to conform with the 8.3 file name restriction on MSDOS. | |
969 | * djgpp/config.sed: Replace every occurence of the file name | |
970 | scan-gram-c.c with c-scan-gram.c. The same for scan-skel-c.c with | |
971 | c-scan-skel.c to conform with the 8.3 file name restriction on MSDOS. | |
972 | * djgpp/djunpack.bat: DJGPP specific file. | |
973 | * djgpp/fnchange.lst: DJGPP specific file. | |
974 | * djgpp/README.in: Add new information about how to unpack the bison | |
975 | source on MSDOS and other systems which have 8.3 file name restrictions | |
976 | using djunpack.bat and fnchange.lst. | |
977 | ||
3e7a2cd9 PE |
978 | 2005-12-12 Paul Eggert <eggert@cs.ucla.edu> |
979 | ||
980 | * bootstrap (build_cvs_prefix): Remove; unused. | |
981 | (CVS_PREFIX): Adjust to yesterday's Savannah reorganization | |
982 | when getting gnulib. | |
983 | ||
984 | 2005-12-12 "Joel E. Denny" <jdenny@ces.clemson.edu> | |
985 | ||
986 | * data/glr.c: Reorder typedef declarations for structs to match order | |
987 | of struct declarations. | |
988 | Rename yystack everywhere to yystackp except in yyparse where it's not | |
989 | a pointer. | |
990 | (yyglrShift): Change parameter YYSTYPE yysval to YYSTYPE* yyvalp for | |
991 | consistency. | |
992 | (yyis_table_ninf): Change 0 to YYID (0) to pacify lint. | |
993 | (yyreportSyntaxError): Add /*ARGSUSED*/ to pacify lint. | |
994 | (yyparse): Change while (yytrue) to while ( YYID (yytrue)) to pacify | |
995 | lint. | |
996 | ||
877519f8 PE |
997 | 2005-12-09 Paul Eggert <eggert@cs.ucla.edu> |
998 | ||
0eca5a39 PE |
999 | * tests/sets.at (Accept): Fix typos in regular expression used to |
1000 | sed out the final state number. | |
1001 | ||
2cec9080 PE |
1002 | Work around portability problem on Solaris 10: flex-generated |
1003 | files include <stdio.h> before <config.h>, which messes up | |
1004 | because the latter defines __EXTENSIONS__. Address the problem | |
1005 | by creating two new little files that include <config.h> first, | |
1006 | then include the flex-generated files. Rewrite everyone else | |
1007 | to include <config.h> first, as well. | |
1008 | * lib/timevar.c: Always include "config.h". | |
1009 | * src/Makefile.am (bison_SOURCES): Replace scan-gram.l with | |
1010 | scan-gram-c.c, and scan-skel.l with scan-skel-c.c. | |
1011 | (EXTRA_bison_SOURCES): New macro. | |
1012 | * src/scan-gram-c.c, src/scan-skel-c.c: New files. | |
1013 | * src/system.h: Don't include config.h. | |
1014 | * src/LR0.c: Include <config.h> first. | |
1015 | * src/assoc.c: Likewise. | |
1016 | * src/closure.c: Likewise. | |
1017 | * src/complain.c: Likewise. | |
1018 | * src/conflicts.c: Likewise. | |
1019 | * src/derives.c: Likewise. | |
1020 | * src/files.c: Likewise. | |
1021 | * src/getargs.c: Likewise. | |
1022 | * src/gram.c: Likewise. | |
1023 | * src/lalr.c: Likewise. | |
1024 | * src/location.c: Likewise. | |
1025 | * src/main.c: Likewise. | |
1026 | * src/muscle_tab.c: Likewise. | |
1027 | * src/nullable.c: Likewise. | |
1028 | * src/output.c: Likewise. | |
1029 | * src/parse-gram.y: Likewise. | |
1030 | * src/print.c: Likewise. | |
1031 | * src/print_graph.c: Likewise. | |
1032 | * src/reader.c: Likewise. | |
1033 | * src/reduce.c: Likewise. | |
1034 | * src/relation.c: Likewise. | |
1035 | * src/state.c: Likewise. | |
1036 | * src/symlist.c: Likewise. | |
1037 | * src/symtab.c: Likewise. | |
1038 | * src/tables.c: Likewise. | |
1039 | * src/uniqstr.c: Likewise. | |
1040 | * src/vcg.c: Likewise. | |
1041 | ||
877519f8 PE |
1042 | * src/parse-gram.y: Fix minor problems uncovered by lint. |
1043 | (current_lhs, current_lhs_location): Now static. | |
1044 | (current_assoc): Remove unused variable. | |
1045 | ||
1046 | Cleanups so that Bison-generated parsers have less lint. | |
1047 | * data/c.m4 (b4_yydestruct_generate, b4_yysymprint_generate): | |
1048 | Prepend /*ARGSUSED*/, for lint's sake. | |
1049 | * data/glr.c (YYUSE): Properly parenthesize, and use an alternate | |
1050 | definition if 'lint' is defined. | |
1051 | (YYID): New macro (or function, if lint). | |
1052 | All uses of /*CONSTCOND*/0 replaced by YYID(0). | |
1053 | * data/yacc.c: Likewise. | |
1054 | * data/glr.c (yyuserAction, yyuserMerge, yy_reduce_print): | |
1055 | (yyrecoverSyntaxError): Prepend /*ARGSUSED*/. | |
1056 | * data/glr.cc (YYLLOC_DEFAULT): Omit /*CONSTCOND*/ since this code | |
1057 | is C++ only. | |
1058 | * data/lalr1.cc (YYUSE): Just use a cast, since this code is C++ only. | |
1059 | * data/yacc.c (YYSTACK_FREE) [defined YYSTACK_ALLOC]: | |
1060 | Use YYID(0) rather than 0, for lint. | |
1061 | (yystrlen): Rewrite to avoid lint warning about ptrdiff_t overflow. | |
1062 | (yysyntax_error): Rewrite to avoid lint warnings about parenthesization. | |
1063 | ||
f5228370 PE |
1064 | 2005-12-07 Paul Eggert <eggert@cs.ucla.edu> |
1065 | ||
1066 | * tests/glr-regression.at | |
1067 | (Improper handling of embedded actions and dollar(-N) in GLR parsers): | |
1068 | Close memory leak reported by twlevo. | |
1069 | ||
69ce078b PE |
1070 | 2005-12-06 "Joel E. Denny" <jdenny@ces.clemson.edu> |
1071 | ||
6ff99711 PE |
1072 | * data/glr.c (yyprocessOneStack, yyparse): Synchronize the shift for |
1073 | all stacks. | |
1074 | (yyparse): Iterate another stack in order to call user destructors. | |
69ce078b PE |
1075 | * tests/glr-regression.at (No users destructors if stack 0 deleted): |
1076 | New test case. | |
1077 | (Duplicated user destructor for lookahead): This test now is expected | |
1078 | to succeed. | |
1079 | ||
af3412cd PE |
1080 | 2005-12-01 Paul Eggert <eggert@cs.ucla.edu> |
1081 | ||
32b5b719 | 1082 | * NEWS: Document the following change. |
af3412cd PE |
1083 | * data/yacc.c: Say "parser skeleton" rather than "file", since |
1084 | it's no longer just a file. | |
1085 | * data/glr.c: Grant a special exception for C GLR parsers, that | |
1086 | reads like the already-existing exception for C LALR(1) parsers. | |
1087 | * data/glr.cc: Likewise. | |
1088 | * data/lalr1.cc: Likewise. | |
1089 | * data/location.cc: Likewise. | |
1090 | * data/yacc.c: Reword the "written by" statement to clarify that | |
1091 | it was the parser skeleton, not the entire output file. | |
1092 | * data/glr.c: Written by Paul Hilfinger. | |
1093 | * data/glr.cc: Written by Akim Demaille. | |
1094 | * data/lalr1.cc: Likewise. | |
1095 | ||
035aa4a0 PE |
1096 | 2005-11-18 Paul Eggert <eggert@cs.ucla.edu> |
1097 | ||
d9963c85 PE |
1098 | * data/yacc.c (yy_reduce_print, YY_REDUCE_PRINT): |
1099 | Fix typos in previous change that broke 'make check'. | |
1100 | YY_REDUCE_PRINT cannot be a pseudo-varargs macro; that isn't | |
1101 | supported in C. | |
1102 | * tests/calc.at (_AT_CHECK_CALC,_AT_CHECK_CALC_ERROR): | |
1103 | Don't check NUM-STDERR-LINES, since the output format is fluctuating. | |
1104 | We can revert this once things settle down. | |
1105 | ||
035aa4a0 PE |
1106 | * src/conflicts.c (conflicts_print): Don't print file name twice |
1107 | when %expect fails because there were no conflicts. | |
1108 | * doc/bison.texinfo (Expect Decl): Tighten up wording in previous | |
1109 | change. | |
1110 | * tests/conflicts.at (%expect not enough, %expect too much): | |
1111 | (%expect with reduce conflicts): Adjust to new behavior. | |
1112 | ||
1113 | 2005-11-18 Akim Demaille <akim@epita.fr> | |
1114 | ||
1115 | * src/conflicts.c (conflicts_print): Unsatisfied %expectation are | |
1116 | errors. | |
1117 | * NEWS: Document this. | |
1118 | * doc/bison.texinfo (Expect Decl): Likewise. | |
1119 | ||
d1ff7a7c AD |
1120 | 2005-11-16 Akim Demaille <akim@epita.fr> |
1121 | ||
1122 | Generalize the display of semantic values and locations in traces. | |
1123 | * data/glr.c (yy_reduce_print): Fix indices (again). | |
1124 | * data/c++.m4 (b4_rhs_value, b4_rhs_location): Don't expect | |
1125 | literal integers. | |
1126 | * data/lalr1.cc (yyreduce_print): Rename as... | |
1127 | (yy_reduce_print): this. | |
1128 | Display values and locations. | |
1129 | * data/yacc.c (yy_reduce_print): Likewise. | |
1130 | (YY_REDUCE_PRINT): Adjust to pass the required arguments. | |
1131 | (yysymprint): Move higher to be visible from yy_reduce_print). | |
1132 | (yyparse): Adjust. | |
1133 | * tests/calc.at: Adjust the expected length of the traces. | |
1134 | ||
6de5398d AD |
1135 | 2005-11-14 Akim Demaille <akim@epita.fr> |
1136 | ||
1137 | * data/glr.c (yy_reduce_print): The loop was quite wrong: type are | |
1138 | from 1 to N, while values and location start at 0. | |
1139 | (b4_rhs_location, b4_rhs_value): Add parens around $1 and $2. | |
1140 | ||
a1373f55 AD |
1141 | 2005-11-14 Akim Demaille <akim@epita.fr> |
1142 | ||
1143 | * data/glr.c (yy_reduce_print): Fix the $ number. | |
1144 | ||
613d8952 AD |
1145 | 2005-11-14 Akim Demaille <akim@epita.fr> |
1146 | ||
1147 | "Use" parse parameters. | |
1148 | * data/c.m4 (b4_parse_param_for, b4_parse_param_use): New. | |
1149 | * data/glr.c, data/glr.cc: Use them. | |
1150 | * data/glr.c (YYUSE): Have a C++ definition that supports | |
1151 | non-pointer types. | |
1152 | ||
b2741627 AD |
1153 | 2005-11-14 Akim Demaille <akim@epita.fr> |
1154 | ||
1155 | * data/glr.c (yyexpandGLRStack): Declare only if defined. | |
1156 | ||
5059b5c8 AD |
1157 | 2005-11-14 Akim Demaille <akim@epita.fr> |
1158 | ||
42249483 AD |
1159 | * data/glr.cc: New. |
1160 | * data/m4sugar/m4sugar.m4 (m4_prepend): New. | |
5059b5c8 | 1161 | |
4626a15d AD |
1162 | 2005-11-12 Akim Demaille <akim@epita.fr> |
1163 | ||
1164 | Let position and location be PODs. | |
1165 | * data/location.cc (position::initialize, location::initialize): New. | |
1166 | (position::position, location::location): Define only if | |
1167 | b4_location_constructors is defined. | |
1168 | * data/lalr1.cc (b4_location_constructors): Define it for backward | |
1169 | compatibility. | |
1170 | * doc/bison.texinfo (Initial Action Decl): Use initialize. | |
1171 | ||
1172 | 2005-11-12 Akim Demaille <akim@epita.fr> | |
98ae9643 AD |
1173 | |
1174 | * data/lalr1.cc: Move the body of the ctor and dtor into the | |
1175 | parser file (instead of the header). | |
1176 | Wrap the implementations in a "namespace yy". | |
1177 | ||
1178 | 2005-11-12 Akim Demaille <akim@epita.fr> | |
1179 | ||
1180 | Have glr.c include its header file when created. | |
1181 | * data/glr.c (b4_shared_declarations): New. | |
1182 | Output them verbatim in the parser if !%defines, otherwise | |
1183 | output then in the header file, and include it instead. | |
1184 | ||
1989d947 AD |
1185 | 2005-11-11 Akim Demaille <akim@epita.fr> |
1186 | ||
1187 | * data/glr.c: Comment changes. | |
1188 | ||
1189 | 2005-11-11 Akim Demaille <akim@epita.fr> | |
62b08cfc AD |
1190 | |
1191 | When yydebug, report semantic and location values for reductions. | |
1192 | * data/glr.c (yy_reduce_print): Report the semantic values and the | |
1193 | locations. | |
1194 | (YY_REDUCE_PRINT): Adjust. | |
1195 | (yyglrReduce): Use them. | |
1196 | (b4_rhs_value, b4_rhs_location): Remove m4_eval invocations. | |
1197 | * data/c.m4 (b4_yysymprint_generate): Specify the const arguments. | |
1198 | * tests/calc.at (_AT_CHECK_CALC_ERROR): Remove the reduction | |
1199 | traces. | |
1200 | ||
02998094 AD |
1201 | 2005-11-10 Akim Demaille <akim@epita.fr> |
1202 | ||
1203 | * data/glr.c (yynewGLRStackItem, YY_RESERVE_GLRSTACK): New. | |
1204 | (yyaddDeferredAction, yyglrShift, yyglrShiftDefer): Use them. | |
1205 | (yyexpandGLRStack, YYRELOC): Define only when YYSTACKEXPANDABLE. | |
1206 | ||
5210672f PE |
1207 | 2005-11-09 Albert Chin-A-Young <china@thewrittenword.com> |
1208 | ||
1209 | * m4/cxx.m4, examples/Makefile.am: Don't build | |
1210 | examples/calc++ if no C++ compiler is available. (trivial change) | |
1211 | ||
a8991a1d AD |
1212 | 2005-11-09 Akim Demaille <akim@epita.fr> |
1213 | ||
1214 | * src/scan-skel.l: Use a couple of asserts. | |
1215 | ||
36b5e963 AD |
1216 | 2005-11-03 Akim Demaille <akim@epita.fr> |
1217 | ||
1218 | In some (weird) cases, the final state number is incorrect. | |
1219 | Reported by Alexandre Duret-Lutz. | |
1220 | * src/LR0.c (state_list_append): Remove the computation of | |
1221 | final_state. | |
1222 | (save_reductions): Do it here. | |
1223 | (get_state): Alpha conversion. | |
1224 | (generate_states): Use a for loop. | |
1225 | * src/gram.h (item_number_is_rule_number) | |
1226 | (item_number_is_symbol_number): New. | |
1227 | * src/state.c: Use assert. | |
1228 | * src/system.h: Include assert.h. | |
1229 | * tests/sets.at (Accept): New. | |
1230 | ||
44e7ead1 PH |
1231 | 2005-10-30 Paul Hilfinger <hilfingr@tully.CS.Berkeley.EDU> |
1232 | ||
1233 | * data/glr.c (yyfill): Adjust comment. | |
36b5e963 | 1234 | (yyresolveAction): Initialize default location properly |
44e7ead1 PH |
1235 | for empty right-hand sides. |
1236 | (yydoAction): Ditto. | |
1237 | Add comment explaining apparently dead code. | |
36b5e963 AD |
1238 | * tests/glr-regression.at |
1239 | (Incorrectly initialized location for empty right-hand side in GLR): | |
44e7ead1 | 1240 | New test. |
36b5e963 | 1241 | |
e10a80ee PE |
1242 | 2005-10-30 Paul Eggert <eggert@cs.ucla.edu> |
1243 | ||
1244 | * bootstrap (cleanup_gnulib): New function. Use it to clean up | |
1245 | gnulib when interrupted. This fixes some race conditions and | |
1246 | works around some portability problems (one noted by Paul | |
1247 | Hilfinger). | |
1248 | ||
067b32ee AD |
1249 | 2005-10-22 Akim <akim@epita.fr> |
1250 | ||
1251 | * Makefile.cfg: Adjust to config -> build-aux. | |
1252 | Reported by twledo. | |
1253 | ||
4b367315 AD |
1254 | 2005-10-21 Akim Demaille <akim@epita.fr> |
1255 | ||
1256 | * data/c.m4 (b4_yydestruct_generate, b4_yysymprint_generate): Pass | |
1257 | the %parse-params. | |
1258 | * data/glr.c (YY_SYMBOL_PRINT, yydestroyGLRState): Adjust. | |
1259 | * data/yacc.c (b4_Pure_if): Rename as... | |
1260 | (b4_yacc_pure_if): this. | |
1261 | (YY_SYMBOL_PRINT, yyparse): Adjust. | |
1262 | * doc/bison.texinfo: Formatting changes. | |
1263 | ||
24cc23d9 AD |
1264 | 2005-10-21 Akim Demaille <akim@epita.fr> |
1265 | ||
1266 | Finish the transition config -> build-aux. | |
1267 | * configure.ac, Makefile.am: Use build-aux. | |
1268 | * config/prev-version, config/announce-gen, config/Makefile.am: | |
1269 | Move to... | |
1270 | * build-aux/prev-version, build-aux/announce-gen, | |
1271 | * build-aux/Makefile.am: here. | |
1272 | ||
d4476375 AD |
1273 | 2005-10-14 Akim Demaille <akim@epita.fr> |
1274 | ||
1275 | * examples/calc++/test: Use set -x only when VERBOSE. | |
1276 | ||
302c0aee PE |
1277 | 2005-10-13 Paul Eggert <eggert@cs.ucla.edu> |
1278 | ||
1279 | * NEWS: Bison now warns if it finds a stray `$' or `@' in an action. | |
1280 | * src/scan-gram.l (<SC_BRACED_CODE>[$@]): Implement this. | |
1281 | ||
7625ec2c AD |
1282 | 2005-10-13 Akim Demaille <akim@epita.fr> |
1283 | ||
1284 | * src/scan-skel.l: Output the base name parts of the parser and | |
1285 | header file names. | |
302c0aee | 1286 | * tests/output.at (AT_CHECK_OUTPUT): Support subdirectories, and |
7625ec2c AD |
1287 | additional checks. |
1288 | Use this to exercise C++ outputs in subdirs. | |
1289 | Reported by Oleg Smolsky. | |
1290 | ||
ba0fe3c7 PE |
1291 | 2005-10-12 Paul Eggert <eggert@cs.ucla.edu> |
1292 | ||
1293 | * data/c.m4 (b4_c_function_def): Look at __C99_FUNC__, not at | |
1294 | __STDC_VERSION__, as IBM cc 7.0 doesn't define the latter either. | |
1295 | Problem reported by John P. Hartmann. | |
1296 | * data/yacc.c (YYMODERN_C): Likewise. Don't define if the user has | |
1297 | already defined it. | |
1298 | ||
9b8a5ce0 AD |
1299 | 2005-10-12 Akim Demaille <akim@epita.fr> |
1300 | ||
1301 | * src/parse-gram.y (version_check): Exit 63 to please missing | |
1302 | (stands for "version mismatch). | |
1303 | * tests/input.at, doc/bison.texinfo: Adjust. | |
1304 | ||
4f6e011e PE |
1305 | 2005-10-10 Paul Eggert <eggert@cs.ucla.edu> |
1306 | ||
1307 | Work around portability problems with Visual Age C compiler | |
1308 | (xlc and xlC_r) reported by John P. Hartmann. | |
1309 | * data/location.cc (initial_column, initial_line): Remove. | |
1310 | All uses replaced by 0 and 1. | |
1311 | * src/scan-gram.l (gram_wrap): Redefine to avoid bug in flex 2.5.31 | |
1312 | that xlc complains about. | |
1313 | * src/scan-skel.l (skel_wrap): Likewise. | |
4d7aa45e | 1314 | * data/c.m4 (b4_c_function_def): Look at __STDC_VERSION__ as well |
ba0fe3c7 | 1315 | as __STDC__. |
4d7aa45e PE |
1316 | * data/yacc.c (YYMODERN_C): New macro, which also looks at |
1317 | __STDC_VERSION__. Use it everywhere instead of looking at | |
1318 | __STDC__ and __cplusplus. | |
4f6e011e | 1319 | |
a1b3bf8c AD |
1320 | 2005-10-10 Akim Demaille <akim@epita.fr> |
1321 | ||
1322 | * examples/calc++/test: Be quiet unless VERBOSE. | |
1323 | ||
412e44aa PE |
1324 | 2005-10-05 Paul Eggert <eggert@cs.ucla.edu> |
1325 | ||
2a4647a3 PE |
1326 | * data/c.m4 (yydestruct, yysymprint): |
1327 | Use YYUSE instead of casting to void. | |
1328 | * data/glr.c (YYUSE): New macro. | |
1329 | (yyuserMerge, yyreportAmbiguity, yyreportSyntaxError): | |
1330 | Use it instead of rolling our own. | |
1331 | (YYLLOC_DEFAULT, YYCHK, YYDPRINTF, YY_SYMBOL_PRINT, YY_REDUCE_PRINT): | |
1332 | (YYCHK1): | |
1333 | Use /*CONSTCOND*/ to suppress lint warnings. | |
1334 | * data/lalr1.cc (YYLLOC_DEFAULT, YY_SYMBOL_PRINT, YY_REDUCE_PRINT): | |
1335 | (YY_STACK_PRINT): Use 'false' not '0'. | |
1336 | (YYUSE): New macro. | |
1337 | (yysymprint_, yydestruct_): Use it instead of rolling our own. | |
1338 | * data/yacc.c (YYUSE): New macro. | |
1339 | (YYCOPY, YYSTACK_RELOCATE, YYBACKUP, YYLLOC_DEFAULT): | |
1340 | (YYDPRINTF, YY_SYMBOL_PRINT, YY_STACK_PRINT, YY_REDUCE_PRINT): | |
1341 | (yyerrorlab): Use /*CONSTCOND*/ to suppress lint warnings. | |
1342 | ||
1343 | ||
412e44aa PE |
1344 | * data/m4sugar/m4sugar.m4 (_m4_map): New macro. |
1345 | (m4_map, m4_map_sep): Use it. Handle the empty list correctly. | |
1346 | ||
88c6637f PE |
1347 | 2005-10-04 Paul Eggert <eggert@cs.ucla.edu> |
1348 | ||
2f4f028d PE |
1349 | Undo the parts of the unlocked-I/O change that substituted |
1350 | putc or puts for printf. This might hurt performance a bit, | |
1351 | but some people prefer the printf style. | |
1352 | * data/c.m4 (yysymprint): Prefer printf to puts and putc. | |
1353 | * data/glr.c (YYFPUTC, YYFPUTS, YYDPUTS): Remove. | |
1354 | All uses replaced by YYFPRINTF and YYDPRINTF. | |
1355 | * data/yacc.c: Likewise. | |
1356 | * lib/bitset.c (bitset_print): Likewise. | |
1357 | * lib/bitsetv.c (bitsetv_dump, debug-bitsetv): Prefer printf to | |
1358 | putc and puts. | |
1359 | * lib/lbitset.c (debug_lbitset): Likewise. | |
1360 | * src/closure.c (print_firsts, print_fderives): Likewise. | |
1361 | * src/gram.c (grammar_dump): Likewise. | |
1362 | * src/lalr.c (look_ahead_tokens_print): Likewise. | |
1363 | * src/output.c (escaped_output): Likewise. | |
1364 | (user_actions_output): Break apart two printfs. | |
1365 | * src/parse-gram.y (%printer): Prefer printf to putc and puts. | |
1366 | * src/reduce.c (reduce_print): Likewise. | |
1367 | * src/state.c (state_rule_look_ahead_tokens_print): Likewise. | |
1368 | * src/system.h: Include unlocked-io.h rathe than stdio.h. | |
1369 | ||
88c6637f PE |
1370 | * data/glr.c (yyuserMerge, yyreportAmbiguity, yyreportSyntaxError): |
1371 | Use assignments rather than casts-to-void to suppress | |
1372 | unused-variable warnings. This pacifies 'lint'. | |
1373 | * data/lalr1.cc (yysymprint_, yydestruct_): Use a call to suppress | |
1374 | unused-variable warnings. | |
1375 | ||
fb32e373 JMG |
1376 | 2005-10-03 Juan Manuel Guerrero <juan.guerrero@gmx.de> |
1377 | ||
1378 | * Makefile.am: DJGPP specific files added to EXTRA_DIST. | |
1379 | ||
edb8f44f PE |
1380 | 2005-10-02 Paul Eggert <eggert@cs.ucla.edu> |
1381 | ||
fb9c0b33 PE |
1382 | Use unlocked I/O for a minor performance improvement on hosts like |
1383 | GNU/Linux and Solaris that support unlocked I/O. The basic idea | |
1384 | is to use the gnlib unlocked-io module, and to prefer putc and | |
1385 | puts to printf when either will work (since the latter doesn't | |
1386 | come in an unlocked flavor). | |
1387 | * bootstrap (gnulib_modules): Add unlocked-io. | |
1388 | * data/c.m4 (yysymprint): Prefer puts and putc to printf. | |
1389 | * data/glr.c (YYFPUTC, YYFPUTS, YYDPUTS): New macros. | |
1390 | Prefer them to YYFPRINTF and YYDPRINTF if either will do, | |
1391 | and similarly for puts and putc and printf. | |
1392 | * data/yacc.c: Likewise. | |
1393 | * lib/bitset.c (bitset_print): Likewise. | |
1394 | * lib/bitset.h [USE_UNLOCKED_IO]: Include unlocked-io.h. | |
1395 | * lib/bitsetv.c (bitsetv_dump, debug-bitsetv): Prefer putc and puts | |
1396 | to printf. | |
1397 | * lib/lbitset.c (debug_lbitset): Likewise. | |
1398 | * src/closure.c (print_firsts, print_fderives): Likewise. | |
1399 | * src/gram.c (grammar_dump): Likewise. | |
1400 | * src/lalr.c (look_ahead_tokens_print): Likewise. | |
1401 | * src/output.c (escaped_output): Likewise. | |
1402 | (user_actions_output): Coalesce two printfs. | |
2f4f028d | 1403 | * src/parse-gram.y (%printer): Prefer putc and puts to printf. |
fb9c0b33 PE |
1404 | * src/reduce.c (reduce_print): Likewise. |
1405 | * src/state.c (state_rule_look_ahead_tokens_print): Likewise. | |
2f4f028d | 1406 | * src/system.h: Include unlocked-io.h rather than stdio.h. |
fb9c0b33 | 1407 | |
edb8f44f PE |
1408 | * data/lalr1.cc: Don't put an unmatched ' in a dnl comment, as |
1409 | this confuses xgettext. | |
1410 | ||
b50d2359 AD |
1411 | 2005-10-02 Akim Demaille <akim@epita.fr> |
1412 | ||
1413 | * bootstrap (gnulib_modules): Add strverscmp. | |
1414 | * lib/.cvsignore: Add strverscmp.c, strverscmp.h. | |
1415 | * m4/.cvsignore: Add strverscmp.m4. | |
1416 | * src/parse-gram.y (%require): New token, new rule. | |
1417 | (version_check): New. | |
1418 | * src/scan-gram.l (%require): Adjust. | |
1419 | * tests/input.at (AT_REQUIRE): New. | |
1420 | Use it. | |
1421 | * doc/bison.texinfo (Require Decl): New. | |
1422 | (Calc++ Parser): Use %require. | |
1423 | ||
21667f64 AD |
1424 | 2005-10-02 Akim Demaille <akim@epita.fr> |
1425 | ||
1426 | * data/location.cc: New. | |
1427 | ||
2b81e969 AD |
1428 | 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>, |
1429 | Akim Demaille <akim@epita.fr> | |
1430 | ||
1431 | Make sure -odir/foo.cc creates dir/location.hh etc. | |
1432 | * src/files.h (spec_outfile, parser_file_name, spec_name_prefix) | |
1433 | (spec_file_prefix, spec_verbose_file, spec_graph_file) | |
1434 | (spec_defines_file): Now const. | |
1435 | (dir_prefix): New. | |
1436 | (short_base_name): Remove. | |
1437 | * src/files.c: Adjust. | |
1438 | (dirname.h): Include. | |
1439 | (base_name): Don't prototype it. | |
1440 | (finput): Remove, duplicates gram_in. | |
1441 | (full_base_name, short_base_name): Replace by... | |
1442 | (all_but_ext, all_but_tab_ext): these. | |
1443 | (compute_base_names): Rename as... | |
1444 | (compute_file_name_parts): this. | |
1445 | Update to compute the new variables, including dir_prefix. | |
1446 | Adjust dependencies. | |
1447 | * src/output.c (prepare): Output them. | |
1448 | * src/reader.c: Adjust to use gram_in, not finput. | |
1449 | * src/scan-skel.l (@dir_prefix@): New. | |
1450 | ||
ad6a9b97 JMG |
1451 | 2005-10-02 Juan Manuel Guerrero <juan.guerrero@gmx.de> |
1452 | ||
1453 | * lib/subpipe.c: New function end_of_output_subpipe() added | |
1454 | to allow support for non-posix systems. This is a no-op function | |
1455 | for posix systems. | |
1456 | ||
1457 | * lib/subpipe.h: New function end_of_output_subpipe() added | |
1458 | to allow support for non-posix systems. This is a no-op function | |
1459 | for posix systems. | |
1460 | ||
1461 | * src/output.c (output_skeleton): Use end_of_output_subpipe() to | |
1462 | handle the lack of pipe/fork functionality on non-posix systems. | |
1463 | ||
1464 | * djgpp/Makefile.maint: DJGPP specific file. | |
1465 | ||
1466 | * djgpp/README.in: DJGPP specific file. | |
1467 | ||
1468 | * djgpp/config.bat: DJGPP specific configuration file. | |
1469 | ||
1470 | * djgpp/config.sed: DJGPP specific configuration file. | |
1471 | ||
1472 | * djgpp/config.site: DJGPP specific configuration file. | |
1473 | ||
1474 | * djgpp/config_h.sed: DJGPP specific configuration file. | |
1475 | ||
1476 | * djgpp/subpipe.c: DJGPP specific replacement file for lib/subpipe.c. | |
1477 | ||
1478 | * djgpp/subpipe.h: DJGPP specific replacement file for lib/subpipe.h. | |
1479 | ||
fc695704 AD |
1480 | 2005-10-02 Akim Demaille <akim@epita.fr> |
1481 | ||
1482 | * data/location.cc: New, extract from... | |
1483 | * data/lalr1.cc: here. | |
1484 | (location.hh): Include it after the user prologue, in case the | |
1485 | filename type is defined by the user. | |
1486 | Forward declation location and position before the pre-prologue. | |
1487 | (yyresult_): Rename as... | |
1488 | (yyresult): this, it's a local variable, not an attribute. | |
1489 | * data/Makefile.am (dist_pkgdata_DATA): Adjust. | |
1490 | ||
1491 | 2005-10-01 Akim Demaille <akim@epita.fr> | |
5215c87f AD |
1492 | |
1493 | * examples/extexi: Restore the #line generation. | |
1494 | ||
fb9712a9 AD |
1495 | 2005-09-30 Akim Demaille <akim@epita.fr>, |
1496 | Alexandre Duret-Lutz <adl@gnu.org> | |
1497 | ||
1498 | Move the token type and YYSTYPE in the parser class. | |
1499 | * data/lalr1.cc (stack.hh, location.hh): Include earlier. | |
1500 | (parser::token): New, from the moved free definition of tokens. | |
1501 | (parser::semantic_value): Now a full definition instead of an | |
1502 | indirection to YYSTYPE. | |
1503 | (b4_post_prologue): No longer included in the header file, but | |
1504 | in the implementation file. | |
1505 | * doc/bison.texi (C+ Language Interface): Update. | |
1506 | * src/parse-gram.y: Support unary %define. | |
1507 | * tests/actions.at: Define global_tokens_and_yystype for backward | |
1508 | compatibility until we update the tests. | |
1509 | * tests/calc.at: Idem. | |
1510 | (first_line, first_column, last_line, last_column): Define for lalr1.cc | |
1511 | to simplify the code. | |
1512 | ||
55f0c7b1 PE |
1513 | 2005-09-29 Paul Eggert <eggert@cs.ucla.edu> |
1514 | ||
1515 | Port to SunOS 4.1.4, which lacks strtoul and strerror. | |
1516 | Ah, the good old days! Problem reported by Peter Klein. | |
1517 | * bootstrap (gnulib_modules): Add strerror, strtoul. | |
1518 | * lib/.cvsignore: Add strerror.c, strtol.c, strtoul.c | |
1519 | * m4/.cvsignore: Add strerror.m4, strtol.m4, strtoul.m4. | |
1520 | ||
fb9712a9 | 1521 | 2005-09-29 Akim Demaille <akim@epita.fr> |
d4fb5e3c AD |
1522 | |
1523 | * data/c.m4 (b4_error_verbose_if): New. | |
1524 | * data/lalr1.cc: Use it. | |
1525 | (YYERROR_VERBOSE_IF): Remove. | |
1526 | (yyn_, yylen_, yystate_, yynerrs_, yyerrstatus_): Remove as | |
1527 | parser members, replaced by... | |
1528 | (yyn, yylen, yystate, yynerss, yyerrstatus): these parser::parse | |
1529 | local variables. | |
1530 | (yysyntax_error_): Takes the state number as argument. | |
1531 | (yyreduce_print_): Use the argument yyrule, not the former | |
1532 | attribute yyn_. | |
1533 | ||
8a6f72f3 PE |
1534 | 2005-09-26 Paul Eggert <eggert@cs.ucla.edu> |
1535 | ||
1536 | * bootstrap (gnulib_modules): Add verify. | |
1537 | * lib/.cvsignore: Add verify.h. | |
1538 | * src/getargs.c: Use ARGMATCH_VERIFY rather than verify. | |
1539 | * src/system.h (verify): Remove. | |
1540 | Include verify.h instead. | |
1541 | * src/tables.c (tables_generate): Use new API for 'verify'. | |
1542 | ||
0d50976f PE |
1543 | 2005-09-21 Paul Eggert <eggert@cs.ucla.edu> |
1544 | ||
ebc3737e PE |
1545 | * tests/local.at (_AT_BISON_OPTION_PUSHDEFS): Do not use |
1546 | local variables whose names begin with 'yy'. | |
1547 | * tests/calc.at (_AT_DATA_CALC_Y): Likewise. | |
1548 | Trivial changes from Joel E. Denny. | |
1549 | ||
0d50976f PE |
1550 | * bootstrap (gnulib_modules): Remove alloca. Bison doesn't need |
1551 | it itself. | |
1552 | * src/main.c (main) [C_ALLOCA]: Don't flush alloca'ed memory; we | |
1553 | don't use alloca any more. | |
1554 | ||
1555 | * data/yacc.c [YYSTACK_USE_ALLOCA && !defined __GNUC__ && ! defined | |
1556 | __BUILTIN_VA_ARG_INCR && ! defined _AIX && ! defined _MSC_VER && | |
62c4328e | 1557 | defined _ALLOCA_H]: Don't include <stdlib.h>; not needed in this case. |
0d50976f PE |
1558 | * tests/torture.at (Exploding the Stack Size with Alloca): Adjust |
1559 | to match yacc.c, to test more hosts. | |
1560 | ||
a05b79df PE |
1561 | 2005-09-20 Paul Eggert <eggert@cs.ucla.edu> |
1562 | ||
55289366 PE |
1563 | * data/yacc.c (YYSIZE_T): Reindent to make it clearer. This |
1564 | doesn't affect behavior. | |
1565 | (YYSTACK_ALLOC) [YYSTACK_USE_ALLOCA]: Improve support for | |
1566 | Solaris, AIX, MSC. | |
1567 | (_STDLIB_H): Renamed from YYINCLUDED_STDLIB_H. All uses changed. | |
1568 | This works a bit better with glibc, if user code has already included | |
1569 | stdlib.h. | |
1570 | * doc/bison.texinfo (Bison Parser): Document that users can't | |
1571 | arbitrarily use malloc and free for other purposes. Document | |
1572 | that <alloca.h> and <malloc.h> might be included. | |
1573 | (Table of Symbols): Under YYSTACK_USE_ALLOCA, Don't claim that the | |
1574 | user must declare alloca. | |
1575 | ||
a05b79df PE |
1576 | * HACKING (release): Forwarn the Translation Project about |
1577 | stable releses. | |
1578 | ||
3ab2ca22 AD |
1579 | 2005-09-20 Akim Demaille <akim@epita.fr> |
1580 | ||
1581 | * data/glr.c: Use b4_token_enums, not b4_token_enums_defines. | |
1582 | ||
a9739e7c PE |
1583 | 2005-09-19 Paul Eggert <eggert@cs.ucla.edu> |
1584 | ||
a702593e PE |
1585 | * data/yacc.c (YYSIZE_MAXIMUM): New macro. |
1586 | (YYSTACK_ALLOC_MAXIMUM): Use it. | |
1587 | (yysyntax_error): New function. | |
1588 | (yyparse) [YYERROR_VERBOSE]: Don't leak memory indefinitely if | |
1589 | multiple syntax errors are reported, and alloca is being used. | |
1590 | Instead, reallocate buffers twice as big each time, so that | |
1591 | we waste at most half the allocated memory. Start with a small | |
1592 | (128-byte) buffer that will suffice in most cases anyway. | |
1593 | Use yysyntax_error to do most of the work. | |
1594 | ||
1595 | * doc/bison.texinfo (Error Reporting, Table of Symbols): | |
1596 | yynerrs is the number of errors reported, not the number of | |
1597 | errors encountered. | |
1598 | ||
a9739e7c PE |
1599 | * tests/glr-regression.at (Duplicated user destructor for lookahead): |
1600 | Mark it as expected to fail. | |
1601 | Cast result of malloc; problem reported by twlevo@xs4all.nl. | |
1602 | * tests/actions.at, tests/calc.at, tests/glr-regression.at: | |
1603 | Don't start user-code symbols with "yy", to avoid name space problems. | |
1604 | ||
f479c6c6 AD |
1605 | 2005-09-19 Akim Demaille <akim@epita.fr> |
1606 | ||
1607 | Remove the traits, failed experiment. | |
1608 | It never proved useful, and anyway because of the current | |
1609 | definition, it was not possible to have several specialization of | |
1610 | this traits, making it useless. | |
1611 | * data/lalr1.cc (yy:traits): Remove. | |
1612 | Inline its definitions in the parser class. | |
1613 | ||
e2586f82 AD |
1614 | 2005-09-19 Akim Demaille <akim@epita.fr> |
1615 | ||
1616 | * tests/atlocal.in (LIBS): Pass INTLLIBS to address failures on at | |
1617 | least Mac OSX with a /usr/local install of gettext. | |
1618 | ||
2e8cf949 AD |
1619 | 2005-09-19 Akim Demaille <akim@epita.fr> |
1620 | ||
1621 | * data/lalr1.cc (yyparse): Rename yylooka and yyilooka as yychar | |
1622 | and yytoken for similarity with the other skeletons. | |
1623 | ||
c7fb0b90 AD |
1624 | 2005-09-19 Akim Demaille <akim@epita.fr> |
1625 | ||
4e26c69e | 1626 | * NEWS, configure.ac: update version number to 2.1a. |
c7fb0b90 | 1627 | |
1bd0deda PE |
1628 | 2005-09-16 Paul Eggert <eggert@cs.ucla.edu> |
1629 | ||
1630 | * NEWS: Version 2.1. | |
1631 | ||
1632 | * NEWS: Remove notice of yytname change, since it was never in an | |
1633 | official release. | |
1634 | * data/glr.c (yydestroyGLRState): Rename local var to avoid shadowing | |
1635 | diagnostic. | |
1636 | * src/output.c (prepare): Likewise. | |
1637 | * data/lalr1.cc (YYERROR_VERBOSE_IF): New macro. | |
1638 | (yysyntax_error_): Use it to avoid GCC warning when YYERROR_VERBOSE | |
1639 | is not defined. This is an awful hack, but it's enough for now. | |
1640 | All callers changed. | |
1641 | * tests/glr-regression-at (make_value): Args are const pointers now, | |
1642 | to avoid GCC warning. | |
1643 | (Duplicated user destructor for lookahead): New test. Currently | |
1644 | skipped. It fails on my host but I'm not sure it'll always fail. | |
1645 | ||
1646 | 2005-09-16 Akim Demaille <akim@epita.fr> | |
c1432f65 AD |
1647 | |
1648 | * src/symtab.h (struct symbol): Declare the printer and destructor | |
1649 | as const, to avoid accidental calls to free. | |
1650 | (symbol_destructor_set, symbol_printer_set): Adjust. | |
1651 | * src/symtab.c: Adjust. | |
1652 | ||
1bd0deda | 1653 | 2005-09-16 Akim Demaille <akim@epita.fr> |
cf147260 AD |
1654 | |
1655 | * data/c.m4 (b4_token_enums): New. | |
1656 | (b4_token_defines): Rename as... | |
1657 | (b4_token_enums_defines): this. | |
1658 | (b4_token_defines): New, output only the #defines. | |
1659 | * data/yacc.c, data/glr.c: Adjust. | |
1660 | * data/lalr1.cc: Use b4_token_enums instead of b4_token_enums_defines. | |
1661 | * data/c.m4 (b4_yydestruct_generate, b4_yysymprint_generate): Define | |
1662 | as default values. | |
1663 | ||
dbcdae2d AD |
1664 | 2005-09-16 Akim Demaille <akim@epita.fr> |
1665 | ||
1666 | * data/lalr1.cc (yylex_): Remove, inline its code. | |
1667 | (yyreport_syntax_error_): Remove, replaced by... | |
1668 | (yysyntax_error_): this which returns a string and leaves to the | |
1669 | caller the call to the users' error function. | |
1670 | (yylooka_, yyilooka_, yylval, yylloc, yyerror_range_, yyval, yyloc): | |
1671 | Move from members of the parser object... | |
1672 | (yylooka, yyilooka, yylval, yylloc, yyerror_range, yyval, yyloc): | |
1673 | to local variables of the parse function. | |
1674 | ||
70d8f291 AD |
1675 | 2005-09-16 Akim Demaille <akim@epita.fr> |
1676 | ||
1677 | * doc/bison.texinfo (Calc++ Parser): Don't promote defining YYEOF | |
1678 | since it's in Bison's name space. | |
1679 | ||
b47dbebe PE |
1680 | 2005-09-15 Paul Eggert <eggert@cs.ucla.edu> |
1681 | ||
ae199bf1 PE |
1682 | * data/glr.c (yyresolveValue): Add default case to pacify |
1683 | gcc -Wswitch-default. Problem reported by twlevo@xs4all.nl. | |
1684 | ||
b47dbebe PE |
1685 | * NEWS: Document when yyparse started to return 2. |
1686 | * doc/bison.texinfo (Parser Function): Document when yyparse | |
1687 | returns 2. | |
1688 | ||
1689 | * data/lalr1.cc: Revert part of previous change, as it's incompatible. | |
1690 | (b4_filename_type): Renamed back from b4_file_name_type. All uses | |
1691 | changed. | |
1692 | (class position): file_name -> filename (reverting). All uses changed. | |
1693 | ||
1694 | 2005-09-14 Paul Eggert <eggert@cs.ucla.edu> | |
1695 | ||
1696 | * examples/calc++/Makefile.am ($(calc_sources_generated)): Don't | |
1697 | do anything if $@ exists. This reverts part of the 2005-07-07 | |
1698 | patch. | |
1699 | ||
00292f66 PE |
1700 | 2005-09-11 Paul Eggert <eggert@cs.ucla.edu> |
1701 | ||
1702 | * Makefile.am (EXTRA_DIST): Do not distribute REFERENCES; it | |
1703 | contains obsolete information and isn't worth distributing as a | |
1704 | separate file anyway. | |
1705 | * data/glr.c [defined YYSETJMP]: Don't include <setjmp.h>. | |
1706 | (YYJMP_BUF, YYSETJMP, YYLONGJMP) [!defined YYSETJMP]: New macros. | |
1707 | All uses of jmp_buf, setjmp, longjmp changed to use these instead. | |
1708 | (yyparse): Abort if user code uses longjmp to throw an unexpected | |
1709 | value. | |
1710 | ||
a420f962 PE |
1711 | 2005-09-09 Paul Eggert <eggert@cs.ucla.edu> |
1712 | ||
00292f66 PE |
1713 | * data/c.m4 (b4_identification): Define YYBISON_VERSION. |
1714 | Suggested by twlevo@xs4all.nl. | |
1715 | ||
127287e9 PE |
1716 | * data/glr.c (YYCHK1): Do not assume YYE is in range. |
1717 | This avoids a diagnostic from gcc -Wswitch-enum. | |
1718 | Problem reported by twlevo@xs4all.nl. | |
1719 | ||
a420f962 PE |
1720 | * doc/bison.texinfo: Don't use "filename", as per GNU coding |
1721 | standards. Use "file name" or "file" or "name", depending on | |
1722 | the context. | |
1723 | (Invocation): The output of "bison hack/foo.y" goes to foo.tab.c, | |
1724 | not to hack/foo.tab.c. | |
1725 | (Calc++ Top Level): 2nd arg of main is not const. | |
48b16bbc PE |
1726 | * data/glr.c: b4_filename -> b4_file_name. |
1727 | * data/lalr1.cc: Likewise. Also, b4_filename_type -> b4_file_name_type. | |
1728 | All uses changed. | |
1729 | (class position): filename -> file_name. All uses changed. | |
1730 | * data/yacc.c: b4_filename -> b4_file_name. | |
1731 | * lib/bitset.h: filename -> file_name in local vars. | |
1732 | * lib/bitset_stats.c: Likewise. | |
1733 | * src/files.c: Likewise. | |
1734 | * src/scan-skel.l ("@output ".*\n): Likewise. | |
1735 | * src/files.c (file_name_split): Renamed from filename_split. | |
1736 | * src/muscle_tab.c (muscle_init): Output b4_file_name, not b4_filename. | |
a420f962 PE |
1737 | |
1738 | 2005-09-08 Paul Eggert <eggert@cs.ucla.edu> | |
1739 | ||
1740 | * lib/.cvsignore: Add pipe-safer.c, stdio--.h, unistd--.h, | |
1741 | to accommodate latest gnulib. | |
1742 | ||
1743 | * tests/glr-regression.at (Duplicate representation of merged trees): | |
1744 | Add casts to pacify g++. Problem reported by twlevo@xs4all.nl. | |
1745 | ||
1746 | * bootstrap: Add comment as to why the AM_LANGINFO_CODESET hack is | |
1747 | needed. | |
1748 | ||
42a6501d PE |
1749 | 2005-08-26 Paul Eggert <eggert@cs.ucla.edu> |
1750 | ||
1751 | * data/glr.c (yydestroyGLRState): Renamed from yydestroyStackItem. | |
1752 | All uses changed. Invoke user destructor after an error during a | |
1753 | split parse (trivial change from Joel E. Denny). | |
1754 | ||
1755 | * tests/glr-regression.at | |
1756 | (User destructor after an error during a split parse): New test case. | |
1757 | Problem reported by Joel E. Denny in: | |
1758 | http://lists.gnu.org/archive/html/bison-patches/2005-08/msg00029.html | |
1759 | ||
ef9a1faf PE |
1760 | 2005-08-25 Paul Eggert <eggert@cs.ucla.edu> |
1761 | ||
5b4aaf78 PE |
1762 | * README-cvs: Give URLs for recommended tools. |
1763 | Mention Gzip version problem, and bootstrapping issues. | |
1764 | Remove troubleshooting section, as it's somewhat obsolete. | |
1765 | ||
b5240ba5 PE |
1766 | * bootstrap (no_cache): New var, to accommodate different wget |
1767 | variants. Use it instead of '-C off'. Problem reported by | |
1768 | twlevo@xs4all.nl. | |
1769 | ||
ef9a1faf PE |
1770 | * data/glr.c (yydestroyStackItem): New function. |
1771 | (yyrecoverSyntaxError, yyreturn): Use it to improve quality of | |
1772 | debugging information. Problem reported by Joel E. Denny. | |
1773 | ||
e6efa9da AD |
1774 | 2005-08-25 Akim Demaille <akim@epita.fr> |
1775 | ||
1776 | * tests/local.at (AT_COMPILE_CXX): Pass $LINKS too. | |
1777 | ||
adc90f13 PE |
1778 | 2005-08-24 Paul Eggert <eggert@cs.ucla.edu> |
1779 | ||
1780 | * data/glr.c (yyrecoverSyntaxError, yyreturn): | |
1781 | Don't invoke destructor on unresolved entries. | |
1782 | * tests/glr-regression.at | |
1783 | (User destructor for unresolved GLR semantic value): New test case. | |
1784 | Problem reported by Joel E. Denny in: | |
1785 | http://lists.gnu.org/archive/html/bison-patches/2005-08/msg00016.html | |
1786 | ||
f9315de5 PE |
1787 | 2005-08-21 Paul Eggert <eggert@cs.ucla.edu> |
1788 | ||
15d29c1f PE |
1789 | * lib/.cvsignore: Remove realloc.c, strncasecmp.c, xstrdup.c. |
1790 | Add strnlen.c. | |
1791 | * m4/.cvsignore: Remove codeset.m4, gettext.m4, lib-ld.m4, | |
1792 | lib-prefix.m4, po.m4. | |
1793 | ||
dd5f2af2 PE |
1794 | * data/glr.c (yyreturn): Use "Cleanup:" rather than "Error:" |
1795 | in yydestruct diagnostic, since it might not be an error. | |
1796 | Problem reported by Joel Denny near end of | |
1797 | <http://lists.gnu.org/archive/html/help-bison/2005-07/msg00040.html>. | |
6250acbd | 1798 | * data/lalr1.cc (yyerturn): Likewise. |
dd5f2af2 PE |
1799 | * data/yacc.c (yyreturn): Likewise. |
1800 | * tests/calc.at (_AT_CHECK_CALC_ERROR): Adjust to the above change. | |
1801 | ||
1802 | * src/files.c: Remove obsolete FIXME comment. | |
1803 | ||
1804 | * data/glr.c (YY_SYMBOL_PRINT): Append a newline, for consistency | |
1805 | with the other templates, and to fix bogus run-on messages such | |
1806 | as the one reported at the end of | |
1807 | <http://lists.gnu.org/archive/html/help-bison/2005-07/msg00040.html>. | |
1808 | All callers changed to avoid the newline. | |
1809 | (yyprocessOneStack): Output two lines rather than one, to accommodate | |
1810 | the above change. This changes the debug output format slightly. | |
1811 | ||
f9315de5 PE |
1812 | * data/glr.c (yyresolveValue): Fix redundant parse tree problem |
1813 | reported by Joel E. Denny in | |
1814 | <http://lists.gnu.org/archive/html/bison-patches/2005-08/msg00004.html> | |
1815 | (trivial change). | |
1816 | * tests/glr-regression.at (Duplicate representation of merged trees): | |
1817 | New test, from Joel E. Denny in: | |
1818 | <http://lists.gnu.org/archive/html/help-bison/2005-07/msg00013.html>. | |
1819 | * THANKS: Add Joel E. Denny. | |
1820 | ||
1821 | * configure.ac (AC_INIT): Bump to 2.0c. | |
1822 | ||
04098407 PE |
1823 | 2005-07-24 Paul Eggert <eggert@cs.ucla.edu> |
1824 | ||
1825 | * NEWS: Version 2.0b. | |
1826 | ||
ca5d2013 PE |
1827 | * Makefile.am (SUBDIRS): Put examples before tests, so that |
1828 | "make check" doesn't finish with "All 1 tests passed". | |
1829 | ||
3d54b576 PE |
1830 | * tests/regression.at (Token definitions): Don't rely on |
1831 | AT_PARSER_CHECK for data that contains backslashes. It currently | |
1832 | uses 'echo', and 'echo' isn't portable if its argument contains | |
1833 | backslashes. Problem found on OpenBSD 3.4. Also, do not assume | |
1834 | that the byte '\0xff' is not printable in the C locale; it is, | |
1835 | under OpenBSD 3.4 (!). Luckily, '\0x80' through '\0x9e' are | |
1836 | not printable, so use '\0x81' to test. | |
1837 | ||
d53ae497 PE |
1838 | * data/glr.c (YYOPTIONAL_LOC): Define even if it's not a recent |
1839 | version of GCC, since the macro is used with non-GCC compilers. | |
1840 | ||
fc01665e PE |
1841 | Fix core dump reported by Pablo De Napoli in |
1842 | <http://lists.gnu.org/archive/html/bug-bison/2005-07/msg00053.html>. | |
1843 | * tests/regression.at (Invalid inputs with {}): New test. | |
1844 | * src/parse-gram.y (token_name): Translate type before using | |
1845 | it as an index. | |
1846 | ||
04098407 PE |
1847 | * data/glr.c (ATTRIBUTE_UNUSED): Remove, since it infringes on |
1848 | the user's name space. All uses changed to __attribute__ | |
1849 | ((__unused__)). | |
1850 | (yyFail, yyMemoryExhausted, yyreportAmbiguity): | |
1851 | Add __attribute__ ((__noreturn__)). | |
1852 | ||
1853 | * etc/clcommit: Remove. We weren't using it, and it failed | |
1854 | "make maintainer-distcheck". | |
1855 | * Makefile.maint: Merge from coreutils. | |
1856 | (CVS_LIST, CVS_LIST_EXCEPT): New macros. | |
1857 | (syntax-check-rules): Change list of rules as described below. | |
1858 | (sc_cast_of_alloca_return_value, sc_dd_max_sym_length): | |
1859 | (sc_file_system, sc_obsolete_symbols, sc_prohibit_atoi_atof): | |
1860 | (sc_prohibit_jm_in_m4, sc_root_tests, sc_tight_scope): | |
1861 | (sc_trailing_space): New rules. | |
1862 | (sc_xalloc_h_in_src): Remove. | |
1863 | (sc_cast_of_argument_to_free, sc_cast_of_x_alloc_return_value): | |
1864 | (sc_space_tab, sc_error_exit_success, sc_changelog): | |
1865 | (sc_system_h_headers, sc_sun_os_names, sc_unmarked_diagnostics): | |
1866 | (makefile-check, po-check, author_mark_check): | |
1867 | (makefile_path_separator_check, copyright-check): | |
1868 | Use grep -n, to make it easier to find violations. | |
1869 | Use CVS_LIST and CVS_LIST_EXCEPT. | |
1870 | (header_regexp, h_re): Remove. | |
1871 | (dd_c): New macro. | |
1872 | (sc_dd_max_sym_length, .re-list, news-date-check): New rules. | |
1873 | (my-distcheck): Use more-modern GCC flags. | |
1874 | (signatures, %.asc): Remove. | |
1875 | (rel-files, announcement): Remove signatures. | |
1876 | Restore old updating code, even though we don't use it, so | |
1877 | that we're the same as coreutils. | |
1878 | (alpha, beta, major): Depend on news-date-check. | |
1879 | Make the upload commands. | |
1880 | ||
1881 | * data/c.m4, data/lalr1.cc, data/yacc.c: Normalize white space. | |
1882 | * lib/abitset.h, lib/bbitset.h, lib/bitset.h: Likewise. | |
1883 | * lib/bitset_stats.c, lib/ebitset.h, lib/lbitset.c: Likewise. | |
1884 | * lib/libitset.h, lib/timevar.c, lib/vbitset.h: Likewise. | |
1885 | * src/Makefile.am, src/gram.c, src/muscle_tab.h: Likewise. | |
1886 | * src/parse-gram.y, src/system.h, src/tables.c, src/vcg.c: Likewise. | |
1887 | * src/vcg_defaults.h, tests/cxx-type.at, tests/existing.at: Likewise. | |
1888 | * tests/sets.at: Likewise. | |
1889 | ||
1890 | * data/m4sugar/m4sugar.m4: Sync from Autoconf, except that | |
1891 | we comment out the Autoconf version number. | |
1892 | * doc/bison.texinfo (Calc++ Scanner): Don't use atoi, as | |
1893 | it's error-prone and "make maintainer-distcheck" rejects it. | |
1894 | ||
1895 | * lib/subpipe.c: Include <fcntl.h> without checking for HAVE_FCNTL_H. | |
1896 | Indent calls to "error" to pacify "make maintainer-distcheck", | |
1897 | when the calls are not intended to be translated. | |
1898 | * m4/subpipe.m4 (BISON_PREREQ_SUBPIPE): Don't check for fcntl.h. | |
1899 | ||
1900 | * src/Makefile.am (DEFS): Use +=, to pacify | |
1901 | "make maintainer-distcheck". | |
1902 | (bison_SOURCES): Add scan-skel.h. | |
1903 | (sc_tight_scope): New rule, from coreutils. | |
1904 | ||
1905 | * src/files.c (src_extension, header_extension): | |
1906 | Now static, not extern. | |
1907 | * src/getargs.c (short_options): Likewise. | |
1908 | * src/muscle_tab.c (muscle_table): Likewise. | |
1909 | * src/parse-gram.y (current_class, current_type, current_prec): | |
1910 | Likewise. | |
1911 | * src/reader.c (grammar_end, previous_rule_end): Likewise. | |
1912 | * src/getargs.h: Redo comments to pacify "make maintainer-distcheck". | |
1913 | * src/main.c (main): Cast bindtextdomain and textdomain calls to | |
1914 | void, to avoid warning when NLS is disabled. | |
1915 | * src/output.c: Include scan-skel.h. | |
1916 | (scan_skel): Remove decl, since scan-skel.h does this. | |
1917 | (output_skeleton): | |
1918 | Indent calls to "error" to pacify "make maintainer-distcheck". | |
1919 | * src/print_graph.c: Don't include <obstack.h>, as system.h does this. | |
1920 | * src/reader.h (gram_end, gram_lineno): New decls to pacify | |
1921 | "make maintainer-distcheck". | |
1922 | * src/scan-skel.l (skel_lex, skel_get_lineno, skel_get_in): | |
1923 | (skel_get_out, skel_get_leng, skel_get_text, skel_set_lineno): | |
1924 | (skel_set_in, skel_set_out, skel_get_debug, skel_set_debug): | |
1925 | (skel_lex_destroy, scan_skel): Move these decls to... | |
1926 | * src/scan-skel.h: New file. | |
1927 | * src/uniqstr.c (uniqstr_assert): | |
1928 | Indent calls to "error" to pacify "make maintainer-distcheck". | |
1929 | ||
1930 | * tests/Makefile.am ($(srcdir)/package.m4): Use $(VAR), | |
1931 | not @VAR@. | |
1932 | ||
1933 | * tests/torture.at: Revamp to avoid misuse of atoi that | |
1934 | "make maintainer-distcheck" complained about. | |
1935 | ||
1936 | * examples/extexi (message): Don't print a message more than once, | |
1937 | and omit line-number decoration that makes Emacs compile think | |
1938 | that informative messages are worth worrying about. | |
1939 | ||
1940 | 2005-07-22 Paul Eggert <eggert@cs.ucla.edu> | |
1941 | ||
1942 | * configure.ac: Update version number. | |
1943 | ||
1944 | * Makefile.am (SUBDIRS): Add examples; somehow this got removed | |
1945 | accidentally. | |
1946 | * examples/calc++/calc++-parser.yy: Remove from CVS, as it's | |
1947 | autogenerated by the maintainer. | |
1948 | * examples/calc++/.cvsignore: Add *.yy. | |
1949 | ||
1950 | * lib/bitset.c (bitset_alloc): Don't cast xcalloc result. | |
1951 | * lib/bitset_stats.c (bitset_stats_init): Likewise. | |
1952 | * lib/bitsetv.c (bitsetv_alloc): Likewise. | |
1953 | ||
1954 | * po/POTFILES.in: Add lib/xalloc-die.c; remove lib/xmalloc.c. | |
1955 | ||
1956 | * src/relation.c (relation_transpose): Rewrite to avoid bogus complaint | |
1957 | from maintainer-distcheck about casting the argument of 'free'. | |
1958 | ||
1959 | * NEWS: Mention recent yytname changes. | |
1960 | * THANKS: Add Anthony Heading, twlevo@xs4all.nl. | |
1961 | ||
1962 | * bootstrap: For translations that have not yet been upgraded to | |
1963 | the new runtime-po domain, prime the pump by extracting the | |
1964 | relevant strings from the obsolete translations. This code can be | |
1965 | removed once the bison-runtime domain has been translated by each | |
1966 | team. | |
1967 | ||
1968 | * src/scan-gram.l (<SC_PRE_CODE>.): Don't double-quote token names, | |
1969 | now that token names are already quoted. | |
1970 | ||
1971 | Fix problem reported by Anthony Heading. | |
1972 | * data/glr.c (YYTOKEN_TABLE): New macro. | |
1973 | (yytname): Define if YYTOKEN_TABLE. | |
1974 | * data/yacc.c (YYTOKEN_TABLE, yytname): Likewise. | |
1975 | * data/lalr1.cc (YYTOKEN_TABLE, yytname_): Likewise. | |
1976 | (YYERROR_VERBOSE): Define the same way the other skeletons do. | |
1977 | * src/output.c (prepare_symbols): Output token_table_flag. | |
1978 | ||
0ffda363 PE |
1979 | 2005-07-21 Paul Eggert <eggert@cs.ucla.edu> |
1980 | ||
1981 | * data/glr.c (yyinitGLRStack, yyreturn): Don't call malloc | |
1982 | again if the first call fails. | |
1983 | ||
1984 | * data/glr.c (yytnamerr): New function. | |
1985 | (yyreportSyntaxError): Use it to dequote most string literals. | |
1986 | * data/lalr1.c (yytname_): Renamed from yyname_, for compatibility | |
1987 | with other skeletons. All uses changed. | |
1988 | (yytnameerr_): New function. | |
1989 | (yyreport_syntax_error): Use it to dequote most string literals. | |
1990 | * data/yacc.c (yytnamerr): New function. | |
1991 | (yyerrlab): Use it to decode most string literals. | |
1992 | * doc/bison.texinfo (Decl Summary, Calling Convention): | |
1993 | Clarify quoting convention of yytname. | |
1994 | * src/output.c (prepare_symbols): Quote all names. This undoes | |
1995 | the 2005-04-17 change, which is now accomplished (mostly) via | |
1996 | changes in the parsers as described above. | |
1997 | * tests/regression.at (Token definitions, Web2c Actions): | |
1998 | Undo most 2005-04-17 change here, too. | |
1999 | ||
2000 | 2005-07-20 Paul Eggert <eggert@cs.ucla.edu> | |
2001 | ||
2002 | Fix more problems reported by twlevo@xs4all.nl. | |
2003 | * tests/cxx-type.at: Don't pipe output of ./types through sed to | |
2004 | remove trailing spaces. This loses the exit status of ./types, | |
2005 | and isn't needed since ./types shouldn't be emitting trailing | |
2006 | spaces. | |
2007 | * data/glr.c (yyreturn): Don't pop stack if yyinitStateSet failed, | |
2008 | as the stack isn't valid in that case. | |
2009 | ||
2010 | * src/scan-gram.l (gram_get_lineno, gram_get_in, gram_get_out): | |
2011 | (gram_get_leng, gram_get_text, gram_set_lineno, gram_set_in): | |
2012 | (gram_set_out, gram_get_debug, gram_set_debug, gram_lex_destroy): | |
2013 | Add declarations to pacify "gcc -Wmissing-prototypes" when flex 2.5.31 | |
2014 | is used. | |
2015 | * src/scan-skel.l (skel_get_lineno, skel_get_in, skel_get_out): | |
2016 | (skel_get_leng, skel_get_text, skel_set_lineno, skel_set_in): | |
2017 | (skel_set_out, skel_get_debug, skel_set_debug, skel_lex_destroy): | |
2018 | Likewise. | |
2019 | ||
2020 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Work even with | |
2021 | overly-picky compilers that reject 'char *foo = "bar";'. | |
2022 | ||
2023 | * src/symtab.c (SYMBOL_ATTR_PRINT, symbol_print): Direct output | |
2024 | to FILE * parameter, not to stderr. This fixes a typo introduced | |
2025 | in the 2005-07-12 change. | |
2026 | ||
2027 | * lib/subpipe.c (create_subpipe): Rewrite slightly to avoid | |
2028 | warnings from GCC 4. | |
2029 | ||
2030 | * data/glr.c (yyexpandGLRStack, yyaddDeferredAction, yyexpandGLRStack): | |
2031 | (yyglrShiftDefer, yysplitStack): | |
2032 | Remove unused parameters b4_pure_formals. All uses changed. | |
2033 | (yyglrShift): Remove unused parameters b4_user_formals. | |
2034 | All uses changed. | |
2035 | (yyglrReduce): Removed unused parameter yylocp. All uses changed. | |
2036 | ||
6100a9aa PE |
2037 | 2005-07-18 Paul Eggert <eggert@cs.ucla.edu> |
2038 | ||
258b75ca PE |
2039 | Destructor cleanups and regularization among the three skeletons. |
2040 | * NEWS: Document the behavior changes. | |
2041 | * data/glr.c (yyrecoverSyntaxError): Don't bother to pop the | |
2042 | stack before failing, as the cleanup code will do it for us now. | |
2043 | * data/lalr1.cc (yyerrlab): Likewise. | |
2044 | * data/glr.c (yyparse): Pop everything off the stack before | |
2045 | freeing it, so that destructors get called properly. | |
2046 | * data/lalr1.cc (yyreturn): Likewise. | |
2047 | * data/yacc.c (yyreturn): Pop and destroy the start symbol, too. | |
2048 | This is more consistent. | |
2049 | * doc/bison.texinfo (Destructor Decl): Mention more reasons | |
2050 | why destructors might be called. 1.875 -> 2.1. | |
2051 | (Destructor Decl, Decl Summary, Table of Symbols): | |
2052 | Some English-language cleanups for %destructor. | |
2053 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): | |
2054 | Add output line for destructor of start symbol. | |
2055 | * tests/calc.at (AT_CHECK_CALC): Add one to line counts, | |
2056 | because of that same extra output line. | |
2057 | ||
1a059451 PE |
2058 | * NEWS: Document minor wording changes in diagnostics of |
2059 | Bison-generated parsers. | |
2060 | * data/glr.c (yyMemoryExhausted): Renamed from yyStackOverflow. | |
2061 | Remove unused formals. All uses changed. | |
2062 | (yyreportAmbiguity): "ambiguity detected" -> "syntax is ambiguous". | |
2063 | (yyparse): Rename yyoverflowlab to yyexhaustedlab. | |
2064 | * data/yacc.c (yyparse): "parser stack overflow" -> "memory exhausted". | |
2065 | Rename yyoverflowab to yyexhaustedlab. | |
2066 | When memory exhaustion occurs during syntax-error reporting, | |
2067 | report it separately rather than in a single diagnostic; this | |
2068 | eases translation. | |
2069 | * doc/bison.texinfo (Memory Management): Renamed from Stack Overflow. | |
2070 | (Memory Exhausted): Renamed from Parser Stack Overflow. | |
2071 | Revamp wording slightly to prefer "memory exhaustion". | |
2072 | * tests/actions.at: "parser stack overflow" -> "memory exhausted". | |
2073 | ||
97460c78 PE |
2074 | * data/c.m4 (b4_yysymprint_generate): Use YYFPRINTF, not fprintf. |
2075 | ||
30757c8c PE |
2076 | Add i18n support to the GLR skeleton. Partially fix the C++ |
2077 | skeleton; a C++ expert needs to finish this. Remove debugging | |
2078 | msgids; there's little point to having them translated, since they | |
2079 | can be understood only by someone who can read the | |
2080 | (English-language) source code. | |
2081 | ||
2082 | Generate runtime-po/bison-runtime.pot automatically, so that we | |
2083 | don't have to worry about garbage getting in that file. We'll | |
2084 | make sure after the next official release that old msgids don't | |
2085 | get lost. See | |
2086 | <http://lists.gnu.org/archive/html/bison-patches/2005-07/msg00119.html>. | |
2087 | ||
2088 | * runtime-po/Makefile.in.in, runtime-po/bison-runtime.pot: Remove. | |
2089 | Now auto-generated. | |
2090 | * PACKAGING: Don't claim that Gawk, GCC, Perl use this method yet. | |
2091 | Fix typos in explanations of the runtime file. | |
2092 | * bootstrap: Change gettext keyword from YYI18N to YY_. | |
2093 | Use standard Makefile.in.in in runtime-po, since we'll arrange | |
2094 | for backward-compatible bison-runtime.po files in a different way. | |
2095 | * data/glr.c (YY_): New macro, from yacc.c. | |
2096 | (yyuserAction, yyreportAmbiguity, yyreportSyntaxError, yyparse): | |
2097 | Translate messages intended for users. | |
2098 | (yyreportSyntaxError): Change "virtual memory" to "memory" to match | |
2099 | the wording in the other skeletons. We don't know that the memory | |
2100 | is virtual. | |
2101 | * data/lalr1.cc (YY_): Renamed from _. All uses changed. | |
2102 | Use same method that yacc.c uses. | |
2103 | Don't translate debugging messages. | |
2104 | (yy::yyreport_syntax_error): Put in a FIXME for the i18n stuff; | |
2105 | it doesn't work (yet), and requires C++ expertise to fix. | |
2106 | * data/yacc.c (YY_): Renamed from YY18N. All uses changed. | |
2107 | Move defn to a more logical place, to be consistent with other | |
2108 | skeletons. | |
2109 | Don't translate debugging messages. | |
2110 | Don't assume line numbers fit in unsigned int; use unsigned long fmts. | |
2111 | * doc/bison.texinfo: Mention <libintl.h>. Change glibc cross reference | |
2112 | to gettext cross reference. Add indexing terms. Mention YYENABLE_NLS. | |
2113 | * runtime-po/POTFILES.in: Add data/glr.c, data/lalr1.cc. | |
2114 | ||
ac8c5689 PE |
2115 | Fix yyerror / yylex test glitches noted by twlevo@xs4all.nl. |
2116 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Have yyerror return | |
2117 | void, not int. | |
2118 | * tests/glr-regression.at (Badly Collapsed GLR States): | |
2119 | Likewise. | |
2120 | (Improper handling of embedded actions and dollar(-N) in GLR parsers): | |
2121 | yylex should return 0 at EOF rather than aborting. | |
2122 | ||
6100a9aa PE |
2123 | Improve tests for stack overflow in GLR parser. |
2124 | Problem reported by twlevo@xs4all.nl. | |
2125 | * data/glr.c (struct yyGLRStack): Remove yyerrflag member. | |
2126 | All uses removed. | |
2127 | (yyStackOverflow): Just longjmp, but with value 2 so that caller | |
2128 | can handle the problem. | |
2129 | (YYCHK1): Use goto (a la yacc.c) rather than setting a flag. | |
2130 | (yyparse): New local variable yyresult to record the result. | |
2131 | Use result of setjmp to set it, rather than storing itinto | |
2132 | struct. | |
2133 | (yyDone): Remove label. | |
2134 | (yyacceptlab, yyabortlab, yyoverflowlab, yyreturn): New labels, | |
2135 | to mimic yacc.c. Do not discard lookahead if it's EOF (possible | |
2136 | if YYABORT is used). | |
2137 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Exit with | |
2138 | yyparse status; put status > 1 into diagnostic. | |
2139 | Check that status==2 works. | |
2140 | * tests/calc.at, tests/cxx-type.at, tests/glr-regression.at: | |
2141 | Use exit status 3 for failure to open (which shouldn't happen). | |
2142 | ||
15f40952 PE |
2143 | 2005-07-17 Paul Eggert <eggert@cs.ucla.edu> |
2144 | ||
67fd79c4 PE |
2145 | * tests/conflicts.at (%nonassoc and eof): Don't exit with status |
2146 | 1 on syntax error; just let yyparse do its thing. | |
2147 | * tests/glr-regression.at (Badly Collapsed GLR States): Likewise. | |
2148 | * tests/torture.at (AT_DATA_STACK_TORTURE): Likewise. | |
2149 | (Exploding the Stack Size with Alloca): | |
2150 | (Exploding the Stack Size with Malloc): | |
2151 | Expect exit status 2, not 1, since the parser is supposed to blow | |
2152 | its stack. Problem reported by twlevo@xs4all.nl. | |
2153 | ||
15f40952 PE |
2154 | * data/glr.c (yyparse): Don't assume that the initial calls |
2155 | to YYMALLOC succeed; in that case, yyparse incorrectly returned 0. | |
2156 | Print a stack-overflow message and fail instead. | |
2157 | Initialize the line-number information before creating the stack, | |
2158 | so that the stack-overflow message can report line zero safely. | |
2159 | ||
f32c66b5 PE |
2160 | 2005-07-14 Paul Eggert <eggert@cs.ucla.edu> |
2161 | ||
a22ff96f | 2162 | Fix problems reported by twlevo@xs4all.nl. |
e2688cd9 PE |
2163 | * data/glr.c (YYSTACKEXPANDABLE): Don't define if already defined. |
2164 | (yyuserMerge): Provide a default case if b4_mergers is empty. | |
2165 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Define YYSTACKEXPANDABLE. | |
2166 | * tests/glr-regression.at | |
2167 | (Improper handling of embedded actions and dollar(-N) in GLR parsers): | |
c70fdfcd | 2168 | Add casts to pacify C++ compilers. |
1beb0b24 PE |
2169 | * tests/glr-regression.at (Improper merging of GLR delayed action |
2170 | sets): Declare yylex before using it. | |
f32c66b5 | 2171 | * tests/Makefile.am (maintainer-check-g++): Fix a stray |
a22ff96f PE |
2172 | $(GXX) that escaped the renaming of GXX to CXX. Remove bogus |
2173 | test for valgrind; valgrind is independent of g++. | |
2174 | (maintainer-check-posix): Add _POSIX2_VERSION=200112, to check | |
2175 | for compatibility with POSIX 1003.1-2001 (if running coreutils). | |
2176 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Port to stricter C++. | |
2177 | Use a destructor, so that we can expand the stack. Change | |
2178 | YYSTYPE to char * so that we can free it. Cast result of malloc. | |
f32c66b5 | 2179 | |
d741bd1b PE |
2180 | 2005-07-13 Paul Hilfinger <hilfingr@CS.Berkeley.EDU> |
2181 | ||
2182 | * data/glr.c (yyuserAction): Fix uninitialized variable that caused | |
2183 | a valgrind failure. Problem reported by twlevo@xs4all.nl. | |
2184 | ||
0410a6e0 PE |
2185 | 2005-07-13 Paul Eggert <eggert@cs.ucla.edu> |
2186 | ||
2187 | * PACKAGING: New file, suggested by Bruno Haible and taken from | |
2188 | similar wording in gettext's PACKAGING file. | |
2189 | * NEWS: Mention PACKAGING. | |
2190 | * Makefile.am (EXTRA_DIST): Add PACKAGING. | |
2191 | ||
f7ab6a50 PE |
2192 | 2005-07-12 Paul Eggert <eggert@cs.ucla.edu> |
2193 | ||
baf785db | 2194 | * NEWS: Document recent i18n improvements. |
f7ab6a50 PE |
2195 | * bootstrap: Get runtime translations into runtime-po. |
2196 | Create runtime-po files automatically, if possible. | |
2197 | * configure.ac: Invoke BISON_I18N, so that we eat our own dog food. | |
2198 | * data/yacc.c: Rewrite inclusion of <libintl.h> so that ENABLE_NLS | |
2199 | does not infringe on the user's name space. | |
2200 | (YYENABLE_NLS): Renamed from ENABLE_BISON_NLS. | |
2201 | * doc/bison.texinfo (Internationalization): Revamp the English | |
2202 | and Texinfo syntax a bit, to try to make it clearer. | |
2203 | (Bison Options, Option Cross Key): Mention --print-localedir. | |
2204 | * m4/bison-i18n.m4 (BISON_I18N): Rename ENABLE_BISON_NLS to | |
2205 | YYENABLE_NLS. Quote a bit more. | |
2206 | * runtime-po/.cvsignore: New file. | |
2207 | * runtime-po/Makefile.in.in (mostlyclean): Remove *.old.pot. | |
2208 | * runtime-po/Rules-quot: Remove; now created by bootstrap. | |
2209 | * runtime-po/quot.sed: Likewise. | |
2210 | * runtime-po/boldquot.sed: Likewise. | |
2211 | * runtime-po/en@quot.header: Likewise. | |
2212 | * runtime-po/en@boldquot.header: Likewise. | |
2213 | * runtime-po/insert-header.sin: Likewise. | |
2214 | * runtime-po/remove-potcdate.sin: Likewise. | |
2215 | * runtime-po/Makevars: Likewise. | |
2216 | * runtime-po/LINGUAS: Likewise. | |
2217 | * runtime-po/de.po: Likewise; we will rely on the translation project | |
2218 | to maintain this, so "bootstrap" should get it. | |
0410a6e0 | 2219 | * src/getarg.c (PRINT_LOCALEDIR_OPTION): Let the C compiler determine |
f7ab6a50 PE |
2220 | its value. |
2221 | * src/main.c (main): Bind the bison-runtime domain, too. | |
2222 | ||
2223 | 2005-07-12 Bruno Haible <bruno@clisp.org> | |
2224 | ||
2225 | * data/yacc.c: Include <libintl.h> when NLS is enabled. | |
2226 | (YYI18N): Renamed from _. Use dgettext when NLS is enabled. | |
2227 | * po/POTFILES.in: Remove autogenerated file src/parse-gram.c. | |
2228 | * runtime-po: New directory. | |
2229 | * runtime-po/Makefile.in.in: New file, copied from po/, with modified | |
2230 | $(DOMAIN).pot-update rule, so that old messages are never dropped. | |
2231 | * runtime-po/Rules-quot: New file, copied from po/. | |
2232 | * runtime-po/quot.sed: Likewise. | |
2233 | * runtime-po/boldquot.sed: Likewise. | |
2234 | * runtime-po/en@quot.header: Likewise. | |
2235 | * runtime-po/en@boldquot.header: Likewise. | |
2236 | * runtime-po/insert-header.sin: Likewise. | |
2237 | * runtime-po/remove-potcdate.sin: Likewise. | |
2238 | * runtime-po/Makevars: New file. | |
2239 | * runtime-po/POTFILES.in: New file. | |
2240 | * runtime-po/LINGUAS: New file. | |
2241 | * runtime-po/bison-runtime.pot: New file. | |
2242 | * runtime-po/de.po: New file. | |
2243 | * m4/bison.m4: New file. | |
2244 | * Makefile.am (SUBDIRS): Add runtime-po. | |
2245 | (aclocaldir, aclocal_DATA): New variables. | |
2246 | * configure.ac: Add AC_CONFIG_FILES of runtime-po/Makefile.in. | |
2247 | Define aclocaldir. | |
2248 | * src/getargs.c (usage): Document --print-localedir option. | |
2249 | (PRINT_LOCALEDIR_OPTION): New enum item. | |
2250 | (long_options): Add --print-localedir option. | |
2251 | (getargs): Handle --print-localedir option. | |
2252 | * doc/bison.texinfo (Bison Parser): Remove paragraph about _(). | |
2253 | (Internationalization): New section. | |
2254 | ||
22dda0f0 AD |
2255 | 2005-07-12 Akim Demaille <akim@epita.fr> |
2256 | ||
2257 | * src/symtab.h, src/symtab.c (symbol_print): Swap the arguments, | |
2258 | for consistency with the rest of the code. | |
2259 | * src/symlist.h, src/symlist.c (symbol_list_print): Ditto. | |
2260 | Add separators. | |
2261 | ||
82b248ad AD |
2262 | 2005-07-12 Akim Demaille <akim@epita.fr> |
2263 | ||
2264 | * src/parse-gram.y: Use %printer instead of YYPRINT. | |
2265 | ||
fa0e9314 AD |
2266 | 2005-07-12 Akim Demaille <akim@epita.fr> |
2267 | ||
867a3e00 AD |
2268 | * src/symtab.h, src/symtab.c (symbol_print): New. |
2269 | * src/symlist.h, src/symlist.c (symbol_list_print): New. | |
2270 | * src/symlist.c (symbol_list_n_type_name_get): Report the culprit. | |
2271 | ||
2272 | 2005-07-12 Akim Demaille <akim@epita.fr> | |
2273 | ||
2274 | * data/glr.c (b4_syncline): Fix (swap) the definitions of | |
fa0e9314 AD |
2275 | b4_at_dollar and b4_dollar_dollar. |
2276 | ||
e054b190 PE |
2277 | 2005-07-11 Paul Eggert <eggert@cs.ucla.edu> |
2278 | ||
2279 | * doc/bison.texinfo (Mystery Conflicts): Add reference to DeRemer | |
2280 | and Pennello's paper. | |
2281 | ||
34160ec4 PE |
2282 | 2005-07-09 Paul Eggert <eggert@cs.ucla.edu> |
2283 | ||
407d4a75 PE |
2284 | * data/yacc.c (yyparse): Undo previous patch. Instead, |
2285 | set yylsp[0] and yyvsp[0] only if the initial action | |
2286 | sets yylloc and yylval, respectively. | |
2287 | ||
34160ec4 PE |
2288 | * data/yacc.c (yyparse): In the initial action, set |
2289 | yylsp[0] and yyvsp[0] rather than yylloc and yylval. | |
2290 | This avoids the use of undefined variables if the initial | |
2291 | action does not set yylloc and/or yylval. | |
2292 | ||
c3d5a4a7 PE |
2293 | 2005-07-07 Paul Eggert <eggert@cs.ucla.edu> |
2294 | ||
b34d96c1 PE |
2295 | * examples/calc++/calc++-driver.cc, examples/calc++/calc++-driver.hh: |
2296 | * examples/calc++/calc++-scanner.ll, examples/calc++/calc++.cc: | |
2297 | Remove from CVS. These files are automatically generated. | |
2298 | * examples/extexi: Clarify that this file is now part of Bison, | |
2299 | not GNU M4, and that it works with any POSIX-compatible Awk. | |
2300 | * examples/calc++/Makefile.am (run_extexi): Remove; not used. | |
2301 | ($(calc_extracted)): Renamed from $(calc_sources_extracted), | |
2302 | so that we also get calc++-parser.yy. Geneate it. | |
2303 | Use $(AWK), not gawk, since any conforming Awk will do. | |
2304 | Put comment before action, since older 'make' can't handle comment | |
2305 | in action. | |
2306 | $(BUILT_SOURCES): List all built sources, not just some of them. | |
2307 | $(MAINTAINERCLEANFILES): Remove *.stamp, and all built sources. | |
2308 | $($(srcdir)/calc++-parser.stamp): Work even if POSIXLY_CORRECT. | |
2309 | $($(calc_sources_generated)): Remove unnecessary test for existence | |
2310 | of target. (This had a shell syntax error anyway; a stray "x".) | |
2311 | (calc_extracted): List $(srcdir)/calc++-parser.yy, not | |
2312 | calc++-parser.yy. | |
2313 | * examples/.cvsignore, examples/calc++/.cvsignore: New files. | |
2314 | ||
c3d5a4a7 PE |
2315 | * bootstrap (gnulib_modules): Add gettext, now that it's no longer |
2316 | implied by the other modules. | |
2317 | ||
828c373b AD |
2318 | 2005-07-06 Akim Demaille <akim@epita.fr> |
2319 | ||
2320 | Bind examples/calc++ to the package. | |
2321 | * examples/calc++/Makefile: Remove, replaced by... | |
2322 | * examples/calc++/Makefile.am: ... this new file. | |
2323 | * examples/calc++/test: Remove input. | |
2324 | * examples/calc++/compile: Remove. | |
2325 | * examples/Makefile.am: New. | |
2326 | * configure.ac, Makefile.am: Adjust. | |
2327 | * doc/Makefile.am (clean-local): New, for more recent texi2dvis. | |
2328 | ||
63cb01d6 PE |
2329 | 2005-07-05 Paul Eggert <eggert@cs.ucla.edu> |
2330 | ||
fd2df2ed PE |
2331 | * data/glr.c (yyFail): Drastically simplify; since the format argument |
2332 | never had any % directives, we can simply pass it to yyerror. | |
2333 | (yyparse): Use "t a; a=b;" rather than "t a = b;" when a will | |
2334 | be modified later, as that is the usual style in glr.c. | |
2335 | Problems reported by Paul Hilfinger. | |
2336 | ||
63cb01d6 PE |
2337 | Rewrite GLR parser to catch more buffer overrun, storage exhaustion, |
2338 | and size overflow errors. | |
2339 | * data/glr.c: Include <stdio.h> etc. after user prolog, not before, | |
2340 | in case the user prolog sets feature-test macros like _GNU_SOURCE. | |
2341 | (YYSIZEMAX): New macro. | |
2342 | (yystpcpy): New function, taken from yacc.c. | |
2343 | (struct yyGLRStack.yyspaceLeft): Now size_t, not int. | |
2344 | (yyinitGLRStack, yyfreeGLRstack): Remove unnecessary forward decls, | |
2345 | so that we don't have to maintain their signatures. | |
2346 | (yyFail): Check for buffer overflow, by using vsnprintf rather | |
2347 | than vsprintf. Allocate a bigger buffer if possible. | |
2348 | Report an error if buffer allocation fails. | |
2349 | (yyStackOverflow): New function. | |
2350 | (yyinitStateSet, yyinitGLRStack): Return a boolean indicating whether | |
2351 | the initialization was successful. It might fail if storage was | |
2352 | exhausted. | |
2353 | (yyexpandGLRStack): Add more checks for storage allocation failure. | |
2354 | Use yyStackOverflow to report failures. | |
2355 | (yymarkStackDeleted, yyglrShift, yyglrShiftDefer, yydoAction): | |
2356 | (yysplitStack, yyprocessOneStack, yyparse, yypstack): | |
2357 | Don't assume stack number fits in int. | |
2358 | (yysplitStack): Check for storage allocation failure. | |
2359 | (yysplitStack, yyprocessOneStack): Add pure_formals, so that we | |
2360 | can print diagnostics on storage allocation failure. All callers | |
2361 | changed. | |
2362 | (yyresolveValue): Use yybool for boolean. | |
2363 | (yyreportSyntaxError): Check for size-calculation overflow. | |
2364 | This code is taken from yacc.c. | |
2365 | (yyparse): Check for storage allocation errors when allocating | |
2366 | the initial stack. | |
2367 | ||
1c59e0a1 AD |
2368 | 2005-07-05 Akim Demaille <akim@epita.fr> |
2369 | ||
2370 | Extract calc++ from the documentation. | |
2371 | * doc/bison.texinfo (Calc++): Add the extraction marks. | |
2372 | * examples/extexi: New, from the aborted GNU Programming 2E. | |
2373 | Separate the different paragraph of a file with empty lines. | |
2374 | * examples/Makefile: Use it to extract the whole calc++ example. | |
2375 | ||
8a0adb01 AD |
2376 | 2005-06-24 Akim Demaille <akim@epita.fr> |
2377 | ||
2378 | * doc/bison.texinfo (C++ Parser Interface): Use defcv to define | |
2379 | class typedefs. | |
2380 | ||
12545799 AD |
2381 | 2005-06-22 Akim Demaille <akim@epita.fr> |
2382 | ||
2383 | * doc/bison.texinfo (C++ Language Interface): First stab. | |
2384 | (C++ Parsers): Remove. | |
2385 | ||
99be0235 AD |
2386 | 2005-06-22 Akim Demaille <akim@epita.fr> |
2387 | ||
2388 | * data/lalr1.cc (yylex_): Honor %lex-param. | |
2389 | ||
0ffd4fd1 AD |
2390 | 2005-06-22 Akim Demaille <akim@epita.fr> |
2391 | ||
2392 | Start a set of simple examples. | |
2393 | * examples/calc++/Makefile, examples/calc++/calc++-driver.cc, | |
2394 | * examples/calc++/calc++-driver.hh, | |
2395 | * examples/calc++/calc++-parser.yy, | |
2396 | * examples/calc++/calc++-scanner.ll, examples/calc++/calc++.cc, | |
2397 | * examples/calc++/compile, examples/calc++/test: New. | |
2398 | ||
0925ebb4 PE |
2399 | 2005-06-09 Paul Eggert <eggert@cs.ucla.edu> |
2400 | ||
2401 | * data/yacc.c (malloc, free) [defined __cplusplus]: Wrap inside | |
2402 | extern "C" {}. This fixes a problem reported by Paul Hilfinger, | |
2403 | which stems from the 2005-05-27 patch. | |
2404 | ||
43d3b664 PH |
2405 | 2005-06-06 Paul Hilfinger <hilfingr@tully.CS.Berkeley.EDU> |
2406 | ||
2407 | * data/glr.c: Modify treatment of unused parameters to permit use | |
2408 | of g++ (which doesn't allow __attribute__ ((unused)) for parameters). | |
2409 | ||
3062864d PE |
2410 | 2005-05-30 Paul Eggert <eggert@cs.ucla.edu> |
2411 | ||
2412 | Fix infringement on user name space reported by Janos Zoltan Szabo. | |
2413 | * data/yacc.c (yyparse): strlen -> yystrlen. | |
2414 | ||
989b5b8e AD |
2415 | 2005-05-30 Akim Demaille <akim@epita.fr> |
2416 | ||
2417 | * data/lalr1.cc (_): New. | |
2418 | Translate the various messages. | |
2419 | ||
bedf57f5 PE |
2420 | 2005-05-27 Paul Eggert <eggert@cs.ucla.edu> |
2421 | ||
2422 | Fix infringement on user name space reported by Bruno Haible. | |
2423 | * data/yacc.c (YYSIZE_T): Define first, so that later decls can use it. | |
2424 | Prefer GCC's __SIZE_TYPE__ if available, so that we don't infringe on | |
2425 | the user's name space. | |
2426 | (alloca): Include <stdlib.h> to get it, if it's not built in. | |
2427 | (YYMALLOC, YYFREE): Define only if needed. | |
2428 | (malloc, free): Declare, but only if needed, as this infringes on | |
2429 | the user name space. | |
2430 | ||
4d1801f1 PE |
2431 | 2005-05-25 Paul Eggert <eggert@cs.ucla.edu> |
2432 | ||
2433 | Fix BeOS, FreeBSD, MacOS porting problems reported by Bruno Haible. | |
2434 | * lib/bitset.c (bitset_print): Don't assume size_t can be printed | |
2435 | with %d format. | |
2436 | * lib/ebitset.c (min, max): Undef before defining. | |
2437 | * lib/vbitset.c (min, max): Likewise. | |
2438 | * lib/subpipe.c (create_subpipe): Save local variables in case | |
2439 | vfork clobbers them. | |
2440 | ||
2441 | 2005-05-24 Bruno Haible <bruno@clisp.org> | |
2442 | ||
2443 | * tests/synclines.at (AT_SYNCLINES_COMPILE): Add support for the | |
2444 | error message syntax used by gcc-4.0. | |
2445 | ||
b94a9e1e PE |
2446 | 2005-05-23 Paul Eggert <eggert@cs.ucla.edu> |
2447 | ||
85ac3861 PE |
2448 | * README: Mention m4 1.4.3. Remove obsolete advice about |
2449 | Sun Forte Developer 6 update 2, VMS, and MS-DOS. | |
2450 | ||
b94a9e1e PE |
2451 | * bootstrap: Remove workaround for problem I encountered with |
2452 | gettext 0.14.1; it seems to be fixed now. | |
2453 | ||
51c30d21 PE |
2454 | 2005-05-22 Paul Eggert <eggert@cs.ucla.edu> |
2455 | ||
009ce67d PE |
2456 | * NEWS: Version 2.0a. |
2457 | ||
f2a97c62 PE |
2458 | * src/files.c: Include "stdio-safer.h"; this fixes a typo in |
2459 | the previous change. | |
2460 | ||
c8775f93 PE |
2461 | Various maintainer cleanups. |
2462 | * .cvsignore: Add a.exe, a.out, b.out,, conf[0-9]*, confdefs*, | |
2463 | conftest*, for benefit of CVS commands run at the same time as | |
2464 | "configure". Add build-aux, since "bootstrap" now creates it and | |
2465 | its subfiles. | |
2466 | * Makefile.cfg (move_if_change): Remove. | |
2467 | * Makefile.maint: Remove the update stuff; we now use "bootstrap". | |
2468 | (ftp-gnu, www-gnu, move_if_change, local_updates, update): | |
2469 | (po_repo, do-po-update, po-update, wget_files, get-targets): | |
2470 | (config.guess-url_prefix, config.sub-url_prefix): | |
2471 | (ansi2knr.c-url_prefix, texinfo.tex-url_prefix): | |
2472 | (standards.texi-url_prefix, make-stds.texi-url_prefix, taget, url): | |
2473 | ($(get-targets), cvs-files, automake_repo, wget-update, cvs-update): | |
2474 | Remove. | |
2475 | * configure.ac (AC_CONFIG_AUX_DIR): Change from config to build-aux; | |
2476 | this is now the recommended name. | |
2477 | * config/.cvsignore: Remove config.guess, config.rpath, config.sub, | |
2478 | depcomp, install-sh, mdate-sh, missing, mkinstalldirs, texinfo.tex, | |
2479 | ylwrap. These files now go into build-aux. | |
2480 | * config/move-if-change: Remove. | |
2481 | * config/prev-version.txt: Bump from 1.75 to 2.0. | |
2482 | ||
3ea5f0ec PE |
2483 | * bootstrap: Add stdio-safer, unistd-safer modules. |
2484 | Remove m4/glibc2.m4 (introduced by latest gnulib, but | |
2485 | we don't need it). | |
2486 | * lib/.cvsignore: Add dup-safer.c, fd-safer.c, | |
2487 | fopen-safer.c, stdio-safer.h, unistd-safer.h. | |
2488 | * lib/subpipe.c: Include "unistd-safer.h". | |
2489 | (create_subpipe): Make sure all the newly-created | |
2490 | file descriptors are > 2, so that diagnostics don't | |
2491 | get sent down them (which might cause Bison to hang, in theory). | |
2492 | * m4/.cvsignore: Add stdio-safer.m4, unistd-safer.m4. | |
2493 | * src/files.c (xfopen): Use fopen_safer, not fopen. | |
2494 | ||
51c30d21 PE |
2495 | * data/lalr1.cc (yy::]b4_parser_class_name[::parse): Port |
2496 | yesterday's yacc.c fix. | |
2497 | ||
cea1469d PE |
2498 | 2005-05-21 Paul Eggert <eggert@cs.ucla.edu> |
2499 | ||
3ea5f0ec PE |
2500 | * data/glr.c, data/lalr1.cc: Update copyright date. |
2501 | ||
cea1469d PE |
2502 | Fix a destructor bug reported by Wolfgang Spraul in |
2503 | <http://lists.gnu.org/archive/html/bug-bison/2005-05/msg00042.html>. | |
2504 | * data/yacc.c (yyabortlab): Don't call destructor, and | |
2505 | don't set yychar to EMPTY. | |
2506 | (yyoverflowlab): Don't call destructor. | |
2507 | (yyreturn): Call destructor, if yychar is neither YYEOF nor YYEMPTY. | |
2508 | * tests/calc.at (AT_CHECK_CALC): Expect one fewer output lines, | |
2509 | since we no longer output the message "discarding lookahead token | |
2510 | end of input ()". | |
2511 | ||
5e6f62f2 PH |
2512 | 2005-05-20 Paul Hilfinger <hilfingr@CS.Berkeley.EDU> |
2513 | ||
2514 | * data/glr.c (YY_SYMBOL_PRINT): Don't print newline at end to | |
2515 | fix a small glitch in debugging output. | |
2516 | (yyprocessOneStack, yyrecoverSyntaxError, yyparse): Print newline | |
2517 | after YY_SYMBOL_PRINT where needed. | |
2518 | ||
2519 | (struct yyGLRState): Add some comments. | |
2520 | (struct yySemanticOption): Add some comments. | |
2521 | (union yyGLRStackItem): Add comment. | |
2522 | ||
2523 | (yymergeOptionSets): Correct this to properly perform the union, | |
2524 | avoiding infinite reported by Michael Rosien. | |
2525 | Update comment. | |
2526 | ||
2527 | * tests/glr-regression.at: Add test for GLR merging error reported | |
2528 | by M. Rosien. | |
cea1469d | 2529 | |
0fb669f9 PE |
2530 | 2005-05-13 Paul Eggert <eggert@cs.ucla.edu> |
2531 | ||
2532 | * COPYING, ChangeLog, GNUmakefile, HACKING, Makefile.am, | |
2533 | Makefile.cfg, Makefile.maint, NEWS, README, README-alpha, | |
2534 | README-cvs, TODO, bootstrap, configure.ac, data/Makefile.am, | |
2535 | data/README, data/c.m4, data/glr.c, data/lalr1.cc, data/yacc.c, | |
2536 | data/m4sugar/m4sugar.m4, doc/Makefile.am, doc/bison.texinfo, | |
2537 | doc/fdl.texi, doc/gpl.texi, doc/refcard.tex, lib/Makefile.am, | |
2538 | lib/abitset.c, lib/abitset.h, lib/bbitset.h, lib/bitset.c, | |
2539 | lib/bitset.h, lib/bitset_stats.c, lib/bitset_stats.h, | |
2540 | lib/bitsetv-print.c, lib/bitsetv-print.h, lib/bitsetv.c, | |
2541 | lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/get-errno.c, | |
2542 | lib/get-errno.h, lib/lbitset.c, lib/lbitset.h, lib/libiberty.h, | |
2543 | lib/main.c, lib/subpipe.c, lib/subpipe.h, lib/timevar.c, | |
2544 | lib/timevar.def, lib/timevar.h, lib/vbitset.c, lib/vbitset.h, | |
2545 | lib/yyerror.c, m4/cxx.m4, m4/m4.m4, m4/subpipe.m4, m4/timevar.m4, | |
2546 | m4/warning.m4, src/LR0.c, src/LR0.h, src/Makefile.am, src/assoc.c, | |
2547 | src/assoc.h, src/closure.c, src/closure.h, src/complain.c, | |
2548 | src/complain.h, src/conflicts.c, src/conflicts.h, src/derives.c, | |
2549 | src/derives.h, src/files.c, src/files.h, src/getargs.c, | |
2550 | src/getargs.h, src/gram.c, src/gram.h, src/lalr.c, src/lalr.h, | |
2551 | src/location.c, src/location.h, src/main.c, src/muscle_tab.c, | |
2552 | src/muscle_tab.h, src/nullable.c, src/nullable.h, src/output.c, | |
2553 | src/output.h, src/parse-gram.c, src/parse-gram.h, | |
2554 | src/parse-gram.y, src/print.c, src/print.h, src/print_graph.c, | |
2555 | src/print_graph.h, src/reader.c, src/reader.h, src/reduce.c, | |
2556 | src/reduce.h, src/relation.c, src/relation.h, src/scan-gram.l, | |
2557 | src/scan-skel.l, src/state.c, src/state.h, src/symlist.c, | |
2558 | src/symlist.h, src/symtab.c, src/symtab.h, src/system.h, | |
2559 | src/tables.c, src/tables.h, src/uniqstr.c, src/uniqstr.h, | |
2560 | src/vcg.c, src/vcg.h, src/vcg_defaults.h, tests/Makefile.am, | |
2561 | tests/actions.at, tests/c++.at, tests/calc.at, tests/conflicts.at, | |
2562 | tests/cxx-type.at, tests/existing.at, tests/glr-regression.at, | |
2563 | tests/headers.at, tests/input.at, tests/local.at, tests/output.at, | |
2564 | tests/reduce.at, tests/regression.at, tests/sets.at, | |
2565 | tests/synclines.at, tests/testsuite.at, tests/torture.at: | |
2566 | Update FSF postal mail address. | |
2567 | ||
51f4735e PE |
2568 | 2005-05-11 Paul Eggert <eggert@cs.ucla.edu> |
2569 | ||
2570 | * tests/local.at (AT_COMPILE_CXX): Treat LDFLAGS like AT_COMPILE does. | |
2571 | Problem reported by Ralf Menzel. | |
2572 | ||
80ce3401 PE |
2573 | 2005-05-01 Paul Eggert <eggert@cs.ucla.edu> |
2574 | ||
2575 | * tests/actions.at: Test that stack overflow invokes destructors. | |
2576 | From Marcus Holland-Moritz. | |
2577 | * data/yacc.c (yyerrlab): Move the code that destroys the stack | |
2578 | from here.... | |
2579 | (yyreturn): to here. That way, destructors are called properly | |
2580 | even if the stack overflows, or the user calls YYACCEPT or | |
2581 | YYABORT. Stack-overflow problem reported by Marcus Holland-Moritz. | |
2582 | (yyoverflowlab): Destroy the lookahead. | |
2583 | ||
2584 | 2005-04-24 Paul Eggert <eggert@cs.ucla.edu> | |
2585 | ||
2586 | * data/yacc.c (YYSTACK_ALLOC_MAXIMUM): Add more-descriptive comment. | |
2587 | ||
72f000b0 PE |
2588 | 2005-04-17 Paul Eggert <eggert@cs.ucla.edu> |
2589 | ||
2590 | * NEWS: Bison-generated C parsers no longer quote literal strings | |
2591 | associated with tokens. | |
2592 | * src/output.c (prepare_symbols): Don't escape strings, | |
2593 | since users don't want to see C escapes. | |
2594 | * tests/calc.at (AT_CHECK_CALC): Adjust to lack of quotes | |
2595 | in diagnostics. | |
c19683bb | 2596 | * tests/input.at (Torturing the Scanner): Likewise. |
72f000b0 PE |
2597 | * tests/regression.at (Token definitions, Web2c Actions): Likewise. |
2598 | ||
1094323f PE |
2599 | 2005-04-16 Paul Eggert <eggert@cs.ucla.edu> |
2600 | ||
2601 | * tests/torture.at (AT_INCREASE_DATA_SIZE): Skip the test if | |
2602 | the data size is known to be too small and we can't increase it. | |
2603 | This works around an HP-UX 11.00 glitch reported by Andrew Benham. | |
2604 | ||
ca407bdf PE |
2605 | 2005-04-15 Paul Eggert <eggert@cs.ucla.edu> |
2606 | ||
2607 | * src/parse-gram.y: Include quotearg.h. | |
2608 | (string_as_id): Quote $1 before using it as a key, since the | |
2609 | lexer no longer quotes it for us. | |
2610 | (string_content): Don't strip quotes, since lexer no longer | |
2611 | quotes it for us. | |
2612 | * src/scan-gram.l: Include quotearg.h. | |
2613 | ("\""): Omit quote. | |
2614 | ("'"<SC_ESCAPED_CHARACTER>): Quote symbol before using it as | |
2615 | a key, since the rest of the lexer doesn't quote it. | |
2616 | * src/symtab.c (symbol_get): Don't quote symbol; caller does it now. | |
2617 | * tests/regression.at (Token definitions): Check for backslashes | |
2618 | in token strings. | |
2619 | ||
2620 | * data/yacc.c (YYSTACK_ALLOC_MAXIMUM): New macro. | |
2621 | (YYSIZE_T): Define to unsigned long int when using an older compiler. | |
2622 | (yyparse): Revamp code to generate long syntax error message, to | |
2623 | make it easier to translate, and to avoid problems with arithmetic | |
2624 | overflow. Change "virtual memory" to "memory" in diagnostic, since | |
2625 | we don't know whether the memory is virtual. | |
2626 | ||
1ce59070 PE |
2627 | 2005-04-13 Paul Eggert <eggert@cs.ucla.edu> |
2628 | ||
2629 | * NEWS: Bison-generated C parsers now use the _ macro to | |
2630 | translate strings. | |
2631 | * data/yacc.c (_) [!defined _]: New macro. | |
2632 | All English strings wrapped inside this macro. | |
2633 | * doc/bison.texinfo (Bison Parser): Document _. | |
2634 | * po/POTFILES.in: Include src/parse-gram.c, since it now | |
2635 | includes translateable strings that parse-gram.y doesn't. | |
2636 | ||
a749a695 PE |
2637 | 2005-04-12 Paul Eggert <eggert@cs.ucla.edu> |
2638 | ||
2639 | * src/symtab.c (symbol_make_alias): Call symbol_type_set, | |
2640 | reverting the 2004-10-11 change to this function. | |
2641 | (symbol_check_alias_consistency): Don't call symbol_type_set | |
2642 | if the type name is already correct. | |
2643 | * tests/input.at (Typed symbol aliases): New test, from Tim Van Holder. | |
2644 | ||
8fb1053b PE |
2645 | 2005-03-25 Paul Eggert <eggert@cs.ucla.edu> |
2646 | ||
2647 | * tests/regression.at (Token definitions): Don't use a token named | |
2648 | c, as that generates a "#define c ..." that runs afoul of buggy | |
2649 | stdlib.h that uses the identifier c as a member of struct | |
2650 | drand48_data. Problem reported by Horst Wente. | |
2651 | ||
ff498c4a PE |
2652 | 2005-03-21 Paul Eggert <eggert@cs.ucla.edu> |
2653 | ||
2654 | * bootstrap: Change translation URL from | |
2655 | http://www2.iro.umontreal.ca/~gnutra/po/maint/bison/ to | |
2656 | http://www.iro.umontreal.ca/translation/maint/bison/ to avoid | |
2657 | redirection glitches. Problem reported by twlevo@xs4all.nl. | |
2658 | ||
65211d70 PE |
2659 | 2005-03-20 Paul Eggert <eggert@cs.ucla.edu> |
2660 | ||
2661 | * tests/local.at (AT_COMPILE, AT_COMPILE_CXX): Don't put options | |
2662 | after operands; POSIX says this isn't portable for the c99 command. | |
2663 | ||
9577fb1f PE |
2664 | 2005-03-18 Paul Eggert <eggert@cs.ucla.edu> |
2665 | ||
2666 | * tests/glr-regression.at (glr-regr2a.y): Try to dump core | |
2667 | immediately if a data overrun has occurred; this may help us track | |
2668 | down what may be a spurious failure on MacOS. | |
2669 | ||
78b178f7 PE |
2670 | 2005-03-17 Paul Eggert <eggert@cs.ucla.edu> |
2671 | ||
a2599d0f PE |
2672 | Respond to problems reported by twlevo@xs4all.nl. |
2673 | ||
2674 | * bootstrap: Use "trap - 0" rather than the unportable "trap 0". | |
2675 | ||
78b178f7 PE |
2676 | * src/vcg.h: Comment fix. |
2677 | * src/vcg_defaults.h: Parenthesize macro bodies to make them safe. | |
2678 | (G_CMAX): Change to -1 instead of INT_MAX. | |
2679 | ||
2680 | * data/yacc.c (yyparse): Omit spaces before #line. | |
78b178f7 | 2681 | |
7296e729 PE |
2682 | 2005-03-15 Paul Eggert <eggert@cs.ucla.edu> |
2683 | ||
2684 | * src/tables.c (state_number_to_vector_number): Put it inside an | |
2685 | "#if 0", since it's not currently used. Problem reported by | |
2686 | Roland McGrath. | |
2687 | ||
05ac60f3 PE |
2688 | 2005-03-06 Paul Eggert <eggert@cs.ucla.edu> |
2689 | ||
2690 | * src/output.c (escaped_output): Renamed from | |
2691 | escaped_file_name_output, since we now use it for symbol tags as | |
2692 | well. All uses changed. | |
2693 | (symbol_destructors_output, symbol_printers_output): | |
2694 | Escape symbol tags too. | |
2695 | Problem reported by Matyas Forstner in | |
2696 | <http://lists.gnu.org/archive/html/bug-bison/2005-03/msg00009.html>. | |
2697 | ||
2698 | * src/muscle_tab.c (muscle_code_grow): Don't quote numbers; it's | |
2699 | not needed. | |
2700 | * src/output.c (user_actions_output, token_definitions_output, | |
2701 | symbol_destructors_output, symbol_printers_output): Likewise. | |
2702 | * src/reader.c (prologue_augment): Likewise. | |
2703 | * src/scan-gram.l (handle_action_dollar, handle_action_at): Likewise. | |
2704 | ||
2705 | * src/vcg.c (output_edge): Don't quote linestyle arg. | |
2706 | Problem reported by twlevo@xs4all.nl. | |
2707 | ||
7eb453ac PE |
2708 | 2005-02-28 Paul Eggert <eggert@cs.ucla.edu> |
2709 | ||
2710 | * doc/bison.texinfo (Semantic Tokens): Fix scoping problem in | |
2711 | example, reported by Derek M Jones. Also, make the example even | |
2712 | more outrageous, to better illustrate how bad the problem is. | |
2713 | ||
4c04c52a PE |
2714 | 2005-02-24 Paul Eggert <eggert@cs.ucla.edu> |
2715 | ||
2716 | * doc/bison.texinfo (Mfcalc Symtab): Correct the prototype for | |
2717 | putsym. Typo reported by Sebastian Piping. | |
2718 | ||
a61e1620 PE |
2719 | 2005-02-23 Paul Eggert <eggert@cs.ucla.edu> |
2720 | ||
2721 | * doc/bison.texinfo (Language and Grammar): some -> same | |
2722 | (Epilogue): int he -> in the | |
2723 | Typos reported by Sebastian Piping via Justin Pence. | |
2724 | ||
9ec93868 PE |
2725 | 2005-02-07 Paul Eggert <eggert@cs.ucla.edu> |
2726 | ||
2727 | * tests/glr-regression.at (Improper handling of embedded actions | |
2728 | and dollar(-N) in GLR parsers): Renamed from "Improper handling of | |
2729 | embedded actions and $-N in GLR parsers", work around an Autoconf bug | |
2730 | with dollar signs in test names. | |
2731 | * tests/input.at (Invalid dollar-n): Renamed from "Invalid \$n", | |
2732 | for a similar reason. | |
2733 | ||
73ce7e7e PE |
2734 | 2005-01-28 Paul Eggert <eggert@cs.ucla.edu> |
2735 | ||
2736 | * src/vcg.c (output_graph): G_VIEW -> normal_view in case someone | |
2737 | wants to redefine G_VIEW. | |
2738 | ||
2e72b98e PE |
2739 | 2005-01-27 Paul Eggert <eggert@cs.ucla.edu> |
2740 | ||
2741 | * src/vcg.c (get_view_str): Remove case for normal_view. | |
2742 | Problem reported by twlevo@xs4all.nl. | |
2743 | ||
e0d634e5 PE |
2744 | 2005-01-24 Paul Eggert <eggert@cs.ucla.edu> |
2745 | ||
ccf830a4 PE |
2746 | * configure.ac (O0CFLAGS, O0CXXFLAGS): Fix quoting bug. |
2747 | Problem reported by twlevo@xs4all.nl. | |
2748 | ||
e0d634e5 PE |
2749 | * doc/bison.texinfo: Change @dircategory from "GNU programming |
2750 | tools" to "Software development". Requested by Richard Stallman | |
2751 | via Karl Berry. | |
2752 | ||
7bbc8cb0 PE |
2753 | 2005-01-23 Paul Eggert <eggert@cs.ucla.edu> |
2754 | ||
2755 | * tests/c++.at (AT_CHECK_DOXYGEN): Don't use options after operands. | |
2756 | Problem reported by twlevo@xs4all.nl. | |
2757 | ||
08b770bc PE |
2758 | 2005-01-21 Paul Eggert <eggert@cs.ucla.edu> |
2759 | ||
2760 | * data/yacc.c (YYCOPY, yystpcpy, yyparse): Remove "register" | |
2761 | keyword; it's not needed with modern compilers, and it doesn't | |
2762 | affect correctness with older compilers. Suggested by | |
2763 | twlevo@xs4all.nl. | |
2764 | ||
95f22ad2 PE |
2765 | 2005-01-17 Paul Eggert <eggert@cs.ucla.edu> |
2766 | ||
2767 | * data/glr.c (yyuserAction): Add "default: break;" case to pacify | |
2768 | gcc -Wswitch-default. | |
2769 | * data/lalr1.cc (yy::]b4_parser_class_name[::parse): Likewise. | |
2770 | * data/yacc.c (yyparse): Likewise. | |
2771 | ||
d229d15c PE |
2772 | 2005-01-12 Paul Eggert <eggert@cs.ucla.edu> |
2773 | ||
2774 | * src/system.h (OUTPUT_EXT, TAB_EXT): Define only if not defined | |
2775 | already. Let config.h define any nonstandard values. | |
2776 | ||
ecadd90f PE |
2777 | 2005-01-10 Paul Eggert <eggert@cs.ucla.edu> |
2778 | ||
2779 | * tests/calc.at (_AT_DATA_CALC_Y): Use alarm (100), not alarm (10), | |
2780 | for the benefit of slower hosts. Problem reported by | |
2781 | Nelson H. F. Beebe. | |
2782 | ||
213744b5 PE |
2783 | 2005-01-07 Paul Eggert <eggert@cs.ucla.edu> |
2784 | ||
2785 | * data/yacc.c (yyparse): Pacify non-GCC compilers about yyerrorlab | |
2786 | being defined and not used. | |
2787 | * data/lalr1.cc (yyparse): Likewise. | |
2788 | Use "if (false)" rather than "if (0)". | |
2789 | ||
249d3236 PE |
2790 | 2005-01-05 Paul Eggert <eggert@cs.ucla.edu> |
2791 | ||
2792 | * TODO: Mention that we should allow NUL bytes in tokens. | |
2793 | ||
987cc1fb PE |
2794 | 2005-01-02 Paul Eggert <eggert@cs.ucla.edu> |
2795 | ||
2796 | * src/scan-skel.l (<<EOF>>): Don't close standard output. | |
2797 | Problem reported by Hans Aberg. | |
2798 | ||
08fe02d9 PE |
2799 | 2005-01-01 Paul Eggert <eggert@cs.ucla.edu> |
2800 | ||
2801 | * src/getargs.c (version): Happy new year; update overall | |
2802 | program copyright date from 2004 to 2005. | |
2803 | ||
2804 | * src/scan-skel.l ("@output ".*\n): Don't close standard output. | |
2805 | Problem reported by Hans Aberg. | |
2806 | * tests/output.at (AT_CHECK_OUTPUT): New arg SHELLIO. | |
2807 | (Output file names.): Add a test for the case when standard output | |
2808 | is closed. | |
2809 | ||
010c0266 PE |
2810 | 2004-12-26 Paul Eggert <eggert@cs.ucla.edu> |
2811 | ||
2812 | * doc/bison.texinfo (@copying): Update FDL version number to 1.2, | |
2813 | to fix an oversight in the Bison 2.0 manual. | |
2814 | ||
da12206a PE |
2815 | 2004-12-25 Paul Eggert <eggert@cs.ucla.edu> |
2816 | ||
2817 | * NEWS: Version 2.0. Reformat the existing news items since | |
2818 | 1.875, so that related items are grouped together. | |
3a4734aa | 2819 | * configure.ac (AC_INIT): Bump version to 2.0. |
da12206a PE |
2820 | * src/parse-gram.c, src/parse-gram.h: Regenerate with 2.0. |
2821 | ||
c935d934 PE |
2822 | * tests/torture.at (Exploding the Stack Size with Alloca): Set |
2823 | YYSTACK_USE_ALLOCA to 1 if __GNUC__ or alloca are defined; | |
2824 | otherwise, we're not testing alloca. Unfortunately there's no | |
2825 | simple way to consult HAVE_ALLOCA here. | |
2826 | ||
da12206a PE |
2827 | * data/lalr1.cc (yydestruct_): Pacify unused variable warning |
2828 | for yymsg, too. | |
2829 | ||
2830 | * src/LR0.c (new_itemsets): Use memset rather than zeroing by | |
2831 | hand. This avoids a warning about comparing int to size_t when | |
2832 | GCC warnings are enabled. | |
2833 | ||
0a2c5137 PE |
2834 | 2004-12-22 Paul Eggert <eggert@cs.ucla.edu> |
2835 | ||
d7e14fc0 PE |
2836 | * NEWS: Bison-generated parsers no longer default to using the |
2837 | alloca function (when available) to extend the parser stack, due | |
2838 | to widespread problems in unchecked stack-overflow detection. | |
2839 | * data/glr.c (YYMAXDEPTH): Remove undef when zero. It's the user's | |
2840 | responsibility to set it to a positive value. This lets the user | |
2841 | specify a value that is not a preprocessor constant. | |
2842 | * data/yacc.c (YYMAXDEPTH): Likewise. | |
2843 | (YYSTACK_ALLOC): Define only if YYSTACK_USE_ALLOCA is nonzero. | |
2844 | * doc/bison.texinfo (Stack Overflow): YYMAXDEPTH no longer needs | |
2845 | to be a compile-time constant. However, explain the constraints on it. | |
2846 | Also, explain the constraints on YYINITDEPTH. | |
2847 | (Table of Symbols): Explain that alloca is no longer the default. | |
2848 | Explain the user's responsibility if they define YYSTACK_USE_ALLOCA | |
2849 | to 1. | |
2850 | ||
0a2c5137 PE |
2851 | * doc/bison.texinfo (Location Default Action): Mention that n must |
2852 | be zero when k is zero. Suggested by Frank Heckenbach. | |
2853 | ||
e019c247 AD |
2854 | 2004-12-22 Akim Demaille <akim@epita.fr> |
2855 | ||
2856 | * data/lalr1.cc (parser::token_number_type, parser::rhs_number_type) | |
2857 | (parser::state_type, parser::semantic_type, parser::location_type): | |
2858 | Private, not public. | |
2859 | (parser::parse): Return ints, not bool. | |
2860 | Returning a bool introduces a problem: 0 corresponds to false, and | |
2861 | it seems weird to return false on success. Returning true changes | |
2862 | the conventions for yyparse. | |
2863 | Alternatively we could return void and send an exception. | |
2864 | There is no clear consensus (yet?). | |
2865 | (state_stack, semantic_stack, location_stack): Rename as... | |
2866 | (state_stack_type, semantic_stack_type, location_stack_type): these. | |
2867 | Private, not public. | |
2868 | * tests/c++.at: New. | |
2869 | * tests/testsuite.at, tests/Makefile.am: Adjust. | |
2870 | ||
72731bb7 AD |
2871 | 2004-12-21 Akim Demaille <akim@epita.fr> |
2872 | ||
2873 | * data/lalr1.cc (parser::parse): Return a bool instead of an int. | |
2874 | ||
9a0d8bec AD |
2875 | 2004-12-21 Akim Demaille <akim@epita.fr> |
2876 | ||
2877 | Don't impose std::string for filenames. | |
2878 | ||
2879 | * data/lalr1.cc (b4_filename_type): New. | |
2880 | (position::filename): Use it. | |
2881 | (parser.hh): Move the inclusion of stack.hh and location.hh below | |
2882 | the user code, so that needed headers for the filename type can be | |
2883 | included first. | |
72731bb7 AD |
2884 | Forward declare them before the user code. |
2885 | * tests/Makefile.am (check-local, installcheck-local): Pass | |
2886 | TESTSUITEFLAGS to the TESTSUITE. | |
9a0d8bec | 2887 | |
99880de5 AD |
2888 | 2004-12-20 Akim Demaille <akim@epita.fr> |
2889 | ||
2890 | Use more STL like names: my_class instead of MyClass. | |
2891 | ||
2892 | * data/lalr1.cc (LocationStack, LocationType, RhsNumberType) | |
2893 | (SemanticStack, SemanticType, StateStack, StateType) | |
2894 | (TokenNumberType, Stack, Slice, Traits, Parser::location) | |
2895 | (Parser::value): Rename as... | |
2896 | (location_stack, location_type, rhs_number_type, semantic_stack) | |
2897 | (semantic_type, state_stack, state_type, token_number_type, stack) | |
2898 | (slice, traits, parser::yylloc, parser::yylval): these. | |
2899 | ||
2900 | * tests/calc.at, tests/regression.at, tests/actions.at: Adjust. | |
2901 | ||
9bec482e PE |
2902 | 2004-12-19 Paul Eggert <eggert@cs.ucla.edu> |
2903 | ||
2904 | * data/glr.c (YYLLOC_DEFAULT): Use GNU spacing conventions. | |
2905 | * data/yacc.c (YYLLOC_DEFAULT): Likewise. | |
2906 | ||
f6fbd3da PE |
2907 | 2004-12-17 Paul Eggert <eggert@cs.ucla.edu> |
2908 | ||
2909 | Remove uses of 'short int' and 'unsigned short int'. This raises | |
2910 | some arbitrary limits. It uses more memory but nowadays that's | |
2911 | not much of an issue. | |
2912 | ||
2913 | This change does not affect the generated parsers; that's a different | |
2914 | task, as some users will want to conserve memory there. | |
2915 | ||
2916 | Ideally we should use size_t to represent all object counts, and | |
2917 | something like ptrdiff_t to represent signed differences of object | |
2918 | counts; but that will require more code-cleanup than I have the | |
2919 | time to do right now. | |
2920 | ||
2921 | * src/LR0.c (allocate_itemsets, new_itemsets, save_reductions): | |
2922 | Use size_t, not int or short int, to count objects. | |
2923 | * src/closure.c (nritemset, closure): Likewise. | |
2924 | * src/closure.h (nritemset, closure): Likewise. | |
2925 | * src/nullable.c (nullable_compute): Likewise. | |
2926 | * src/print.c (print_core): Likewise. | |
2927 | * src/print_graph.c (print_core): Likewise. | |
2928 | * src/state.c (state_compare, state_hash): Likewise. | |
2929 | * src/state.h (struct state): Likewise. | |
2930 | * src/tables.c (default_goto, goto_actions): Likewise. | |
2931 | ||
2932 | * src/gram.h (rule_number, rule): Use int, not short int. | |
2933 | * src/output.c (prepare_rules): Likewise. | |
2934 | * src/state.h (state_number, STATE_NUMBER_MAXIMUM, transitions, | |
2935 | errs, reductions): Likewise. | |
2936 | * src/symtab.h (symbol_number, SYMBOL_NUMBER_MAXIMUM, struct symbol): | |
2937 | Likewise. | |
2938 | * src/tables.c (vector_number, tally, action_number, | |
2939 | ACTION_NUMBER_MINIMUM): Likewise. | |
2940 | * src/output.c (muscle_insert_short_int_table): Remove. | |
2941 | ||
efeed023 AD |
2942 | 2004-12-17 Akim Demaille <akim@epita.fr> |
2943 | ||
2944 | * data/lalr1.cc: Extensive Doxygenation. | |
2945 | (error_): Rename as... | |
2946 | (error): this, since it is visible to the user. | |
2947 | Adjust callers. | |
2948 | (Parser::message): Now an automatic variable from... | |
2949 | (Parser::yyreport_syntax_error_): here. | |
2950 | * tests/actions.at, tests/calc.at, tests/regression.at: Adjust to | |
2951 | Parser::error. | |
2952 | * tests/input.at: Escape $. | |
2953 | ||
bc82c5a5 PE |
2954 | 2004-12-16 Paul Eggert <eggert@cs.ucla.edu> |
2955 | ||
2956 | * data/glr.c (b4_lhs_value, b4_rhs_value, b4_rhs-location): | |
2957 | Parenthesize rhs to avoid obscure problems with mistakes like | |
2958 | "foo$$bar = foo$1bar;". Problem reported by twlevo at xs4all. | |
2959 | * data/lalr1.cc (b4_lhs_value, b4_rhs_value, b4_lhs_location, | |
2960 | b4_rhs_location): Likewise. | |
2961 | * data/yacc.c (b4_lhs_value, b4_rhs_value, b4_lhs_location, | |
2962 | b4_rhs_location): Likewise. | |
2963 | ||
fd19f271 AD |
2964 | 2004-12-16 Akim Demaille <akim@epita.fr> |
2965 | ||
2966 | * data/lalr1.cc (yyreport_syntax_error_): Catch up with glr.c and | |
2967 | yacc.c: be sure to stay within yycheck_. | |
2968 | * tests/actions.at: Re-enable C++ tests. | |
2969 | ||
10454ea4 AD |
2970 | 2004-12-16 Akim Demaille <akim@epita.fr> |
2971 | ||
2972 | * src/print_graph.c (print_graph): Remove layoutalgorithm uses for | |
2973 | real. | |
2974 | ||
c5b95ccf AD |
2975 | 2004-12-16 Akim Demaille <akim@epita.fr> |
2976 | ||
2977 | Use #define to handle the %name-prefix. | |
2978 | ||
2979 | * data/glr.c, data/yacc.c: Comment changes. | |
2980 | * data/lalr1.cc (yylex): Use #define to select the name of yylex, | |
2981 | so that one can refer to yylex in the parser file, and have it | |
2982 | renamed, as is the case with other skeletons. | |
2983 | ||
617a8f12 AD |
2984 | 2004-12-16 Akim Demaille <akim@epita.fr> |
2985 | ||
2986 | Move lalr1.cc internals into yy*. | |
2987 | ||
2988 | * data/lalr1.cc (semantic_stack_, location_stack_, state_stack_) | |
2989 | (semantic_stack_, location_stack_, pact_, pact_ninf_, defact_) | |
2990 | (pgoto_, defgoto_, table_, table_ninf_, check_, stos_, r1_, r2_) | |
2991 | (name_, rhs_, prhs_, rline_, token_number_, eof_, last_, nnts_) | |
2992 | (empty_, final_, terror_, errcode_, ntokens_) | |
2993 | (user_token_number_max_, undef_token_, n_, len_, state_, nerrs_) | |
2994 | (looka_, ilooka_, error_range_, nerrs_): | |
2995 | Rename as... | |
2996 | (yysemantic_stack_, yylocation_stack_, yystate_stack_) | |
2997 | (yysemantic_stack_, yylocation_stack_, yypact_, yypact_ninf_) | |
2998 | (yydefact_, yypgoto_, yydefgoto_, yytable_, yytable_ninf_) | |
2999 | (yycheck_, yystos_, yyr1_, yyr2_, yyname_, yyrhs_, yyprhs_) | |
3000 | (yyrline_, yytoken_number_, yyeof_, yylast_, yynnts_, yyempty_) | |
3001 | (yyfinal_, yyterror_, yyerrcode_, yyntokens_) | |
3002 | (yyuser_token_number_max_, yyundef_token_, yyn_, yylen_, yystate_) | |
3003 | (yynerrs_, yylooka_, yyilooka_, yyerror_range_, yynerrs_): | |
3004 | these. | |
3005 | ||
1e547e6e PE |
3006 | 2004-12-15 Paul Eggert <eggert@cs.ucla.edu> |
3007 | ||
3008 | Fix some problems reported by twlevo at xs4all. | |
3009 | * src/symtab.c (symbol_new): Report an error if the input grammar | |
3010 | contains too many symbols. This is better than calling abort() later. | |
3011 | * src/vcg.h (enum layoutalgorithm): Remove. All uses removed. | |
3012 | (struct node, struct graph): | |
3013 | Rename member expand to stretch. All uses changed. | |
3014 | (struct graph): Remove member layoutalgorithm. All uses removed. | |
3015 | * src/vcg.c (get_layoutalgorithm_str): Remove. All uses removed. | |
3016 | * src/vcg_defaults.h (G_STRETCH): Renamed from G_EXPAND. | |
3017 | All uses changed. | |
3018 | (N_STRETCH): Rename from N_EXPAND. All uses changed. | |
3019 | ||
735d6bd4 AD |
3020 | 2004-12-15 Akim Demaille <akim@epita.fr> |
3021 | ||
3022 | * data/lalr1.cc: Normalize /** \brief ... */ to ///. | |
3023 | Add more Doxygen comments. | |
3024 | (symprint_, stack_print_, reduce_print_, destruct_, pop) | |
3025 | (report_syntax_error_, translate_): Rename as... | |
3026 | (yysymprint_, yystack_print_, yyreduce_print_, yydestruct_) | |
3027 | (yypop_, yyreport_syntax_error_, yytranslate_): this. | |
3028 | ||
2e1f5829 AD |
3029 | 2004-12-15 Akim Demaille <akim@epita.fr> |
3030 | ||
3031 | * data/lalr1.cc (lex_): Rename as... | |
3032 | (yylex_): this. | |
3033 | Move the trace here. | |
3034 | Take the %name-prefix into account. | |
3035 | Reported by Alexandre Duret-Lutz. | |
3036 | ||
a3cb6248 AD |
3037 | 2004-12-15 Akim Demaille <akim@epita.fr> |
3038 | ||
3039 | Simplify the C++ parser constructor. | |
3040 | ||
3041 | * data/lalr1.cc (debug_): Rename as... | |
3042 | (yydebug_): so that the parser's internals are always in the yy* | |
3043 | pseudo namespace. | |
3044 | Adjust uses. | |
3045 | (b4_parse_param_decl): Remove the leading comma as it is now only | |
3046 | called as unique argument list. | |
3047 | (Parser::Parser): Remove the constructor accepting a location and | |
3048 | an initial debugging level. | |
3049 | Remove from the other ctor the argument for the debugging level. | |
3050 | (debug_level_type, debug_level, set_debug_level): New. | |
3051 | ||
3052 | * tests/actions.at, tests/calc.at, tests/regression.at: Adjust | |
3053 | constructor calls. | |
3054 | ||
07fed891 AD |
3055 | 2004-12-15 Akim Demaille <akim@epita.fr> |
3056 | ||
3057 | Remove b4_root related material: failure experiment | |
a3cb6248 | 3058 | (which goal was to allow to derive from a class). |
07fed891 AD |
3059 | |
3060 | * data/lalr1.cc (b4_root, b4_param, b4_constructor): Remove | |
3061 | definitions and uses. | |
3062 | ||
e603eaa5 PE |
3063 | 2004-12-14 Paul Eggert <eggert@cs.ucla.edu> |
3064 | ||
3065 | * data/glr.c (struct yyGLRStack): yyerror_range now has 3 items, | |
3066 | not 2, since it's not portable to subtract 1 from the start of an | |
3067 | array. The new item 0 is never set or used. All uses changed. | |
3068 | ||
3069 | (yyrecoverSyntaxError): Use YYLLOC_DEFAULT instead of assuming | |
3070 | the default definition of YYLLOC_DEFAULT. Problem reported | |
3071 | by Frank Heckenbach. | |
3072 | ||
fafb007d PE |
3073 | 2004-12-12 Paul Eggert <eggert@cs.ucla.edu> |
3074 | ||
3075 | * data/glr.c (YYRHSLOC): Don't have two definitions, one for | |
3076 | the normal case and one for the error case. Just use the | |
3077 | first one uniformly. Problem reported by Frank Heckenbach. | |
3078 | (YYLLOC_DEFAULT): Use the conventions of yacc.c, so we can | |
3079 | use exactly the same macro in both places. | |
3080 | (yyerror_range): Now of type yyGLRStackItem, not YYLTYPE, | |
3081 | so that the normal-case YYRHSLOC works for the error case too. | |
3082 | All uses changed. | |
3083 | * data/yacc.c (YYRHSLOC): New macro, taken from glr.c. | |
3084 | (YYLLOC_DEFAULT): Use the same macro as glr.c. | |
3085 | * doc/bison.texinfo (Location Default Action): Don't claim that | |
3086 | we have an array of locations. Use the same macro for both glr | |
3087 | and lalr parsers. Mention YYRHSLOC. Mention what happens when | |
3088 | the index is 0. | |
3089 | ||
48814dcd PE |
3090 | 2004-12-10 Paul Eggert <eggert@cs.ucla.edu> |
3091 | ||
a4e1a53b PE |
3092 | * HACKING: Update email addresses to send announcements to. |
3093 | ||
48814dcd PE |
3094 | * configure.ac (AC_INIT): Bump version to 1.875f. |
3095 | ||
337116ba PE |
3096 | 2004-12-10 Paul Eggert <eggert@cs.ucla.edu> |
3097 | ||
3098 | * NEWS: Version 1.875e. | |
3099 | * src/parse-gram.c, src/parse-gram.h: Regenerate with 1.875e. | |
3100 | ||
3101 | * src/scan-skel.l: Include "complain.h", for "fatal". | |
3102 | ||
3103 | * src/relation.h (relation_print, relation_digraph): | |
3104 | Relation sizes are of type relation_node, not size_t (this is | |
3105 | merely a doc fix, since the two types are equivalent). | |
3106 | (relation_transpose): Relation sizes are of type relation_node, | |
3107 | not int. | |
3108 | * src/relation.c: Likewise. | |
3109 | (top, infinity): Now of type relation_node, not int. | |
3110 | (traverse, relation_transpose): Use relation_node, not int. | |
3111 | ||
3112 | * data/glr.c (yyuserAction, yyrecoverSyntaxError): Mark args | |
3113 | with ATTRIBUTE_UNUSED if they're not used, to avoid GCC warning. | |
3114 | (yyparse): Remove unused local introduced in 2004-10-25 patch. | |
3115 | ||
3116 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): New arg | |
68b082af | 3117 | specifying whether the test should be skipped. Use it tp |
337116ba | 3118 | specify that the [%defines %skeleton "lalr1.cc"] tests currently |
68b082af | 3119 | fail on some hosts, and should be skipped. |
337116ba | 3120 | |
da2a7671 PE |
3121 | 2004-12-08 Paul Eggert <eggert@cs.ucla.edu> |
3122 | ||
3123 | * src/system.h (CALLOC, MALLOC, REALLOC): Remove. All callers | |
3124 | changed to use xcalloc, xnmalloc, xnrealloc, respectively, | |
3125 | unless otherwise specified below. | |
3126 | ||
3127 | * src/LR0.c (allocate_itemsets): Use xnmalloc, not xcalloc, | |
3128 | to allocate kernel_base, kernel_items, kernel_size, since | |
3129 | they needn't be initialized to 0. | |
3130 | (allocate_storgae): Likewise, for shiftset, redset, shift_symbol. | |
3131 | * src/closure.c (new_closure): Likewise, for itemset. | |
3132 | * src/derives.c (derives_compute): Likewise, for delts, derives, q. | |
3133 | * src/lalr.c (set_goto_map): Likewise, for temp_map. | |
3134 | (initialize_F): Likewise, for reads, edge, reads[i], includes[i]. | |
3135 | (build_relations): Likewise for edge, states1, includes. | |
3136 | * src/nullable.c (nullable_compute): Likewise, for squeue, relts. | |
3137 | * src/reader.c (packgram): Likewise, for ritem, rules. | |
3138 | * src/reduce.c (nonterminals_reduce): Likewise for nontermmap. | |
3139 | * src/relation.c (relation_digraph): Likewise for VERTICES. | |
3140 | (relation_transpose): Likewise for new_R, end_R. | |
3141 | * src/symtab.c (symbols_token_translations_init): Likewise for | |
3142 | token_translations. | |
3143 | * src/tables.c (save_row): Likewise for froms, tos, conflict_tos. | |
3144 | (token_actions): Likewise for yydefact, actrow, conflrow, | |
3145 | conflict_list. | |
3146 | (save_column): Likewise for froms[symno], tos[symno]. | |
3147 | (goto_actions): Likewise for state_count. | |
3148 | (pack_table): Likewise for base, pos, check. | |
3149 | (tables_generate): Likewise for width. | |
3150 | ||
3151 | * src/LR0.c (set_states): Don't reuse kernel_size and kernel_base | |
3152 | for initial core. Just have a separate core, so we needn't worry | |
3153 | about whether kernel_size and kernel_base are initialized. | |
3154 | ||
3155 | * src/LR0.c (shift_symbol, redset, shiftset, kernel_base, | |
3156 | kernel_size, kernel_items): Remove unnecessary initialization. | |
3157 | * src/conflicts.c (conflicts): Likewise. | |
3158 | * src/derives.c (derives): Likewise. | |
3159 | * src/muscle_tablc (muscle_insert): Likewise. | |
3160 | * src/relation.c (relation_digraph): Likewise. | |
3161 | * src/tables.c (froms, tos, conflict_tos, tally, width, actrow, order, | |
3162 | conflrow, conflict_table, conflict_list, table, check): | |
3163 | Likewise. | |
3164 | ||
3165 | * src/closure.c (new_closure): Arg is of type unsigned int, not int. | |
3166 | This is because all callers pass unsigned int. | |
3167 | * src/closure.h (new_closure): Likewise. | |
3168 | ||
3169 | * src/lalr.c (initialize_F): Initialize reads[i] in all cases. | |
3170 | (build_relations): Initialize includes[i] in all cases. | |
3171 | * src/reader.c (packgram): Always initialize rules[ruleno].prec | |
3172 | and rules[ruleno].precsym. Initialize members in order. | |
3173 | * src/relation.c (relation_transpose): Always initialize new_R[i] | |
3174 | and end_R[i]. | |
3175 | * src/table.c (conflict_row): Initialize 0 at end of conflict_list. | |
3176 | ||
3177 | * src/output.c (prepare_actions): Pass 0 instead of conflict_list[0]; | |
3178 | conflict_list[0] was always 0, but now it isn't initialized. | |
3179 | ||
3180 | * src/table.c (table_grow): When conflict_table grew, the grown | |
3181 | area wasn't cleared. Fix this. | |
3182 | ||
3183 | * lib/.cvsignore: Add strdup.c, strdup.h. | |
3184 | * m4/.cvsignore: Add strdup.m4. | |
3185 | ||
00baeeac PE |
3186 | 2004-12-07 Paul Eggert <eggert@cs.ucla.edu> |
3187 | ||
3188 | * src/lalr.h (GOTO_NUMBER_MAXIMUM): New macro. | |
3189 | * src/lalr.c (set_goto_map): Don't allow ngotos to equal | |
3190 | GOTO_NUMBER_MAXIMUM, since we occasionally compute | |
3191 | ngotos + 1 without checking for overflow. | |
3192 | (build_relations): Use END_NODE, not -1, to denote end of edges. | |
3193 | * src/lalr.c (set_goto_map, map_goto, initialize_F, add_loopback_edge, | |
3194 | build_relations): Use goto_number, not int, for goto numbers. | |
3195 | * src/tables.c (save_column, default_goto): Likewise. | |
3196 | ||
be3d9d42 AD |
3197 | 2004-11-23 Akim Demaille <akim@epita.fr> |
3198 | ||
3199 | * data/lalr1.cc (YYSTYPE): Define it as is done for C, instead | |
3200 | of #defining from yystype. | |
3201 | Don't typedef yystype, C++ does not need it. | |
3202 | This lets it possible to forward declare it as union. | |
3203 | ||
78e526d5 PE |
3204 | 2004-11-23 Paul Eggert <eggert@cs.ucla.edu> |
3205 | ||
3206 | * bootstrap (gnulib_modules): Add extensions. | |
3207 | Problem reported by Jim Meyering. | |
3208 | ||
afbb696d PE |
3209 | 2004-11-22 Paul Eggert <eggert@cs.ucla.edu> |
3210 | ||
3211 | * src/LR0.c, src/closure.c, src/derives.c, src/gram.c, | |
3212 | src/lalr.c, src/nullable.c, src/relation.c, src/scan-skel.l, | |
3213 | src/system.h, src/tables.c: XFREE -> free, to accommodate | |
3214 | recent change to gnulib xalloc.h. | |
78e526d5 | 3215 | Problem reported by Jim Meyering. |
afbb696d | 3216 | |
c1f8f16a AD |
3217 | 2004-11-17 Akim Demaille <akim@epita.fr> |
3218 | ||
3219 | * data/lalr1.cc (symprint_): Use cdebug_ to avoid warnings. | |
3220 | ||
3221 | 2004-10-28 Akim Demaille <akim@epita.fr>, | |
9a1e9989 AD |
3222 | Alexandre Duret-Lutz <adl@gnu.org> |
3223 | ||
3224 | * data/lalr1.cc (Parser::yycdebug_): New, a pointer, to allow | |
3225 | changes. | |
3226 | (YYCDEBUG): Adjust. | |
3227 | Use it instead of cdebug_. | |
3228 | (Parser::debug_stream, Parser::set_debug_stream): New. | |
3229 | (Parser::symprint_): Define cdebug_ for temporary backward | |
3230 | compatibility. | |
3231 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Use | |
3232 | debug_stream (). | |
3233 | ||
68e11668 AD |
3234 | 2004-11-17 Akim Demaille <akim@epita.fr> |
3235 | ||
3236 | * data/lalr1.cc (Parser:print_): Remove, use %printer instead. | |
3237 | * tests/regression.at (_AT_DATA_DANCER_Y): Adjust. | |
3238 | * tests/calc.at (_AT_DATA_CALC_Y): Ditto. | |
3239 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Likewise. | |
3240 | ||
97cbc73e PE |
3241 | 2004-10-27 Paul Eggert <eggert@cs.ucla.edu> |
3242 | ||
3243 | * data/glr.c (yyloc_default): Remove; not used. | |
3244 | Problem reported by Frank Heckenbach. | |
3245 | ||
e342c3be AD |
3246 | 2004-10-25 Akim Demaille <akim@epita.fr> |
3247 | ||
3248 | * data/glr.c (YYRHSLOC): Move its definition next to its uses. | |
3249 | Introduce another definition to address simple location arrays. | |
3250 | (yyGLRStack): New member: yyerror_range. | |
3251 | (yyrecoverSyntaxError, yyparse): Update it. | |
3252 | (yyrecoverSyntaxError): Use it when shifting the error token to | |
3253 | have an accurate range, equivalent to the one computed by both | |
3254 | yacc.c and lalr1.cc. | |
3255 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Change its yylex so | |
3256 | that column numbers start at column 0, as per GNU Coding | |
3257 | Standards, the others tests, and the doc. | |
3258 | (_AT_RESOLVED_GLR_OUTPUT_WITH_LOC, _AT_AMBIG_GLR_OUTPUT_WITH_LOC): | |
3259 | Adjust to the above change (first column is 0). | |
3260 | And adjust the location of the "<error>", now covering the whole | |
3261 | line. | |
3262 | ||
93602feb | 3263 | 2004-10-22 Akim Demaille <akim@epita.fr> |
04098407 | 3264 | and Paul Eggert <eggert@cs.ucla.edu> |
93602feb PE |
3265 | |
3266 | Remove some arbitrary limits on goto numbers and relations. | |
3267 | * src/lalr.c (goto_map, ngotos, from_state, to_state): Omit | |
3268 | initial values, since they're never used. | |
3269 | (set_goto_map): ngotos is now unsigned, so test for overflow | |
3270 | by seeing whether it wraps around to zero. | |
3271 | * src/lalr.h (goto_number): Now size_t, not short int. | |
3272 | (GOTO_NUMBER_MAXIMUM): Remove. | |
3273 | * src/relation.c (relation_print, traverse, relation_transpose): | |
3274 | Check for END_NODE rather than looking at sign. | |
3275 | * src/relation.h (END_NODE): New macro. | |
3276 | (relation_node): Now size_t, not short int. | |
3277 | ||
dba08b04 PE |
3278 | 2004-10-22 Paul Eggert <eggert@cs.ucla.edu> |
3279 | ||
3280 | * doc/bison.texinfo (Language and Grammar): In example, "int" is a | |
3281 | keyword, not an identifier. Problem reported by Baron Schwartz in | |
3282 | <http://lists.gnu.org/archive/html/bug-bison/2004-10/msg00017.html>. | |
3283 | ||
df09ef2e AD |
3284 | 2004-10-11 Akim Demaille <akim@epita.fr> |
3285 | ||
3286 | * src/symtab.c (symbol_check_alias_consistency): Also check | |
3287 | type names, destructors, and printers. | |
3288 | Reported by Alexandre Duret-Lutz. | |
3289 | Recode the handling of associativity and precedence in terms | |
3290 | of symbol_precedence_set. | |
3291 | Accept no redeclaration at all, not even equal to the previous | |
3292 | value. | |
3293 | (redeclaration): New. | |
3294 | Use it to factor redeclaration complaints. | |
3295 | (symbol_make_alias): Don't set the type of the alias, let | |
3296 | symbol_check_alias_consistency do it as for other features. | |
3297 | * src/symtab.h (symbol): Add new member prec_location, and | |
3298 | type_location. | |
3299 | * src/symtab.c (symbol_precedence_set, symbol_type_set): Set them. | |
3300 | * tests/input.at (Incompatible Aliases): New. | |
3301 | ||
146bc99d PE |
3302 | 2004-10-09 Paul Eggert <eggert@cs.ucla.edu> |
3303 | ||
3304 | .cvsignore fixes to accommodate gnulib changes, | |
3305 | and the practice of naming build directories "_build". | |
3306 | * .cvsignore: Add "_*". Sort. | |
3307 | * lib/.cvsignore: Add getopt_.h, xalloc-die.c. | |
3308 | * m4/.cvsignore: Add "*_gl.m4". | |
3309 | ||
e503aa60 AD |
3310 | 2004-10-06 Akim Demaille <akim@epita.fr> |
3311 | ||
3312 | * src/parse-gram.y (add_param): Fix the truncation of trailing | |
3313 | spaces. | |
3314 | ||
b4a20338 AD |
3315 | 2004-10-05 Akim Demaille <akim@epita.fr> |
3316 | ||
3317 | In Bison 1.875's yacc.c, YYLLOC_DEFAULT was called regardless | |
3318 | whether the reducion was empty or not. This leaves room to | |
3319 | improve the use of YYLLOC_DEFAULT in such a case. | |
3320 | lalr1.cc is still experimental, so changing this is acceptable. | |
3321 | And finally, there are probably not many users who changed the | |
3322 | handling of locations in GLR, so changing is admissible too. | |
3323 | ||
3324 | * data/glr.c, data/lalr1.cc, data/yacc.c (YYLLOC_DEFAULT): On an | |
3325 | empty reduction, set @$ to an empty location ending the previously | |
3326 | stacked symbol. | |
3327 | Adjust uses to make sure the code is triggered on empty | |
3328 | reductions. | |
3329 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Adjust the | |
3330 | expected output: empty reductions have empty locations. | |
3331 | ||
f85a5e6f AD |
3332 | 2004-09-29 Akim Demaille <akim@epita.fr> |
3333 | ||
3334 | * data/lalr1.cc: Move towards a more standard C++ coding style | |
3335 | for templates: Class < T > -> Class<T>. | |
3336 | ||
b203fc2c AD |
3337 | 2004-09-29 Akim Demaille <akim@epita.fr> |
3338 | ||
3339 | * data/lalr1.cc: Reinstall the former ctor, for sake of | |
3340 | compatibility, but warn it will be removed. | |
3341 | Move towards a more standard C++ coding style (i.e., type *var -> | |
3342 | type* var). | |
3343 | ||
5b7e1e73 PE |
3344 | 2004-09-27 Paul Eggert <eggert@cs.ucla.edu> |
3345 | ||
3fee967f PE |
3346 | * src/parse-gram.y (add_param): Rewrite to avoid strchr, |
3347 | since it's less likely to work if NULs are involved in the future. | |
5b7e1e73 | 3348 | |
0dcca5c2 AD |
3349 | 2004-09-27 Akim Demaille <akim@epita.fr> |
3350 | ||
3351 | * data/yacc.c (YY_LOCATION_PRINT): Fix its default declaration. | |
3352 | ||
6dde1c82 AD |
3353 | 2004-09-27 Akim Demaille <akim@epita.fr> |
3354 | ||
3355 | * data/lalr1.cc (b4_parse_param_decl_1): New. | |
b203fc2c | 3356 | (b4_parse_param_decl): Use it to have different names between attribute |
6dde1c82 AD |
3357 | and argument names. |
3358 | (b4_cc_constructor_call): Likewise. | |
3359 | ||
b233d555 AD |
3360 | 2004-09-24 Akim Demaille <akim@epita.fr> |
3361 | ||
3362 | * src/parse-gram.y (add_param): Strip the leading and trailing | |
3363 | blanks from a formal argument declaration. | |
3364 | (YY_LOCATION_PRINT): New. | |
3365 | ||
619404e3 AD |
3366 | 2004-09-24 Akim Demaille <akim@epita.fr> |
3367 | ||
3368 | * data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation | |
3369 | after the location. | |
3370 | ||
dd8d9022 AD |
3371 | 2004-09-24 Akim Demaille <akim@epita.fr> |
3372 | ||
3373 | * doc/bison.texinfo (Table of Symbols): Sort. | |
3374 | ||
0092f063 AD |
3375 | 2004-09-21 Akim Demaille <akim@epita.fr> |
3376 | ||
3377 | * data/yacc.c, data/glr.c (b4_at_dollar, b4_dollar_dollar): Remove | |
3378 | the useless parentheses. | |
3379 | Suggested by Paul Eggert. | |
3380 | ||
451364ed AD |
3381 | 2004-09-20 Akim Demaille <akim@epita.fr> |
3382 | ||
3383 | Let the initial-action act on the look-ahead, and use it for the | |
3384 | "initial push" (corresponding to an hypothetical beginning-of-file). | |
3385 | And let lalr1.cc honor %initial-action. | |
3386 | ||
3387 | * doc/bison.texinfo (Initial Action Decl): Clarify, and add an | |
3388 | example. | |
3389 | * data/lalr1.cc (Parser::initlocation_): Remove, bad experiment. | |
3390 | (Parser::Parser): Remove the ctor that used to initialize it. | |
3391 | (Parser::parse): Like in the other skeletons, issue the "starting | |
3392 | parse" message before any action. | |
3393 | Honor %initial-action. | |
3394 | Initialize the stacks with the lookahead. | |
3395 | * data/yacc.c: Let $$ and @$ in %initial-action designate the | |
3396 | look-ahead. | |
3397 | Push them in the stacks. | |
3398 | * tests/actions.at, tests/calc.at: Adjust the C++ ctor invocations. | |
3399 | ||
18d192f0 AD |
3400 | 2004-09-20 Akim Demaille <akim@epita.fr> |
3401 | ||
3402 | * doc/bison.texinfo (Initial Action Decl): New. | |
3403 | ||
b8458aa5 AD |
3404 | 2004-09-20 Akim Demaille <akim@epita.fr> |
3405 | ||
3406 | * data/yacc.c (YY_LOCATION_PRINT): Use YYLTYPE_IS_TRIVIAL as a | |
3407 | clearer criterion to define it. | |
3408 | (parse): Initialize the initial location when YYLTYPE_IS_TRIVIAL. | |
3409 | When reducing on an empty RHS, use the latest stacked location as | |
3410 | location. | |
3411 | yylloc is not always available. | |
3412 | * data/glr.c: Likewise. | |
3413 | Also, honor initial-actions. | |
3414 | ||
3fc16193 AD |
3415 | 2004-09-20 Akim Demaille <akim@epita.fr> |
3416 | ||
3417 | * data/yacc.c (YY_LOCATION_PRINT): New. | |
3418 | Define when we know YYLTYPE's structure, i.e., when the default | |
3419 | YYLLOC_DEFAULT is used. | |
3420 | * data/c.m4 (b4_yysymprint_generate): Use it. | |
3421 | * data/lalr1.cc (YYLLOC_DEFAULT): Stop relying on the initial | |
3422 | value of the result. | |
3423 | (error_start_): Replace with... | |
3424 | (error_range_): this location array. | |
3425 | This allows to replace code relying on the implementation of | |
3426 | locations by portable code. | |
3427 | * data/yacc.c (yylerrsp): Replace with... | |
3428 | (yyerror_range): this. | |
3429 | Every time a token is popped, update yyerror_range[0], to have an | |
3430 | accurate location for the error token. | |
3431 | * data/glr.c (YY_LOCATION_PRINT): New. | |
3432 | (yyprocessOneStack): Fix an invocation of YY_SYMBOL_PRINT: | |
3433 | deference a pointer. | |
3434 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): No longer | |
3435 | report the location in %printers. | |
3436 | ||
3437 | * src/scan-skel.l: Instead of abort, report error messages to ease | |
3438 | understanding skeleton scanning failures. | |
3439 | ||
ecfe33e7 AD |
3440 | 2004-09-16 Akim Demaille <akim@epita.fr> |
3441 | ||
3442 | * data/lalr1.cc (Stack::Iterator, Stack::ConstIterator): Rename as... | |
3443 | (iterator, const_iterator): these, to be more in the C++ spirit. | |
3444 | Also, return reverse iterators so that when displaying the stack | |
3445 | we display its bottom first. | |
3446 | (Parser::stack_print_, Parser::reduce_print_): Match the messages | |
3447 | from yacc.c. | |
3448 | We should probably use vector here though. | |
3449 | ||
1576d44d AD |
3450 | 2004-09-16 Akim Demaille <akim@epita.fr> |
3451 | ||
3452 | Have more complete shift traces. | |
3453 | ||
3454 | * data/yacc.c, data/lalr1.c, data/glr.c: Use YY_SYMBOL_PRINT | |
3455 | to report Shifts instead of ad hoc YYDPRINTF invocations, | |
3456 | including for the error token. | |
3457 | * data/lalr1.cc (symprint_): Output the location. | |
3458 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): In C++, don't | |
3459 | output the location within the %printer. | |
3460 | Activate GLR tests, at least to make sure they compile properly. | |
3461 | They still don't pass though. | |
3462 | * tests/calc.at: Adjust expect verbose output, since now "Entering | |
3463 | state..." is on a different line than the "Shifting" message. | |
3464 | ||
9c66f418 AD |
3465 | 2004-09-08 Akim Demaille <akim@epita.fr> |
3466 | ||
3467 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Move the | |
3468 | Bison directive from the Bison file to the invocation of this | |
3469 | macro, so that these directives are passed to | |
3470 | AT_BISON_OPTION_PUSHDEFS to get correct help macros. | |
3471 | Use these helping macros (e.g., AT_LOC, AT_VAL and so forth). | |
3472 | Move the AT_SETUP/AT_CLEANUP outside, to report as test title | |
3473 | the extra Bison directives instead of the whole series. | |
3474 | Change the grammar so that there are recoverable errors, and | |
3475 | unrecoverable errors. Now we can have the parser give up before | |
3476 | consuming the whole input. As a result we now can observe that | |
3477 | the lookahead is freed when needed. | |
3478 | Change the parser source to parse argv[1] instead of a hard coded | |
3479 | string. | |
3480 | Simplify yylex, and give a value and location to EOF. | |
3481 | Simplify some invocations of AT_CHECK_PRINTER_AND_DESTRUCTOR that | |
3482 | passed directives already coded in the file. | |
3483 | Add some tests to check the location of "error". | |
3484 | For some tests, the C++ parser is correct, and not yacc.c. | |
3485 | For other tests, they provide different, but unsatisfying, values, | |
3486 | so keep the C++ value so that at least one parser is "correct" | |
3487 | according to the test suite. | |
3488 | (Actions after errors): Remove, this is subsumed by the | |
3489 | AT_CHECK_PRINTER_AND_DESTRUCTOR series. | |
3490 | ||
52d5733f AD |
3491 | 2004-09-06 Akim Demaille <akim@epita.fr> |
3492 | ||
3493 | * data/lalr1.cc: Adjust the indentation of the labels. | |
04098407 | 3494 | (Parser::pop): New. |
52d5733f AD |
3495 | Use it. |
3496 | ||
a0e68930 AD |
3497 | 2004-09-06 Akim Demaille <akim@epita.fr> |
3498 | ||
3499 | * data/yacc.cc, data/glr.cc (yydestruct): Accept an additional | |
3500 | argument, an informative message. | |
3501 | Call YY_SYMBOL_PRINT. | |
3502 | Adjust all callers: integrate the associated YY_SYMBOL_PRINT. | |
3503 | * data/lalr1.cc (destruct_): Likewise. | |
3504 | In addition, no longer depend on b4_yysymprint_generate and | |
3505 | b4_yydestruct_generate to generate these functions, do it "by | |
3506 | hand". | |
3507 | ||
e757bb10 AD |
3508 | 2004-09-03 Akim Demaille <akim@epita.fr> |
3509 | ||
3510 | * data/glr.c, data/lalr1.cc, data/yacc.c: When YYABORT was | |
3511 | invoked, yydestruct the lookahead. | |
3512 | * tests/calc.at (Calculator $1): Update the expected lengths of | |
3513 | traces: there is an added line for the discarded lookahead. | |
3514 | * doc/bison.texinfo (Destructor Decl): Some rewording. | |
3515 | Define "discarded" symbols. | |
3516 | ||
0fe1f06d AD |
3517 | 2004-09-02 Akim Demaille <akim@epita.fr> |
3518 | ||
3519 | * data/lalr1.cc (translate_, destruct_): No reason to be static. | |
3520 | ||
284acc8b AD |
3521 | 2004-09-02 Akim Demaille <akim@epita.fr> |
3522 | ||
3523 | * data/glr.c, yacc.c (YYDSYMPRINT): Remove, not used. | |
3524 | (YYDSYMPRINTF): Rename as... | |
3525 | (YY_SYMBOL_PRINT): this. | |
3526 | * data/lalr1.cc (YY_SYMBOL_PRINT): New, modeled after the previous | |
3527 | two. | |
3528 | Use it instead of direct symprint_ calls. | |
3529 | (yybackup): Tweak the "Now at end of input" case to match yacc.c's | |
3530 | one. | |
3531 | ||
a5eb1ed2 AD |
3532 | 2004-09-02 Akim Demaille <akim@epita.fr> |
3533 | ||
b7c72fe1 AD |
3534 | * data/lalr1.cc (b4_yysymprint_generate): New. |
3535 | (symprint_): New member function, defined when YYDEBUG. | |
3536 | Use it consistently instead of token/nterm debugging output by | |
3537 | hand. | |
a5eb1ed2 AD |
3538 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Adjust |
3539 | %printer calls to use cdebug_ when using lalr1.cc. | |
3540 | ||
417141dd AD |
3541 | 2004-08-30 Florian Krohm <florian@edamail.fishkill.ibm.com> |
3542 | ||
3543 | * data/glr.c: Guard the declarations of yypstack and yypdumpstack | |
3544 | with #ifdef YYDEBUG. | |
3545 | ||
2fa09258 AD |
3546 | 2004-08-26 Akim Demaille <akim@epita.fr> |
3547 | ||
3548 | * doc/bison.texinfo (Implementing Loops): Rename as... | |
3549 | (Implementing Gotos/Loops): this. | |
3550 | ||
9378b508 PE |
3551 | 2004-08-13 Paul Eggert <eggert@cs.ucla.edu> |
3552 | ||
3553 | Adjust to latest gnulib. | |
3554 | * bootstrap (gnulib_modules): Add xalloc-die. | |
3555 | Set LC_ALL=C so that file names sort consistently. | |
3556 | Prefer the gnulib copies of gettext.m4, glibc21.m4, | |
3557 | inttypes_h.m4, lib-ld.m4, lib-prefix.m4, po.m4, stdint_h.m4, | |
3558 | uintmax_t.m4, ulonglong.m4. | |
3559 | (intl_files_to_remove): Add gettext.m4, lib-ld.m4, lib-prefix.m4, | |
3560 | po.m4 since we are now using _gl.m4 instead. | |
3561 | ||
87a8ad5c PE |
3562 | 2004-08-10 Florian Krohm <florian@edamail.fishkill.ibm.com> |
3563 | ||
3564 | * src/scan-action.l: Remove. Scanning of semantic actions is | |
3565 | handled in scan-gram.l. | |
3566 | ||
dca81a78 PE |
3567 | 2004-08-07 Florian Krohm <florian@edamail.fishkill.ibm.com> |
3568 | ||
3569 | * src/scan-gram.l (handle_syncline): Use uniqstr_new not xstrdup. | |
3570 | ||
3571 | * src/location.h (struct): The file member is a uniqstr. | |
3572 | (equal_boundaries): Use UNIQSTR_EQ for comparison. | |
3573 | ||
c9cbf7c5 PE |
3574 | 2004-07-22 Paul Eggert <eggert@cs.ucla.edu> |
3575 | ||
3576 | Fix bug with non-%union parsers that have printers or destructors, | |
3577 | which led to a Bison core dump. Reported by Peter Fales in | |
3578 | <http://lists.gnu.org/archive/html/bug-bison/2004-07/msg00014.html>. | |
2fa09258 | 3579 | |
c9cbf7c5 PE |
3580 | * data/c.m4 (b4_symbol_actions): Don't assume %union was used. |
3581 | * data/lalr1.cc (yystype) [defined YYSTYPE]: Define to YYSTYPE, | |
3582 | not to our own type. | |
3583 | * src/output.c (symbol_destructors_output, symbol_printers_output): | |
3584 | Don't assume %union. | |
3585 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR, | |
3586 | AT_CHECK_PRINTER_AND_DESTRUCTOR): New argument | |
3587 | UNION-FLAG. All callers changed. | |
3588 | (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Don't assume %union. | |
3589 | Use type char, not unsigned int, when declaring an array of char; | |
3590 | this lets us remove a cast. | |
3591 | (Printers and Destructors): Add non-%union test cases. | |
3592 | ||
fa7e68c3 PE |
3593 | 2004-06-21 Paul Eggert <eggert@cs.ucla.edu> |
3594 | ||
3595 | * doc/bison.texinfo: Minor editorial changes, mostly to the new | |
3596 | GLR writeups. E.g., avoid frenchspacing and the future tense, | |
3597 | change "lookahead" to "look-ahead", and change "wrt" to "with | |
3598 | respect to". | |
2fa09258 | 3599 | |
fa7e68c3 PE |
3600 | 2004-06-21 Paul Hilfinger <hilfingr@CS.Berkeley.EDU> |
3601 | ||
3602 | * doc/bison.texinfo (Merging GLR Parses, Compiler Requirements): | |
3603 | New sections, split off from the GLR Parsers section. Put the new | |
3604 | Simple GLR Parser near the start of the GLR section, for clarity. | |
3605 | Rewrite connective text. | |
3606 | ||
99a9344e PE |
3607 | 2004-06-21 Frank Heckenbach <frank@g-n-u.de> |
3608 | ||
3609 | * doc/bison.texinfo (Simple GLR Parsers): New section. | |
3610 | ||
8dd162d3 PE |
3611 | 2004-06-21 Paul Eggert <eggert@cs.ucla.edu> |
3612 | ||
3613 | * NEWS, TODO, doc/bison.texinfo: | |
3614 | Use "look-ahead" instead of "lookahead", to be consistent. | |
3615 | * REFERENCES: Fix incorrect reference to DeRemer and Pennello, | |
3616 | while we're fixing "look-ahead". | |
3617 | * src/conflicts.c (shift_set): Renamed from shiftset. | |
3618 | (look_ahead_set): Renamed from lookaheadset. | |
3619 | * src/print.c: Likewise. | |
3620 | * src/getargs.c (report_args): Add "look-ahead" as the new canonical | |
3621 | name for "lookahead". | |
3622 | (report_types, usage): Likewise. | |
3623 | * src/getargs.h (report_look_ahead_tokens): Renamed from | |
3624 | report_lookaheads. | |
3625 | * src/lalr.c (compute_look_ahead_tokens): Renamed from | |
3626 | compute_lookaheads. | |
3627 | (state_look_ahead_tokens_count): Renamed from state_lookaheads_count. | |
3628 | (look_ahead_tokens_print): Renamed from lookaheads_print. | |
3629 | * src/state.c (state_rule_look_ahead_tokens_print): Renamed from | |
3630 | state_rule_lookaheads_print. | |
3631 | * src/state.h: Likewise. | |
3632 | (reductions.look_ahead_tokens): Renamed from lookaheads. | |
3633 | * tests/torture.at (AT_DATA_LOOK_AHEAD_TOKENS_GRAMMAR): Renamed from | |
3634 | AT_DATA_LOOKAHEADS_GRAMMAR. | |
3635 | ||
57a90331 PE |
3636 | 2004-06-03 Paul Eggert <eggert@cs.ucla.edu> |
3637 | ||
3638 | * README: Update location of patched M4 distribution. | |
3639 | ||
8ed3234a PE |
3640 | 2004-05-30 Albert Chin-A-Young <china@thewrittenword.com> |
3641 | ||
3642 | Don't assume the C++ compiler takes the same arguments as the C compiler | |
3643 | (trivial change). | |
3644 | * configure.ac (O0CXXFLAGS): New var. | |
3645 | * tests/atlocal.in (CXXFLAGS): Use it. | |
3646 | ||
07971983 PE |
3647 | 2004-05-29 Paul Eggert <eggert@cs.ucla.edu> |
3648 | ||
3649 | Fix some "make check" problems with C++ reported by | |
3650 | Albert Chin-A-Young for Tru64 C++ in this thread: | |
3651 | http://lists.gnu.org/archive/html/bug-bison/2004-05/msg00049.html | |
3652 | ||
3653 | * m4/cxx.m4 (BISON_TEST_FOR_WORKING_CXX_COMPILER): Check for std::cerr. | |
3654 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): | |
3655 | Output to a .cc file for C++, not to a .c file. | |
3656 | * tests/calc.at (AT_CHECK_CALC): Likewise. | |
3657 | * tests/regression.at (AT_CHECK_DANCER): Likewise. | |
3658 | * tests/local.at (AT_COMPILE_CXX): Default to OUTPUT.cc, not OUTPUT.c. | |
3659 | ||
29058652 PE |
3660 | 2004-05-28 Albert Chin-A-Young <china@thewrittenword.com> |
3661 | ||
3662 | * tests/calc.at, tests/actions.at: Workaround for SGI | |
3663 | C++ compiler. (trivial change) | |
3664 | ||
62cb8a99 PE |
3665 | 2004-05-27 Paul Eggert <eggert@cs.ucla.edu> |
3666 | ||
fd418816 PE |
3667 | Spent a few hours checking out which prerequisite versions the |
3668 | current sources actually require. I went all the way back to | |
3669 | Gettext 0.10.40, Automake 1.4, and Autoconf 2.57 and investigated | |
3670 | a seemingly endless set of combinations of versions more recent | |
3671 | than that. The bottom line is that the current sources require | |
3672 | fairly recent versions of the build tools, and it'll be some work | |
3673 | to change this. | |
3674 | * configure.ac (AC_PREREQ): Increase from 2.58 to 2.59. | |
3675 | (AM_INIT_AUTOMAKE): Increase from 1.7 to 1.8. | |
3676 | (AM_GNU_GETTEXT_VERSION): Increase from 0.11.5 to 0.12. | |
3677 | Add comments explaining why those particular versions are | |
3678 | currently needed. | |
2fa09258 | 3679 | |
62cb8a99 PE |
3680 | * src/parse-gram.y (lloc_default): Rewrite to avoid compiler bug |
3681 | in SGI MIPSpro 7.4.1m. Problem reported by Albert Chin-A-Young in | |
161a71f3 | 3682 | <http://lists.gnu.org/archive/html/bug-bison/2004-05/msg00037.html>. |
62cb8a99 PE |
3683 | |
3684 | * configure.ac (AC_PREREQ): Bump to 2.58, since 2.57 doesn't work | |
3685 | (it fails with a Autoconf-without-aclocal-m4 diagnostic). | |
3686 | ||
caa52c10 PE |
3687 | 2004-05-26 Paul Eggert <eggert@cs.ucla.edu> |
3688 | ||
3689 | * configure.ac (AM_GNU_GETTEXT_VERSION): Lower it from 0.14.1 to | |
3690 | 0.11.5. Suggested by Bruno Haible. | |
3691 | * bootstrap: Remove gettext version checking. | |
3692 | ||
3693 | * doc/bison.texinfo (Decl Summary): Also mention that %union | |
3694 | can depend on prerequisite types. Problem reported by Tim | |
3695 | Van Holder. | |
3696 | ||
4bfd5e4e PE |
3697 | 2004-05-25 Paul Eggert <eggert@cs.ucla.edu> |
3698 | ||
2cef3017 PE |
3699 | * README: Mention GNU m4 1.4 bugs and Akim's patched version. |
3700 | * README-alpha: Don't tell people not to package this. | |
3701 | ||
b9c85d5c PE |
3702 | * bootstrap: Don't assume $(...) works; use `...` instead. |
3703 | Problem reported by Paul Hilfinger. Also, diagnose non-GNU | |
3704 | gettext better. | |
3705 | ||
4bfd5e4e PE |
3706 | * doc/bison.texinfo (Decl Summary, Bison Options): Clarify what's |
3707 | put into the -d output file, and mention what to do if YYSTYPE is | |
3708 | defined as a macro. | |
3709 | ||
6a36ff94 PE |
3710 | 2004-05-24 Paul Eggert <eggert@cs.ucla.edu> |
3711 | ||
6712933e PE |
3712 | Undo change made earlier today: it caused autopoint to not bring |
3713 | in ABOUT-NLS. Ouch. Instead, substitute our own diagnostic for | |
3714 | autopoint's. | |
3715 | ||
3716 | * bootstrap: Check that gettext version matches what's in | |
3717 | configure.ac. Warn users to ignore robots.txt ERROR 404. | |
3718 | * bootstrap: Undo today's earlier change (logged below). | |
3719 | * configure.ac (AM_GNU_GETTEXT_VERSION): Likewise. | |
b9c85d5c | 3720 | |
6a36ff94 PE |
3721 | The gettext version checking is causing more trouble than it's |
3722 | curing; remove it. Problem reported by Paul Hilfinger. | |
3723 | ||
3724 | * bootstrap: Issue a warning that one can expect a message | |
3725 | 'AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION'. | |
3726 | * configure.ac (AM_GNU_GETTEXT_VERSION): Remove. | |
3727 | ||
209ea708 PE |
3728 | 2004-05-23 Paul Eggert <eggert@cs.ucla.edu> |
3729 | ||
3730 | Ensure that the C++ compiler used for testing actually works on a | |
3731 | simple test program; if not, skip the C++-related tests. Problem | |
3732 | reported by Vin Shelton in: | |
161a71f3 | 3733 | http://lists.gnu.org/archive/html/bug-bison/2004-05/msg00026.html |
209ea708 PE |
3734 | |
3735 | * m4/cxx.m4: New file. | |
3736 | * configure.ac (BISON_TEST_FOR_WORKING_CXX_COMPILER): Add. | |
3737 | * tests/atlocal.in (BISON_CXX_WORKS): Add. | |
3738 | * tests/local.at (AT_COMPILE_CXX): Use it. | |
3739 | ||
41ca2549 PE |
3740 | 2004-05-21 Paul Eggert <eggert@cs.ucla.edu> |
3741 | ||
383e69dc PE |
3742 | * data/glr.c (yylloc): Output this macro even if locations are not |
3743 | being generated, as the GLR parser needs it even in that case. | |
3744 | Problem reported by Troy A. Johnson | |
3745 | <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=195946>. | |
3746 | ||
41ca2549 PE |
3747 | * configure.ac (AC_INIT): Update to 1.875e. |
3748 | ||
e476c87d PE |
3749 | 2004-05-21 Paul Eggert <eggert@cs.ucla.edu> |
3750 | ||
3751 | * NEWS: Version 1.875d. | |
3752 | * configure.ac (AC_INIT): Likewise. | |
3753 | * src/parse-gram.c, src/parse-gram.h: Regenerate with 1.875d. | |
3754 | ||
3755 | * configure.ac (--enable-gcc-warnings): Do not enable -Wshadow, | |
3756 | -Wmissing-prototypes, or -Wstrict-prototypes for C++. The current | |
3757 | lalr1.cc runs afoul of the first, and the last two are no longer | |
3758 | supported by GCC 3.4.0. | |
3759 | * README: Mention GNU m4 1.4 or later; mention m4 patches. | |
3760 | * HACKING: Use ./bootstrap, not "make update" to import foreign files. | |
3761 | ||
233a88ad PE |
3762 | 2004-05-06 Paul Eggert <eggert@cs.ucla.edu> |
3763 | ||
3764 | * src/muscle_tab.c (hash_muscle): Accept and return size_t, not | |
3765 | unsigned int, for compatibility with latest gnulib hash module. | |
3766 | * src/state.c (state_hash, state_hasher): Likewise. | |
3767 | * src/symtab.c (hash_symbol, hash_symbol_hasher): Likewise. | |
3768 | * src/uniqstr.c (hash_uniqstr): Likewise. | |
e476c87d | 3769 | |
12ffdd28 PE |
3770 | 2004-05-03 Paul Eggert <eggert@cs.ucla.edu> |
3771 | ||
3772 | * NEWS: Unescaped newlines are no longer allowed in char & strings. | |
3773 | ||
3774 | * src/scan-gram.l (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER, | |
3775 | SC_CHARACTER,SC_STRING>): Reject unescaped newlines in | |
3776 | character and string literals. | |
3777 | (unexpected_end): New function. | |
3778 | (unexpected_eof): Use it. | |
3779 | (unexpected_newline): New function. | |
3780 | (<INITIAL,SC_AFTER_IDENTIFIER,SC_PRE_CODE>): Coalesce duplicate | |
3781 | actions. | |
e476c87d | 3782 | |
12ffdd28 PE |
3783 | * NEWS: Document %expect-rr. |
3784 | ||
3785 | * bootstrap (--gnulib-srcdir=*, --cvs-user=*): | |
3786 | Fix typo by replacing $1 with $option. | |
3787 | Remove more 'intl'-related files. | |
9668e2be | 3788 | Don't DEFUN AM_INTL_SUBDIR twice. |
12ffdd28 PE |
3789 | |
3790 | * lib/.cvsignore: Add strndup.h. Remove memchr.c, memcmp.c, | |
3791 | memrchr.c, strcasecmp.c, strchr.c, strrchr.c, strspn.c, strtol.c, | |
3792 | strtoul.c. | |
3793 | * m4/.cvsignore: Add exitfail.m4, extensions.m4, gnulib.m4, | |
3794 | hard-locale.m4, mbstate_t.m4, strerror_r.m4, strndup.m4, | |
3795 | xstrndup.m4. Remove glibc21.m4, intdiv0.m4, inttypes-pri.m4, | |
3796 | inttypes.m4, inttypes_h.m4, isc-posix.m4, lcmessage.m4, | |
3797 | stdint_h.m4, uintmax_t.m4, ulonglong.m4. | |
3798 | * src/.cvsignore: Add *.output. | |
3799 | ||
3800 | * src/parse-gram.y: Put copyright notice inside %{ %} so it | |
3801 | gets copied to the output file. | |
e476c87d | 3802 | |
1f65350a PE |
3803 | 2004-04-28 Paul Eggert <eggert@twinsun.com> |
3804 | ||
3805 | Get files from the gnulib and po repositories, instead of relying | |
3806 | on them being in our CVS. Upgrade to latest versions of gnulib | |
3807 | and Automake. | |
3808 | ||
3809 | * Makefile.am (SUBDIRS): Remove m4; Automake now does m4. | |
3810 | * bootstrap: Bootstrap from gnulib and po repositories. | |
3811 | Much of this code was stolen from GNU diff and GNU tar's bootstrap. | |
3812 | * README-cvs: Document these changes. Remove version numbers from | |
3813 | mentions of build tools, since they change so often. Mention Flex. | |
3814 | ||
3815 | * configure.ac (AC_CONFIG_MACRO_DIR): Add, with m4 as arg. | |
3816 | (gl_USE_SYSTEM_EXTENSIONS): Add. | |
12ffdd28 PE |
3817 | (AC_GNU_SOURCE, AC_AIX, AC_MINIX): |
3818 | Remove; no longer needed, as gl_USE_SYSTEM_EXTENSIONS | |
1f65350a | 3819 | does this for us. |
12ffdd28 PE |
3820 | (AC_ISC_POSIX): Remove; we no longer support this |
3821 | ancient OS, as it gets in the way of latest Autoconf & gnulib. | |
1f65350a PE |
3822 | (AC_HEADER_STDC): Remove: we now assume C89 or better. |
3823 | (AC_CHECK_HEADERS_ONCE): Use instead of AC_CHECK_HEADERS. | |
3824 | Do not check for C89 headers, except for locale.h which is used | |
3825 | by the Yacc library and must port to K&R hosts. | |
3826 | (AC_CHECK_FUNCS_ONCE): Use instead of AC_CHECK_FUNCS. | |
3827 | Do not check for C89 functions, except for setlocale which is | |
3828 | used by the Yacc library. | |
3829 | (AC_CHECK_DECLS, AC_REPLACE_FUNCS): Remove; no longer needed. | |
3830 | (gl_DIRNAME, gl_ERROR, gl_FUNC_ALLOCA, gl_FUNC_MEMCHR, | |
3831 | gl_FUNC_MEMRCHR, gl_FUNC_STPCPY, gl_FUNC_STRNLEN, gl_FUNC_STRTOL, | |
3832 | gl_GETOPT, gl_HASH, gl_MBSWIDTH, gl_OBSTACK, gl_QUOTE, | |
3833 | gl_QUOTEARG, gl_XALLOC, jm_FUNC_GLIBC_UNLOCKED_IO, jm_FUNC_MALLOC, | |
3834 | AM_GNU_GETTEXT): Remove; now done by: | |
3835 | (GNULIB_AUTOCONF_SNIPPET): Add. "bootstrap" builds this for us. | |
3836 | (AC_CONFIG_FILES): Remove m4/Makefile, as Automake now does this | |
3837 | for us. | |
3838 | ||
3839 | * lib/Makefile.am: Include gnulib.mk, built for us by "bootstrap". | |
3840 | (BUILT_SOURCES, EXTRA_DIST, MOSTLYCLEANFILES): | |
3841 | Define to empty, as gnulib.mk will do the rest for us. | |
3842 | ($(libbison_a_OBJECTS), stdbool.h): Remove, as gnulib.mk does this | |
3843 | for us. | |
3844 | (libbison_a_SOURCES): Define to $(lib_SOURCES) now. | |
3845 | (lib_SOURCES): New symbol, containing only the non-gnulib libs. | |
3846 | ||
3847 | * src/files.c: Include gnulib's xstrndup.h. | |
3848 | ||
3849 | * src/system.h (MALLOC): Use xnmalloc, for better overflow checking. | |
3850 | (REALLOC): Use xnrealloc, for likewise. | |
3851 | (xstrndup, stpcpy): Remove decls, as gnulib does this for us now. | |
3852 | (strnlen, memrchr): Remove decls; functions no longer used. | |
3853 | Include <stpcpy.h>. | |
3854 | ||
3855 | * config/depcomp, config/install-sh, lib/alloca.c, lib/argmatch.c, | |
3856 | lib/argmatch.h, lib/basename.c, lib/dirname.c, lib/dirname.h, | |
3857 | lib/error.c, lib/error.h, lib/getopt.c, lib/getopt.h, | |
3858 | lib/getopt1.c, lib/gettext.h, lib/hash.c, lib/hash.h, | |
3859 | lib/malloc.c, lib/mbswidth.c, lib/mbswidth.h, lib/memchr.c, | |
3860 | lib/memcmp.c, lib/memrchr.c, lib/obstack.c, lib/obstack.h, | |
3861 | lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, | |
3862 | lib/realloc.c, lib/stdbool_.h, lib/stpcpy.c, lib/strcasecmp.c, | |
3863 | lib/strchr.c, lib/strncasecmp.c, lib/strnlen.c, lib/strrchr.c, | |
3864 | lib/strspn.c, lib/strtol.c, lib/strtoul.c, lib/unlocked-io.h, | |
3865 | lib/xalloc.h, lib/xmalloc.c, lib/xstrdup.c, lib/xstrndup.c, | |
3866 | m4/Makefile.am, m4/alloca.m4, m4/dirname.m4, m4/dos.m4, | |
3867 | m4/error.m4, m4/getopt.m4, m4/hash.m4, m4/malloc.m4, | |
3868 | m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4, m4/memcmp.m4, | |
3869 | m4/memrchr.m4, m4/obstack.m4, m4/onceonly.m4, m4/prereq.m4, | |
3870 | m4/quote.m4, m4/quotearg.m4, m4/realloc.m4, m4/stdbool.m4, | |
3871 | m4/stpcpy.m4, m4/strnlen.m4, m4/strtol.m4, m4/strtoul.m4, | |
3872 | m4/unlocked-io.m4, m4/xalloc.m4, po/LINGUAS, po/Makefile.in.in, | |
3873 | po/Makevars, po/da.po, po/de.po, po/es.po, po/et.po, po/fr.po, | |
3874 | po/hr.po, po/id.po, po/it.po, po/ja.po, po/ms.po, po/nl.po, | |
3875 | po/pt_BR.po, po/ro.po, po/ru.po, po/sv.po, po/tr.po: | |
3876 | Remove, as these files are now generated automatically | |
3877 | by bootstrap or automake. | |
3878 | ||
3879 | * po/ChangeLog: Remove: all but one entry was a duplicate | |
3880 | of this file, and I moved that 2000-11-02 entry here. | |
3881 | ||
3882 | * config/.cvsignore: Add Makefile, depcomp, install-sh. | |
3883 | * lib/.cvsignore: Add alloca.c, alloca.h, alloca_.h, argmatch.c, | |
3884 | argmatch.h, basename.c, dirname.c, dirname.h, error.c, error.h, | |
3885 | exit.h, exitfail.c, exitfail.h, getopt.c, getopt.h, getopt1.c, | |
3886 | getopt_int.h, gettext.h, gnulib.mk, hard-locale.c, hard-locale.h, | |
3887 | hash.c, hash.h, malloc.c, mbswidth.c, mbswidth.h, memchr.c, | |
3888 | memcmp.c, memrchr.c, obstack.c, obstack.h, quote.c, quote.h, | |
3889 | quotearg.c, quotearg.h, realloc.c, stdbool_.h, stpcpy.c, stpcpy.h, | |
3890 | strcasecmp.c, strchr.c, stripslash.c, strncasecmp.c, strndup.c, | |
3891 | strnlen.c, strrchr.c, strspn.c, strtol.c, strtoul.c, | |
3892 | unlocked-io.h, xalloc.h, xmalloc.c, xstrdup.c, xstrndup.c, | |
3893 | xstrndup.h. | |
3894 | * m4/.cvsignore: Remove Makefile, Makefile.in. Add alloca.m4, | |
3895 | dirname.m4, dos.m4, error.m4, getopt.m4, hash.m4, mbrtowc.m4, | |
3896 | mbswidth.m4, obstack.m4, onceonly.m4, quote.m4, quotearg.m4, | |
3897 | stdbool.m4, stpcpy.m4, strnlen.m4, unlocked-io.m4, xalloc.m4. | |
3898 | * po/.cvsignore: Add *.po, LINGUAS, Makefile.in.in, Makevars. | |
3899 | * src/.cvsignore: Remove *_.c. | |
3900 | ||
3901 | ||
3902 | * Makefile.maint (GZIP_ENV): Don't use --rsyncable if gzip doesn't | |
3903 | support it. (The latest stable gzip doesn't.) | |
3904 | ||
3905 | 2004-04-27 Paul Eggert <eggert@twinsun.com> | |
3906 | ||
3907 | * data/lalr1.cc (Parser::stos_) [! YYDEBUG]: Define even in this | |
3908 | case, as stos_ is now used by destructors due to the 2004-02-09 | |
3909 | change. | |
3910 | ||
3911 | Remove more K&R C support. | |
3912 | * lib/libiberty.y (PARAMS): Remove. All uses removed. | |
3913 | * lib/subpipe.c (errno): Remove decl. | |
3914 | Include <stdlib.h> unconditionally. | |
3915 | (EXIT_FAILURE): Remove macro. | |
3916 | * src/complain.c (vfprintf, strerror): Remove. | |
3917 | * src/system.h: Include limits.h, stdlib.h, string.h, locale.h | |
3918 | unconditionally. | |
3919 | (EXIT_FAILURE, EXIT_SUCCESS, setlocale): Remove defns. | |
3920 | Use latest Autoconf recommendations for including inttypes.h, stdint.h. | |
3921 | (strchr, strspn, memchr): Remove decls. | |
3922 | * tests/calc.at (_AT_DATA_CALC_Y): Include stdlib.h, string.h | |
3923 | unconditionally. Do not declare perror. | |
3924 | * tests/conflicts.at (%nonassoc and eof): Include stdlib.h | |
3925 | unconditionally. | |
3926 | ||
3927 | * src/complain.c (_): Remove useless defn, as system.h defines this. | |
3928 | ||
3929 | * lib/bitset.h (__INT_TO_PTR): Remove; workaround no longer needed | |
3930 | with latest obstack.h. | |
3931 | * lib/ebitset.c (ebitset_elt_alloc): Don't bother to cast args | |
3932 | to procedure types, as obstack.h now does that for us. | |
3933 | * lib/lbitset.c (lbitset_elt_alloc): Likewise. | |
3934 | ||
3935 | * lib/subpipe.h [HAVE_SYS_TYPES_H]: Include <sys/types.h>, | |
3936 | so that this include file can stand alone. | |
3937 | * lib/subpipe.c: Do not include <sys/types.h>, as subpipe.h | |
3938 | does this now. Include subpipe.h first after config.h, to | |
3939 | test whether it can stand alone. | |
3940 | ||
3941 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Don't | |
3942 | declare yyerror when using lalr.cc, as GCC 3.4.0 warns about the | |
3943 | unused declaration. | |
3944 | ||
3945 | * tests/synclines.at (%union synch line): Put a dummy member in | |
3946 | the union, because empty unions aren't allowed in C. Caught | |
3947 | by GCC 3.4.0. | |
3948 | ||
4f16766c PE |
3949 | 2004-04-13 Jim Meyering <jim@meyering.net> |
3950 | ||
3951 | * src/conflicts.c (conflicts_print): Correct format string typo: | |
3952 | use `%%' to produce literal `%'. (trivial change) | |
3953 | ||
779e7ceb PE |
3954 | 2004-03-30 Paul Eggert <eggert@twinsun.com> |
3955 | ||
3956 | * src/getargs.c (version): Update copyright year to 2004. | |
3957 | ||
3958 | * data/c.m4 (b4_int_type): Use 'short int' rather than | |
3959 | 'short', and similarly for 'long', 'unsigned', etc. | |
3960 | * data/glr.c (YYTRANSLATE, yyconfl, yySymbol, yyItemNum, | |
3961 | yygetLRActions, yyprocessOneStack, yyrecoverSyntaxError, | |
3962 | yy_yypstack, yydumpstack): Likewise. | |
3963 | * data/lalr1.cc (user_token_number_max_, user_token_number_max_, | |
3964 | translate_, seq_, [], pop, Slice, range_, operator+, operator+=): | |
3965 | Likewise. | |
3966 | * data/yacc.c (b4_int_type, yyss, YYSTACK_BYTES, yysigned_char, | |
3967 | yy_stack_print, yyparse): Likewise. | |
3968 | * doc/bison.texinfo (Prologue, Multiple Types): Likewise. | |
3969 | * lib/bbitset.h (bitset_word, BITSET_WORD_BITS): Likewise. | |
3970 | * lib/bitset.c (bitset_print): Likewise. | |
3971 | * lib/bitset_stats.c (bitste_log_histogram_print): Likewise. | |
3972 | * lib/bitsetv-print.c (bitsetv_matrix_dump): Likewise. | |
3973 | * lib/bitsetv.c (bitsetv_dump): Likewise. | |
3974 | * lib/ebitset.c (EBITSET_ELT_BITS, ebitset_elt_alloc): Likewise. | |
3975 | * lib/lbitset.c (LBITSET_ELT_BITS, lbitset_elt_alloc, debug_lbitset): | |
3976 | Likewise. | |
3977 | * src/LR0.c (allocate_itemsets): Likewise. | |
3978 | * src/gram.h (rule_number, rule): Likewise. | |
3979 | * src/lalr.h (goto_number): Likewise. | |
3980 | * src/nullable.c (nullable_compute): Likewise. | |
3981 | * src/output.c (prepare_rules): Likewise. | |
3982 | * src/relation.c (relation_print, relation_digraph): Likewise. | |
3983 | * src/relation.h (relation_node): Likewise. | |
3984 | * src/state.h (state_number, transitions, errs, reductions, | |
3985 | struct state): Likewise. | |
3986 | * src/symtab.h (symbol_number, struct symbol): Likewise. | |
3987 | * src/tables.c (vector_number, tally, action_number, | |
3988 | default_goto, goto_actions): Likewise. | |
3989 | * tests/existing.at (GNU Cim Grammar): Likewise. | |
3990 | * tests/regression.at (Web2c Actions): Likewise. | |
3991 | ||
3992 | * src/output.c (muscle_insert_short_int_table): Renamed from | |
3993 | muscle_insert_short_table. All uses changed. | |
3994 | ||
d6328241 PH |
3995 | 2004-03-25 Paul Hilfinger <hilfingr@tully.CS.Berkeley.EDU> |
3996 | ||
3997 | * src/parse-gram.y: Define PERCENT_EXPECT_RR. | |
3998 | (declaration): Replace expected_conflicts with expected_sr_conflicts. | |
3999 | Add %expect-rr rule. | |
4f16766c | 4000 | |
d6328241 PH |
4001 | * src/scan-gram.l: Recognize %expect-rr. |
4002 | ||
4f16766c | 4003 | * src/conflicts.h (expected_sr_conflicts): Rename from |
d6328241 | 4004 | expected_conflicts. |
4f16766c | 4005 | (expected_rr_conflicts): Declare. |
d6328241 PH |
4006 | |
4007 | * src/conflicts.c (expected_sr_conflicts): Rename from | |
4008 | expected_conflicts. | |
4009 | (expected_rr_conflicts): Define. | |
4010 | (conflicts_print): Check r/r conflicts against expected_rr_conflicts | |
4011 | for GLR parsers. | |
4012 | Use expected_sr_conflicts in place of expected_conflicts. | |
4013 | Warn if expected_rr_conflicts used in non-GLR parser. | |
4f16766c | 4014 | |
d6328241 | 4015 | * doc/bison.texinfo: Add documentation for %expect-rr. |
4f16766c | 4016 | |
1452af69 PE |
4017 | 2004-03-08 Paul Eggert <eggert@gnu.org> |
4018 | ||
4019 | Add support for hex token numbers. Suggested by Odd Arild Olsen in | |
161a71f3 | 4020 | <http://lists.gnu.org/archive/html/bison-patches/2004-03/msg00000.html>. |
1452af69 PE |
4021 | |
4022 | * NEWS: Document hexadecimal tokens, no NUL bytes, %destructor | |
4023 | in lalr1.cc. | |
4024 | * doc/bison.texinfo (Token Decl): Add hexadecimal token numbers. | |
4025 | * src/scan-gram.l (scan_integer): New function. | |
4026 | ({int}): Use it. | |
4027 | (0[xX][0-9abcdefABCDEF]+): New pattern, to support hex numbers. | |
4028 | (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>, \\x[0-9abcdefABCDEF]+, | |
4029 | handle_action_dollar, handle_action_at, convert_ucn_to_byte): | |
4030 | Say "long int", not "long", for uniformity with GNU style. | |
4031 | ||
006d217d PE |
4032 | 2004-02-25 Paul Eggert <eggert@twinsun.com> |
4033 | ||
4034 | * tests/local.at (AT_COMPILE, AT_COMPILE_CXX): Ignore stdout from | |
4035 | compilers. This fixes a problem with Intel's C++ compiler being | |
4036 | chatty, reported by Guido Trentalancia in | |
161a71f3 | 4037 | <http://lists.gnu.org/archive/html/bug-bison/2004-02/msg00030.html>. |
006d217d | 4038 | |
c2729758 ADL |
4039 | 2004-02-09 Alexandre Duret-Lutz <adl@gnu.org> |
4040 | ||
4041 | Support %destructor and merge error locations in lalr1.cc. | |
4042 | ||
4043 | * data/lalr1.cc (b4_cxx_destruct_def): New macro. | |
4044 | (Parser::stos_): Define unconditionally. | |
4045 | (Parser::destruct_): New method. Generate its body with | |
4046 | b4_yydestruct_generate. | |
4047 | (Parser::error_start_): New attribute. | |
4048 | (Parser::parse) <yyerrlab, yyerrlab1>: Call destruct_ on erroneous | |
4049 | token which are discarded. | |
4050 | (Parser::parse) <yyerrlab, yyerrorlab, yyerrlab1>: Update | |
4051 | error_start_ when erroneous token are discarded. | |
4052 | (Parser::parse) <yyerrlab1>: Compute the location of the error | |
4053 | token so that it covers all the discarded tokens. | |
4054 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Adjust so | |
4055 | it can be called with `%skeleton "lalr1.cc"', and do that. | |
4056 | ||
dd0e0635 PE |
4057 | 2004-02-02 Paul Eggert <eggert@twinsun.com> |
4058 | ||
4059 | * src/Makefile.am (AM_CPPFLAGS): New macro. It mentions | |
4060 | $(top_srcdir)/lib and ../lib. This fixes a bug reported | |
4061 | by Paul Hilfinger; the old INCLUDES value didn't mention ../lib. | |
4062 | There's no need to mention top_builddir since Automake does that | |
4063 | for us. | |
4064 | (INCLUDES): Remove, as Automake says it's obsolescent. | |
4065 | Contents migrated into AM_CPPFLAGS as described above. | |
4066 | * lib/Makefile.am (INCLUDES): Remove; obsolescent. | |
4067 | ||
4068 | 2004-01-14 Paul Hilfinger <hilfingr@CS.Berkeley.EDU> | |
4069 | ||
4070 | * data/glr.c (yytokenName): Bullet-proof against YYEMPTY token. | |
4071 | (yyreportSyntaxError): Handle case where lookahead token is | |
4072 | YYEMPTY. | |
4073 | ||
be16239b PH |
4074 | 2004-01-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
4075 | ||
4076 | * data/glr.c: Put casts on uses of YYREALLOC and YYMALLOC so that | |
4077 | resulting parsers are compilable with C++. | |
4078 | ||
5fa90832 PE |
4079 | 2003-12-23 Paul Eggert <eggert@twinsun.com> |
4080 | ||
4081 | * config/depcomp, config/install-sh: Sync with Automake 1.8. | |
4082 | * src/output.c (output_skeleton): Rename local var. | |
4083 | * tests/input.at (Torturing the Scanner): Don't use \x0 or \0 in | |
4084 | Bison tokens, as this runs afoul of the 2003-10-07 change that | |
4085 | disallowed NUL bytes in character constants or string literals. | |
4086 | ||
4087 | * tests/local.at: Require Autoconf 2.59's Autotest. | |
4088 | * tests/testsuite.at: Don't include local.at, since we now assume | |
4089 | Autoconf 2.59 or later. Autoconf 2.59 had some problems with | |
4090 | including it. | |
4091 | * tests/Makefile.am ($(TESTSUITE)): Remove warning about ignoring | |
4092 | multiple inclusion warnings. | |
dd0e0635 | 4093 | |
b165c324 AD |
4094 | 2003-12-02 Akim Demaille <akim@epita.fr> |
4095 | ||
4096 | * doc/bison.texinfo (How Can I Reset the Parser): More about start | |
4097 | conditions. | |
4098 | From Bruno Haible. | |
4099 | ||
26e06a21 ADL |
4100 | 2003-11-18 Alexandre Duret-Lutz <adl@gnu.org> |
4101 | ||
4102 | * doc/bison.texinfo (Bison Options): Escape `@' in `$@'. | |
4103 | ||
92ac3705 PE |
4104 | 2003-10-07 Paul Eggert <eggert@twinsun.com> |
4105 | ||
6a5ecb38 PE |
4106 | * tests/Makefile.am (clean-local): Don't run 'testsuite --clean' |
4107 | if testsuite doesn't exist. | |
4108 | ||
92ac3705 PE |
4109 | * doc/bison.texinfo (Symbols): NUL bytes are not allowed in string |
4110 | literals, unfortunately. | |
4111 | * src/scan-gram.l (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>): | |
4112 | Complain about NUL bytes in character constants or string literals. | |
4113 | ||
91d2c560 PE |
4114 | 2003-10-05 Paul Eggert <eggert@twinsun.com> |
4115 | ||
4116 | * NEWS: Don't document %no-default-prec, as it's still | |
4117 | too experimental. | |
4118 | * doc/bison.texinfo: Document %no-default-prec only if | |
4119 | the defaultprec flag is set. Normally it's not. | |
4120 | ||
0cc3da3a PE |
4121 | 2003-10-04 Paul Eggert <eggert@twinsun.com> |
4122 | ||
4123 | * data/glr.c (b4_rhs_value, b4_rhs_location): Yield a | |
4124 | non-modifiable lvalue, instead of a modifiable one. | |
4125 | * doc/bison.texinfo (Actions): Document that $$ can | |
4126 | be assigned to. Do not claim that $$ and $N are | |
4127 | array element references: user code should not rely on this. | |
4128 | ||
22fccf95 PE |
4129 | 2003-10-01 Paul Eggert <eggert@twinsun.com> |
4130 | ||
4131 | * src/parse-gram.h (PERCENT_NO_DEFAULT_PREC): New token. | |
4132 | (grammar_declaration): Use it. | |
4133 | * src/scan-gram.l: New token %no-default-prec. | |
4134 | * tests/conflicts.at: Revamp tests to use %no-default-prec. | |
4135 | * NEWS, doc/bison.texinfo: Document the above. | |
4136 | ||
fc8f2965 AD |
4137 | 2003-10-01 Akim Demaille <akim@epita.fr> |
4138 | ||
4139 | VCG no longer supports long_straight_phase. | |
4140 | ||
4141 | * src/vcg.c, src/vcg.h: Remove the handling of long_straight_phase. | |
4142 | * src/print_graph.c (print_graph): Adjust. | |
4143 | ||
39a06c25 PE |
4144 | 2003-09-30 Frank Heckenbach <frank@g-n-u.de> |
4145 | and Paul Eggert <eggert@twinsun.com> | |
4146 | ||
4147 | * doc/bison.texinfo (Decl Summary, Contextual Precedence, | |
4148 | Table of Symbols): Document %default-prec. | |
4149 | * src/parse-gram.y (PERCENT_DEFAULT_PREC): New token. | |
4150 | (grammar_declaration): Set default_prec on %default-prec. | |
4151 | * src/scan-gram.l (%default-prec): New token. | |
4152 | * src/reader.h (default_prec): New flag. | |
4153 | * src/reader.c: Likewise. | |
4154 | (packgram): Handle it. | |
4155 | * tests/conflicts.at (%default-prec without %prec, | |
4156 | %default-prec with %prec, %default-prec 1): New tests. | |
fc8f2965 | 4157 | |
39a06c25 PE |
4158 | 2003-09-30 Paul Eggert <eggert@twinsun.com> |
4159 | ||
4160 | * tests/testsuite.at: Include local.at, not input.at, fixing | |
4161 | a typo in the 2003-08-25 patch. | |
4162 | ||
62b6aef9 AD |
4163 | 2003-08-27 Akim Demaille <akim@epita.fr> |
4164 | ||
4165 | * data/lalr1.cc (yyparse) [__GNUC__]: "Use" yyerrorlab to pacify | |
4166 | GCC warnings. | |
4167 | ||
89e1cc61 AD |
4168 | 2003-08-26 Akim Demaille <akim@epita.fr> |
4169 | ||
4170 | * config/announce-gen (print_changelog_deltas): Neutralize "<#" as | |
4171 | "<\#" to avoid magic from Gnus when posting parts of this script. | |
4172 | ||
a08460b0 AD |
4173 | 2003-08-26 Akim Demaille <akim@epita.fr> |
4174 | ||
4175 | * data/lalr1.cc (Parser::report_syntax_error_): New, extracted from | |
4176 | (Parser::parse): here. | |
4177 | Adjust: nerrs and errstatus is now replaced by... | |
4178 | (Parser::nerrs_, Parser::errstatus_): New. | |
4179 | ||
603f1cfd AD |
4180 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4181 | ||
4182 | * config/announce-gen, Makefile.cfg: New. | |
4183 | * Makefile.am: Adjust. | |
4184 | * GNUmakefile, Makefile.maint: Update from CVS Autoconf, but | |
4185 | keeping local WGET and WGETFLAGS modifications from Paul Eggert. | |
4186 | ||
cd3684cf AD |
4187 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4188 | ||
4189 | When reducing initial empty rules, Bison parser read an initial | |
4190 | location that is not defined. This results in garbage, and that | |
4191 | affects Bison's own parser. Therefore we need (i) to extend Bison | |
4192 | to support a means to initialize this location, and (ii) to use | |
4193 | this CVS Bison to fix CVS Bison's parser. | |
4194 | ||
4195 | * src/reader.h, reader.c (epilogue_augment): Remove, replace | |
4196 | with... | |
4197 | * src/muscle_tab.h, src/muscle_tab.c (muscle_code_grow): this. | |
4198 | * src/parse-gram.y: Adjust. | |
4199 | (%initial-action): New. | |
4200 | (%error-verbose): Since we require CVS Bison, there is no reason | |
4201 | not to use it. | |
4202 | * src/scan-gram.l: Adjust. | |
4203 | * src/Makefile.am (YACC): New, to make sure we use our own parser. | |
4204 | * data/yacc.c (yyparse): Use b4_initial_action. | |
4205 | ||
4e03e201 AD |
4206 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4207 | ||
4208 | * doc/bison.texinfo: Don't promote stdout for error messages. | |
4209 | ||
8c182d05 AD |
4210 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4211 | ||
4212 | * data/lalr1.cc (Parser::reduce_print_): Remove unused yyi. | |
4213 | From Alexandre Duret-Lutz. | |
4214 | ||
6a60c4cf PE |
4215 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4216 | ||
4217 | Version 1.875c. | |
4218 | ||
25f66e1a AD |
4219 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4220 | ||
4221 | * data/lalr1.cc (Parser::stack_print_, YY_STACK_PRINT): New. | |
4222 | Use them. | |
4223 | ||
5348bfbe AD |
4224 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4225 | ||
4226 | * data/lalr1.cc (Parser::reduce_print_): New. | |
4227 | Use it. | |
4228 | ||
47301314 AD |
4229 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4230 | ||
4231 | Have lalr1.cc catch with Paul Eggert's patch to fix the infinite | |
4232 | error recovery loops. This patch is based on | |
161a71f3 | 4233 | <http://lists.gnu.org/archive/html/bison-patches/2003-06/msg00000.html>. |
47301314 AD |
4234 | Also, augment the similarity between lalr1.cc and yacc.c. |
4235 | Note: the locations of error recovery rules are not correct yet. | |
4236 | ||
4237 | * data/lalr1.cc: Comment changes to augment the similarity between | |
4238 | lalr1.cc and yacc.c. | |
4239 | (YYERROR): Goto to yyerrorlab, not yyerrlab1. | |
4240 | (yyerrlab1): Remove, but where it used to be (now the bottom part of | |
4241 | yyerrlab), when hitting EOF, pop the whole stack here instead of | |
4242 | merely falling thru the default error handling mechanism. | |
4243 | (yyerrorlab): New label, with the old contents of YYERROR, | |
4244 | plus the following change: pop the stack of rhs corresponding | |
4245 | to the production that invoked YYERROR. That is how Yacc | |
4246 | behaves (required by POSIX). | |
4247 | * tests/calc.at (AT_CHECK_CALC_LALR1_CC): No longer expected to | |
4248 | fail. | |
4249 | ||
1f7a61ff AD |
4250 | 2003-08-25 Akim Demaille <akim@epita.fr> |
4251 | ||
4252 | Tune local.at so that people can "autom4te -l autotest calc.at -o | |
4253 | calc" for instance, to extract a sub test suite. | |
4254 | ||
4255 | * tests/testsuite.at: Move the initialization, Autotest version | |
4256 | requirement, and AT_TESTED invocation into... | |
4257 | * tests/local.at: here. | |
4258 | * tests/testsuite.at: Include it for compatibility with Autoconf | |
4259 | 2.57. | |
4260 | * tests/Makefile.am ($(TESTSUITE)): Report that the warning should | |
4261 | be ignore. | |
4262 | ||
327b5b56 PE |
4263 | 2003-08-04 Paul Eggert <eggert@twinsun.com> |
4264 | ||
4265 | Rework code slightly to avoid gcc -Wtraditional warnings. | |
4266 | * data/glr.c (yyuserMerge): Return void, not YYSTYPE. | |
4267 | The returned value is now stored in *YY0. All callers changed. | |
4268 | * src/output.c (merge_output): Adjust to the above change. | |
4269 | ||
0051e3ed PE |
4270 | 2003-07-26 Paul Eggert <eggert@twinsun.com> |
4271 | ||
4272 | * data/glr.c (YYASSERT): New macro. | |
4273 | (yyfillin, yydoAction, yyglrReduce, yysplitStack, | |
4274 | yyresolveStates, yyprocessOneStack): | |
4275 | Use `YYASSERT (FOO);' rather than `if (! (FOO)) abort ();'. | |
4276 | Derived from a suggestion by Frank Heckenbach. | |
1f7a61ff | 4277 | |
137437c6 PE |
4278 | 2003-07-25 Paul Eggert <eggert@twinsun.com> |
4279 | ||
5b620e06 PE |
4280 | * data/glr.c (yyglrReduce): Don't use C89 string concatenation, |
4281 | for portability to K&R C (after ansi2knr, presumably). See | |
161a71f3 | 4282 | <http://lists.gnu.org/archive/html/bison-patches/2003-06/msg00041.html> |
5b620e06 PE |
4283 | by Frank Heckenbach, though I have omitted the structure-initialization |
4284 | part of his glr-knr.diff patch since I recall that the Portable | |
4285 | C Compiler didn't require that change. | |
4286 | ||
137437c6 PE |
4287 | Let the user specify how to allocate and free memory. |
4288 | Derived from a suggestion by Frank Heckenbach in | |
161a71f3 | 4289 | <http://lists.gnu.org/archive/html/bison-patches/2003-06/msg00041.html>. |
137437c6 PE |
4290 | * data/glr.c (YYFREE, YYMALLOC, YYREALLOC): New macros. |
4291 | All uses of free, malloc, realloc changed to use these macros, | |
4292 | and unnecessary casts removed. | |
4293 | * data/yacc.c (YYFREE, YYMALLOC): Likewise. | |
4294 | ||
ddb85ca5 PE |
4295 | 2003-07-06 Matthias Mann <MatthiasMann@gmx.de> |
4296 | ||
4297 | * data/lalr1.cc (operator<<(std::ostream&, const Position&)): | |
4298 | use s.empty() rather than s == "" to test for empty string; see | |
161a71f3 | 4299 | <http://lists.gnu.org/archive/html/bison-patches/2003-07/msg00003.html> |
ddb85ca5 PE |
4300 | (trivial change) |
4301 | ||
39910e09 AD |
4302 | 2003-06-25 Akim Demaille <akim@epita.fr> |
4303 | ||
4304 | * config/depcomp, config/install-sh: Update from masters. | |
4305 | ||
0ae99356 PE |
4306 | 2003-06-20 Paul Eggert <eggert@twinsun.com> |
4307 | ||
4308 | * data/glr.c (YYLLOC_DEFAULT): Parenthesize arguments as needed, | |
4309 | and return properly parenthesized result. | |
4310 | * data/lalar1.cc (YYLLOC_DEFAULT): Likewise. | |
4311 | * data/yacc.c (YYLLOC_DEFAULT): Likewise. | |
4312 | Remove unnecessary parentheses from uses. | |
4313 | * doc/bison.texinfo (Location Default Action): Describe the | |
4314 | conventions for parentheses. | |
4315 | ||
cd05d13c PE |
4316 | 2003-06-19 Paul Eggert <eggert@twinsun.com> |
4317 | ||
81fd08ca PE |
4318 | * data/glr.c (yyremoveDeletes, yy_reduce_print, yyglrReduce, |
4319 | yyreportTree): Do not assume that size_t is the same width as int, | |
4320 | when printing sizes. Print sizes using an unsigned format. | |
4321 | Problem reported by Frank Heckenbach in | |
161a71f3 | 4322 | <http://lists.gnu.org/archive/html/bison-patches/2003-06/msg00035.html>. |
4dcf140b | 4323 | |
cd05d13c PE |
4324 | Port to Forte Developer 7 C compiler. |
4325 | * data/glr.c (struct YYLTYPE): If locations are not being used, | |
4326 | declare a single dummy member, as empty structs do not conform | |
4327 | to the C standard. | |
4328 | (YYERROR, YYBACKUP): Do not use "do { ...; return foo; } while (0)"; | |
4329 | the Forte Developer 7 C compiler complains that end-of-loop | |
4330 | code is not reached. | |
4331 | ||
4dcf140b PE |
4332 | 2003-06-17 Paul Eggert <eggert@twinsun.com> |
4333 | ||
4334 | * lib/libiberty.h (PARAMS): Spell argument as Args, not as X, to | |
4335 | avoid warnings from picky compilers about redefinition of PARAMS. | |
4336 | ||
8dd76bee PE |
4337 | 2003-06-17 Paul Eggert <eggert@twinsun.com> |
4338 | ||
4339 | Version 1.875b. | |
4340 | ||
4341 | * NEWS: Document 1.875b. | |
4342 | ||
4343 | * lib/bbitset.h: Do not include config.h; that's the includer's job. | |
4344 | Do not include <sys/types.h>; shouldn't be needed on a C89 host. | |
4345 | * lib/bitset.h (bitset_compatible_p): Indent as per GNU standard. | |
4346 | Don't use 'index' in comments, as it's a builtin fn on some hosts. | |
4347 | * lib/bitset_stats.c: Include gettext.h unconditionally, as | |
4348 | per recent gettext manual's suggestion. | |
4349 | * lib/ebitset.c (ebitset_resize, ebitset_unused_clear): | |
4350 | Use prototypes, not old-style definitions. | |
4351 | * lib/lbitset.c (lbitset_unused_clear): Likewise. | |
4352 | * lib/vbitset.c (vbitset_resize, vbitset_ones, vbitset_zero, | |
4353 | vbitset_empty_p, vbitset_copy1, vbitset_not, vbitset_equal_p, | |
4354 | vbitset_subset_p, vbitset_disjoint_p, vbitset_and, vbitset_and_cmp, | |
4355 | vbitset_andn, vbitset_andn_cmp, vbitset_or, vbitset_or_cmp, | |
4356 | vbitset_xor, vbitset_xor_cmp, vbitset_and_or, vbitset_and_or_cmp, | |
4357 | vbitset_andn_or, vbitset_andn_or_cmp, vbitset_or_and, | |
4358 | vbitset_or_and_cmp, vbitset_copy): Likewise. | |
4359 | ||
4360 | * lib/libiberty.h: Do not include config.h; that's the includer's job. | |
4361 | Do not include <stdlib.h>. | |
4362 | (PARAMS): Define unconditionally for C89. | |
4363 | (ATTRIBUTE_NORETURN): Remove. | |
4364 | (ATTRIBUTE_UNUSED): Define unconditionally. | |
4365 | ||
4366 | Upgrade to 2003-06-08 libbitset, submitted by Michael Hayes in: | |
161a71f3 | 4367 | <http://lists.gnu.org/archive/html/bison-patches/2003-06/msg00005.html> |
8dd76bee PE |
4368 | * lib/Makefile.am (bitsets_sources): Add vbitset.c, vbitset.h. |
4369 | * lib/vbitset.c, lib/vbitset.h: New files. | |
4370 | * lib/abitset.c, lib/bbitset.h, lib/bitset.c, lib/bitset.h, | |
4371 | lib/bitset_stats.c, lib/ebitset.c, lib/lbitset.c: Import | |
4372 | from libbitset. | |
4373 | ||
4374 | * doc/bison.texinfo (How Can I Reset the Parser): Renamed from | |
4375 | `How Can I Reset @code{yyparse}', since texinfo does not allow | |
4376 | arbitrary @ in node names. | |
4377 | ||
4378 | * m4/Makefile.am (EXTRA_DIST): Add the following files, which | |
4379 | shouldn't be needed according to the gettext 0.12.1 documentation | |
4380 | but which seem to be needed anyway: codeset.m4 glibc21.m4 | |
f8e8262e | 4381 | intdiv0.m4 inttypes-pri.m4 inttypes.m4 inttypes_h.m4 isc-posix.m4 |
8dd76bee | 4382 | lcmessage.m4 nls.m4 po.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4. |
f8e8262e | 4383 | * po/Makefile.in.in: Upgrade to gettext 0.12.1 version. |
cd05d13c | 4384 | |
8dd76bee PE |
4385 | * lib/.cvsignore: Add stdbool.h. |
4386 | * m4/.cvsignore: Add nls.m4, po.m4. | |
4387 | ||
4388 | Upgrade to CVS gnulib. | |
4389 | * stdbool_.h: File renamed from stdbool.h.in. | |
4390 | * configure.ac (AM_STDBOOL_H): Invoke this instead of | |
4391 | AC_HEADER_STDBOOL. | |
4392 | (AM_GNU_GETTEXT): Put brackets around args, as latest manual suggests. | |
4393 | (AM_GNU_GETTEXT_VERSION): Update to 0.12.1. | |
4394 | * lib/Makefile.am (EXTRA_DIST): Add stdbool_.h. | |
4395 | (MOSTLYCLEANFILES): New var. | |
4396 | ($(libbison_a_OBJECTS)): Depend on $(STDBOOL_H). | |
4397 | (stdbool.h): New rule. | |
4398 | * lib/dirname.c, lib/dirname.h, lib/hash.c, lib/hash.h, | |
4399 | lib/malloc.c, lib/obstack.h, lib/quote.c, lib/realloc.c, | |
4400 | lib/strcasecmp.c, lib/xalloc.h, m4/alloca.m4, m4/onceonly.m4, | |
4401 | m4/quote.m4: Upgrade to today's gnulib. | |
4402 | ||
4403 | * tests/calc.at (AT_CHECK_CALC): New option EXPECTED-TO-FAIL. | |
4404 | (AT_CHECK_CALC_LALR1_CC): Use it, since the C++ LALR parser fails | |
4405 | the tests right now. | |
4406 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Ensure yylex and | |
4407 | yyerror are declared before use; C99 requires this. | |
4408 | ||
25005f6a PH |
4409 | 2003-06-09 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
4410 | ||
4411 | * data/glr.c (YYERROR): Update definition to reset yyerrState to 0 | |
4412 | first. | |
4413 | (yyrecoverSyntaxError): Correct the logic for setting and testing | |
4414 | yyerrState. | |
4415 | Correct comment on handling EOF. | |
4416 | Allow states with only a default reduction, rather than failing | |
8dd76bee | 4417 | (I can't quite reconstruct why these were not allowed before). |
25005f6a | 4418 | |
137437c6 | 4419 | Fixes to avoid problem that $-N rules in GLR parsers can cause |
25005f6a | 4420 | buffer overruns, corrupting state. |
8dd76bee PE |
4421 | |
4422 | * src/output.c (prepare_rules): Output max_left_semantic_context | |
25005f6a PH |
4423 | definition. |
4424 | * src/reader.h (max_left_semantic_context): New variable declaration. | |
4425 | * src/scan-gram.l (max_left_semantic_context): Define. | |
4426 | (handle_action_dollar): Update max_left_semantic_context. | |
4427 | * data/glr.c (YYMAXLEFT): New definition. | |
4428 | (yydoAction): Increase size of yyrhsVals by YYMAXLEFT. | |
4429 | (yyresolveAction): Ditto. | |
4430 | ||
4431 | Fixes to problems with location handling in GLR parsers reported by | |
4432 | Frank Heckenbach (2003/06/05). | |
4433 | ||
4434 | * data/glr.c (YYLTYPE): Make trivial if locations not used. | |
4435 | (YYRHSLOC): Add parentheses, and define only if locations used. | |
4436 | (YYLLOC_DEFAULT): Add parentheses, and give trivial definition if | |
4437 | locations not used. | |
4438 | (yyuserAction): Use YYLLOC_DEFAULT to set *yylocp. | |
4439 | (yydoAction): Remove redundant initialization of *yyvalp and *yylocp. | |
8dd76bee | 4440 | |
25005f6a PH |
4441 | * tests/cxx-type.at: Exercise location information; update tests |
4442 | to differentiate output with and without locations. | |
8dd76bee | 4443 | Remove forward declarations of yylex and yyerror---caused errors |
25005f6a PH |
4444 | because default YYLTYPE not yet defined. |
4445 | Change semantic actions to compute strings, rather than printing | |
4446 | them directly (to test proper passing of semantics values). Change | |
4447 | output to prefix notation and update test data and expected results. | |
4448 | (yylex): Track locations. | |
4449 | (stmtMerge): Return value rather than printing, and include arguments | |
4450 | in value. | |
8dd76bee | 4451 | |
711f40b7 PE |
4452 | 2003-06-03 Paul Eggert <eggert@twinsun.com> |
4453 | ||
4454 | Avoid warnings generated by GCC 2.95.4 when Bison is | |
4455 | configured with --enable-gcc-warnings. | |
4456 | * data/lalr1.cc (yy::]b4_parser_class_name[::parse, | |
4457 | yy::]b4_parser_class_name[::translate_, | |
4458 | yy::Stack::operator[] (unsigned), | |
4459 | yy::Stack::operator[] (unsigned) const, | |
4460 | yy::Slice::operator[] (unsigned), | |
4461 | yy::Slice::operator[] (unsigned) const): | |
4462 | Rename local vars to avoid warnings. | |
4463 | * tests/glr-regression.at (Improper handling of embedded actions | |
4464 | and $-N in GLR parsers): Remove unused local variable from yylex. | |
4465 | * tests/regression.at (_AT_DATA_DANCER_Y): Declare yylex to take | |
4466 | (void) as arg when not pure, since we now assume C89 when building | |
4467 | Bison. Pacify GCC by using parameter. | |
4468 | ||
ac695f7d PE |
4469 | 2003-06-02 Paul Eggert <eggert@twinsun.com> |
4470 | ||
4471 | * data/lalr1.cc (yy::Position::lines, yy::Position::columns, | |
4472 | yy::Location::lines, yy::Location::columns): Rename arguments | |
4473 | to avoid shadowing; this removes a warning generated by GCC 3.3. | |
4474 | ||
26ec81e0 PE |
4475 | 2003-06-01 Paul Eggert <eggert@twinsun.com> |
4476 | ||
4477 | Don't pass C-only warning optins (e.g., -Wmissing-declarations) | |
4478 | to g++, as GCC 3.3 complains if you do it. | |
4479 | * configure.ac (WARNING_CXXFLAGS): New subst. Set it to | |
4480 | everything that WARNING_CFLAGS has, except omit warnings | |
4481 | not suitable for C++. | |
4482 | (AC_PROG_CXX): Use this instead of AC_CHECK_PROGS([CXX], [g++]). | |
4483 | * tests/atlocal.in (CXXFLAGS): New var. | |
4484 | * tests/local.at (AT_COMPILE_CXX): Use it instead of CFLAGS. | |
4485 | ||
4486 | Fix a GLR parser bug I reported in February; see | |
161a71f3 | 4487 | <http://lists.gnu.org/archive/html/bison-patches/2003-02/msg00008.html>. |
26ec81e0 PE |
4488 | The problem was that GLR parsers did not conform to the C standard, |
4489 | because actions like { $1 = $2 + $3; } expanded to expressions | |
4490 | that invoked YYFILL in separate subexpressions, and YYFILL assigned | |
4491 | to a local variable. The C standard says that expressions | |
4492 | like (var = f ()) + (var = f ()) have undefined behavior. | |
4493 | Another problem was that GCC sometimes issues warnings that | |
4494 | yyfill and its parameters are unused. | |
4495 | ||
4496 | * data/glr.c (yyfillin): Renamed from the old yyfill. Mark | |
4497 | as possibly unused. | |
4498 | (yyfill): New function. | |
4499 | (YYFILL): Use it. | |
4500 | (yyuserAction): Change type of yynormal to bool, so that it matches | |
4501 | the new yyfill signature. Mark it as possibly unused. | |
4502 | ||
4503 | ||
4504 | Follow up on a bug I reported in February, where a Bison-generated | |
4505 | parser can loop. Provide a test case and a fix for yacc.c. I | |
4506 | don't have a fix for lalr1.cc or for glr.c, unfortunately. | |
4507 | The original bug report is in: | |
161a71f3 | 4508 | <http://lists.gnu.org/archive/html/bison-patches/2003-02/msg00044.html> |
26ec81e0 PE |
4509 | |
4510 | * data/yacc.c (YYERROR): Now just 'goto yyerrorlab', since the | |
4511 | macro's size was becoming unwieldy. | |
4512 | (yyerrlab): Do not discard an empty lookahead symbol, as this | |
4513 | might destroy garbage. | |
4514 | (yyerrorlab): New label, with the old contents of YYERROR, | |
4515 | plus the following change: pop the stack of rhs corresponding | |
4516 | to the production that invoked YYERROR. That is how Yacc | |
4517 | behaves, and POSIX requires this behavior. | |
4518 | (yyerrlab1): Use YYPOPSTACK instead of its definiens. | |
4519 | * tests/calc.at (_AT_DATA_CALC_Y): Include unistd.h if available. | |
4520 | Define 'alarm' to do nothing if unistd.h is not available. | |
4521 | Add a new rule "exp: '-' error;" to test the above change to | |
4522 | data/yacc.c. Use 'alarm' to abort any test taking longer than | |
4523 | 10 seconds, as it's probably looping. | |
4524 | (AT_CHECK_CALC): Test recovery from error in new grammar rule. | |
4525 | Also, the new yacc.c generates two fewer diagnostics for an | |
4526 | existing test. | |
4527 | ||
d0829076 PE |
4528 | 2003-05-24 Paul Eggert <eggert@twinsun.com> |
4529 | ||
c6ae27df PE |
4530 | * data/glr.c (YYSTACKEXPANDABLE): Do not evaluate |
4531 | YYSTYPE_IS_TRIVIAL or YYSTYPE_IS_TRIVIAL unless they are defined. | |
4532 | This fixes a problem reported by John Bowman when the Compaq/HP | |
4533 | Alpha cxx compiler happy (e.g. using cxx -D__USE_STD_IOSTREAM | |
4534 | -ansi -Wall -gall). | |
4535 | * data/yacc.c (union yyalloc): Likewise. | |
4536 | (YYCOPY): Do not evaluate __GNUC__ unless it is defined. | |
26ec81e0 | 4537 | |
d0829076 PE |
4538 | Switch from 'int' to 'bool' where that makes sense. |
4539 | ||
4540 | * lib/abitset.c (abitset_test, abitset_empty_p, abitset_equal_p, | |
4541 | abitset_subset_p, abitset_disjoint_p, abitset_and_cmp, | |
4542 | abitset_andn_cmp, abitset_or_cmp, abitset_xor_cmp, abitset_and_or, | |
4543 | abitset_and_or_cmp, abitset_andn_or_cmp, abitset_or_and_cmp): | |
4544 | Return or accept bool, not int. All callers changed. | |
4545 | * lib/bbitset.h: (bitset_toggle_, bitset_copy_, bitset_and_or_cmp_, | |
4546 | bitset_andn_or_cmp_, bitset_or_and_cmp_): Likewise. | |
4547 | * lib/bitset.c (bitset_only_set_p, bitset_print, bitset_toggle_, | |
4548 | bitset_copy_, bitset_op4_cmp, bitset_and_or_cmp_, bitset_andn_or_cmp_, | |
4549 | bitset_or_and_cmp_): Likewise. | |
4550 | * lib/bitset.h (bitset_test, bitset_only_set_p): Likewise. | |
4551 | * lib/bitset_stats.c (bitset_stats_print, bitset_stats_toggle, | |
4552 | bitset_stats_test, bitset_stats_empty_p, bitset_stats_disjoint_p, | |
4553 | bitset_stats_equal_p, bitset_stats_subset_p, bitset_stats_and_cmp, | |
4554 | bitset_stats_andn_cmp, bitset_stats_or_cmp, bitset_stats_xor_cmp, | |
4555 | bitset_stats_and_or_cmp, bitset_stats_andn_or_cmp, | |
4556 | bitset_stats_or_and_cmp): Likewise. | |
4557 | * lib/ebitset.c (ebitset_elt_zero_p, ebitset_equal_p, ebitset_copy_cmp, | |
4558 | ebitset_test, ebitset_empty_p, ebitset_subset_p, ebitset_disjoint_p, | |
4559 | ebitset_op3_cmp, ebitset_and_cmp, ebitset_andn_cmp, ebitset_or_cmp, | |
4560 | ebitset_xor_cmp): Likewise. | |
4561 | * lib/lbitset.c (lbitset_elt_zero_p, lbitset_equal_p, lbitset_copy_cmp, | |
4562 | lbitset_test, lbitset_empty_p, lbitset_subset_p, lbitset_disjoint_p, | |
4563 | lbitset_op3_cmp, lbitset_and_cmp, lbitset_andn_cmp, lbitset_or_cmp, | |
4564 | lbitset_xor_cmp): Likewise. | |
4565 | * lib/bbitset.h: Include <stdbool.h>. | |
4566 | (struct bitset_vtable): The following members now return bool, not | |
4567 | int: toggle, test, empty_p, disjoint_p, equal_p, subset_p, | |
4568 | and_cmp, andn_cmp, or_cmp, xor_cmp, and_or_cmp, andn_or_cmp, | |
4569 | or_and_cmp). | |
4570 | * src/conflicts.c (count_rr_conflicts): Likewise. | |
4571 | * lib/bitset_stats.h (bitset_stats_enabled): Now bool, not int. | |
4572 | All uses changed. | |
4573 | * lib/ebitset.c (ebitset_obstack_init): Likewise. | |
4574 | * lib/lbitset.c (lbitset_obstack_init): Likewise. | |
4575 | * src/getargs.c (debug_flag, defines_flag, locations_flag, | |
4576 | no_lines_flag, no_parser_flag, token_table_flag, yacc_flag, | |
4577 | graph_flag): Likewise. | |
4578 | * src/getargs.h (debug_flag, defines_flag, locations_flag, | |
4579 | no_lines_flag, no_parser_flag, token_table_flag, yacc_flag, | |
4580 | graph_flag): Likewise. | |
4581 | * src/output.c (error_verbose): Likewise. | |
4582 | * src/output.h (error_verbose): Likewise. | |
4583 | * src/reader.c (start_flag, typed): Likewise. | |
4584 | * src/reader.h (typed): Likewise. | |
4585 | * src/getargs.c (LOCATIONS_OPTION): New constant. | |
4586 | (long_options, getargs): Use it. | |
4587 | * src/lalr.c (build_relations): Use bool, not int. | |
4588 | * src/nullable.c (nullable_compute): Likewise. | |
4589 | * src/print.c (print_reductions): Likewise. | |
4590 | * src/tables.c (action_row, pack_vector): Likewise. | |
4591 | * src/muscle_tab.h (MUSCLE_INSERT_BOOL): New macro. | |
4592 | * src/output.c (prepare): Use it. | |
4593 | * src/output.c (token_definitions_output, | |
4594 | symbol_destructors_output, symbol_destructors_output): Use string, | |
4595 | not boolean integer, to keep track of whether to output separator. | |
4596 | * src/print_graph.c (print_core): Likewise. | |
4597 | * src/state.c (state_rule_lookaheads_print): Likewise. | |
4598 | ||
4599 | * config/install-sh: Sync from automake 1.7.5. | |
4600 | ||
6b2584b7 PE |
4601 | 2003-05-14 Paul Eggert <eggert@twinsun.com> |
4602 | ||
4603 | * src/parse-gram.y (rules_or_grammar_declaration): Require a | |
4604 | semicolon after a grammar declaration, in the interest of possible | |
4605 | future changes to the Bison input language. | |
4606 | Do not allow a stray semicolon at the start of the grammar. | |
4607 | (rhses.1): Allow one or more semicolons after any rule, including | |
4608 | just before "|" as required by POSIX. | |
4609 | * tests/input.at (Torturing the Scanner): Add tests for ";|" in a | |
4610 | grammar. | |
4611 | ||
caf37a36 ADL |
4612 | 2003-05-14 Alexandre Duret-Lutz <adl@gnu.org> |
4613 | ||
4614 | %parse-param support for lalr1.cc. | |
4615 | ||
4616 | * data/lalr1.cc (b4_parse_param_decl, b4_parse_param_cons, | |
4617 | b4_cc_constructor_calls, b4_cc_constructor_call, | |
4618 | b4_parse_param_vars, b4_cc_var_decls, b4_cc_var_decl): New m4 | |
4619 | definitions. | |
4620 | (yy::b4_parser_class_name::b4_parser_class_name): Take extra | |
4621 | parse-param arguments. | |
4622 | (yy::b4_parser_class_name): Declare instance variables to | |
4623 | hold parse-param arguments. | |
4624 | * tests/calc.at: s/value/semantic_value/ because value clashes | |
4625 | with a member of yy::b4_parser_class_name. Adjust C++ code | |
4626 | to handle %parse-param. Enable %parse-param test in C++. | |
4627 | ||
3ab37077 PE |
4628 | 2003-05-12 Paul Eggert <eggert@twinsun.com> |
4629 | ||
4630 | * doc/bison.texinfo (How Can I Reset @code{yyparse}): Reword the | |
4631 | English a bit. Fix fclose typo. Change "const char" to "char | |
4632 | const", and use ANSI C rather than K&R for "main". Suggest | |
4633 | YY_FLUSH_BUFFER over yyrestart (as that is what Flex recommends) | |
4634 | and suggest yy_switch_to_buffer. | |
4635 | ||
4636 | 2003-05-05 Paul Eggert <eggert@twinsun.com> | |
163ab321 PE |
4637 | |
4638 | * lib/bitset.h (__INT_TO_PTR): Define to a value that presumes | |
4639 | C89. This avoids a diagnostic on compilers that define __STDC__ | |
4640 | to 0, fixing a problem with Tru64 cc reported by Martin Mokrejs in | |
161a71f3 | 4641 | <http://lists.gnu.org/archive/html/bug-bison/2003-04/msg00041.html>. |
163ab321 | 4642 | |
e743727f PE |
4643 | 2003-05-03 Paul Eggert <eggert@twinsun.com> |
4644 | ||
4645 | * lib/bitset.h (BITSET_FOR_EACH, BITSET_FOR_EACH_REVERSE): | |
4646 | Do not overrun array bounds. | |
4647 | This should fix a bug reported today by Olatunji Oluwabukunmi in | |
161a71f3 | 4648 | <http://lists.gnu.org/archive/html/bug-bison/2003-05/msg00004.html>. |
e743727f | 4649 | |
916708d5 AD |
4650 | 2003-04-29 Akim Demaille <akim@epita.fr> |
4651 | ||
4652 | * src/gram.h, src/gram.c (pure_parser, glr_parser): Move to... | |
4653 | * src/getargs.c, src/getargs.h: here, as bool, not int. | |
4654 | (nondeterministic_parser): New. | |
4655 | * src/parse-gram.y, src/scan-gram.l: Support | |
4656 | %nondeterministic-parser. | |
4657 | * src/output.c (prepare): Use nondeterministic_parser instead | |
4658 | of glr_parser where appropriate. | |
4659 | * src/tables.c (conflict_row, action_row, save_row) | |
4660 | (token_actions, token_actions, pack_vector): Ditto. | |
4661 | ||
a06ea4aa AD |
4662 | 2003-04-29 Akim Demaille <akim@epita.fr> |
4663 | ||
4664 | * doc/bison.texinfo (C++ Parsers, Implementing Loops): New. | |
4665 | ||
211074ca AD |
4666 | 2003-04-29 Akim Demaille <akim@epita.fr> |
4667 | ||
4668 | * tests/calc.at: Also test yacc.c and glr.c (but not lalr1.cc yet) | |
4669 | with %pure-parser and %locations to exercise the patch from Yakov | |
4670 | Markovitch below. | |
4671 | ||
6175ffe3 PE |
4672 | 2003-04-28 Tim Van Holder <tim.van.holder@pandora.be> |
4673 | ||
4674 | * data/yacc.c: (b4_lex_param): Corrected for the case where | |
4675 | %lex-param is provided and %pure-parser isn't. | |
4676 | ||
b1e95857 PE |
4677 | 2003-04-27 Paul Eggert <eggert@twinsun.com> |
4678 | ||
4679 | Avoid gcc -Wundef warnings reported by Gerald Pfeifer in | |
161a71f3 | 4680 | <http://lists.gnu.org/archive/html/bug-bison/2003-04/msg00044.html>. |
b1e95857 PE |
4681 | * data/yacc.c (YYSTACK_ALLOC): Don't evaluate YYSTACK_USE_ALLOCA |
4682 | if it is not defined. | |
4683 | (YYMAXDEPTH): Don't evaluate YYMAXDEPTH if it is not defined. | |
4684 | ||
acda9df6 PE |
4685 | 2003-04-26 Paul Eggert <eggert@twinsun.com> |
4686 | ||
3470c57b PE |
4687 | * data/lalr1.cc (yy::Parser::pact_ninf_, yy::Parser::table_ninf_): |
4688 | Declare to be of type suitable for the ninf value itself, not of | |
4689 | type suitable for the corresponding table, since the latter might | |
4690 | be unsigned but the ninf value might be negative. This fixes a | |
4691 | bug reported by Alexandre Duret-Lutz in | |
161a71f3 | 4692 | <http://lists.gnu.org/archive/html/bug-bison/2003-04/msg00017.html>. |
3470c57b | 4693 | |
acda9df6 PE |
4694 | * configure.ac (AC_FUNC_ERROR_AT_LINE): Remove, since gl_ERROR |
4695 | invokes it. We shouldn't invoke it twice because it will attempt | |
4696 | to put error.o in the archive twice. This fixes a glitch reported | |
4697 | by Martin Mokrejs in | |
161a71f3 | 4698 | <http://lists.gnu.org/archive/html/bug-bison/2003-04/msg00041.html>. |
acda9df6 | 4699 | |
b5250f26 PE |
4700 | 2003-04-21 Paul Eggert <eggert@twinsun.com> |
4701 | ||
4702 | * m4/error.m4: Update from Bruno Haible's 2003-04-14 patch | |
4703 | to gnulib. | |
4704 | ||
089ac0f1 PE |
4705 | 2003-04-21 Yakov Markovitch <Markovitch@iso.ru> |
4706 | ||
4707 | * data/glr.c (yyexpandGLRStack) [!YYSTACKEXPANDABLE]: | |
4708 | Fix obvious typo that results in uncompilable GLR parsers | |
4709 | when both %pure-parser and %locations are used. (trivial change) | |
4710 | ||
5ededac6 PE |
4711 | 2003-04-17 Paul Eggert <eggert@twinsun.com> |
4712 | ||
1b8f2fff PE |
4713 | * src/scan-gram.l: Add %option nounput, since we no longer use unput. |
4714 | (unexpected_eof): Renamed from unexpected_end_of_file, for brevity. | |
4715 | Do not insert the expected token via unput, as this runs afoul | |
4716 | of a POSIX-compatibility bug in flex 2.5.31. | |
4717 | All uses changed to BEGIN the parent state, | |
4718 | since we no longer insert the expected token via unput. | |
4719 | * tests/regression.at (Invalid inputs): Remove cascaded diagnostic | |
4720 | that is no longer emitted after the above change. | |
4721 | ||
5ededac6 PE |
4722 | * src/conflicts.c (set_conflicts): Resolve all conflicts, not just |
4723 | the first one. This change is from Paul Hilfinger, and it fixes | |
4724 | regression reported by Werner Lemberg in | |
161a71f3 | 4725 | <http://lists.gnu.org/archive/html/bug-bison/2003-04/msg00026.html>. |
5ededac6 PE |
4726 | |
4727 | (resolve_sr_conflict): Don't invoke state_errs_set | |
4728 | unless one or more tokens have been explicitly made errors. | |
4729 | Otherwise, the above change causes Bison to abort. | |
4730 | ||
4731 | * tests/existing.at (GNU pic Grammar): New test case, taken from | |
4732 | Lemberg's email. | |
4733 | ||
b8be9132 AD |
4734 | 2003-03-31 Akim Demaille <akim@epita.fr> |
4735 | ||
4736 | * doc/Makefile.am (AM_MAKEINFOFLAGS): Don't split the info file. | |
4737 | ||
d423d460 AD |
4738 | 2003-03-31 Akim Demaille <akim@epita.fr> |
4739 | ||
4740 | * src/output.c (prepare_symbols): Avoid trailing spaces in the | |
4741 | output. | |
4742 | ||
c7e441b4 AD |
4743 | 2003-03-31 Akim Demaille <akim@epita.fr> |
4744 | ||
4745 | * doc/bison.texinfo (Strings are Destroyed): s/losses/loses/. | |
4746 | From Paul Hilfinger. | |
4747 | ||
231897ad AD |
4748 | 2003-03-29 Akim Demaille <akim@epita.fr> |
4749 | ||
4750 | * m4/error.m4: Do not put under dynamic conditions some code which | |
4751 | expansion is under static control. | |
4752 | ||
5b066063 AD |
4753 | 2003-03-29 Akim Demaille <akim@epita.fr> |
4754 | ||
4755 | * doc/bison.texinfo (How Can I Reset @code{yyparse}): New. | |
4756 | ||
22a74fec AD |
4757 | 2003-03-29 Akim Demaille <akim@epita.fr> |
4758 | ||
4759 | * doc/bison.texinfo (Strings are Destroyed): New. | |
4760 | ||
0eee27e7 PE |
4761 | 2003-03-13 Paul Eggert <eggert@twinsun.com> |
4762 | ||
4763 | * .cvsignore: Add configure.lineno. | |
4764 | * src/.cvsignore: Add yacc. | |
4765 | * tests/.cvsignore: Add testsuite.log. | |
4766 | * doc/fdl.texi: Sync with latest FSF version. | |
4767 | ||
f61aad93 PE |
4768 | 2003-03-12 Paul Eggert <eggert@twinsun.com> |
4769 | ||
537636c7 PE |
4770 | * scan-gram.l (YY_USER_INIT): Initialize code_start, too. |
4771 | (<INITIAL><<EOF>>, <SC_PRE_CODE><<EOF>>): Set *loc to the scanner | |
4772 | cursor, instead of leaving it undefined. This fixes a bug | |
4773 | reported by Tim Van Holder in | |
161a71f3 | 4774 | <http://lists.gnu.org/archive/html/bug-bison/2003-03/msg00023.html>. |
537636c7 PE |
4775 | * tests/input.at (Torturing the Scanner): Test the scanner on |
4776 | an empty input file, which was Tim Van Holder's test case. | |
4777 | ||
4778 | * m4/timevar.m4 (BISON_PREREQ_TIMEVAR): When checking whether | |
4779 | <sys/resource.h> can be included, include sys/time.h and | |
4780 | sys/times.h first, if available. This works around the SunOS | |
4781 | 4.1.4 porting bug reported by Bruce Becker in | |
161a71f3 | 4782 | <http://lists.gnu.org/archive/html/bug-bison/2003-03/msg00018.html>. |
537636c7 PE |
4783 | |
4784 | * m4/subpipe.m4 (BISON_PREREQ_SUBPIPE): Don't | |
4785 | AC_CHECK_HEADERS([sys/wait.h]), as this interferes with | |
4786 | AC_HEADER_SYS_WAIT. | |
4787 | ||
f61aad93 PE |
4788 | Merge changes from gnulib. This was prompted because the CVS |
4789 | snapshot didn't build on Solaris 7 due to strnlen problems. | |
4790 | ||
4791 | These changes need to be merged back into gnulib: | |
4792 | * lib/hash.c: Include <stdbool.h> unconditionally. | |
4793 | * m4/onceonly.m4 (m4_quote): New macro. | |
4794 | (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE): | |
4795 | Quote AC_FOREACH variable-expansions properly. | |
4796 | The 2003-01-03 obstack.h change also needs merging. | |
4797 | {end of changes requiring merging} | |
5b066063 | 4798 | |
f61aad93 PE |
4799 | * lib/stdbool.h.in, m4/alloca.m4, m4/dirname.m4, m4/dos.m4, |
4800 | m4/getopt.m4, m4/hash.m4, m4/malloc.m4, m4/memchr.m4, | |
4801 | m4/memrchr.m4, m4/obstack.m4, m4/onceonly.m4, m4/quote.m4, | |
4802 | m4/quotearg.m4, m4/realloc.m4, m4/stpcpy.m4, m4/strnlen.m4, | |
4803 | m4/strtol.m4, m4/strtoul.m4, m4/unlocked-io.m4, m4/xalloc.m4: | |
4804 | New files, imported from gnulib. | |
4805 | * m4/Makefile.am (EXTRA_DIST): Add the new m4/*.m4 files mentioned | |
4806 | above. | |
4807 | ||
4808 | * lib/mbswidth.c, m4/error.m4, m4/mbrtowc.m4, m4/mbswidth.m4, | |
4809 | m4/memcmp.m4, m4/prereq.m4, m4/stdbool.m4: Update to current | |
4810 | gnulib sources. | |
4811 | ||
4812 | * configure.ac (gl_DIRNAME, gl_GETOPT, gl_HASH, gl_QUOTE, gl_XALLOC): | |
4813 | Add. | |
4814 | (gl_ERROR): New, replacing jm_PREREQ_ERROR. | |
4815 | (gl_FUNC_ALLOCA): New, replacing AC_FUNC_ALLOCA. | |
4816 | (gl_FUNC_STPCPY): New, replacing AC_REPLACE_FUNCS(stpcpy). | |
4817 | (gl_FUNC_STRNLEN): New, replacing AC_FUNC_STRNLEN. | |
4818 | (gl_MBSWIDTH): New, replacing jm_PREREQ_MBSWIDTH. | |
4819 | (gl_OBSTACK): New, replacing AC_FUNC_OBSTACK. | |
4820 | (gl_QUOTEARG): New, replacing jm_PREREQ_QUOTEARG. | |
4821 | (jm_FUNC_GLIBC_UNLOCKED_IO, gl_FUNC_STPCPY, gl_FUNC_STRTOL): New. | |
4822 | (jm_FUNC_MALLOC): New, replacing AC_FUNC_MALLOC. | |
4823 | (jm_FUNC_REALLOC): New, replacing AC_FUNC_REALLOC. | |
4824 | (jm_PREREQ_ARGMATCH): Remove. | |
4825 | (AC_REPLACE_FUNCS): Remove memchr, memrchr, stpcpy, strtol, strtoul. | |
4826 | * lib/Makefile.am (libbison_a_SOURCES): Add argmatch.c, argmatch.h. | |
4827 | ||
4828 | * src/system.h: Include <stdbool.h> unconditionally. | |
4829 | ||
4830 | * lib/bbitset.h: Include <limits.h> unconditionally. We have been | |
4831 | assuming at least C89 in the bitset code for some time now. | |
4832 | ||
d2ffe116 AD |
4833 | 2003-03-03 Akim Demaille <akim@epita.fr> |
4834 | ||
4835 | * ro.po: New. | |
4836 | ||
052826fd AD |
4837 | 2003-03-02 Akim Demaille <akim@epita.fr> |
4838 | ||
4839 | * doc/bison.texinfo (Table of Symbols): Reactivate the | |
4840 | documentation for %lex-param, and %parse-param. | |
4841 | ||
c4749565 AD |
4842 | 2003-03-02 Akim Demaille <akim@epita.fr> |
4843 | ||
4844 | * data/yacc.c, data/glr.c, data/lal1.cc: Use similar code to | |
4845 | generate verbose error messages. | |
4846 | Use the number of tokens as an upper bound in yytname, as it | |
4847 | cannot be a non terminal. | |
4848 | ||
d5286af1 AD |
4849 | 2003-03-02 Akim Demaille <akim@epita.fr> |
4850 | ||
4851 | * tests/regression.at (_AT_DATA_DANCER_Y): Fix the expected error | |
4852 | message. | |
4853 | ||
22e304a6 AD |
4854 | 2003-03-02 Akim Demaille <akim@epita.fr> |
4855 | ||
22e304a6 AD |
4856 | * tests/regression.at (_AT_DATA_DANCER_Y, AT_CHECK_DANCER): New. |
4857 | Use them to exercise yycheck overrun. | |
4858 | Based on Andrew Suffield's grammar. | |
4859 | ||
67a25fed AD |
4860 | 2003-03-02 Akim Demaille <akim@epita.fr> |
4861 | ||
4862 | Create tests/local.at for Bison generic testing macros. | |
4863 | ||
4864 | * tests/calc.at (AT_CHECK_PUSHDEFS, AT_CHECK_POPDEFS): Move to... | |
4865 | * tests/local.at (AT_BISON_OPTION_PUSHDEFS, AT_BISON_OPTION_POPDEFS): | |
4866 | This new file. | |
4867 | * tests/calc.at (AT_CHECK_CALC): Adjust. | |
4868 | * tests/testsuite.at (AT_DATA_GRAMMAR_PROLOGUE, AT_DATA_GRAMMAR) | |
4869 | (AT_COMPILE, AT_COMPILE_CXX, AT_PARSER_CHECK): Move to... | |
4870 | * tests/local.at: here. | |
4871 | (AT_COMPILE_CXX): Tags the tests using it as c++. | |
4872 | Ignore the test if CXX is not functional. | |
4873 | ||
9c2b381f PE |
4874 | 2003-03-01 Paul Eggert <eggert@twinsun.com> |
4875 | ||
4876 | * src/scan-gram.l (code_start): Initialize it to scanner_cursor, | |
4877 | not loc->end, since loc->end might contain garbage and this leads | |
4878 | to undefined behavior on some platforms. | |
4879 | (id_loc, token_start): Use (IF_LINTed) initial values that do not | |
4880 | depend on *loc, so that the reader doesn't give the the false | |
4881 | impression that *loc is initialized. | |
4882 | (<INITIAL>"%%"): Do not bother setting code_start, since its value | |
4883 | does not survive the return. | |
4884 | ||
0433ba88 AD |
4885 | 2003-03-01 Akim Demaille <akim@epita.fr> |
4886 | ||
4887 | * src/scan-gram.l (code_start): Always initialize it when entering | |
4888 | into yylex, as SC_EPILOGUE is activated *before* the corresponding | |
4889 | yylex invocation. An alternative would be making it static, but | |
4890 | then it starts with the second %%'s beginning, instead of its end. | |
4891 | ||
b305ea69 PE |
4892 | 2003-02-28 Paul Eggert <eggert@twinsun.com> |
4893 | ||
4894 | * lib/mbswidth.c: Include <wchar.h> before "mbswidth.h", to work | |
4895 | around a UnixWare 7.1.1 porting bug reported by John Hughes in | |
161a71f3 | 4896 | <http://lists.gnu.org/archive/html/bug-bison/2003-02/msg00030.html>. |
b305ea69 | 4897 | |
c3d25e01 PE |
4898 | 2003-02-26 Paul Eggert <eggert@twinsun.com> |
4899 | ||
4900 | * README: Mention compiler bug in Sun Forte Developer 6 update 2. | |
4901 | Remove Sequent/Pyramid discussion (nobody uses them any more). | |
4902 | Merge VMS and MS-DOS discussion; these ports may well be dead | |
4903 | but let's keep mentioning them for now. Put <> around email | |
4904 | addresses. Add copyright notice. | |
4905 | ||
c267ffbc PE |
4906 | 2003-02-24 Paul Eggert <eggert@twinsun.com> |
4907 | ||
4908 | * data/glr.c (yy_reduce_print): yylineno -> yylno, | |
4909 | to avoid collision with flex use of yylineno. | |
4910 | Problem reported by Bruce Lilly in | |
161a71f3 | 4911 | <http://lists.gnu.org/archive/html/bug-bison/2003-02/msg00016.html>. |
c267ffbc PE |
4912 | * data/lalr1.cc (yy::]b4_parser_class_name[::parse): Likewise. |
4913 | * data/yacc.c (yy_reduce_print): Likewise. | |
4914 | ||
4915 | * config/depcomp: Sync with Automake 1.7.3. | |
4916 | ||
f939fc12 AD |
4917 | 2003-02-21 Akim Demaille <akim@epita.fr> |
4918 | ||
4919 | * data/lalr1.cc: Use temporary variables instead of casts to | |
4920 | change integer types. | |
4921 | Suggested by Paul Eggert. | |
4922 | ||
95923bd6 AD |
4923 | 2003-02-21 Akim Demaille <akim@epita.fr> |
4924 | ||
4925 | * doc/bison.texinfo: Use "location" consistently to refer to @n, | |
4926 | to avoid confusions with lalr1.cc's notion of Position. | |
4927 | Suggested by Paul Eggert. | |
4928 | ||
2cdc240e AD |
4929 | 2003-02-20 Akim Demaille <akim@epita.fr> |
4930 | ||
4931 | * data/lalr1.cc (position.hh): Make sure "columns" never pushes | |
4932 | before initial_columns. | |
4933 | (location.hh): Use consistent variable names when defining the | |
4934 | operator<<. | |
4935 | Use "last" so that we subtract from Positions, not from unsigned. | |
4936 | ||
5d003116 AD |
4937 | 2003-02-20 Akim Demaille <akim@epita.fr> |
4938 | ||
4939 | * data/lalr1.cc (position.hh): New subfile, including the extended | |
4940 | and Doxygen'ed documentation of class Position. | |
4941 | (location.hh): Use it. | |
4942 | Document a` la Doxygen. | |
ba1ecc07 | 4943 | With the help of Benoit Perrot. |
5d003116 | 4944 | |
d02b25f9 AD |
4945 | 2003-02-20 Akim Demaille <akim@epita.fr> |
4946 | ||
4947 | * tests/calc.at (AT_CHECK_PUSHDEFS, AT_CHECK_POPDEFS): Define | |
4948 | AT_YACC_IF. | |
4949 | Redefine AT_YYERROR_SEES_LOC_IF using it. | |
4950 | (_AT_DATA_CALC_Y): Don't declare yyerror when lalr1.cc, as it is | |
4951 | not defined. | |
4952 | Don't use the location in yy::Parser::error_ and | |
4953 | yy::Parser::print_ when not %locations. | |
4954 | Activate more lalr1.cc tests. | |
4955 | ||
0d1c3a04 AD |
4956 | 2003-02-19 Akim Demaille <akim@epita.fr> |
4957 | ||
4958 | * data/lalr1.cc: When displaying a line number, be sure to make it | |
4959 | an int. | |
4960 | ||
60a777aa AD |
4961 | 2003-02-19 Akim Demaille <akim@epita.fr> |
4962 | ||
4963 | * data/lalr1.cc (b4_stack_depth_init, yy::Parser::initdepth_): | |
4964 | Remove, useless. | |
4965 | (YYABORT, YYACCEPT, YYERROR): New. | |
4966 | * tests/calc.at: Renable the lalr1.cc test. | |
4967 | ||
0b86fc41 AD |
4968 | 2003-02-19 Akim Demaille <akim@epita.fr> |
4969 | ||
4970 | * tests/calc.at (AT_CHECK_CALC): Check different scenarios of | |
4971 | error recovery, mixing with/without pops and discarding of the | |
4972 | lookahead. | |
4973 | Exercise YYERROR. | |
4974 | Disable the lalr1.cc tests as currently it doesn't support YYERROR. | |
4975 | ||
da99a5dc PE |
4976 | 2003-02-17 Paul Eggert <eggert@twinsun.com> |
4977 | ||
4978 | * tests/atlocal.in (LDFLAGS, LIBS): New vars. | |
4979 | * tests/testsuite.at (AT_COMPILE): Use them. | |
4980 | This fixes the testsuite problem reported by Robert Lentz in | |
161a71f3 | 4981 | <http://lists.gnu.org/archive/html/bug-bison/2003-02/msg00011.html>. |
da99a5dc | 4982 | |
93b8c255 PE |
4983 | 2003-02-12 Paul Eggert <eggert@twinsun.com> |
4984 | ||
4985 | * data/yacc.c (yyerrlab) [YYERROR_VERBOSE]: | |
4986 | Avoid subscript error in yycheck. Bug reported by Andrew Suffield in | |
161a71f3 | 4987 | <http://lists.gnu.org/archive/html/bug-bison/2003-02/msg00003.html>. |
93b8c255 PE |
4988 | * data/glr.c (yyreportSyntaxError) [YYERROR_VERBOSE]: Likewise. |
4989 | Check for malloc failure, for consistency with yacc.c. | |
4990 | (yytname_size): Remove, for consistency with yacc.c. | |
4991 | ||
4992 | The bug still remains in data/lalr1.cc, as I didn't have time | |
4993 | to fix it there. | |
4994 | ||
7548fed2 AD |
4995 | 2003-02-06 Akim Demaille <akim@epita.fr> |
4996 | ||
4997 | * configure.ac (GXX): Rename as... | |
4998 | (CXX): this, to keep the original Autoconf semantics. | |
4999 | Require 2.57. | |
5000 | * data/lalr1.cc: Fix b4_copyright invocations. | |
5001 | If YYDEBUG is not defined, don't depend upon name_ being defined. | |
5002 | (location.hh): Include string and iostream. | |
5003 | (Position::filename): New member. | |
5004 | (Position::Position ()): New. | |
5005 | (operator<< (Position)): New. | |
5006 | (operator- (Position, int)): New. | |
5007 | (Location::first, Location::last): Rename as... | |
5008 | (Location::begin, Location::end): these, to mock the conventional | |
5009 | iterator names. | |
5010 | (operator<< (Location)): New. | |
5011 | * tests/atlocal.in (CXX): New. | |
5012 | * tests/testsuite.at (AT_COMPILE_CXX): New. | |
5013 | * tests/calc.at (_AT_DATA_CALC_Y): Adjust yyerror to report the | |
5014 | locations in a more synthetic way. | |
5015 | (AT_CHECK_PUSHDEFS): AT_YYERROR_SEES_LOC_IF is positive if | |
5016 | lalr1.cc is used. | |
5017 | Adjust the C locations to match those from Emacs: first column is | |
5018 | column 0. | |
5019 | Change all the expected results. | |
5020 | Conform to the GCS: simplify the locations when applicable. | |
5021 | (LOC, VAL, YYLLOC_FORMAL, YYLLOC_ARG, USE_YYLLOC, LEX_FORMALS) | |
5022 | (LEX_ARGS, USE_LEX_ARGS, LEX_PRE_FORMALS, LEX_PRE_ARGS): Replace | |
5023 | these CPP macros with the m4 macros new defined by... | |
5024 | (AT_CHECK_PUSHDEFS): this, i.e.: | |
5025 | (AT_LALR1_CC_IF, AT_PURE_LEX_IF, AT_LOC, AT_VAL, AT_LEX_FORMALS) | |
d02b25f9 | 5026 | (AT_LEX_ARGS, AT_USE_LEX_ARGS, AT_LEX_PRE_FORMALS, AT_LEX_PRE_ARGS) |
7548fed2 AD |
5027 | New macros. |
5028 | (AT_CHECK_POPDEFS): Undefine them. | |
5029 | (AT_CHECK_CALC_LALR1_CC): New. | |
5030 | Use it for the first lalr1.cc test. | |
5031 | ||
43a176ef AD |
5032 | 2003-02-04 Akim Demaille <akim@epita.fr> |
5033 | ||
5034 | * data/lalr1.cc (YYLLOC_DEFAULT): Fix its definition: be based on | |
5035 | Location as is defined. | |
5036 | ||
fc049e9c AD |
5037 | 2003-02-04 Akim Demaille <akim@epita.fr> |
5038 | ||
5039 | * data/lalr1.cc: If YYDEBUG is not defined, don't depend upon | |
5040 | name_ being defined. | |
5041 | ||
a737b216 PE |
5042 | 2003-02-03 Paul Eggert <eggert@twinsun.com> |
5043 | ||
5044 | * src/gram.h (start_symbol): Remove unused decl. | |
5045 | ||
5046 | Use more-consistent naming conventions for local vars. | |
5047 | ||
5048 | * src/derives.c (derives_compute): Change type of local var from | |
5049 | int to rule_number. | |
5050 | * src/gram.c (grammar_rules_partial_print): Likewise. | |
5051 | * src/print.c (print_core): Likewise. | |
5052 | * src/reduce.c (reduce_grammar_tables): Likewise. | |
5053 | ||
5054 | * src/gram.c (grammar_dump): Change name of item_number * | |
5055 | local var from r to rp. | |
5056 | * src/nullable.c (nullable_compute): Likewise. | |
5057 | ||
5058 | * src/gram.h (ISTOKEN, ISVAR): Use i, not s, for int var. | |
5059 | ||
5060 | * src/gram.h (symbol_number_as_item_number): Use sym, not s, | |
5061 | for symbol or symbol_number var. | |
5062 | * src/reader.c (grammar_start_symbol_set): Likewise. | |
5063 | * src/reader.h (grammar_start_symbol_set, grammar_symbol_append): | |
5064 | Likewise. | |
5065 | * src/state.c (transitions_to): Likewise. | |
5066 | * src/state.h: Likewise. | |
5067 | * src/tables.c (symbol_number_to_vector_number): Likewise. | |
5068 | ||
5069 | * src/muscle_tab.h (MUSCLE_OBSTACK_SGROW): Use p, not s, for | |
5070 | char * var. | |
5071 | ||
5072 | * src/parse-gram.y (lloc_default): Use loc, not r, for YYLTYPE | |
5073 | var. | |
5074 | ||
5075 | * src/scan-gram.l (no_cr_read): Use bytes_read, not s, for size | |
5076 | var. | |
5077 | ||
5078 | * src/system.h (xstrndup, strchr, strspn, strnlen, memchr, memrchr): | |
5079 | Use str, not s, for char * var. Use ch, not c, for character var. | |
5080 | Use size for size var. | |
5081 | ||
5082 | * src/uniqstr.c (uniqstr_new, uniqstr_assert): Use str, not s, for | |
5083 | char * var. | |
5084 | (uniqstr_print, uniqst_print_processor): Use ustr, not s, for | |
5085 | uniqstr var. | |
5086 | * src/uniqstr.h: Likewise. | |
5087 | ||
5088 | * src/vcg.c (get_color_str, get_textmode_str, get_shape_str, | |
5089 | get_layoutalgorithm_str, get_decision_str, get_orientation_str, | |
5090 | get_node_alignment_str, get_arrow_mode_str, get_crossing_type_str, | |
5091 | get_view_str, get_linestyle_str, get_arrowstyle_str): Rename | |
5092 | param to have same name as that of enum, so that we don't use | |
5093 | "s" to stand for a non-state. | |
5094 | ||
68e93ad5 AD |
5095 | 2003-02-02 Akim Demaille <akim@epita.fr> |
5096 | ||
5097 | * src/scan-skel.l: Scan more than one inert character per yylex | |
5098 | invocation. | |
5099 | ||
92898986 PE |
5100 | 2003-02-01 Paul Eggert <eggert@twinsun.com> |
5101 | ||
5102 | Version 1.875a. | |
5103 | ||
1d9d5d71 PE |
5104 | * po/LINGUAS: Add ms. |
5105 | ||
0435d061 AD |
5106 | 2003-01-30 Akim Demaille <akim@epita.fr> |
5107 | ||
5108 | * doc/Makefile.am (CLEANFILES): Add bison.fns for distcheck. | |
5109 | ||
6029a57f PH |
5110 | 2003-01-29 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
5111 | ||
5112 | * tests/cxx-type.at: Correct apparent typo in Bison input: $$ instead | |
5113 | of $1. | |
0435d061 AD |
5114 | |
5115 | Changes in response to error report by S. Eken: GLR mode does not | |
6029a57f | 5116 | handle negative $ indices or $ indices in embedded rules correctly. |
161a71f3 | 5117 | See <http://lists.gnu.org/archive/html/bug-bison/2003-01/msg00076.html>. |
0435d061 | 5118 | |
6029a57f PH |
5119 | * data/glr.c (b4_rhs_value): Change to use YYFILL macro. |
5120 | (b4_rhs_location): Ditto. | |
0435d061 | 5121 | (yyfill): New function to copy from stack tree into array |
6029a57f | 5122 | incrementally. |
0435d061 AD |
5123 | (yyuserAction): Modify to allow incremental move of semantic values |
5124 | to rhs array when in GLR mode. | |
5125 | Define YYFILL to use in user-defined actions to fill semantic array | |
6029a57f PH |
5126 | as needed. |
5127 | Remove dummy use of yystack, as there is now a guaranteed use. | |
5128 | (yydoAction): Modify to allow incremental move of semantic values | |
5129 | to rhs array when in GLR mode. | |
5130 | (yyresolveAction): Ditto. | |
5131 | (yyglrShiftDefer): Update comment. | |
0435d061 | 5132 | (yyresolveStates): Use X == NULL for pointers, not !X. |
6029a57f PH |
5133 | (yyglrReduce): Ditto. |
5134 | (yydoAction): Ditto | |
0435d061 | 5135 | |
6029a57f PH |
5136 | * tests/glr-regr1.at: Rename to ... |
5137 | * tests/glr-regression.at: Add new regression test for the problems | |
5138 | described above (adapted from S. Eken). | |
5139 | Update copyright notice. | |
5140 | * tests/testsuite.at: Rename glr-regr1.at to glr-regression.at. | |
5141 | * tests/Makefile.am: Ditto. | |
5142 | ||
6cee6297 PE |
5143 | 2003-01-28 Paul Eggert <eggert@twinsun.com> |
5144 | ||
5145 | * data/lalr1.cc: Do not use @output_header_name@ unless | |
5146 | b4_defines_flag is set. This fixes two bugs reported by | |
5147 | Tim Van Holder in | |
161a71f3 PE |
5148 | <http://lists.gnu.org/archive/html/bug-bison/2003-01/msg00071.html> |
5149 | and <http://lists.gnu.org/archive/html/bug-bison/2003-01/msg00073.html>. | |
6cee6297 | 5150 | |
b2a836b5 PE |
5151 | 2003-01-21 Paul Eggert <eggert@twinsun.com> |
5152 | ||
5153 | * data/yacc.c (YYERROR): Move code from yyerrlab1 to here, so that | |
5154 | we don't need to worry about yyerrlab1 being reported as an | |
5155 | "unused label" by non-GCC C compilers. The downside is that if | |
5156 | locations are used then a couple of statements are duplicated each | |
5157 | time YYERROR is invoked, but the upside is that the warnings | |
5158 | should vanish. | |
5159 | (yyerrlab1): Move code to YERROR. | |
5160 | (yyerrlab2): Remove. Change uses back to yyerrlab1. | |
5161 | This reverts some of the 2002-12-27 change. | |
5162 | ||
4196b931 PE |
5163 | 2003-01-17 Paul Eggert <eggert@twinsun.com> |
5164 | ||
5165 | * src/output.c (symbol_printers_output): Fix typo that led | |
5166 | to core dump. Problem reported by Antonio Rus in | |
161a71f3 | 5167 | <http://lists.gnu.org/archive/html/bug-bison/2003-01/msg00058.html>. |
4196b931 | 5168 | |
3ae831b4 AD |
5169 | 2003-01-13 Akim Demaille <akim@epita.fr>, |
5170 | Quoc Peyrot <chojin@lrde.epita.fr>, | |
5171 | Robert Anisko <anisko_r@lrde.epita.fr> | |
5172 | ||
5173 | * data/lalr1.cc (parse::yyerrlab1): When popping the stack, stop | |
5174 | when the stacks contain one element, as the loop would otherwise | |
5175 | free the last state, and then use the top state (the one we just | |
5176 | popped). This means that the initial elements will not be freed | |
5177 | explicitly, as is the case in yacc.c; it is not a problem, as | |
5178 | these elements have fake values. | |
5179 | ||
e3aa65c5 PE |
5180 | 2003-01-11 Paul Eggert <eggert@twinsun.com> |
5181 | ||
5182 | * NEWS: %expect-violations are now just warnings, reverting | |
5183 | to Bison 1.30 and 1.75 behavior. This fixes the GCC 3.2 | |
5184 | bootstrapping problem reported by Matthias Klose; see | |
161a71f3 | 5185 | <http://lists.gnu.org/archive/html/bug-bison/2003-01/msg00053.html>. |
e3aa65c5 PE |
5186 | * src/conflicts.c (conflicts_print): Likewise. |
5187 | * tests/conflicts.at (%expect not enough, %expect too much, | |
5188 | %expect with reduce conflicts): Likewise. | |
5189 | * doc/bison.texinfo (Expect Decl): Document this. Also mention | |
5190 | that the warning is enabled if the number of conflicts changes | |
5191 | (not necessarily increases). | |
5192 | ||
5193 | * src/getargs.c (version): Update copyright year. | |
5194 | ||
f0057011 AD |
5195 | 2003-01-09 Akim Demaille <akim@epita.fr> |
5196 | ||
5197 | * src/Makefile.am, lib/Makefile.am: Use $(VAR) instead of @VAR@. | |
5198 | ||
1ee6d2a0 PE |
5199 | 2003-01-08 Paul Eggert <eggert@twinsun.com> |
5200 | ||
5201 | * Makefile.maint (WGETFLAGS): | |
5202 | New macro, containing "-C off" to disable proxy caches. | |
5203 | All uses of $(WGET) changed to $(WGET) $(WGETFLAGS). | |
5204 | (rel-check): Use $(WGET) instead of wget. | |
5205 | ||
d4fd77c4 PE |
5206 | 2003-01-06 Paul Eggert <eggert@twinsun.com> |
5207 | ||
5208 | * doc/bison.texinfo (Generalized LR Parsing): Add a reference to | |
5209 | the GLR paper of Scott, Johnstone and Hussain. | |
5210 | ||
464c6927 PE |
5211 | 2003-01-04 Paul Eggert <eggert@twinsun.com> |
5212 | ||
d600ee67 PE |
5213 | * configure.ac (AC_ARG_ENABLE): Add --disable-yacc. |
5214 | (YACC_SCRIPT, YACC_LIBRARY): New vars to AC_SUBST. | |
5215 | * lib/Makefile.am (lib_LIBRARIES): liby.a -> @YACC_LIBRARY@. | |
5216 | (EXTRA_LIBRARIES): New var, for liby.a. | |
5217 | * src/Makefile.am (bin_SCRIPTS): yacc -> @YACC_SCRIPT@. | |
5218 | (EXTRA_SCRIPTS): New var, for yacc. | |
5219 | ||
464c6927 PE |
5220 | * data/yacc.c (yyerrlab1): Omit attribute if __cplusplus is defined, |
5221 | since GNU C++ (as of 3.2.1) does not allow attributes on labels. | |
5222 | Problem reported by Nelson H. F. Beebe. | |
5223 | ||
5224 | 2003-01-03 Paul Eggert <eggert@twinsun.com> | |
5225 | ||
5226 | * lib/obstack.h (__INT_TO_PTR) [__STDC__]: Cast result to | |
5227 | (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5 | |
5228 | when compiling Bison 1.875's `bitset bset = obstack_alloc | |
5229 | (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe. | |
5230 | ||
5231 | * src/scan-skel.l (QPUTS): Omit redundant `;' from macro definition. | |
5232 | ([^@\n]): Renamed from [^@\n]+ so that the token buffer does not | |
5233 | grow to a huge size with typical invocation. | |
d600ee67 | 5234 | |
464c6927 PE |
5235 | * lib/hash.c (_Bool, bool, false, true, __bool_true_false_are_defined): |
5236 | Use the pattern recommended by Autoconf 2.57, except also protect | |
5237 | against double-definition. | |
5238 | * src/system.h: Likewise. | |
5239 | Portability issues reported by Nelson H. F. Beebe. | |
d600ee67 | 5240 | |
464c6927 PE |
5241 | * data/glr.c (yybool): Renamed from bool, to avoid collisions in C. |
5242 | All uses changed. Provide a definition in both C and C++. | |
5243 | (yytrue, yyfalse): Define even if defined (__cplusplus). | |
5244 | ||
5245 | * lib/bitset_stats.c (bitset_stats_list): Remove unused var. | |
5246 | Reported by Nelson H. F. Beebe. | |
d600ee67 | 5247 | |
464c6927 PE |
5248 | * src/scan-skel.l ("@oline@"): Output lineno+1, not lineno. |
5249 | ||
0f42c7d5 PE |
5250 | 2003-01-02 Paul Eggert <eggert@twinsun.com> |
5251 | ||
5252 | * data/yacc.c (yyerrlab1): Append `;' after attribute, to | |
5253 | pacify the buggy "smart preprocessor" in MacOS 10.2.3. | |
5254 | Bug reported by Nelson H. F. Beebe. | |
5255 | ||
dc546b0f PE |
5256 | 2003-01-01 Paul Eggert <eggert@twinsun.com> |
5257 | ||
5258 | * Version 1.875. | |
5259 | ||
2c09b6a7 PE |
5260 | 2002-12-30 Paul Eggert <eggert@twinsun.com> |
5261 | ||
5262 | * src/scan-gram.l (<INITIAL,SC_AFTER_IDENTIFIER,SC_PRE_CODE>","): | |
5263 | Moved here from... | |
5264 | (<INITIAL>","): Here. This causes stray "," to be treated | |
5265 | more uniformly. | |
5266 | ||
dc546b0f | 5267 | * src/scan-gram.l (<SC_BRACED_CODE>"}"): Output ";" before the |
2c09b6a7 PE |
5268 | last brace in braced code when not in Yacc mode, for compatibility |
5269 | with Bison 1.35. This resurrects the 2001-12-15 patch to | |
5270 | src/reader.c. | |
5271 | ||
5272 | * src/reader.h (YYDECL): Use YYSTYPE, not its deprecated alias | |
5273 | yystype. This follows up the 2002-12-24 YYSTYPE bug fix. | |
5274 | ||
535c0f63 PE |
5275 | 2002-12-28 Paul Eggert <eggert@twinsun.com> |
5276 | ||
5277 | * src/symtab.c (symbol_make_alias): Set type of SYMVAL to be | |
5278 | that of SYM's type. This fixes Debian bug 168069, reported by | |
5279 | Thomas Olsson. | |
d600ee67 | 5280 | |
963fcc17 PE |
5281 | 2002-12-28 Paul Eggert <eggert@twinsun.com> |
5282 | ||
5283 | Version 1.75f. | |
5284 | ||
5285 | Switch back to the Yacc style of conflict reports, undoing some | |
5286 | of the 2002-07-30 change. | |
5287 | * doc/bison.texinfo (Understanding): Use Yacc style for | |
5288 | conflict reports. Also, use new way of locating rules. | |
5289 | * src/conflicts.c (conflict_report): | |
5290 | Renamed from conflict_report_yacc, removing the old | |
5291 | 'conflict_report'. Translate the entire conflict report at once, | |
5292 | so that we don't assume that "," has the same interpretation in | |
5293 | all languages. | |
5294 | (conflicts_output): Use Yacc-style conflict report for each state, | |
5295 | instead of our more-complicated style. | |
5296 | (conflicts_print): Use Yacc-style conflict report, except print | |
5297 | the input file name when not emulating Yacc. | |
5298 | * tests/conflicts.at (Unresolved SR Conflicts, Defaulted | |
5299 | Conflicted Reduction, %expect not enough, %expect too much, | |
5300 | %expect with reduce conflicts): Switch to Yacc-style conflict reports. | |
5301 | * tests/existing.at (GNU Cim Grammar): Likewise. | |
5302 | * tests/glr-regr1.at (Badly Collapsed GLR States): Likewise. | |
5303 | ||
5304 | * src/complain.c (warn_at, warn, complain_at, complain, fatal_at, | |
5305 | fatal): Don't invoke fflush; it's not needed and it might even be | |
5306 | harmful for stdout, as stdout might not be open. | |
5307 | * src/reduce.c (reduce_print): Likewise. | |
5308 | ||
b1efe548 PE |
5309 | 2002-12-27 Paul Eggert <eggert@twinsun.com> |
5310 | ||
5311 | Fix a bug where error locations were not being recorded correctly. | |
5312 | This problem was originally reported by Paul Hilfinger in | |
161a71f3 | 5313 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00086.html>. |
b1efe548 PE |
5314 | |
5315 | * data/yacc.c (yyparse): New local var yylerrsp, to record the | |
5316 | top of the location stack's error locations. | |
5317 | (yyerrlab): Set it. When discarding a token, push its location | |
5318 | onto yylerrsp so that we don't lose track of the error's end. | |
5319 | (yyerrlab1): Now is only the target of YYERROR, so that we can | |
5320 | properly record the location of the action that failed. For GCC | |
5321 | 2.93 and later, insert an __attribute__ ((__unused__)) to avoid | |
5322 | GCC warning about yyerrlab1 being unused if YYERROR is unused. | |
5323 | (yyerrlab2): New label, which yyerrlab now falls through to. | |
5324 | Compute the error's location by applying YYLLOC_DEFAULT to | |
5325 | the locations of all the symbols that went into the error. | |
5326 | * doc/bison.texinfo (Location Default Action): Mention that | |
5327 | YYLLOC_DEFAULT is also invoked for syntax errors. | |
5328 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): | |
5329 | Error locations include the locations of all the tokens that were | |
5330 | discarded, not just the last token. | |
d600ee67 | 5331 | |
983c5c2c PE |
5332 | 2002-12-26 Paul Eggert <eggert@twinsun.com> |
5333 | ||
b1efe548 PE |
5334 | * src/files.c: Include quote.h. |
5335 | (compute_output_file_names): Warn if we detect conflicting | |
5336 | outputs to the same file. This should catch the misunderstanding | |
5337 | exemplified by Debian Bug 165349, reported by Bruce Stephens.. | |
5338 | ||
5339 | * src/conflicts.c (conflicts_print): If the user specifies | |
5340 | "%expect N", report an error if there are any reduce/reduce | |
5341 | conflicts. This is what the manual says should happen. | |
5342 | This fixes Debian bug 130890, reported by Anthony DeRobertis. | |
5343 | * tests/conflicts.at (%expect with reduce conflicts): New test. | |
5344 | ||
983c5c2c PE |
5345 | Don't use m4_include on relative file names, as it doesn't work as |
5346 | desired if there happens to be a file with that name under ".". | |
d600ee67 | 5347 | |
983c5c2c PE |
5348 | * m4sugar/version.m4: Remove; it was included but it wasn't used. |
5349 | * data/Makefile.am (dist_m4sugar_DATA): Remove m4sugar/version.m4. | |
5350 | * data/m4sugar/m4sugar.m4: Don't include m4sugar/version.m4. | |
5351 | * data/glr.c, data/lalr1.cc, data/yacc.c: Don't include c.m4. | |
5352 | * src/output.c (output_skeleton): Use full path names when | |
5353 | specifying a file to include; don't rely on include path, as | |
5354 | it's unreliable when the working file contains a file with | |
5355 | that name. | |
d600ee67 | 5356 | |
983c5c2c PE |
5357 | 2002-12-25 Paul Eggert <eggert@twinsun.com> |
5358 | ||
5359 | Remove obsolete references to bison.simple and bison.hairy. | |
5360 | Problem mentioned by Aubin Mahe in | |
161a71f3 | 5361 | <http://lists.gnu.org/archive/html/help-bison/2002-12/msg00010.html>. |
983c5c2c PE |
5362 | * data/glr.c: Comment fix. |
5363 | * doc/bison.1: Remove references. Also, mention "yacc". | |
5364 | ||
5365 | * src/getargs.c (getargs) [MSDOS]: Don't assume optarg != NULL | |
5366 | with -g option. | |
5367 | ||
5368 | * src/parse-gram.y (declaration): Use enum "report_states" rather | |
5369 | than its numeric value 1. | |
5370 | ||
5371 | * src/scan-skel.l ("@output ".*\n): Close any old yyout before | |
5372 | opening a new one. This fixes Debian bug 165349, reported by | |
5373 | Bruce Stephens. | |
5374 | ||
23f2d9dc PE |
5375 | 2002-12-24 Paul Eggert <eggert@twinsun.com> |
5376 | ||
5377 | Version 1.75e. | |
5378 | ||
5379 | * Makefile.maint (cvs-update): Don't assume that the shell | |
5380 | supports $(...), as Solaris sh doesn't. | |
5381 | ||
5382 | * src/parse-gram.y (lloc_default): Remove test for empty | |
5383 | nonterminals at the end, since it didn't change the result. | |
5384 | ||
5385 | 2002-12-24 Paul Eggert <eggert@twinsun.com> | |
33167b8b PE |
5386 | |
5387 | If the user does not define YYSTYPE as a macro, Bison now declares it | |
5388 | using typedef instead of defining it as a macro. POSIX requires this. | |
5389 | For consistency, YYLTYPE is also declared instead of defined. | |
5390 | ||
5391 | %union directives can now have a tag before the `{', e.g., the | |
5392 | directive `%union foo {...}' now generates the C code | |
5393 | `typedef union foo { ... } YYSTYPE;'; this is for Yacc compatibility. | |
5394 | The default union tag is `YYSTYPE', for compatibility with Solaris 9 | |
5395 | Yacc. For consistency, YYLTYPE's struct tag is now `YYLTYPE' | |
5396 | instead of `yyltype'. | |
5397 | ||
5398 | `yystype' and `yyltype' are now obsolescent macros instead of being | |
5399 | typedefs or tags; they are no longer documented and will be | |
5400 | withdrawn in a future release. | |
5401 | ||
5402 | * data/glr.c (b4_location_type): Remove. | |
5403 | (YYSTYPE): Renamed from yystype. | |
5404 | (YYSTYPE_IS_DECLARED): New macro, used to prevent double-typedef. | |
5405 | (struct YYLTYPE): Renamed from struct yyltype. | |
5406 | (YYLTYPE): Renamed from yyltype. | |
5407 | (yyltype, yystype): New (and obsolescent) macros, | |
5408 | for backward compatibility. | |
5409 | * data/yacc.c: Likewise. | |
5410 | ||
5411 | * data/yacc.c (YYSTYPE): Declare as union YYSTYPE if the user | |
5412 | does not specify a union tag. This is for compatibility with | |
5413 | Solaris 9 yacc. | |
5414 | ||
5415 | * src/parse-gram.y (add_param): 2nd arg is now char * not char | |
5416 | const *, since it is now modified by stripping surrounding { }. | |
5417 | (current_braced_code): Remove. | |
5418 | (PERCENT_DESTRUCTOR, PERCENT_PRINTER, PERCENT_UNION, | |
5419 | PERCENT_LEX_PARAM, PERCENT_PARSE_PARAM): Change names to include | |
5420 | trailing " {...}". Now of type <chars>. | |
5421 | (grammar_declaration): Adjust to bundled tokens. | |
5422 | (code_content): Remove; stripping is now done by add_param. | |
5423 | (print_token_value): Print contents of bundled tokens. | |
5424 | (token_name): New function. | |
5425 | ||
5426 | * src/reader.h (braced_code, current_braced_code): Remove. | |
5427 | (token_name): New decl. | |
5428 | ||
5429 | * src/scan-gram.l (handle_dollar, handle_at): Now takes int | |
5430 | token_type, not braced_code code_kind. All uses changed. | |
5431 | (SC_PRE_CODE): New state, for scanning after a keyword that | |
5432 | has (or usually has) an immediately-following braced code. | |
5433 | (token_type): New local var, to keep track of which token type | |
5434 | to return when scanning braced code. | |
5435 | (<INITIAL>"%destructor", <INITIAL>"%lex-param", | |
dc546b0f | 5436 | <INITIAL>"%parse-param", <INITIAL>"%printer", |
33167b8b PE |
5437 | <INITIAL>"%union"): Set token type and BEGIN SC_PRE_CODE |
5438 | instead of returning a token type immediately. | |
5439 | (<INITIAL>"{"): Set token type. | |
5440 | (<SC_BRACED_CODE>"}"): Use it. | |
5441 | (handle_action_dollar, handle_action_at): Now returns bool | |
5442 | indicating success. Fail if ! current_rule; this prevents a core dump. | |
5443 | (handle_symbol_code_dollar, handle_symbol_code_at): | |
5444 | Remove; merge body into caller. | |
5445 | (handle_dollar, handle_at): Complain in invalid contexts. | |
5446 | ||
5447 | * NEWS, doc/bison.texinfo: Document the above. | |
5448 | * NEWS: Fix years and program names in copyright notice. | |
5449 | ||
879ca4f8 PE |
5450 | 2002-12-17 Paul Eggert <eggert@twinsun.com> |
5451 | ||
5452 | * NEWS, doc/bison.texinfo (Parser Function, Pure Calling, Error | |
5453 | Reporting, Table of Symbols): Omit mentions of %lex-param and | |
5454 | %parse-param from the documentation for now. | |
5455 | ||
1c5fe69d PE |
5456 | 2002-12-15 Paul Eggert <eggert@twinsun.com> |
5457 | ||
5458 | Undo most of the 2002-11-12 yychar -> yytoken patch, as it broke | |
5459 | GCC 3.2.1 (which depends on yychar == YYEMPTY when there is no | |
5460 | lookahead symbol, and which sets yychar in parser actions) and it | |
7ea9026a PE |
5461 | disagreed with the Bison documentation. Bug |
5462 | reported by Andrew Walrond. | |
d600ee67 | 5463 | |
1c5fe69d PE |
5464 | * data/yacc.c (YYTRANSLATE): Don't check for negative argument, |
5465 | as the caller now does that. | |
5466 | (yyclearin, YYBACKUP, yyparse): Use yychar, not yytoken. | |
5467 | (YYEMPTY): Parenthesize right hand side, since others use it. | |
5468 | (yyparse): Don't assume that our generated code is the only code | |
5469 | that sets yychar. | |
5470 | ||
d1de5372 PE |
5471 | 2002-12-13 Paul Eggert <eggert@twinsun.com> |
5472 | ||
5473 | Version 1.75d. | |
5474 | ||
5475 | POSIX requires a "yacc" command. | |
5476 | * src/Makefile.am (bin_SCRIPTS): New macro, for yacc. | |
5477 | (MOSTLYCLEANFILES): Add yacc. | |
5478 | (yacc): New rule. | |
1c5fe69d | 5479 | * doc/bison.texinfo (Invocation, Bison Options): Mention yacc |
d1de5372 PE |
5480 | as an alias for bison y. |
5481 | ||
5482 | * po/LINGUAS: Add da. | |
d600ee67 | 5483 | |
d1de5372 PE |
5484 | * src/getargs.c (__GNU_LIBRARY__) [lint]: Define to work around |
5485 | problem with latest <getopt.h>. | |
5486 | (HACK_FOR___GNU_LIBRARY___PROTOTYPE): New macro. | |
5487 | ||
5488 | * doc/fdl.texi: Upgrade to 1.2. | |
5489 | * lib/alloca.c, lib/error.c, lib/getopt.c, lib/getopt.h | |
5490 | lib/getopt1.c, lib/gettext.h, lib/memrchr.c, lib/obstack.c, | |
5491 | lib/obstack.h, lib/strnlen.c, lib/unlocked-io.h: Sync with | |
5492 | gnulib. | |
5493 | * config/install-sh: Sync with autotools. | |
5494 | ||
5495 | Fix a bad interaction with flex 2.5.23 reported by Bruce Lilly in | |
161a71f3 | 5496 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00114.html>. |
d1de5372 PE |
5497 | * data/yacc.c (YYLTYPE, struct yyltype): Do not define unless |
5498 | locations are requested. | |
5499 | (union yyalloc): Do not depend on YYLTYPE_IS_TRIVIAL unless | |
5500 | locations are requested. | |
5501 | ||
d0f3fe23 PE |
5502 | 2002-12-12 Paul Eggert <eggert@twinsun.com> |
5503 | ||
5504 | Remove unportable casts and storage allocation tricks. | |
5505 | While we're at it, remove almost all casts, since they | |
5506 | usually aren't needed and are a sign of trouble. | |
5507 | ||
5508 | * configure.ac (AC_CHECK_TYPES): Check for uintptr_t. | |
5509 | ||
5510 | * src/derives.c (derives_compute): Do not subtract NTOKENS from | |
5511 | the pointer DSET returned by malloc; this isn't portable. | |
5512 | Instead, always use DSET[i - NTOKENS] rather than DSET[i]. | |
5513 | Similarly for DERIVES. | |
5514 | * src/lalr.c (set_goto_map): Likewise, for GOTO_MAP and TEMP_MAP. | |
5515 | * src/nullable.c (nullable_compute): Likewise, for RSETS and NULLABLE. | |
5516 | * src/reduce.c (reduce_grammar_tables): Likewise, for nontermmap | |
5517 | ||
5518 | * src/derives.c (derives_compute): Do not bother invoking | |
5519 | int_of_rule_number, since rule numbers are integers. | |
5520 | ||
5521 | * src/files.c (concat2, tr, compute_base_name): Use xmalloc (N) | |
5522 | rather than XMALLOC (char, N). | |
5523 | ||
5524 | * src/files.c (filename_split): Rewrite to avoid cast. | |
5525 | ||
5526 | * src/gram.h (symbol_number_as_item_number, | |
5527 | item_number_as_symbol_number, rule_number_as_item_number, | |
5528 | item_number_as_rule_number): | |
5529 | Now inline functions rather than macros, to avoid casts. | |
5530 | * src/state.h (state_number_as_int): Likewise. | |
5531 | * src/tables.c (state_number_to_vector_number, | |
5532 | symbol_number_to_vector_number): Likewise. | |
5533 | ||
5534 | * src/gram.h (int_of_rule_number): Remove; no longer used. | |
5535 | ||
5536 | * src/lalr.c (add_lookback_edge): Use malloc rather than calloc, | |
5537 | since the resulting storage is always stored into. | |
5538 | ||
5539 | * src/main.c (alloca) [C_ALLOCA]: Add decl here, the only place | |
5540 | where it's needed. | |
5541 | ||
5542 | * src/muscle_tab.c (muscle_m4_output): | |
5543 | Now inline. Return bool, not int. | |
5544 | * src/state.c (state_compare): Likewise. | |
5545 | * src/symtab.c (symbol_check_defined, | |
5546 | symbol_check_alias_consistency, symbol_pack, symbol_translation, | |
5547 | hash_compare_symbol, hash_symbol): | |
5548 | Likewise. | |
5549 | * src/uniqstr.c (uniqstr_print): Likewise. | |
5550 | * src/muscle_tab.c (muscle_m4_output_processor): | |
5551 | New function, to avoid casts. | |
5552 | * src/state.c (state_comparator, stage_hasher): Likewise. | |
5553 | * src/symtab.c (symbol_check_defined_processor, | |
5554 | symbol_check_alias_consistency_processor, symbol_pack_processor, | |
5555 | symbol_translation_processor, hash_symbol_comparator, | |
5556 | hash_symbol_hasher): Likewise. | |
5557 | * src/uniqstr.c (uniqstr_print_processor): Likewise. | |
5558 | * src/muscle_tab.c (muscles_m4_output): | |
5559 | Use new functions instead of casting old functions unportably. | |
5560 | * src/state.c (state_hash_new): Likewise. | |
5561 | * src/symtab.c (symbols_new, symbols_do, symbols_check_defined, | |
5562 | symbols_token_translations_init): | |
5563 | Likewise. | |
5564 | * src/uniqstr.c (uniqstrs_new, hash_initialize, uniqstrs_do): Likewise. | |
5565 | ||
5566 | * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): Use long local | |
5567 | var instead of casting to long, to avoid casts. | |
5568 | (prepare_states): Use MALLOC rather than alloca, so that we don't | |
5569 | have to worry about alloca. | |
5570 | * src/state.c (state_hash_lookup): Likewise. | |
5571 | ||
5572 | * src/scan-gram.l (<SC_ESCAPED_CHARACTER>"'"): Use unsigned char | |
5573 | local var instead of casting to unsigned char, to avoid casts. | |
5574 | ||
5575 | * src/state.c (TRANSITIONS_ALLOC, ERRS_ALLOC, REDUCTIONS_ALLOC, | |
5576 | STATE_ALLOC): Remove. | |
5577 | (transitions_new, errs_new, reductions_new, state_new): Use malloc | |
5578 | rather than calloc, and use offsetof to avoid allocating slightly | |
5579 | too much storage. | |
5580 | (state_new): Initialize all members. | |
5581 | ||
5582 | * src/state.c (state_hash): Use unsigned accumulator, not signed. | |
5583 | ||
5584 | * src/symtab.c (symbol_free): Remove; unused. | |
5585 | (symbol_get): Remove cast in lhs of assignment. | |
5586 | (symbols_do): Now static. Accept generic arguments, not | |
5587 | hashing-related ones. | |
5588 | ||
5589 | * src/symtab.h: (NUMBER_UNDEFINED): Remove unnecessary cast. | |
5590 | (symbol_processor): Remove. | |
5591 | (symbols_do): Remove decl; now static. | |
5592 | ||
5593 | * src/system.h (alloca): Remove; decl no longer needed. | |
5594 | (<stddef.h>): Include, for offsetof. | |
5595 | (<inttypes.>, <stdint.h>): Include if available. | |
5596 | (uintptr_t): New type, if system lacks it. | |
5597 | (CALLOC, MALLOC, REALLOC): New macros. | |
5598 | All uses of XCALLOC, XMALLOC, and XREALLOC changed to use these | |
5599 | new macros. | |
5600 | ||
5601 | * src/tables.c (table_size): Now int, to pacify GCC. | |
5602 | (table_grow, table_ninf_remap): Use signed table size. | |
5603 | (save_row): Don't bother initializing locals when not needed. | |
5604 | (default_goto, goto_actions, pack_vector): Remove unnecessary casts. | |
5605 | * src/uniqstr.c (hash_compare_uniqstr): Likewise. | |
5606 | ||
5607 | * src/vcg.h: Correct misspellings. | |
5608 | ||
5609 | * src/vcg_defaults.h (G_CMAX): Now INT_MAX. | |
5610 | ||
5611 | ||
5612 | * src/getargs.c (getargs): Don't assume EOF == -1. | |
5613 | ||
26b4a969 PE |
5614 | 2002-12-09 Paul Eggert <eggert@twinsun.com> |
5615 | ||
5616 | Change identifier spellings to avoid collisions with names | |
5617 | that are reserved by POSIX. | |
5618 | ||
5619 | Don't use names ending in _t, since POSIX reserves them. | |
5620 | For consistency, remove _e and _s endings -- they're weren't | |
5621 | needed to remove ambiguity. All uses changed. | |
5622 | * src/uniqstr.h (uniqstr): Renamed from uniqstr_t, which in | |
5623 | turn was just renamed from struniq_t. | |
5624 | * src/uniqstr.c (uniqstr_processor): Renamed from struniq_processor, | |
5625 | which in turn was just renamed from struniq_processor_t. | |
5626 | (hash_compare_uniqstr): Renamed from hash_compare_struniq, which | |
5627 | in turn was renamed from hash_compare_struniq_t. | |
5628 | * src/LR0.c (struct state_list): Renamed from struct state_list_s. | |
5629 | (state_list): Renamed from state_list_t. | |
5630 | * src/assoc.h (assoc): Renamed from assoc_t. | |
5631 | * src/conflicts.c (enum conflict_resolution): Renamed from | |
5632 | enum conflict_resolution_e. | |
5633 | * src/derives.c (struct rule_list): Renamed from struct rule_list_s. | |
5634 | (rule_list): Renamed from rule_list_t. | |
5635 | * src/getargs.h (enum trace): Renamed from enum trace_e. | |
5636 | (enum report): Renamed from enum report_e. | |
5637 | * src/gram.h (item_number): Renamed from item_number_t. | |
5638 | (rule_number): Renamed from rule_number_t. | |
5639 | (struct rule_s): Remove the "rule_s" part; not used. | |
5640 | (rule): Renamed from rule_t. | |
5641 | (rule_filter): Renamed from rule_filter_t. | |
5642 | * src/lalr.c (struct goto_list): Renamed from struct goto_list_s. | |
5643 | (goto_list): Renamed from goto_list_t. | |
5644 | * src/lalr.h (goto_number): Renamed from goto_number_t. | |
5645 | * src/location.h (location): Renamed from location_t. | |
5646 | * src/muscle_tab.c (muscle_entry): Renamed from muscle_entry_t, | |
5647 | and moved here from: | |
5648 | * src/muscle_tab.h (muscle_entry_t): here. | |
5649 | * src/nullable.c (struct rule_list): Renamed from struct rule_list_s. | |
5650 | (rule_list): Renamed from rule_list_t. | |
5651 | * src/print_graph.c (static_graph): Renamed from graph. | |
5652 | * src/reader.h (braced_code): Renamed from braced_code_t. | |
5653 | Remove brace_code_e tag. | |
5654 | * src/relation.h (relation_node): Renamed from relation_node_t. | |
5655 | (relation_nodes): Renamed from relation_nodes_t. | |
5656 | (relation): Renamed from relation_t. | |
5657 | * src/state.h (state_number): Renamed from state_number_t. | |
5658 | (struct state): Renamed from struct state_s. | |
5659 | (state): Renamed from state_t. | |
5660 | (transitions): Renamed from transitions_t. Unused (and | |
5661 | misspelled) transtion_s tag removed. | |
5662 | (errs): Renamed from errs_t. Unused errs_s tag removed. | |
5663 | (reductions): Renamed from reductions_t. Unused tag | |
5664 | reductions_s removed. | |
5665 | * src/symlist.h (symbol_list): Renamed from symbol_list_t. | |
5666 | (struct symbol_list): Renamed from struct symbol_list_s. | |
5667 | * src/symtab.h (symbol_number): Renamed from symbol_number_t. | |
5668 | (struct symbol): Renamed from struct symbol_s. | |
5669 | (symbol): Renamed from symbol_t. | |
5670 | * src/tables.c (vector_number): Renamed from vector_number_t. | |
5671 | (action_number): Renamed from action_t. | |
5672 | * src/tables.h (base_number): Renamed from base_t. | |
5673 | * src/vcg.h (enum color): Renamed from enum color_e. | |
5674 | (enum textmode): Renamed from enum textmode_e. | |
5675 | (enum shape): Renamed from enum shape_e. | |
5676 | (struct colorentry): Renamed from struct colorentry_s. | |
5677 | (struct classname): Renamed from struct classname_s. | |
5678 | (struct infoname): Renamed from struct infoname_s. | |
5679 | (enum layoutalgorithm): Renamed from enum layoutalgorithm_e. | |
5680 | (enum decision): Renamed from enum decision_e. | |
5681 | (enum orientation): Renamed from enum orientation_e. | |
5682 | (enum alignment): Renamed from enum alignment_e. | |
5683 | (enum arrow_mode): Renamed from enum arrow_mode_e. | |
5684 | (enum crossing_type): Renamed from enum crossing_type_e. | |
5685 | (enum view): Renamed from enum view_e. | |
5686 | (struct node): Renamed from struct node_s. | |
5687 | (node): Renamed from node_t. | |
5688 | (enum linestyle): Renamed from enum linestyle_e. | |
5689 | (enum arrowstyle): Renamed from enum arrowstyle_e. | |
5690 | (struct edge): Renamed from struct edge. | |
5691 | (edge): Renamed from edge_t. | |
5692 | (struct graph): Renamed from struct graph_s. | |
5693 | (graph): Renamed from graph_t. | |
5694 | * tests/calc.at (_AT_DATA_CALC_Y, Simple LALR Calculator): | |
5695 | Rename value_t -> value. | |
5696 | * tests/input.at (Torturing the Scanner): Rename value_t -> value, | |
5697 | value_t_as_yystype -> value_as_yystype. | |
5698 | ||
5699 | Don't include <errno.h> in the mainstream code, since it | |
5700 | reserves E[A-Z0-9]* and we want to use symbols like 'EQUALS'. | |
5701 | * lib/get-errno.c, lib/get-errno.h: New files. | |
5702 | * lib/Makefile.am (libbison_a_SOURCES): Add get-errno.h, | |
5703 | get-errno.c. | |
5704 | * src/files.c (xfopen, xfclose): Use get_errno instead of errno. | |
5705 | * src/output.c (output_skeleton): Likewise. | |
5706 | * src/scan-gram.l (<INITIAL>{int}): Use set_errno and get_errno | |
5707 | instead of errno. | |
5708 | (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>\\x[0-9abcdefABCDEF]+): | |
5709 | Likewise. | |
5710 | (handle_action_dollar, handle_action_at): Likewise. | |
5711 | * src/system.h: Do not include <errno.h>. | |
5712 | (TAB_EXT): Renamed from EXT_TAB. | |
5713 | (OUTPUT_EXT): Renamed from EXT_OUTPUT. | |
5714 | ||
5715 | Avoid str[a-z]*, since <string.h> reserves that name space. | |
5716 | Change all instances of "struniq" in names to "uniqstr", and | |
5717 | likewise for "STRUNIQ" and "UNIQSTR". | |
5718 | * src/uniqstr.c: Renamed from src/struniq.c. | |
5719 | * src/uniqstr.h: Renamed from src/struniq.h. | |
5720 | * src/Makefile.am (bison_SOURCES): Adjust to these renamings. | |
5721 | * src/files.c (strsuffix): Remove; unused. | |
5722 | (concat2): Renamed from stringappend. Now static. | |
5723 | * src/files.h (strsuffix, stringappend): Remove; unused. | |
5724 | * src/parse-gram.y (<chars>): Renamed from <string>. | |
5725 | (<uniqstr>): Renamed from <struniq>. | |
5726 | * src/scan-gram.l (obstack_for_string): Renamed from string_obstack. | |
5727 | * src/vcg.h (struct node_s.expand): Renamed from struct node_s.stretch. | |
5728 | (struct graph_s.expand): Renamed from struct graph_s.stretch. | |
5729 | * src/vcg_defaults.h (G_EXPAND): Renamed from G_STRETCH. | |
5730 | (G_LONG_STRAIGHT_PHASE): Renamed from G_STRAIGHT_PHASE. | |
5731 | (N_EXPAND): Renamed from N_STRETCH. | |
5732 | ||
5733 | Avoid *_MAX and *_MIN, since <limits.h> reserves that name space. | |
5734 | * data/yacc.c (YYSTACK_GAP_MAXIMUM): Renamed from YYSTACK_GAP_MAX. | |
5735 | * src/gram.h (ITEM_NUMBER_MAX, ITEM_NUMBER_MIN, RULE_NUMBER_MAX): | |
5736 | Remove; unused. | |
5737 | * src/lalr.h (GOTO_NUMBER_MAXIMUM): Renamed from GOTO_NUMBER_MAX. | |
5738 | * src/state.h (STATE_NUMBER_MAXIMUM): Renamed from STATE_NUMBER_MAX. | |
5739 | * src/symtab.h (SYMBOL_NUMBER_MAXIMUM): Renamed from SYMBOL_NUMBER_MAX. | |
5740 | * src/tables.c (VECTOR_NUMBER_MAX, VECTOR_NUMBER_MIN): Remove; unused. | |
5741 | (BASE_MAXIMUM): Renamed from BASE_MAX. | |
5742 | (BASE_MINIMUM): Renamed from BASE_MIN. | |
5743 | (ACTION_MAX): Remove; unused. | |
5744 | (ACTION_NUMBER_MINIMUM): Renamed from ACTION_MIN. | |
5745 | Unnecessary casts removed from above defines. | |
5746 | ||
5747 | ||
5748 | Fix misspelling in names. | |
5749 | * src/vcg.h (enum_alignment_e): Renamed from enum_alignement_e. | |
5750 | * src/vcg_defaults.h (G_NODE_ALIGNMENT): Renamed from | |
5751 | G_NODE_ALIGNEMENT. | |
5752 | ||
5753 | ||
5754 | * lib/timevar.c (timevar_report): Renamed from time_report, | |
5755 | for consistency with other names. | |
5756 | * lib/timevar.h (timevar_report): New decl. | |
5757 | * src/system.h (time_report): Remove; decl is now in lib/timevar.h. | |
5758 | ||
5759 | ||
5760 | Sort include-file uses. | |
5761 | ||
5762 | Reorder all include files under src to be in the order "system.h". | |
5763 | then the ../lib include files in angle brackets (alphabetized), | |
5764 | then the . include files in double-quotes (alphabetized). Fix | |
5765 | dependency breakages encountered in this process, as follows: | |
5766 | * src/closure.h, src/derives.h, src/state.h: Include "gram.h". | |
5767 | * src/complain.c: Don't include stdlib.h, string.h _LIBC stuff. | |
5768 | * src/state.h: Include "symtab.h". | |
5769 | ||
996b1c7e PE |
5770 | 2002-12-08 Paul Eggert <eggert@twinsun.com> |
5771 | ||
5772 | * data/glr.c, data/lalr1.cc, data/yacc.c: Do not use __file__, | |
5773 | since this causes problems when __file__ contains character | |
5774 | sequences like "@" that are treated specially by src/scan-skel.l. | |
5775 | Instead, just use the file's basename. This fixes the bug | |
5776 | reported by Martin Mokrejs in | |
161a71f3 | 5777 | <http://lists.gnu.org/archive/html/bug-bison/2002-12/msg00007.html>. |
996b1c7e | 5778 | |
e19c4e5d PE |
5779 | 2002-12-06 Paul Eggert <eggert@twinsun.com> |
5780 | ||
5781 | Add support for rules that do not have trailing semicolons, as | |
5782 | POSIX requires. Improve the quality of locations in Bison | |
5783 | diagnostics. | |
26b4a969 | 5784 | |
e19c4e5d PE |
5785 | * src/location.c: Include <quotearg.h>. |
5786 | (empty_location): Now const. | |
5787 | (location_print): New function. Follow the recommendation of the | |
5788 | GNU Coding Standards for locations that span file boundaries. | |
5789 | * src/location.h: Do not include <quotearg.h>; no longer needed. | |
5790 | (boundary): New type. | |
5791 | (location_t): Use it. This allows locations to span file boundaries. | |
5792 | All member uses changed: file -> start.file or end.file (as needed), | |
5793 | first_line -> start.line, first_column -> start.column, | |
5794 | last_line -> end.line, last_column -> end.column. | |
5795 | (equal_boundaries): New function. | |
5796 | (LOCATION_RESET, LOCATION_STEP): Remove. | |
5797 | (LOCATION_PRINT): Remove. All callers changed to use location_print. | |
5798 | (empty_location): Now const. | |
5799 | (location_print): New decl. | |
5800 | * src/parse-gram.y (lloc_default): New function, which handles | |
5801 | empty locations more accurately. | |
5802 | (YYLLOC_DEFAULT): Use it. | |
5803 | (%token COLON): Remove. | |
5804 | (%token ID_COLON): New token. | |
26b4a969 | 5805 | (rules): Use it. |
e19c4e5d PE |
5806 | (declarations, rules): Remove trailing semicolon. |
5807 | (declaration, rules_or_grammar_declaration): | |
5808 | Allow empty (";") declaration. | |
5809 | (symbol_def): Remove empty actions; no longer needed. | |
5810 | (rules_or_grammar_declaration): Remove trailing semicolon. | |
5811 | (semi_colon.opt): Remove. | |
5812 | * src/reader.h: Include location.h. | |
5813 | (scanner_cursor): New decl. | |
5814 | * src/reduce.c (nonterminals_reduce): Use warn_at rather than | |
5815 | rolling our own. | |
5816 | * src/scan-gram.l (YY_USER_INIT): Initialize scanner_cursor instead | |
5817 | of *loc. | |
5818 | (STEP): Remove. No longer needed, now that adjust_location does | |
5819 | the work. All uses removed. | |
5820 | (scanner_cursor): New var. | |
5821 | (adjust_location): Renamed from extend_location. It now sets | |
5822 | *loc and adjusts the scanner cursor. All uses changed. | |
5823 | Don't bother testing for CR. | |
5824 | (handle_syncline): Remove location arg; now updates scanner cursor. | |
5825 | All callers changed. | |
5826 | (unexpected_end_of_file): Now accepts start boundary of token or | |
5827 | comment, not location. All callers changed. Update scanner cursor, | |
5828 | not the location. | |
5829 | (SC_AFTER_IDENTIFIER): New state. | |
5830 | (context_state): Renamed from c_context. All uses changed. | |
5831 | (id_loc, code_start, token_start): New local vars. | |
5832 | (<INITIAL,SC_AFTER_IDENTIFIER>): New initial context. Move all | |
5833 | processing of Yacc white space and equivalents here. | |
5834 | (<INITIAL>{id}): Save id_loc. Begin state SC_AFTER_IDENTIFIER | |
5835 | instead of returning ID immediately, since we need to search for | |
5836 | a subsequent colon. | |
5837 | (<INITIAL>"'", "\""): Save token_start. | |
5838 | (<INITIAL>"%{", "{", "%%"): Save code_start. | |
5839 | (<SC_AFTER_IDENTIFIER>): New state, looking for a colon. | |
5840 | (<SC_YACC_COMMENT>, <SC_COMMENT>, <SC_LINE_COMMENT>): | |
5841 | BEGIN context_state at end, not INITIAL. | |
5842 | (<SC_ESCAPED_STRING>"\"", <SC_ESCAPED_CHARACTER>"'", | |
5843 | <SC_BRACED_CODE>"}", <SC_PROLOGUE>"%}", <SC_EPILOGUE><<EOF>>): | |
5844 | Return correct token start. | |
5845 | (<SC_BRACED_CODE,SC_PROLOGUE,SC_EPILOGUE>): Save start boundary when | |
5846 | the start of a character, string or multiline comment is found. | |
5847 | * tests/conflicts.at (S/R in initial, Defaulted Conflicted | |
5848 | Reduction): Adjust reported locations to match the more-precise | |
5849 | results now expected. | |
5850 | * tests/input.at (Invalid $n, Invalid @n, Type Clashes): Likewise. | |
5851 | * tests/reduce.at (Useless Rules, Reduced Automaton, | |
5852 | Underivable Rules): Likewise. | |
5853 | * tests/regression.at (Invalid inputs): No longer `expecting ";" | |
5854 | or "|"' now that so many other tokens are allowed by the new grammar. | |
5855 | ||
5856 | * src/complain.h (current_file): Remove duplicate decl; | |
5857 | current_file is now owned by files.h. | |
5858 | * src/complain.c, src/scan-gram.l: Include files.h. | |
5859 | ||
5860 | 2002-12-06 Paul Eggert <eggert@twinsun.com> | |
26b4a969 | 5861 | |
e19c4e5d PE |
5862 | * data/glr.c (yy_reduce_print): Don't assume that yyrline[yyrule] |
5863 | promotes to int; it might be unsigned int. | |
5864 | * data/yacc.c (yy_reduce_print): Likewise. | |
5865 | ||
5866 | * doc/bison.texinfo (Table of Symbols): YYERROR_VERBOSE should | |
5867 | be #defined in the prologue, not in the Bison declarations. | |
5868 | This fixes Debian Bug 102878, reported by Shaul Karl. | |
26b4a969 | 5869 | |
b64755e3 PE |
5870 | 2002-12-02 Paul Eggert <eggert@twinsun.com> |
5871 | ||
5872 | * configure.ac (AC_REPLACE_FUNCS): Add strtoul. | |
5873 | * lib/strtoul.c: New file, from gnulib. | |
5874 | This fixes a porting bug reported by Peter Klein in | |
161a71f3 | 5875 | <http://lists.gnu.org/archive/html/bug-bison/2002-12/msg00000.html>. |
b64755e3 | 5876 | |
6e746484 PE |
5877 | 2002-11-30 Paul Eggert <eggert@twinsun.com> |
5878 | ||
b64755e3 PE |
5879 | * src/scan-gram.l (no_cr_read, extend_location): Move to epilogue, |
5880 | and put only a forward declaration in the prologue. This is for | |
5881 | consistency with the other scanner helper functions. | |
5882 | ||
6ba55592 PE |
5883 | Type clashes now generate warnings, not errors, since it |
5884 | appears that POSIX may allow some grammars with type clashes. | |
5885 | * src/reader.c (grammar_current_rule_check): Warn about | |
5886 | type clashes instead of complaining. | |
5887 | * tests/input.at (Type Clashes): Expect warnings, not complaints. | |
5888 | ||
6e746484 PE |
5889 | Add Yacc library, since POSIX requires it. |
5890 | * doc/bison.texinfo (Yacc Library): New node. Regenerate top menu. | |
5891 | * lib/Makefile.am (lib_LIBRARIES, liby_a_SOURCES): New macros. | |
5892 | * lib/main.c, lib/yyerror.c: New files. | |
5893 | ||
5894 | gram_error can be static; it need not be extern. | |
5895 | * src/reader.h (gram_error): Remove decl. | |
5896 | * src/parse-gram.y (gram_error): Now static. Add static decl. | |
5897 | (print_token_value): Omit parameter names from forward decl, | |
5898 | for consistency. | |
5899 | ||
88510f9c PE |
5900 | 2002-11-29 Paul Eggert <eggert@twinsun.com> |
5901 | ||
6e746484 PE |
5902 | * doc/bison.texinfo: Emphasize that yylex and yyerror must |
5903 | be declared before being used. E.g., one should typically | |
5904 | declare them in the prologue. Use GNU coding style in examples. | |
5905 | Put "const" consistently after the type it modifies. Mention | |
5906 | that C99 supports "inline". Mention that yyerror traditionally | |
5907 | returns "int". | |
5908 | ||
88510f9c PE |
5909 | %parse-param and %lex-param now take just one argument, the |
5910 | declaration; the argument name is deduced from the declaration. | |
5911 | ||
5912 | * doc/bison.texinfo (Parser Function, Pure Calling, Error | |
5913 | Reporting, Table of Symbols): Document this. | |
5914 | * src/parse-gram.y (add_param): New function. | |
5915 | (COMMA): Remove. | |
5916 | (declaration): Implement new rule for %parse-param and %lex-param. | |
5917 | * src/scan-gram.l: "," now elicits a warning, rather than being | |
5918 | a token; this is more compatible with byacc. | |
5919 | * tests/calc.at (Simple LALR Calculator): Adopt new convention. | |
5920 | ||
bb92250c PE |
5921 | 2002-11-27 Paul Eggert <eggert@twinsun.com> |
5922 | ||
5923 | Rename identifiers to avoid real and potential collisions. | |
5924 | ||
5925 | * data/c.m4 (b4_yysymprint_generate): yyout -> yyoutput, | |
5926 | to avoid collision with lex macro described by Bruce Lilly in | |
161a71f3 | 5927 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00114.html>. |
bb92250c PE |
5928 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Likewise. |
5929 | * doc/bison.texinfo (Prologue, Tracing): yyprint -> print_token_value. | |
5930 | * src/parse-gram.y (print_token_value): Renamed from yyprint. | |
5931 | All uses changed. | |
5932 | (YYPARSE_PARAM, YYLEX_PARAM, yycontrol): Remove. All uses changed. | |
5933 | The name "yycontrol" violates the name space rules, and this stuff | |
5934 | wasn't being used anyway. | |
5935 | (input): Remove action; this stuff wasn't being used. | |
5936 | (gram_error): Rename local variable yylloc -> loc. | |
5937 | * src/reader.h (struct gram_control_s, gram_control_t): Remove. | |
5938 | (YY_DECL): Don't use "yy" at start of local variables. | |
5939 | All uses changed, e.g., yylloc -> loc. | |
5940 | * src/scan-gram.l (STEP): Renamed from YY_STEP. All uses changed. | |
5941 | (STRING_GROW): Renamed from YY_OBS_GROW. All uses changed. | |
5942 | (STRING_FINISH): Renamed from YY_OBS_FINISH. All uses changed. | |
5943 | (STRING_FREE): Renamed from YY_OBS_FREE. All uses changed. | |
5944 | ||
5945 | * src/parse-gram.y (gram_error): loc is now const *. | |
5946 | * src/reader.h (gram_error): Likewise. | |
5947 | ||
3af4feb2 PE |
5948 | 2002-11-24 Paul Eggert <eggert@twinsun.com> |
5949 | ||
5950 | Version 1.75c. | |
5951 | ||
5952 | * tests/actions.at (Actions after errors): Use an output format | |
5953 | more similar to that of the Printers and Destructors test. | |
5954 | Test the position of the ';' token too. | |
5955 | (Printers and Destructors): Likewise. | |
5956 | (Printers and Destructors: %glr-parser): Remove for now, to avoid | |
5957 | unnecessarily alarming people when the test fails. | |
5958 | ||
5959 | * data/yacc.c (yyerrlab1): Move this label down, so that the | |
5960 | parser does not discard the lookahead token if the user code | |
5961 | invokes YYERROR. This change is required for POSIX conformance. | |
5962 | ||
5963 | * lib/error.c: Sync with gnulib. | |
5964 | ||
5965 | 2002-11-22 Paul Eggert <eggert@twinsun.com> | |
5966 | ||
5967 | * lib/quotearg.c, lib/quotearg.h: Sync with gnulib. | |
5968 | * lib/mbswidth.c, lib/mbswidth.h: Likewise. | |
5969 | * lib/xmalloc.c: Likewise. | |
26b4a969 | 5970 | |
58004308 PE |
5971 | 2002-11-20 Paul Eggert <eggert@twinsun.com> |
5972 | ||
5973 | * lib/argmatch.c, lib/argmatch.h: Sync with gnulib. | |
5974 | ||
5975 | 2002-11-20 Paul Eggert <eggert@twinsun.com> | |
26b4a969 | 5976 | |
58004308 PE |
5977 | Avoid use of <assert.h>, as the GNU Coding Standards hint that one |
5978 | should use `if (! x) abort ();' rather than `assert (x);', and | |
5979 | anyway it's one less thing to worry about configuring. | |
5980 | ||
5981 | * data/glr.c, lib/hash.c, src/system.h: Do not include <assert.h>. | |
5982 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Likewise, | |
5983 | and replace all instances of assert with abort. | |
5984 | * tests/calc.at (_AT_DATA_CALC_Y): Likewise. | |
5985 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): Likewise. | |
5986 | ||
5987 | * data/glr.c (yydoAction, yyglrReduce, yysplitStack, yyresolveStates, | |
5988 | yyresolveAction, yyprocessOneStack): Use abort rather than assert. | |
5989 | * lib/hash.c (hash_lookup, hash_get_first, hash_get_next, | |
5990 | hash_find_entry, hash_rehash, hash_insert): Likewise. | |
5991 | * src/conflicts.c (resolve_sr_conflict): Likewise. | |
5992 | * src/lalr.c (set_goto_map, map_goto): Likewise. | |
5993 | * src/nullable.c (nullable_compute): Likewise. | |
5994 | * src/output.c (prepare_rules, token_definitions_output): Likewise. | |
5995 | * src/reader.c (packgram, reader): Likewise. | |
5996 | * src/state.c (state_new, state_free, state_transitions_set, | |
5997 | state_reduction_find): Likewise. | |
5998 | * src/symtab.c (symbol_user_token_number_set, symbol_make_alias, | |
5999 | symbol_pack): Likewise. | |
6000 | * src/tables.c (conflict_row, pack_vector): Likewise. | |
6001 | * src/vcg.c (get_color_str, get_textmode_str, get_shape_str, | |
6002 | get_layoutalgorithm_str, get_decision_str, get_orientation_str, | |
6003 | get_node_alignement_str, get_arrow_mode_str, get_crossing_type_str, | |
6004 | get_view_str, get_linestyle_str, get_arrowstyle_str): Likewise. | |
6005 | ||
6006 | * lib/argmatch.h (ARRAY_CARDINALITY): Do not bother to #undef. | |
6007 | (ARGMATCH_CONSTRAINT): New macro. | |
6008 | (ARGMATCH_ASSERT): Use it. | |
6009 | ||
6010 | * src/system.h (verify): New macro. | |
6011 | * src/getargs.c (trace_argmatch, report_argmatch): Use verify | |
6012 | rather than assert. | |
6013 | * src/tables.c (tables_generate): Likewise. | |
6014 | ||
6015 | * src/struniq.c (struniq_assert): Now returns void, and aborts | |
6016 | if the assertion is false. | |
6017 | (struniq_assert_p): Remove. | |
6018 | * src/struniq.h: Likewise. | |
6019 | ||
76ae8198 PE |
6020 | 2002-11-18 Paul Eggert <eggert@twinsun.com> |
6021 | ||
6022 | * data/glr.c (yygetLRActions): Replace `yyindex' with | |
6023 | `yytable[yyindex]' to fix typo introduced in my 2002-11-09 patch. | |
6024 | This fixes the regression with Sun ONE Studio 7 cc that I reported in | |
161a71f3 | 6025 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00077.html>. |
76ae8198 | 6026 | |
d3c4e709 AD |
6027 | 2002-11-18 Akim Demaille <akim@epita.fr> |
6028 | ||
6029 | * doc/bison.texinfo (Tracing): `yyprint' shouldn't prepend a | |
6030 | space. | |
6031 | From Tim Van Holder. | |
6032 | ||
8d8a7238 PE |
6033 | 2002-11-17 Paul Eggert <eggert@twinsun.com> |
6034 | ||
6035 | Pacify Sun ONE Studio 7 lint. Also, rename "ParseError" | |
6036 | to "SyntaxError" for consistency with my 2002-11-15 change. | |
6037 | ||
6038 | * data/glr.c (YYDPRINTF, YYDSYMPRINT, YYDSYMPRINTF) [!YYDEBUG]: Do | |
6039 | not define to {}, since this breaks the common use of `YYDPRINTF | |
6040 | ((...));' if a single statement is desired (e.g. before `else'). | |
6041 | Work around GCC warnings by surrounding corresponding calls with | |
6042 | {} if needed. | |
6043 | (yyhasResolvedValue): Remove unused function. | |
6044 | (yymergeOptionSets, yyresolvStack): Use `continue;' for empty | |
6045 | loop body. | |
6046 | (yyreportSyntaxError): Renamed from yyreportParseError. | |
6047 | (yyrecoverSyntaxError): Renamed from yyrecoverParseError. | |
6048 | All uses changed. | |
6049 | * tests/calc.at (_AT_DATA_CALC_Y): Make vars static instead of | |
6050 | extern when possible. Remove unused initializations. | |
6051 | ||
b0937b22 AD |
6052 | 2002-11-16 Akim Demaille <akim@epita.fr> |
6053 | ||
6054 | Augment the similarity between GLR and LALR traces. | |
6055 | ||
6056 | * data/yacc.c (yy_stack_print, YY_STACK_PRINT, yy_reduce_print) | |
6057 | (YY_REDUCE_PRINT): New. | |
6058 | (yyparse): Use them. | |
6059 | * data/glr.c (yy_reduce_print): Use YYFPRINTF, no need for | |
6060 | YYDPRINT here. | |
6061 | (yyglrReduce, yyrecoverParseError, yyparse): Don't report the | |
6062 | state reached after the reduction/recovery, since... | |
6063 | (yyparse, yyprocessOneStack): Report the state we are entering in. | |
6064 | ||
c5e3e510 AD |
6065 | 2002-11-16 Akim Demaille <akim@epita.fr> |
6066 | ||
6067 | * src/getargs.h, src/getargs.c (trace_e, trace_args, trace_types): | |
6068 | Add support for --trace=skeleton. | |
6069 | * src/scan-skel.l: %option debug. | |
6070 | Scan strings of non-@ or \n instead of character by character. | |
6071 | (scan_skel): Handle trace_skeleton. | |
6072 | (QPUTS): New. | |
6073 | (@output_parser_name@, @output_header_name@): ``Restore'' their | |
6074 | support (used to be M4 macros). | |
6075 | * data/yacc.c: Quote larger chunks, a la glr.c. | |
6076 | * data/lalr1.cc: Likewise. | |
6077 | The header guards are no longer available, so use some other | |
6078 | string than `YYLSP_NEEDED'. | |
6079 | ||
4c6cc1db AD |
6080 | 2002-11-16 Akim Demaille <akim@epita.fr> |
6081 | ||
6082 | Make the ``Printers and Destructors'' test more verbose, taking | |
6083 | `yacc.c''s behavior as (possibly wrong) reference. | |
6084 | ||
6085 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Use printf | |
6086 | instead of fprint on stdout. | |
6087 | Set and report the last_line of the symbols. | |
6088 | Consistently display values and locations. | |
6089 | ||
6d9e8019 PE |
6090 | 2002-11-16 Paul Eggert <eggert@twinsun.com> |
6091 | ||
6092 | * data/yacc.c: Avoid over-quoting of __line__ and __file__. | |
6093 | ||
6e649e65 PE |
6094 | 2002-11-15 Paul Eggert <eggert@twinsun.com> |
6095 | ||
b25d88f6 PE |
6096 | * tests/actions.at (Actions after errors): New test case. |
6097 | ||
6e649e65 PE |
6098 | * data/glr.c, data/lalr1.cc, data/yacc.cc, doc/bison.texinfo, |
6099 | src/conflicts.c, src/parse-gram.y, src/tables.c, src/tables.h, | |
6100 | tests/action.at, tests/calc.at, tests/conflicts.at, | |
6101 | tests/cxx-type.at, tests/regression.at: | |
6102 | "parse error" -> "syntax error" for POSIX compatibility. | |
6103 | "parsing stack overflow..." -> "parser stack overflow" so | |
6104 | that code matches Bison documentation. | |
6105 | ||
0f39aab9 AD |
6106 | 2002-11-15 Akim Demaille <akim@epita.fr> |
6107 | ||
6108 | * src/parse-gram.y (declaration): Have %parse-param and %lex-param | |
6109 | take two BRACED_CODE, not two string_content. | |
6110 | Free the scanner's obstack when we are done. | |
6111 | (code_content): New. | |
6112 | * tests/calc.at: Adjust. | |
6113 | * doc/bison.texinfo: Adjust. | |
6114 | Also, make sure to include the `,' for these declarations. | |
6115 | ||
761c1926 AD |
6116 | 2002-11-15 Tim Van Holder <tim.van.holder@pandora.be> |
6117 | ||
6118 | * m4/prereq.m4: Removed the commented jm_PREREQ_HASH | |
6119 | definition; avoids potential autoreconf problems. | |
6120 | ||
b0f98b10 AD |
6121 | 2002-11-15 Akim Demaille <akim@epita.fr> |
6122 | ||
6123 | Always check the value returned by yyparse. | |
6124 | ||
6125 | * tests/calc.at (_AT_DATA_CALC_Y): Have `main' exit with the value | |
6126 | returned by yyparse. | |
6127 | (_AT_CHECK_CALC_ERROR): Take the expected exit value as argument. | |
6128 | Adjust calls. | |
6129 | * tests/glr-regr1.at (glr-regr1.y): Have `main' exit with the value | |
6130 | returned by yyparse. | |
6131 | ||
970785f1 PH |
6132 | 2002-11-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
6133 | ||
6134 | * data/glr.c (yyFail): Always set yyerrflag. Corrects regression | |
6135 | on input.at test. | |
6136 | ||
8fcc7db1 PE |
6137 | 2002-11-14 Paul Eggert <eggert@twinsun.com> |
6138 | ||
7ec1b48e PE |
6139 | * src/output.c (output_skeleton): Call xfopen instead of |
6140 | duplicating xfopen's body. | |
6141 | ||
cfff7583 | 6142 | Fix bugs reported by Nelson H. F. Beebe in |
161a71f3 | 6143 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00078.html>. |
cfff7583 | 6144 | |
8fcc7db1 PE |
6145 | * tests/headers.at (AT_TEST_CPP_GUARD_H): Don't assume that |
6146 | "$CC -E foo.h" is allowed, as this doesn't work with the Portland | |
6147 | Group compiler. Instead, use "$CC -E bar.c". Include the .h | |
6148 | file twice in the grammar, as an extra check. | |
6149 | ||
6150 | * tests/input.at (Torturing the Scanner): Surround the | |
6151 | backslash-newline tests with "#if 0", to make it less likely that | |
6152 | we'll run into compiler bugs. Bring back solitary \ inside | |
6153 | comment, but add a closing comment to work around HP C bug. Don't | |
e3aa65c5 | 6154 | test backslash-newline in C character constant. |
8fcc7db1 | 6155 | |
4e8d992c AD |
6156 | 2002-11-14 Akim Demaille <akim@epita.fr> |
6157 | ||
6158 | * tests/synclines.at (AT_SYNCLINES_COMPILE): Ignore the exit | |
6159 | status of the compiler. | |
f32b346d | 6160 | Calling `exit 1' is no longer needed. |
4e8d992c AD |
6161 | Reported by Nelson H. F. Beebe. |
6162 | ||
9501dc6e AD |
6163 | 2002-11-14 Akim Demaille <akim@epita.fr> |
6164 | ||
6165 | * tests/atlocal.in (CPPFLAGS): We have config.h. | |
6166 | * tests/testsuite.at (AT_DATA_GRAMMAR_PROLOGUE, AT_DATA_GRAMMAR): | |
6167 | New. | |
6168 | * tests/actions.at, tests/calc.at, tests/conflicts.at, | |
6169 | * tests/cxx-type.at, tests/glr-regr1.at, tests/headers.at, | |
6170 | * tests/regression.at, tests/torture.at: Use them for all the | |
6171 | grammars that are to be compiled. | |
6172 | * tests/cxx-type.at (_AT_TEST_GLR_CALC): Rename as... | |
6173 | * tests/cxx-type.at (_AT_TEST_GLR_CXXTYPES): this. | |
6174 | * doc/bison.texinfo (GLR Parsers): Document `inline'. | |
6175 | ||
18b519c0 AD |
6176 | 2002-11-14 Akim Demaille <akim@epita.fr> |
6177 | ||
6178 | * doc/bison.texinfo: Various formatting changes (alignments in | |
6179 | samples, additional @group/@end group, GCS in samples. | |
6180 | Use @deffn instead of simple @table to define the directives, | |
6181 | macros, variables etc. | |
6182 | ||
9a86cdb9 PE |
6183 | 2002-11-13 Paul Eggert <eggert@twinsun.com> |
6184 | ||
daa33def | 6185 | Fix some bugs reported by Albert Chin-A-Young in |
161a71f3 | 6186 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00066.html>. |
18b519c0 | 6187 | |
daa33def | 6188 | * tests/input.at (Torturing the Scanner): Don't invoke "cc a.c b.c |
8fcc7db1 | 6189 | -o c"; the HP C compiler chatters during compilation. |
daa33def PE |
6190 | Instead, invoke "cc -c a.c -o a.o; cc -c b.c -o b.o; cc a.o b.o -o c". |
6191 | * tests/headers.at (export YYLTYPE): Likewise. | |
6192 | ||
6193 | * tests/input.at (Torturing the Scanner): Remove lines containing | |
8fcc7db1 | 6194 | solitary backslashes, as they tickle a bug in the HP C compiler. |
daa33def | 6195 | |
9a86cdb9 PE |
6196 | * tests/glr-regr1.at (Badly Collapsed GLR States): Avoid // |
6197 | comments, since they're not portable. Use GNU coding style. | |
6198 | ||
9c1e26bd AD |
6199 | 2002-11-13 Akim Demaille <akim@epita.fr> |
6200 | ||
6201 | * data/yacc.c: Leave bigger chunks of quoted text. | |
6202 | (YYDSYMPRINTF): New. | |
6203 | Use it to report symbol activities. | |
6204 | * data/glr.c (YYDSYMPRINTF): New. | |
6205 | Use it. | |
6206 | ||
87f721cc PE |
6207 | 2002-11-12 Paul Eggert <eggert@twinsun.com> |
6208 | ||
6209 | Version 1.75b. | |
6210 | ||
6211 | * data/glr.c (yydoAction): Return YYRESULTTAG, not int. | |
6212 | (yyglrReduce): Return yyok, not 0. | |
6213 | This should avoid the enumerated-type warnings reported | |
464c6927 | 6214 | by Nelson H. F. Beebe in |
161a71f3 | 6215 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00057.html>. |
87f721cc PE |
6216 | |
6217 | * lib/bbitset.h (BITSET_INLINE): Remove. | |
6218 | * lib/bitset.h [! BITSET_INLINE]: Remove. | |
6219 | (bitset_set, bitset_reset, bitset_test): Rename local vars | |
6220 | to avoid shadowing warnings by GCC. | |
6221 | ||
6222 | * data/glr.c (inline): Remove #define. It's the user's | |
6223 | responsibility to #define it away, just like 'const'. | |
464c6927 | 6224 | This fixes one of the bugs reported by Nelson H. F. Beebe in |
161a71f3 | 6225 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00058.html>. |
18b519c0 | 6226 | |
87f721cc PE |
6227 | * Makefile.maint (po-check): Scan .l and .y files instead of the |
6228 | .c and the .h files that they generate. This fixes the bug | |
6229 | reported by Tim Van Holder in: | |
161a71f3 | 6230 | <http://lists.gnu.org/archive/html/bison-patches/2002-11/msg00062.html> |
87f721cc PE |
6231 | Look for N_ as well as for _. Try to avoid matching #define for |
6232 | N_ and _. | |
6233 | * po/POTFILES.in: Remove src/parse-gram.c, src/scan-gram.c, | |
6234 | src/system.h. Add src/parse-gram.y, src/scan-gram.l. | |
6235 | * src/scan-gram.l: Revamp regular expressions so that " and ' | |
6236 | do not confuse xgettext. | |
6237 | ||
6238 | * src/struniq.h (struniq_new): Do not declare the return type | |
6239 | to be 'const'; this violates the C standard. | |
6240 | * src/struniq.c (struniq_new): Likewise. | |
6241 | ||
be14ade5 AD |
6242 | 2002-11-12 Albert Chin-A-Young <china@thewrittenword.com> |
6243 | ||
6244 | * src/Makefile.am (LDADD): Link $(LIBINTL) last to avoid the | |
6245 | duplicate definition of optind on Tru64 UNIX 4.0D with the Compaq | |
6246 | linker. | |
6247 | ||
05291fbc AD |
6248 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6249 | ||
6250 | * Makefile.maint: Sync with Autoconf: | |
6251 | (local_updates): New. | |
6252 | ||
1f5fd52e AD |
6253 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6254 | ||
6255 | * po/POTFILES.in (src/lalr.c, src/state.c): Remove | |
6256 | ||
283f1e64 AD |
6257 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6258 | ||
6259 | * tests/actions.at (_AT_CHECK_PRINTER_AND_DESTRUCTOR): Display the | |
6260 | locations. | |
6261 | ||
886b69d1 AD |
6262 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6263 | ||
6264 | * data/c.m4 (b4_yysymprint_generate): Pass *yyvaluep to YYPRINT, | |
6265 | not yyvalue. | |
6266 | ||
3df37415 AD |
6267 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6268 | ||
6269 | * tests/actions.at (AT_CHECK_PRINTER_AND_DESTRUCTOR): New. | |
6270 | Use it to test the GLR parser. | |
6271 | ||
7bd6c77e AD |
6272 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6273 | ||
6274 | * tests/regression.at (input.y): s/YYEOF/MYEOF/, as the skeleton | |
6275 | defines it. | |
6276 | * data/glr.c (yystos): New. | |
6277 | (b4_yysymprint_generate, b4_yydestruct_generate): Invoke. | |
6278 | (YYDSYMPRINT): New. | |
6279 | (yyval): Don't define it, it is handled via M4. | |
6280 | (yyrecoverParseError): Free verbosely the discarded symbols. | |
6281 | * data/yacc.c (yysymprint): Remove, rather... | |
6282 | (b4_yysymprint_generate): invoke. | |
6283 | * data/c.m4 (b4_yysymprint_generate): New. | |
6284 | Accept pointers as arguments, as opposed to the version from | |
6285 | yacc.c. | |
6286 | (b4_yydestruct_generate): Likewise. | |
6287 | * tests/cations.at (Printers and Destructors): Use Bison directives | |
6288 | instead of CPP macros. | |
6289 | Don't rely on internal details. | |
6290 | ||
b0400cc6 AD |
6291 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6292 | ||
6293 | * data/c.m4 (b4_yydestruct_generate, b4_symbol_actions): New. | |
6294 | * data/yacc.c: Rename yychar1 as yytoken, as in glr.c. | |
6295 | Don't work on yychar (i.e., do set it to YYEMPTY, don't match | |
6296 | it against YYEMPTY and so forth), work on yytoken (i.e., set | |
6297 | it to YYEMPTY etc.). | |
6298 | (yydestruct): Replace with a b4_yydestruct_generate invocation. | |
6299 | (b4_symbol_actions): Remove. | |
6300 | * data/glr.c (YYTRANSLATE): As for yacc.c, if negative, it stands | |
6301 | for 0, end-of-input. | |
6302 | ||
72f889cc AD |
6303 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6304 | ||
6305 | * doc/bison.texinfo (Destructor Decl): New. | |
6306 | ||
b1ae9233 AD |
6307 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6308 | ||
6309 | * src/tables.c (tables_generate): Use free for pointers that | |
6310 | cannot be NULL, not XFREE. | |
6311 | (pack_vector): Use assert, not fatal, for bound violations. | |
6312 | * src/state.c (state_new): Likewise. | |
6313 | * src/reader.c (reader): Likewise. | |
6314 | * src/lalr.c (set_goto_map): Likewise. | |
72f889cc | 6315 | * src/location.h (LOCATION_PRINT): If first_line is 0, just issue |
b1ae9233 AD |
6316 | the file name. |
6317 | ||
7ec2d4cd AD |
6318 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6319 | ||
6320 | * src/scan-gram.l, src/reader.h (scanner_last_string_free): | |
6321 | Restore. | |
6322 | * src/scan-gram.l (last_string): Is global to the file, not to | |
6323 | yylex. | |
6324 | * src/parse-gram.y (input): Don't append the epilogue here, | |
6325 | (epilogue.opt): do it here, and free the scanner's obstack. | |
6326 | * src/reader.c (epilogue_set): Rename as... | |
6327 | (epilogue_augment): this. | |
6328 | * data/c.m4 (b4_epilogue): Defaults to empty. | |
6329 | ||
573a6cd3 AD |
6330 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6331 | ||
6332 | * src/getargs.c (long_options): Remove duplicates. | |
6333 | * src/vmsgetargs.c, src/build.com, src/bison.cld, src/vmshlp.mar: | |
6334 | Remove. | |
6335 | * doc/bison.rnh: Remove. | |
6336 | * doc/bison.texinfo (VMS Invocation): Remove. | |
6337 | ||
95612cfa AD |
6338 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6339 | ||
6340 | * src/struniq.h, src/struniq.c (struniq_t): Is const. | |
6341 | (STRUNIQ_EQ, struniq_assert, struniq_assert_p): New. | |
6342 | ||
6343 | Use struniq for symbols. | |
6344 | ||
6345 | * src/symtab.h (symbol_t): The tag member is a struniq. | |
6346 | (symbol_type_set): Adjust. | |
6347 | * src/symtab.c (symbol_new): Takes a struniq. | |
6348 | (symbol_free): Don't free the tag member. | |
6349 | (hash_compare_symbol_t, hash_symbol_t): Rename as... | |
6350 | (hash_compare_symbol, hash_symbol): these. | |
6351 | Use the fact that tags as struniqs. | |
6352 | (symbol_get): Use struniq_new. | |
6353 | * src/symlist.h, src/symlist.c (symbol_list_n_type_name_get): | |
6354 | Returns a strniq. | |
6355 | * src/reader.h (merger_list, grammar_currentmerge_set): The name | |
6356 | and type members are struniqs. | |
6357 | * src/reader.c (get_merge_function) | |
6358 | (grammar_current_rule_merge_set): Adjust. | |
6359 | (TYPE, current_type): Are struniq. | |
6360 | ||
6361 | Use struniq for file names. | |
6362 | ||
6363 | * src/files.h, src/files.c (infile): Split into... | |
6364 | (grammar_file, current_file): these. | |
6365 | * src/scan-gram.c (YY_USER_INIT, handle_syncline): Adjust. | |
6366 | * src/reduce.c (reduce_print): Likewise. | |
6367 | * src/getargs.c (getargs): Likewise. | |
6368 | * src/complain.h, src/complain.c: Likewise. | |
6369 | * src/main.c (main): Call struniqs_new early enough to use it for | |
6370 | file names. | |
6371 | Don't free the input file name. | |
6372 | ||
3e6656f9 AD |
6373 | 2002-11-12 Akim Demaille <akim@epita.fr> |
6374 | ||
6375 | * src/symtab.c (symbol_free): Remove dead deactivated code: | |
6376 | type_name are properly removed. | |
6377 | Don't use XFREE to free items that cannot be NULL. | |
6378 | * src/struniq.h, src/struniq.c: New. | |
6379 | * src/main.c (main): Initialize/free struniqs. | |
6380 | * src/parse-gram.y (%union): Add astruniq member. | |
6381 | (yyprint): Adjust. | |
6382 | * src/scan-gram.l (<{tag}>): Return a struniq. | |
6383 | Free the obstack bit that used to store it. | |
6384 | * src/symtab.h (symbol_t): The 'type_name' member is a struniq. | |
6385 | ||
7672019c PE |
6386 | 2002-11-11 Paul Eggert <eggert@twinsun.com> |
6387 | ||
6388 | Revamp to fix many (but not all) of the C- and M4-related quoting | |
6389 | problems. Among other things, this fixes the Bison bug reported | |
6390 | by Jan Hubicka when processing the Bash grammar; see: | |
161a71f3 | 6391 | <http://lists.gnu.org/archive/html/bison-patches/2002-11/msg00039.html> |
7672019c PE |
6392 | |
6393 | Use new @ escapes consistently. Represent brackets with @{ and @} | |
6394 | rather than @<:@ and @:>@, since this works a bit better with dumb | |
6395 | editors like vi. Represent @ with @@, since @ is now consistently | |
6396 | an escape. Use @oline@ and @ofile@ rather than __oline__ and | |
6397 | __ofile__, to avoid unexpected expansions. Similarly, use @output | |
6398 | rather than #output. | |
6399 | ||
6400 | * data/c.m4 (b4_copyright): Omit file name from comment, since | |
6401 | the file name could contain "*/". | |
6402 | (b4_synclines_flag): Don't quote the 2nd argument; it should already | |
6403 | be quoted. All uses changed. | |
6404 | ||
6405 | * data/glr.c: Use new @ escapes consistently. | |
6406 | (b4_input_suffix, b4_output_parser_suffix, b4_output_parser_name, | |
6407 | b4_output_header_suffix, b4_output_header_name, b4_header_guard): | |
6408 | Remove, since they couldn't handle arbitrary characters in file | |
6409 | names. | |
6410 | * data/lalr1.cc: Likewise. | |
6411 | * data/yacc.c: Likewise. | |
6412 | ||
6413 | * src/files.c (output_infix): Remove; all uses removed. | |
6414 | * src/files.h: Likewise. | |
6415 | ||
6416 | * data/glr.c: Remove use of "#ifdef b4_header_guard", since it | |
6417 | mishandled funny characters in file names, and anyway it isn't | |
6418 | needed any more. | |
6419 | * data/yacc.c: Likewise. | |
6420 | * data/lalr1.cc: Use YYSLP_NEEDED instead of b4_header_guard. | |
6421 | ||
6422 | * data/glr.c (YYSTYPE_IS_TRIVIAL): Define when the .h file would. | |
6423 | * data/yacc.c: Likewise. | |
6424 | ||
6425 | * src/muscle_tab.c: Include quotearg.h, since we need to quote C | |
6426 | strings now. | |
6427 | (muscle_init): Quote filename as a C string. | |
6428 | * src/muscle_tab.h (MUSCLE_GROW_STRING_PAIR): Remove; unused. | |
6429 | (MUSCLE_OBSTACK_SGROW, MUSCLE_INSERT_C_STRING): New macros. | |
6430 | * src/output.c (escaped_file_name_output): New function. | |
6431 | (prepare_symbols): Quote tokens for M4. | |
6432 | (prepare): Don't insert output_infix, output_prefix, | |
6433 | output_parser_name, output_header_name; this is now down by scan-skel. | |
6434 | Insert skeleton as a C string. | |
6435 | ||
6436 | * src/output.c (user_actions_output, symbol_destructors_output, | |
6437 | symbol_printers_output): Quote filenames for C and M4. | |
6438 | * src/reader.c (prologue_augment, epilogue_set): Likewise. | |
6439 | ||
6440 | * src/scan-gram.l (<SC_CHARACTER>): Don't worry about any backslash | |
6441 | escapes other than \\ and \'; this simplifies the code. | |
6442 | (<SC_STRING>): Likewise, for \\ and \". | |
6443 | (<SC_COMMENT,SC_LINE_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE, | |
6444 | SC_PROLOGUE,SC_EPILOGUE>): Escape $ and @, too. | |
6445 | Use new escapes @{ and @} for [ and ]. | |
6446 | ||
6447 | * src/scan-skel.l (yylineno, yyoutname): Remove static vars, replacing | |
6448 | them with auto vars. | |
6449 | Switch to new escape scheme, where @ is the escape character uniformly. | |
6450 | Abort if a stray escape character is found. Avoid unbounded input | |
6451 | buffer when parsing non-escaped text. | |
6452 | ||
6453 | * tests/input.at (Torturing the Scanner): Add tests that @oline@, | |
6454 | __oline__, #output, $@, and @{ do not have unintended meanings. | |
6455 | ||
acea4f3b PE |
6456 | 2002-11-09 Paul Eggert <eggert@twinsun.com> |
6457 | ||
6458 | Fix the test failure due to GCC warnings described in | |
161a71f3 | 6459 | <http://lists.gnu.org/archive/html/bug-bison/2002-11/msg00000.html>. |
acea4f3b PE |
6460 | * data/glr.c (yyis_pact_ninf, yyis_table_ninf): New macros, which |
6461 | evaluate to 0 if it's impossible for NINF to be in the respective | |
6462 | table. | |
6463 | (yygetLRActions, yyrecoverParseError): Use them. | |
6464 | ||
6465 | * src/scan-gram.l (unexpected_end_of_file): Fix bug: columns were | |
6466 | counted in the token inserted at end of file. Now takes | |
6467 | location_t *, not location_t, so that the location can be | |
6468 | adjusted. All uses changed. | |
6469 | ||
6470 | * tests/regression.at (Invalid inputs): Adjust wording in | |
6471 | diagnostic to match the new behavior. | |
6472 | ||
6473 | * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR, | |
6474 | AT_DATA_HORIZONTAL_GRAMMAR, AT_DATA_LOOKAHEADS_GRAMMAR, | |
6475 | AT_DATA_STACK_TORTURE): Replace `assert (x);' with `if (! (x)) | |
6476 | abort ();'. This reduces the runtime of the "Many lookaheads" | |
6477 | test from 27.6 to 2.7 minutes on a 440 MHz Ultrasparc III running | |
6478 | GCC 3.2. | |
6479 | ||
20ef1ad5 PE |
6480 | 2002-11-07 Paul Eggert <eggert@twinsun.com> |
6481 | ||
6482 | * src/parse-gram.y (CHARACTER): Remove unused token. | |
6483 | All uses removed. | |
6484 | ||
6485 | * src/scan-gram.l: Remove stack option. We no longer use the | |
6486 | stack, since the stack was never deeper than 1; instead, use the | |
6487 | new auto var c_context to record the stacked value. | |
6488 | ||
6489 | Remove nounput option. At an unexpected end of file, we now unput | |
6490 | the minimal input necessary to end cleanly; this simplifies the | |
6491 | code. | |
6492 | ||
6493 | Avoid unbounded token sizes where this is easy. | |
6494 | ||
6495 | (unexpected_end_of_file): New function. | |
6496 | Use it to systematize the error message on unexpected EOF. | |
6497 | (last-string): Now auto, not static. | |
6498 | (YY_OBS_FREE): Remove unnecessary do while (0) wrapper. | |
6499 | (scanner_last_string_free): Remove; not used. | |
6500 | (percent_percent_count): Move decl to just before use. | |
6501 | (SC_ESCAPED_CHARACTER): Return ID at unexpected end of file, | |
6502 | not the (never otherwised-used) CHARACTER. | |
6503 | ||
93724f13 AD |
6504 | 2002-11-07 Akim Demaille <akim@epita.fr> |
6505 | ||
6506 | Let yyerror always receive the msg as last argument, so that | |
6507 | yyerror can be variadic. | |
6508 | ||
6509 | * data/yacc.c (b4_yyerror_args): New. | |
6510 | Use it when calling yyerror. | |
6511 | * data/glr.c (b4_yyerror_args, b4_lyyerror_args): New. | |
6512 | Use it when calling yyerror. | |
6513 | * doc/bison.texinfo (Error Reporting): Adjust. | |
6514 | * tests/calc.at (_AT_DATA_CALC_Y): Adjust. | |
6515 | * tests/cxx-type.at (_AT_TEST_GLR_CALC): Adjust. | |
6516 | ||
6e40b4eb AD |
6517 | 2002-11-06 Akim Demaille <akim@epita.fr> |
6518 | ||
6519 | #line should have quoted strings. | |
6520 | Ideally, this should be done by m4_quotearg. | |
6521 | ||
6522 | * src/scan-skel.l: Include quotearg.h. | |
6523 | Quote __ofile__. | |
6524 | * src/output.c (symbol_printers_output) | |
6525 | (symbol_destructors_output): Quote the file name. | |
6526 | ||
2dfbfc12 AD |
6527 | 2002-11-06 Akim Demaille <akim@epita.fr> |
6528 | ||
6529 | * tests/regression.at (Invalid inputs): Adjust to the recent | |
6530 | messages. | |
6531 | ||
437c2d80 AD |
6532 | 2002-11-06 Akim Demaille <akim@epita.fr> |
6533 | ||
6534 | Restore --no-lines. | |
6535 | Reported by Jim Kent. | |
6536 | ||
6537 | * data/c.m4 (b4_syncline): New. | |
6538 | * data/glr.c, data/yacc.c, data/lalr1.cc: Use it. | |
6539 | * src/reader.c (prologue_augment, epilogue_set): Use b4_syncline. | |
6540 | * src/output.c (user_actions_output): Likewise. | |
6541 | (prepare): Define 'b4_synclines_flag'. | |
2dfbfc12 | 6542 | * src/muscle_tab.c (muscle_init): Don't define b4_linef. |
437c2d80 | 6543 | |
900c5db5 AD |
6544 | 2002-11-06 Akim Demaille <akim@epita.fr> |
6545 | ||
6546 | * src/main.c (main): Free `infile'. | |
6547 | * src/scan-gram.l (handle_syncline): New. | |
6548 | Recognize `#line'. | |
6549 | * src/output.c (user_actions_output, symbol_destructors_output) | |
6550 | (symbol_printers_output): Use the location's file name, not | |
6551 | infile. | |
6552 | * src/reader.c (prologue_augment, epilogue_set): Likewise. | |
6553 | ||
e183b123 | 6554 | 2002-11-05 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
51b4a04c | 6555 | |
e183b123 | 6556 | * src/tables.c (matching_state): Don't allow states to match if |
51b4a04c | 6557 | either has GLR conflict entries. |
e183b123 | 6558 | |
193eb6b7 PE |
6559 | 2002-11-05 Paul Eggert <eggert@twinsun.com> |
6560 | ||
e183b123 PE |
6561 | * src/scan-gram.l: Use more accurate diagnostics, e.g. |
6562 | "integer out of range" rather than "invalid value". | |
6563 | * tests/input.at (Invalid $n, Invalid @n): Change expected wording | |
6564 | accordingly. | |
6565 | ||
193eb6b7 PE |
6566 | Scan <% and %> digraphs in C code as POSIX 1003.1-2001 requires. |
6567 | Also, remove one static variable in the scanner. | |
6568 | ||
6569 | * src/scan-gram.l (braces_level): Now auto, not static. | |
6570 | Initialize to zero if the compiler is being picky. | |
6571 | (INITIAL): Clear braces_level instead of incrementing it. | |
6572 | (SC_BRACED_CODE): Treat <% and %> as { and } when inside C code, | |
6573 | as POSIX 1003.1-2001 requires. | |
6574 | * src/system.h (IF_LINT): New macro, taken from coreutils. | |
6575 | * configure.ac: Define "lint" if --enable-gcc-warnings. | |
6576 | ||
29c01725 AD |
6577 | 2002-11-05 Akim Demaille <akim@epita.fr> |
6578 | ||
6579 | * src/scan-gram.l: When it starts with `%', complain about the | |
6580 | whole directive, not just that `invalid character: %'. | |
6581 | ||
8aeac3ca AD |
6582 | 2002-11-04 Akim Demaille <akim@epita.fr> |
6583 | ||
6584 | * Makefile.maint: Update from Autoconf. | |
6585 | (update, cvs-update, po-update, do-po-update): New. | |
6586 | ||
793a58bb AD |
6587 | 2002-11-04 Akim Demaille <akim@epita.fr> |
6588 | ||
6589 | * tests/glr-regr1.at (Badly Collapsed GLR States): Prototype yylex | |
6590 | and yyerror. | |
6591 | Have yyerror `use' its arguments. | |
6592 | * tests/calc.at (AT_CHECK_PUSHDEFS): AT_YYERROR_SEES_LOC_IF | |
6593 | returns true when location & yacc & pure & parse-param. | |
6594 | (_AT_DATA_CALC_Y): Let yyerror ``use'' its arguments. | |
6595 | ||
c4d720cd AD |
6596 | 2002-11-04 Akim Demaille <akim@epita.fr> |
6597 | ||
6598 | * src/location.h (LOCATION_PRINT): Use quotearg slot 3 to avoid | |
6599 | clashes. | |
6600 | * src/scan-gram.l: Use [\'] instead of ['] to pacify | |
6601 | font-lock-mode. | |
6602 | Use complain_at. | |
6603 | Use quote, not quote_n since LOCATION_PRINT no longer uses the | |
6604 | slot 0. | |
6605 | ||
613a0dc5 PE |
6606 | 2002-11-03 Paul Eggert <eggert@twinsun.com> |
6607 | ||
6608 | * src/reader.c (get_merge_function, grammar_current_rule_check): | |
6609 | Use consistent diagnostics for reporting type name clashes. | |
6610 | Quote the types with <>, for consistency with Yacc. | |
6611 | * tests/input.at (Type Clashes): Adjust to diagnostic changes. | |
6612 | ||
2a8d363a AD |
6613 | 2002-11-03 Akim Demaille <akim@epita.fr> |
6614 | ||
6615 | * data/c.m4 (b4_identification, b4_user_args, b4_parse_param): | |
6616 | New. | |
6617 | * data/yacc.m4 (b4_pure_args, b4_Pure_args): New. | |
6618 | (b4_parse_param): Remove. | |
6619 | Use b4_identification. | |
6620 | Propagate b4_pure_args where needed to pass them to yyerror. | |
6621 | * data/glr.m4 (b4_parse_param): Remove. | |
6622 | (b4_user_formals, b4_pure_args, b4_pure_formals, b4_lpure_args) | |
6623 | (b4_lpure_formals): New. | |
6624 | Use b4_identification. | |
6625 | (YY_USER_FORMALS, YY_USER_ARGS): Remove, replaced by | |
6626 | b4_user_formals and b4_user_args. | |
6627 | (yyexpandGLRStack, yyFail, yyaddDeferredAction, yyglrShiftDefer) | |
6628 | (yyreportAmbiguity): When using a pure parser, also need | |
6629 | the location, and the parse-params. | |
6630 | Adjust callers. | |
6631 | (yyuserAction, yyglrShift, yyreportParseError, yyrecoverParseError): | |
6632 | When using a pure parser, also need the parse-params. | |
6633 | Adjust callers. | |
6634 | * tests/calc.at: Test pure (%pure-parser) and absolutely pure | |
6635 | (%pure-parser + %parse-param) LALR and GLR parsers. | |
6636 | (AT_CHECK_PUSHDEFS, AT_CHECK_POPDEFS): New, define AT_PARAM_IF, | |
6637 | AT_LOCATION_IF, AT_PURE_IF, AT_GLR_IF, AAT_PURE_AND_LOC_IF, | |
6638 | AT_GLR_OR_PARAM_IF, AT_YYERROR_ARG_LOC_IF, AT_YYERROR_SEES_LOC_IF. | |
6639 | (_AT_DATA_CALC_Y): Equip for purity of yyerror. | |
6640 | (_AT_CHECK_CALC_ERROR): Use AT_YYERROR_SEES_LOC_IF. | |
6641 | * tests/cxx-type.at (_AT_TEST_GLR_CALC): Equip for yyerror purity. | |
6642 | * doc/bison.texinfo: Untabify the whole file. | |
6643 | (Parser Function): Document %parse-param, deprecate YYPARSE_PARAM. | |
6644 | (Pure Calling): Document %lex-param, deprecate YYLEX_PARAM. | |
6645 | (Error Reporting): Adjust to these new directives. | |
6646 | Document %error-verbose, deprecate YYERROR_VERBOSE. | |
6647 | ||
9e32add8 AD |
6648 | 2002-11-03 Akim Demaille <akim@epita.fr> |
6649 | ||
6650 | * tests/calc.at: Change all the AT_CHECK_CALC_LALR and | |
6651 | AT_CHECK_CALC_GLR invocations to use % directives, instead of | |
6652 | command line options. | |
6653 | * tests/cxx-type.at: Formatting changes. | |
6654 | ||
b02d90a5 PE |
6655 | 2002-11-03 Paul Eggert <eggert@twinsun.com> |
6656 | ||
6657 | * src/scan-gram.l: Revamp to fix POSIX incompatibilities, | |
6658 | to count columns correctly, and to check for invalid inputs. | |
9e32add8 | 6659 | |
b02d90a5 PE |
6660 | Use mbsnwidth to count columns correctly. Account for tabs, too. |
6661 | Include mbswidth.h. | |
6662 | (YY_USER_ACTION): Invoke extend_location rather than LOCATION_COLUMNS. | |
6663 | (extend_location): New function. | |
6664 | (YY_LINES): Remove. | |
6665 | ||
6666 | Handle CRLF in C code rather than in Lex code. | |
6667 | (YY_INPUT): New macro. | |
6668 | (no_cr_read): New function. | |
6669 | ||
6670 | Scan UCNs, even though we don't fully handle them yet. | |
6671 | (convert_ucn_to_byte): New function. | |
6672 | ||
6673 | Handle backslash-newline correctly in C code. | |
6674 | (SC_LINE_COMMENT, SC_YACC_COMMENT): New states. | |
6675 | (eols, blanks): Remove. YY_USER_ACTION now counts newlines etc.; | |
6676 | all uses changed. | |
6677 | (tag, splice): New EREs. Do not allow NUL or newline in tags. | |
6678 | Use {splice} wherever C allows backslash-newline. | |
6679 | YY_STEP after space, newline, vertical-tab. | |
6680 | ("/*"): BEGIN SC_YACC_COMMENT, not yy_push_state (SC_COMMENT). | |
9e32add8 | 6681 | |
b02d90a5 PE |
6682 | (letter, id): Don't assume ASCII; e.g., spell out a-z. |
6683 | ||
6684 | ({int}, handle_action_dollar, handle_action_at): Check for integer | |
6685 | overflow. | |
9e32add8 | 6686 | |
b02d90a5 PE |
6687 | (YY_STEP): Omit trailing semicolon, so that it's more like C. |
6688 | ||
6689 | (<SC_ESCAPED_STRING,SC_ESCAPED_CHARACTER>): Allow \0 and \00 | |
6690 | as well as \000. Check for UCHAR_MAX, not 255. | |
6691 | Allow \x with an arbitrary positive number of digits, as in C. | |
6692 | Check for overflow here. | |
6693 | Allow \? and UCNs, for compatibility with C. | |
6694 | ||
6695 | (handle_symbol_code_dollar): Use quote_n slot 1 to avoid collision | |
6696 | with quote slot used by complain_at. | |
6697 | ||
6698 | * tests/input.at: Add tests for backslash-newline, m4 quotes | |
6699 | in symbols, long literals, and funny escapes in strings. | |
6700 | ||
6701 | * configure.ac (jm_PREREQ_MBSWIDTH): Add. | |
6702 | * lib/Makefile.am (libbison_a_SOURCES): Add mbswidth.h, mbswidth.c. | |
6703 | * lib/mbswidth.h, lib/mbswidth.c: New files, from GNU gettext. | |
6704 | * m4/Makefile.am (EXTRA_DIST): Add mbswidth.m4. | |
6705 | * m4/mbswidth.m4: New file, from GNU coreutils. | |
6706 | ||
6707 | * doc/bison.texinfo (Grammar Outline): Document // comments. | |
6708 | (Symbols): Document that trigraphs have no special meaning in Bison, | |
6709 | nor is backslash-newline allowed. | |
6710 | (Actions): Document that trigraphs have no special meaning. | |
6711 | ||
6712 | * src/location.h (LOCATION_COLUMNS, LOCATION_LINES): Remove; | |
6713 | no longer used. | |
6714 | ||
6715 | 2002-11-02 Paul Eggert <eggert@twinsun.com> | |
6716 | ||
6717 | * src/reader.c: Don't include quote.h; not needed. | |
6718 | (get_merge_function): Reword warning to be consistent with | |
6719 | type clash diagnostic in grammar_current_rule_check. | |
6720 | ||
6721 | * lib/quotearg.c (quotearg_buffer_restyled): Fix off-by-two | |
6722 | bug in trigraph handling. | |
6723 | ||
6724 | * src/output.c (prepare_symbols): When printing token names, | |
6725 | escape "[" as "@<:@" and likewise for "]". | |
6726 | ||
6727 | * src/system.h (errno): Remove declaration, as we are now | |
6728 | assuming C89 or better, and C89 guarantees errno. | |
6729 | ||
762b212b PE |
6730 | 2002-10-30 Paul Eggert <eggert@twinsun.com> |
6731 | ||
6732 | * lib/bitset_stats.c (bitset_stats_read, bitset_stats_write): | |
6733 | Check for close failures. | |
6734 | * src/files.h (xfclose): Return void, not int, since it always | |
6735 | returned zero. | |
6736 | * src/files.c (xfclose): Likewise. Report I/O error if ferror | |
6737 | indicates one. | |
6738 | * src/output.c (output_skeleton): Use xfclose rather than fclose | |
6739 | and ferror. xfclose now checks ferror. | |
6740 | ||
6741 | * data/glr.c (YYLEFTMOST_STATE): Remove. | |
6742 | (yyreportTree): Use a stack-based leftmost state. This avoids | |
6743 | our continuing battles with bogus warnings about initializers. | |
6744 | ||
56100c60 AD |
6745 | 2002-10-30 Akim Demaille <akim@epita.fr> |
6746 | ||
6747 | * src/system.h: Don't use #ifdef/#ifndef on HAVE_ values, only | |
6748 | #if. | |
6749 | ||
51b4a04c PH |
6750 | 2002-10-29 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
6751 | ||
6752 | * tests/glr-regr1.at: New test for reported regressions. | |
6753 | * tests/testsuite.at: Add glr-regr1.at test. | |
6754 | * tests/Makefile.am: Add glr-regr1.at test. | |
e183b123 | 6755 | |
bf1ebda2 PE |
6756 | 2002-10-24 Paul Eggert <eggert@twinsun.com> |
6757 | ||
5c16c6b1 PE |
6758 | Version 1.75a. |
6759 | ||
bf1ebda2 PE |
6760 | * tests/calc.at (_AT_DATA_CALC_Y): Remove unused strcat declaration. |
6761 | * tests/cxx-type.at (_AT_TEST_GLR_CALC): Include stdlib.h, since | |
6762 | we use malloc. Don't assume 'A' through 'Z' are contiguous. | |
6763 | Don't assume strdup exists; POSIX says its an XSI extension. | |
6764 | Check for buffer overflow on input. | |
6765 | ||
b526ee61 AD |
6766 | 2002-10-24 Akim Demaille <akim@epita.fr> |
6767 | ||
6768 | * src/output.c (output_skeleton): Don't disable M4sugar comments | |
6769 | too soon: it results in comments being expanded. | |
6770 | * data/yacc.c, data/glr.c, data/lalr1.cc: Do it right before the | |
6771 | first output. | |
6772 | ||
f1886bb2 AD |
6773 | 2002-10-24 Akim Demaille <akim@epita.fr> |
6774 | ||
6775 | * data/yacc.c (m4_int_type): New. | |
6776 | * data/c.m4 (m4_int_type): Don't use yysigned_char, but `signed | |
6777 | char' as only yacc.c wants K&R portability. | |
6778 | * data/glr.c (yysigned_char): Remove. | |
6779 | * data/lalr1.cc: Rename the trailing b4_name as b4_parser_class_name. | |
6780 | Reported by Quoc Peyrot. | |
6781 | ||
c5576256 PE |
6782 | 2002-10-23 Paul Eggert <eggert@twinsun.com> |
6783 | ||
6784 | * src/main.c (main): With --trace=time, report times even if a | |
6785 | non-fatal error occurs. Formerly, the times were reported in some | |
6786 | such cases but not in others. | |
6787 | * src/reader.c (reader): Just return if a complaint has been issued, | |
6788 | instead of exiting, so that 'main' can report times. | |
6789 | ||
27b0ffea AD |
6790 | 2002-10-22 Akim Demaille <akim@epita.fr> |
6791 | ||
6792 | * src/system.h: Include sys/types. | |
6793 | Reported by Bert Deknuydt. | |
6794 | ||
223a7883 PE |
6795 | 2002-10-23 Paul Eggert <eggert@twinsun.com> |
6796 | ||
6797 | * configure.ac (AC_PROG_LEX): Use instead of AM_PROG_LEX. | |
6798 | Suggested by Art Haas. | |
6799 | ||
6800 | 2002-10-22 Paul Eggert <eggert@twinsun.com> | |
6801 | ||
6802 | * src/complain.c (exit) [! (STDC_HEADERS || _LIBC)]: Remove exit | |
6803 | decl; not needed any more. | |
6804 | * src/main.c (main): Use return to exit, undoing yesterday's change. | |
6805 | The last OS that we could find where this wouldn't work is | |
6806 | SunOS 3.5, and that's too old to worry about now. | |
6807 | ||
6808 | * data/glr.c (struct yyltype): Define members even when not | |
6809 | doing locations. This is more consistent with yacc.c, and it | |
6810 | works around the following bug reports: | |
161a71f3 PE |
6811 | http://lists.gnu.org/archive/html/bug-bison/2002-10/msg00106.html |
6812 | http://lists.gnu.org/archive/html/bug-bison/2002-10/msg00111.html | |
27b0ffea | 6813 | |
223a7883 PE |
6814 | * doc/bison.texinfo: Minor spelling and typographical fixes. Use |
6815 | @acronym consistently. Standardize on "Yacc" instead of "YACC", | |
6816 | "Algol" instead of "ALGOL". Give a bit more history about BNF. | |
6817 | ||
8b76775a AD |
6818 | 2002-10-22 Akim Demaille <akim@epita.fr> |
6819 | ||
6820 | * data/README: New. | |
6821 | ||
6db10d14 PE |
6822 | 2002-10-21 Paul Eggert <eggert@twinsun.com> |
6823 | ||
6824 | Be consistent about 'bool'; the old code used an enum in one | |
6825 | module and an int in another, and this violates the C standard. | |
6826 | * m4/stdbool.m4: New file, from coreutils 4.5.3. | |
6827 | * configure.ac (AC_HEADER_STDBOOL): Add. | |
6828 | * m4/Makefile.am (EXTRA_DIST): Add stdbool.m4. | |
6829 | * src/muscle_tab.c (hash_compare_muscles): (a ? FALSE : TRUE) -> (! a) | |
6830 | * src/symtab.c (hash_compare_symbol_t): Likewise. | |
6831 | * src/system.h (bool, false, true): Use a definition consistent | |
6832 | with ../lib/hash.c. All uses changed. | |
6833 | ||
6834 | * src/complain.c (warning_issued): Renamed from warn_message_count, | |
6835 | so that we needn't worry about integer overflow (!). | |
6836 | Now of type bool. All uses changed. | |
6837 | (complaint_issued): Renamed from complain_message_count; likewise. | |
6838 | ||
6839 | * src/main.c (main): Use exit to exit with failure. | |
27b0ffea | 6840 | |
6db10d14 PE |
6841 | * src/complain.c (fatal_at, fatal): Use EXIT_FAILURE and EXIT_SUCCESS |
6842 | rather than 1 and 0. | |
6843 | * src/main.c (main): Likewise. | |
6844 | * src/getargs.c (getargs): Likewise. | |
6845 | * src/reader.c (reader): Likewise. | |
6846 | ||
6847 | * src/getarg.c (getargs): Remove duplicate code for | |
6848 | "Try `bison --help'". | |
6849 | ||
6850 | * src/files.c (xfopen, xfclose): Use EXIT_FAILURE rather than 2. | |
6851 | What was that "2" for? | |
6852 | ||
6853 | * src/complain.h (fatal, fatal_at): Add __attribute__((__noreturn__)). | |
6854 | * src/getargs.c (usage): Likewise. | |
6855 | ||
6856 | * src/getargs.c (getargs): When there are too few operands, report | |
6857 | the last one. When there are too many, report the first extra | |
6858 | one. This is how diffutils does it. | |
6859 | ||
92a060fd PE |
6860 | 2002-10-20 Paul Eggert <eggert@twinsun.com> |
6861 | ||
6862 | Remove K&R vestiges. | |
6863 | * configure.ac (AC_C_CONST, AM_C_PROTOTYPES): Remove. | |
6864 | * src/complain.c (VA_START): Remove. Assume prototypes. | |
6865 | (vfprintf) [! (HAVE_VPRINTF || defined vfprintf)]: New macro. | |
6866 | (private_strerror, warn_at, warn, complain_at, complain, fatal_at, | |
6867 | fatal): Assume prototypes. | |
6868 | * src/complain.h: Assume prototypes. | |
6869 | * src/system.h (PARAMS): Remove. | |
6870 | Include <limits.h> unconditionally, since it's guaranteeed even | |
6871 | for a freestanding C89 compiler. | |
6872 | (SHRT_MIN, SHRT_MAX): Remove, since C89 guarantees them. | |
6873 | * src/vmsgetargs.c (getargs, cli_present, cli_get_value): Prototype. | |
8b76775a | 6874 | |
e7cb57c0 AD |
6875 | 2002-10-20 Akim Demaille <akim@epita.fr> |
6876 | ||
6877 | * src/muscle_tab.c (muscle_grow): Remove trailing debugging code. | |
6878 | * data/glr.c (YY_USER_FORMALS, YY_USER_ARGS): New. | |
6879 | (yyuserAction, yydoAction, yyglrReduce, yyresolveValue) | |
6880 | (yyresolveStates, yyresolveAction, yyresolveStack) | |
6881 | (yyprocessOneStack): Use them. | |
6882 | (yy_reduce_print): New. | |
6883 | * tests/calc.at (_AT_DATA_CALC_Y): Exercise %parse-param. | |
6884 | ||
0245f82d AD |
6885 | 2002-10-20 Akim Demaille <akim@epita.fr> |
6886 | ||
6887 | * data/c.m4 (b4_c_ansi_args): Recognize functions with no | |
6888 | arguments and output `void'. | |
6889 | (b4_c_function): Rename as... | |
6890 | (b4_c_function_def): this. | |
6891 | (b4_c_function_decl, b4_c_ansi_function_def) | |
6892 | (b4_c_ansi_function_decl): New. | |
6893 | Change the interpretation of the arguments: before `int, foo', now | |
6894 | `int foo, foo'. | |
6895 | * data/yacc.c (yyparse): Prototype and define thanks to these. | |
6896 | Adjust b4_c_function_def uses. | |
6897 | * data/glr.c (yyparse): Likewise, but ANSI only. | |
6898 | ||
39912f52 AD |
6899 | 2002-10-20 Akim Demaille <akim@epita.fr> |
6900 | ||
6901 | * src/output.c (prepare): Move the definition of `tokens_number', | |
6902 | `nterms_number', `undef_token_number', `user_token_number_max' | |
6903 | to... | |
6904 | (prepare_tokens): Here. | |
6905 | (prepare_tokens): Rename as... | |
6906 | (prepare_symbols): this. | |
6907 | (prepare): Move the definition of `rules_number' to... | |
6908 | (prepare_rules): here. | |
6909 | (prepare): Move the definition of `last', `final_state_number', | |
6910 | `states_number' to... | |
6911 | (prepare_states): here. | |
6912 | * data/yacc.c, data/lalr1.cc, data/glr.c: Normalize `>' into `<'. | |
6913 | ||
20c1e2ad AD |
6914 | 2002-10-20 Akim Demaille <akim@epita.fr> |
6915 | ||
6916 | * src/tables.h, src/tables.c, src/output.c: Comment changes. | |
6917 | ||
21964f43 AD |
6918 | 2002-10-20 Akim Demaille <akim@epita.fr> |
6919 | ||
6920 | * data/yacc.c, data/yacc.c (b4_location_if, b4_pure_if): Move to... | |
6921 | * data/c.m4: here. | |
6922 | ||
66d30cd4 AD |
6923 | 2002-10-20 Akim Demaille <akim@epita.fr> |
6924 | ||
6925 | * src/output.c (prepare): Use MUSCLE_INSERT_STRING. | |
6926 | * src/muscle_tab.c (muscle_pair_list_grow): Rename `val as | |
6927 | `pair'. | |
6928 | (muscle_init): Move the `b4_ltype', `b4_maxdepth', `b4_initdepth', | |
6929 | `name' to... | |
6930 | * data/glr.c, data/lalr1.cc, data/yacc.c (b4_location_type) | |
6931 | (b4_stack_depth_init, b4_stack_depth_max, b4_parser_class_name): | |
6932 | These. | |
6933 | ||
95f2c9fe PE |
6934 | 2002-10-19 Paul Eggert <eggert@twinsun.com> |
6935 | ||
6936 | Do not create a temporary file, as that involves security and | |
6937 | cleanup headaches. Instead, use a pair of pipes. | |
6938 | Derived from a suggestion by Florian Krohm. | |
6939 | * lib/subpipe.c, lib/subpipe.h, m4/subpipe.m4: New files. | |
6940 | * lib/mkstemp.c, lib/readpipe.c, lib/tempname.c, m4/mkstemp.m4: Remove. | |
6941 | * configure.ac (UTILS_FUNC_MKSTEMP, jm_PREREQ_TEMPNAME): Remove. | |
6942 | (BISON_PREREQ_SUBPIPE): Add. | |
6943 | * lib/Makefile.am (libbison_a_SOURCES): Remove readpipe.c. | |
6944 | Add subpipe.h, subpipe.c. | |
6945 | * m4/Makefile.am (EXTRA_DIST): Remove mkstemp.m4. Add subpipe.m4. | |
6946 | * po/POTFILES.in: Add lib/subpipe.c. | |
6947 | * src/output.c: Include "subpipe.h". | |
6948 | (m4_invoke): Remove decl. | |
6949 | (scan_skel): New decl. | |
6950 | (output_skeleton): Use pipe rather than temporary file for m4 input. | |
6951 | Check that m4sugar.m4 is readable, to avoid deadlock. | |
6952 | Check for pipe I/O error. | |
6953 | * src/scan-skel.l (readpipe): Remove decl. | |
6954 | (scan_skel): New function, to be used in place of m4_invoke. | |
6955 | Read from stream rather than file. | |
66d30cd4 | 6956 | |
95f2c9fe PE |
6957 | * lib/timevar.c (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Do not cast to |
6958 | float, as this generates a warning on Solaris 8 + GCC 3.2 with | |
6959 | --enable-gcc-warnings. Instead, divide into 1.0 rather than 1; | |
6960 | this generates a more-accurate value anyway. | |
6961 | ||
6962 | * lib/timevar.c (timervar_accumulate): Rename locals to | |
6963 | avoid confusion with similarly-named more-global. | |
6964 | * src/muscle_tab.c (muscle_pair_list_grow): Likewise. | |
6965 | ||
6966 | * src/output.c (prepare): Use xstrdup to convert char const * | |
6967 | to char *, to avoid GCC warning. | |
6968 | ||
c19988b7 AD |
6969 | 2002-10-19 Akim Demaille <akim@epita.fr> |
6970 | ||
6971 | * tests/calc.at (_AT_DATA_CALC_Y): Define VAL, LOC, LEX_FORMALS, | |
6972 | LEX_PRE_FORMALS, LEX_ARGS, LEX_PRE_ARGS, USE_LEX_ARGS. | |
6973 | Use them to have `calc.y' ready for %pure-parser. | |
6974 | * data/yacc.c (YYLEX): Pass a yylex return type to | |
6975 | b4_c_function_call. | |
6976 | ||
ae7453f2 AD |
6977 | 2002-10-19 Akim Demaille <akim@epita.fr> |
6978 | ||
6979 | Prototype support of %lex-param and %parse-param. | |
6980 | ||
6981 | * src/parse-gram.y: Add the definition of the %lex-param and | |
6982 | %parse-param tokens, plus their rules. | |
6983 | Drop the `_' version of %glr-parser. | |
6984 | Add the "," token. | |
6985 | * src/scan-gram.l (INITIAL): Scan them. | |
6986 | * src/muscle_tab.c: Comment changes. | |
6987 | (muscle_insert, muscle_find): Rename `pair' as `probe'. | |
6988 | * src/muscle_tab.h (MUSCLE_INSERT_PREFIX): Remove unused. | |
6989 | (muscle_entry_s): The `value' member is no longer const. | |
6990 | Adjust all dependencies. | |
6991 | * src/muscle_tab.c (muscle_init): Adjust: use | |
6992 | MUSCLE_INSERT_STRING. | |
6993 | Initialize the obstack earlier. | |
6994 | * src/muscle_tab.h, src/muscle_tab.c (muscle_grow) | |
6995 | (muscle_pair_list_grow): New. | |
6996 | * data/c.m4 (b4_c_function_call, b4_c_args): New. | |
6997 | * data/yacc.c (YYLEX): Use b4_c_function_call to honor %lex-param. | |
6998 | * tests/calc.at: Use %locations, not --locations. | |
6999 | (AT_CHECK_CALC_GLR): Use %glr-parser, not %glr_parser. | |
7000 | ||
0e575721 AD |
7001 | 2002-10-19 Akim Demaille <akim@epita.fr> |
7002 | ||
7003 | * src/getargs.c (usage): Take status as argument and exit | |
7004 | accordingly. | |
7005 | Report the traditional `Try ... --help' message when status != 0. | |
7006 | (usage, version): Don't take a FILE * as arg, it is pointless. | |
7007 | (getargs): When there is an incorrect number of arguments, make it | |
7008 | an error, and report it GNUlically thanks to `usage ()'. | |
7009 | ||
724ce7f5 PE |
7010 | 2002-10-18 Paul Eggert <eggert@twinsun.com> |
7011 | ||
3a781eb2 PE |
7012 | * data/glr.c (yyreportParseError): Don't assume that sprintf |
7013 | yields the length of the printed string, as this is not true | |
7014 | on SunOS 4.1.4. Reported by Peter Klein. | |
7015 | ||
724ce7f5 PE |
7016 | * tests/calc.at (_AT_DATA_CALC_Y): #undef memcmp and realloc. |
7017 | * tests/conflicts.at (%nonassoc and eof): Likewise. | |
7018 | Fixes SunOS 4.1.4 test failure reported by Peter Klein. | |
7019 | ||
473d0a75 AD |
7020 | 2002-10-17 Akim Demaille <akim@epita.fr> |
7021 | ||
7022 | * src/getargs.h (trace_e): Add trace_scan, and trace_parse. | |
7023 | * src/getargs.c (trace_types, trace_args): Adjust. | |
7024 | * src/reader.c (grammar_current_rule_prec_set) | |
7025 | (grammar_current_rule_dprec_set, grammar_current_rule_merge_set): | |
7026 | Standardize error messages. | |
7027 | And s/@prec/%prec/! | |
7028 | (reader): Use trace_flag to enable scanner/parser debugging, | |
7029 | instead of an adhoc scheme. | |
7030 | * src/scan-gram.l: Remove trailing debugging code. | |
7031 | ||
e76d2469 PE |
7032 | 2002-10-16 Paul Eggert <eggert@twinsun.com> |
7033 | ||
93e2236a PE |
7034 | * src/muscle_tab.h (MUSCLE_TAB_H_): Was misspelled as |
7035 | MUSCLE_TAB_H. | |
7036 | ||
e76d2469 PE |
7037 | * NEWS: Officially drop support for building Bison with K&R C, |
7038 | since it didn't work anyway and it's not worth worrying about. | |
7039 | * Makefile.maint (wget_files): Remove ansi2knr.c. | |
7040 | (ansi2knr.c-url_prefix): Remove. | |
7041 | * lib/.cvsignore: Remove ansi2knr, ansi2knr.*. | |
7042 | * lib/Makefile.am (AUTOMAKE_OPTIONS): Remove. | |
7043 | * src/Makefile.am (AUTOMAKE_OPTIONS): Remove. | |
7044 | ||
5bd1c419 PE |
7045 | 2002-10-15 Paul Eggert <eggert@twinsun.com> |
7046 | ||
7047 | Stop using the "enum_" trick for K&R-style function definitions; | |
7048 | it confused me, and I was the author! Instead, assume that people | |
7049 | who want to use K&R C compilers (when using these modules in GCC, | |
7050 | perhaps?) will run ansi2knr. | |
7051 | ||
7052 | * lib/bbitset.h: (enum_bitset_ops, enum_bitset_type): Remove. | |
7053 | All uses of "enum_" changed to "enum ". | |
7054 | * lib/ebitset.c (enum_ebitset_find_mode): Likewise. | |
7055 | * lib/lbitset.c (enum_lbitset_find_mode): Likewise. | |
e76d2469 | 7056 | |
5bd1c419 PE |
7057 | * lib/abitset.c (abitset_and, abitset_and_cmp, abitset_and_or, |
7058 | abitset_and_or_cmp, abitset_andn, abitset_andn_cmp, | |
7059 | abitset_andn_or, abitset_andn_or_cmp, abitset_bytes, abitset_copy, | |
7060 | abitset_copy1, abitset_disjoint_p, abitset_empty_p, | |
7061 | abitset_equal_p, abitset_init, abitset_list, abitset_list_reverse, | |
7062 | abitset_not, abitset_ones, abitset_or, abitset_or_and, | |
7063 | abitset_or_and_cmp, abitset_or_cmp, abitset_reset, abitset_set, | |
7064 | abitset_size, abitset_small_list, abitset_subset_p, abitset_test, | |
7065 | abitset_unused_clear, abitset_xor, abitset_xor_cmp, abitset_zero): | |
7066 | Use function prototypes; this removes the need for declaring | |
7067 | static functions simply to provide their prototypes. | |
7068 | * lib/bitset.c (bitset_alloc, bitset_and_or_, bitset_and_or_cmp_, | |
7069 | bitset_andn_or_, bitset_andn_or_cmp_, bitset_bytes, bitset_copy_, | |
7070 | bitset_count_, bitset_create, bitset_dump, bitset_first, | |
7071 | bitset_free, bitset_init, bitset_last, bitset_next, | |
7072 | bitset_obstack_alloc, bitset_obstack_free, bitset_only_set_p, | |
7073 | bitset_op4_cmp, bitset_or_and_, bitset_or_and_cmp_, bitset_prev, | |
7074 | bitset_print, bitset_release_memory, bitset_toggle_, | |
7075 | bitset_type_choose, bitset_type_get, bitset_type_name_get, | |
7076 | debug_bitset): Likewise. | |
7077 | * lib/bitset.h (bitset_set, bitset_reset, bitset_test): Likewise. | |
7078 | * lib/bitset_stats.c (bitset_log_histogram_print, | |
7079 | bitset_percent_histogram_print, bitset_stats_and, | |
7080 | bitset_stats_and_cmp, bitset_stats_and_or, | |
7081 | bitset_stats_and_or_cmp, bitset_stats_andn, bitset_stats_andn_cmp, | |
7082 | bitset_stats_andn_or, bitset_stats_andn_or_cmp, bitset_stats_copy, | |
7083 | bitset_stats_count, bitset_stats_disable, bitset_stats_disjoint_p, | |
7084 | bitset_stats_dump, bitset_stats_empty_p, bitset_stats_enable, | |
7085 | bitset_stats_equal_p, bitset_stats_free, bitset_stats_init, | |
7086 | bitset_stats_list, bitset_stats_list_reverse, bitset_stats_not, | |
7087 | bitset_stats_ones, bitset_stats_or, bitset_stats_or_and, | |
7088 | bitset_stats_or_and_cmp, bitset_stats_or_cmp, bitset_stats_print, | |
7089 | bitset_stats_print_1, bitset_stats_read, bitset_stats_reset, | |
7090 | bitset_stats_set, bitset_stats_size, bitset_stats_subset_p, | |
7091 | bitset_stats_test, bitset_stats_toggle, bitset_stats_type_get, | |
7092 | bitset_stats_write, bitset_stats_xor, bitset_stats_xor_cmp, | |
7093 | bitset_stats_zero): Likewise. | |
7094 | * lib/bitsetv.c (bitsetv_alloc, bitsetv_create, bitsetv_free, | |
7095 | bitsetv_zero, bitsetv_ones, bitsetv_transitive_closure, | |
7096 | bitsetv_dump, debug_bitsetv): Likewise. | |
7097 | * lib/ebitset.c (ebitset_and, ebitset_and_cmp, ebitset_andn, | |
7098 | ebitset_andn_cmp, ebitset_bytes, ebitset_copy, ebitset_copy_, | |
7099 | ebitset_copy_cmp, ebitset_disjoint_p, ebitset_elt_add, | |
7100 | ebitset_elt_alloc, ebitset_elt_calloc, ebitset_elt_find, | |
7101 | ebitset_elt_free, ebitset_elt_last, ebitset_elt_remove, | |
7102 | ebitset_elt_zero_p, ebitset_elts_grow, ebitset_empty_p, | |
7103 | ebitset_equal_p, ebitset_free, ebitset_init, ebitset_list, | |
7104 | ebitset_list_reverse, ebitset_not, ebitset_ones, ebitset_op3_cmp, | |
7105 | ebitset_or, ebitset_or_cmp, ebitset_release_memory, ebitset_reset, | |
7106 | ebitset_set, ebitset_size, ebitset_subset_p, ebitset_test, | |
7107 | ebitset_weed, ebitset_xor, ebitset_xor_cmp, ebitset_zero): | |
7108 | Likewise. | |
7109 | * lib/lbitset.c (debug_lbitset, lbitset_and, lbitset_and_cmp, | |
7110 | lbitset_andn, lbitset_andn_cmp, lbitset_bytes, lbitset_copy, | |
7111 | lbitset_copy_cmp, lbitset_disjoint_p, lbitset_elt_alloc, | |
7112 | lbitset_elt_calloc, lbitset_elt_find, lbitset_elt_free, | |
7113 | lbitset_elt_link, lbitset_elt_unlink, lbitset_elt_zero_p, | |
7114 | lbitset_empty_p, lbitset_equal_p, lbitset_free, lbitset_init, | |
7115 | lbitset_list, lbitset_list_reverse, lbitset_not, lbitset_ones, | |
7116 | lbitset_op3_cmp, lbitset_or, lbitset_or_cmp, lbitset_prune, | |
7117 | lbitset_release_memory, lbitset_reset, lbitset_set, lbitset_size, | |
7118 | lbitset_subset_p, lbitset_test, lbitset_weed, lbitset_xor, | |
7119 | lbitset_xor_cmp, lbitset_zero): Likewise. | |
e76d2469 | 7120 | |
ae26e1f0 AD |
7121 | 2002-10-14 Akim Demaille <akim@epita.fr> |
7122 | ||
7123 | Version 1.75. | |
7124 | ||
d43baf71 AD |
7125 | 2002-10-14 Akim Demaille <akim@epita.fr> |
7126 | ||
7127 | * tests/Makefile.am (maintainer-check-posix): New. | |
7128 | ||
7ebc83e3 AD |
7129 | 2002-10-14 Akim Demaille <akim@epita.fr> |
7130 | ||
7131 | * data/glr.c [YYDEBUG] (YYLEFTMOST_STATE): Initialize the yyloc | |
7132 | member. | |
7133 | ||
05846dae AD |
7134 | 2002-10-14 Akim Demaille <akim@epita.fr> |
7135 | ||
7136 | * src/tables.c (table_ninf_remap): base -> tab. | |
7137 | Reported by Matt Rosing. | |
7138 | ||
1318e37d PE |
7139 | 2002-10-14 Paul Eggert <eggert@twinsun.com> |
7140 | ||
447fbb17 PE |
7141 | * tests/action.at, tests/calc.at, tests/conflicts.at, |
7142 | tests/cxx-type.at, tests/headers.at, tests/input.at, | |
7143 | tests/regression.at, tests/synclines.at, tests/torture.at: | |
7144 | Say "bison -o foo.c foo.y", not "bison foo.y -o foo.c", | |
7145 | so that the tests still work even if POSIXLY_CORRECT is set. | |
7146 | * doc/bison.texinfo (Rpcalc Compile, Invocation): Likewise. | |
05846dae | 7147 | |
1318e37d PE |
7148 | * data/c.m4 (b4_int_type): Use yysigned_char instead of signed char, |
7149 | for portability to K&R hosts. Fix typo: signed char is guaranteed | |
7150 | only to 127, not to 128. | |
7151 | * data/glr.c (yysigned_char): New type. | |
7152 | * data/yacc.c (yysigned_char): Likewise. | |
7153 | * tests/regression.at (Web2c Actions): signed char -> yysigned_char. | |
7154 | ||
cc0f0794 PE |
7155 | 2002-10-13 Paul Eggert <eggert@twinsun.com> |
7156 | ||
5038f418 PE |
7157 | * data/yacc.c (yyparse): Rewrite to avoid "comparison is always |
7158 | true due to limited range of data type" warning from GCC. | |
7159 | ||
cc0f0794 PE |
7160 | * data/c.m4 (b4_token_defines): Protect against double-inclusion |
7161 | by wrapping enum yytokentype's definition inside #ifndef | |
7162 | YYTOKENTYPE. This undoes a bug I introduced on 2002-10-12. | |
7163 | ||
6fed0802 AD |
7164 | 2002-10-13 Akim Demaille <akim@epita.fr> |
7165 | ||
7166 | * data/glr.c (yyglrShiftDefer, yyaddDeferredAction, yydoAction): | |
7167 | Un yy- yyrhs to avoid the name clash with the global YYRHS. | |
7168 | ||
32f0598d AD |
7169 | 2002-10-13 Akim Demaille <akim@epita.fr> |
7170 | ||
7171 | * Makefile.maint: Update from Autoconf 2.54. | |
7172 | * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Remove, shipped with 2.54. | |
7173 | ||
7ea9a33f AD |
7174 | 2002-10-13 Akim Demaille <akim@epita.fr> |
7175 | ||
7176 | * src/print.c (print_state): Separate the list of solved conflicts | |
7177 | from the other items. | |
7178 | * tests/conflicts.at (Resolved SR Conflicts): Adjust. | |
7179 | ||
ea99527d AD |
7180 | 2002-10-13 Akim Demaille <akim@epita.fr> |
7181 | ||
7182 | Let nondeterministic skeletons be usable with deterministic | |
7183 | tables. | |
7184 | ||
7185 | With the patch, GAWK compiled by GCC without -O2 passes its test | |
7186 | suite using a GLR parser driven by LALR tables. It fails with -O2 | |
7187 | because `struct stat' gives two different answers on my machine: | |
7188 | 88 (definition of an auto var) and later 96 (memset on this var). | |
7189 | Hence the stack is badly corrumpted. The headers inclusion is to | |
7190 | blame: if I move the awk.h inclusion before GLR's system header | |
7191 | inclusion, the two struct stat have the same size. | |
7192 | ||
7193 | * src/tables.c (pack_table): Always create conflict_table. | |
7194 | (token_actions): Always create conflict_list. | |
7195 | * data/glr.c (YYFLAG): Remove, unused. | |
7196 | ||
f377f69f AD |
7197 | 2002-10-13 Akim Demaille <akim@epita.fr> |
7198 | ||
7199 | * configure.ac (AC_GNU_SOURCE): Use it instead of hand written code. | |
7200 | (O0FLAGS): New. | |
7201 | (VALGRIND, GXX): New. | |
7202 | * tests/atlocal.in (CFLAGS): Use O0FLAGS. | |
7203 | * tests/bison.in: Run $PREBISON a pre-command. | |
7204 | * tests/Makefile.am (maintainer-check, maintainer-check-valgrind) | |
7205 | (maintainer-check-g++): New. | |
7206 | * Makefile.am (maintainer-check): New. | |
7207 | ||
2a1fe6ed AD |
7208 | 2002-10-13 Akim Demaille <akim@epita.fr> |
7209 | ||
7210 | * data/glr.c: Formatting changes. | |
7211 | Tweak some trace messages to match yacc.c's. | |
7212 | ||
f50adbbd AD |
7213 | 2002-10-13 Akim Demaille <akim@epita.fr> |
7214 | ||
7215 | GLR parsers sometimes raise parse errors instead of performing the | |
7216 | default reduction. | |
7217 | Reported by Charles-Henry de Boysson. | |
7218 | ||
7219 | * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Don't | |
ba0fe3c7 | 7220 | check the length of the traces when %glr. |
f50adbbd AD |
7221 | (_AT_CHECK_CALC_ERROR): Also skip `^Stack' lines, coming from |
7222 | GLR's traces. | |
7223 | (AT_CHECK_CALC_LALR, AT_CHECK_CALC_GLR): New. | |
7224 | Test GLR parsers. | |
7225 | * data/glr.c (YYLEFTMOST_STATE): Fix its value. | |
7226 | (yyltype): Remove the yy prefix from the member names. | |
7227 | (yytable): Complete its comment. | |
7228 | (yygetLRActions): Map error action number from YYTABLE from | |
7229 | YYTABLE_NINF to 0. | |
7230 | (yyisErrorAction): No longer compare YYACTION to YYPACT_NINF | |
7231 | (which was a bug: it should have been YYTABEL_NINF, and yet it was | |
7232 | not satisfying as we could compare an YYACTION computed from | |
7233 | YYDEFACT to YYTABLE_NINF although they are unrelated): 0 is the | |
7234 | only value for error actions. | |
7235 | (yyreportParseError): In verbose parse error messages, don't issue | |
7236 | `error' in the list of expected tokens. | |
7237 | * data/yacc.c (yyparse) <yybackup>: Rewrite the decoding of the | |
7238 | next action to perform to match glr.c's decoding. | |
7239 | (yytable): Complete its comment. | |
7240 | ||
bcbad5b9 PE |
7241 | 2002-10-13 Paul Eggert <eggert@twinsun.com> |
7242 | ||
7243 | Fix problem reported by Henrik Grubbstroem in | |
161a71f3 | 7244 | <http://lists.gnu.org/archive/html/bug-bison/2002-10/msg00098.html>: |
bcbad5b9 PE |
7245 | "nonterm: { $$ = 123; } { $$ = $1; };" was wrongly rejected, |
7246 | because the Bison parser reads the second action before reducing | |
7247 | the first one. | |
7248 | * src/scan-gram.l (rule_length): New static var. | |
7249 | Use it to keep track of the rule length in the scanner, since | |
7250 | we can't expect the parser to be in lock-step sync with the scanner. | |
7251 | (handle_action_dollar, handle_action_at): Use this var. | |
7252 | * tests/actions.at (Exotic Dollars): Test for the problem. | |
05846dae | 7253 | |
14904b89 PE |
7254 | 2002-10-12 Paul Eggert <eggert@twinsun.com> |
7255 | ||
1fe611e5 PE |
7256 | * lib/timevar.c [! IN_GCC && HAVE_SYS_TIME_H]: Include <sys/time.h>. |
7257 | * m4/timevar.m4 (BISON_PREREQ_TIMEVAR): Check for <sys/time.h>. | |
7258 | Include <sys/time.h> when checking for clock_t and struct tms. | |
7259 | Use same include order as source. | |
7260 | This is for the SunOS 4.1.4 porting bug reported by Peter Klein in | |
161a71f3 | 7261 | <http://lists.gnu.org/archive/html/bug-bison/2002-10/msg00016.html>. |
05846dae | 7262 | |
1fe611e5 PE |
7263 | * lib/timevar.c: Update copyright date and clarify comments. |
7264 | (get_time) [IN_GCC]: Keep the GCC version for reference. | |
05846dae | 7265 | |
1fe611e5 PE |
7266 | * lib/timevar.c, lib/timevar.h, lib/timevar.def: Import |
7267 | GCC version as of today, then merge Bison's changes. | |
7268 | Change "GCC" to "Bison" in copyright notice. timevar.def's | |
7269 | author is Akim, so change that too. | |
7270 | ||
98194095 PE |
7271 | * src/reader.c (grammar_current_rule_check): |
7272 | Don't worry about the default action if $$ is untyped. | |
7273 | Prevents bogus warnings reported by Jim Gifford in | |
161a71f3 | 7274 | <http://lists.gnu.org/archive/html/bug-bison/2002-10/msg00015.html>. |
98194095 | 7275 | |
14904b89 PE |
7276 | * data/c.m4 (b4_token_enum): Do not define YYTOKENTYPE. |
7277 | * data/glr.c, data/lalr1.cc, data/yacc.c: | |
7278 | Output token definitions before the first part of user declarations. | |
7279 | Fixes compatibility problem reported by Jim Gifford for kbd in | |
161a71f3 | 7280 | <http://lists.gnu.org/archive/html/bug-bison/2002-10/msg00014.html>. |
14904b89 | 7281 | |
ff6dca18 PE |
7282 | 2002-10-11 Paul Eggert <eggert@twinsun.com> |
7283 | ||
7284 | * data/yacc.c (yyreport_parse_error): Remove, putting its body into... | |
7285 | (yyparse): here. This undoes some of the 2002-07-25 change. | |
7286 | Compatibility problem reported by Ralf S. Engelschall with | |
7287 | OSSP cfg <http://www.ossp.org/pkg/lib/cfg/>. | |
7288 | ||
eb714592 AD |
7289 | 2002-10-11 Akim Demaille <akim@epita.fr> |
7290 | ||
7291 | * tests/regression.at Characters Escapes): New. | |
7292 | * src/scan-gram.l (SC_ESCAPED_CHARACTER): Accept \' in strings and | |
7293 | characters. | |
7294 | Reported by Jan Nieuwenhuizen. | |
7295 | ||
b7195100 AD |
7296 | 2002-10-11 Akim Demaille <akim@epita.fr> |
7297 | ||
7298 | * po/id.po: New. | |
7299 | ||
f28a0f2d PE |
7300 | 2002-10-10 Paul Eggert <eggert@twinsun.com> |
7301 | ||
7302 | Portability fixes for bitsets; this also avoids several GCC | |
7303 | warnings. | |
7304 | ||
7305 | * lib/abitset.c: Include <stddef.h>, for offsetof. | |
7306 | * lib/lbitset.c: Likewise. | |
7307 | ||
7308 | * lib/abitset.c (abitset_bytes): Return a size that is aligned | |
7309 | properly for vectors of objects. Do not assume that adding a | |
7310 | header size to a multiple of a word size yields a value that is | |
7311 | properly aligned for the whole union. | |
7312 | * lib/bitsetv.c (bitsetv_alloc): Likewise. | |
7313 | ||
7314 | * lib/bitset_stats.c (bitset_stats_bytes): Adjust to new, | |
7315 | unique names for structures. | |
7316 | * lib/ebitset.c (ebitset_bytes): Likewise. | |
7317 | * lib/lbitset.c (lbitset_bytes): Likewise. | |
7318 | ||
7319 | * lib/abitset.c (abitset_ones, abitset_zero, abitset_empty_p, | |
7320 | abitset_copy1, abitset_not, abitset_equal_p, abitset_subset_p, | |
7321 | abitset_disjoint_p, abitset_and, abitset_and_cmp, abitset_andn, | |
7322 | abitset_andn_cmp, abitset_or, abitset_or_cmp, abitset_xor, | |
7323 | abitset_xor_cmp, abitset_and_or, abitset_and_or_cmp, | |
7324 | abitset_andn_or, abitset_andn_or_cmp, abitset_or_and, | |
7325 | abitset_or_and_cmp, abitset_copy): Supply prototype decls, | |
7326 | to improve the type-checking that GCC can do. | |
7327 | * lib/bitset.c (bitset_op4_cmp): Likewise. | |
7328 | * lib/bitset_stats.c (bitset_stats_count, | |
7329 | bitset_stats_empty_p, bitset_stats_ones, bitset_stats_zero, | |
7330 | bitset_stats_copy, bitset_stats_disjoint_p, | |
7331 | bitset_stats_equal_p, bitset_stats_not, bitset_stats_subset_p, | |
7332 | bitset_stats_and, bitset_stats_and_cmp, bitset_stats_andn, | |
7333 | bitset_stats_andn_cmp, bitset_stats_or, bitset_stats_or_cmp, | |
7334 | bitset_stats_xor, bitset_stats_xor_cmp, bitset_stats_and_or, | |
7335 | bitset_stats_and_or_cmp, bitset_stats_andn_or, | |
7336 | bitset_stats_andn_or_cmp, bitset_stats_or_and, | |
7337 | bitset_stats_or_and_cmp): Likewise. | |
7338 | * lib/lbitset.c (lbitset_and, lbitset_and_cmp, lbitset_andn, | |
7339 | lbitset_andn_cmp, lbitset_or, lbitset_or_cmp, lbitset_xor, | |
7340 | lbitset_xor_cmp, lbitset_empty_p, lbitset_ones, lbitset_not, | |
7341 | lbitset_subset_p, lbitset_disjoint_p, debug_lbitset): Likewise. | |
7342 | ||
7343 | * lib/abitset.h: Include bitset.h, not bbitset.h. | |
7344 | * lib/ebitset.h: Likewise. | |
7345 | * lib/lbitset.h: Likewise. | |
7346 | ||
7347 | * lib/bbitset.h: (enum_bitset_ops, enum_bitset_type): New types. | |
7348 | All instances of parameters of type enum bitset_opts are now of | |
7349 | type enum_bitset_opts, to conform to the C Standard, and similarly | |
7350 | for enum_bitset_type. | |
7351 | * lib/ebitset.c (enum_ebitset_find_mode): Likewise. | |
7352 | * lib/lbitset.c (enum_lbitset_find_mode): Likewise. | |
7353 | ||
7354 | Do not use "struct bitset_struct" to mean different things in | |
7355 | different modules. Not only is this confusing, it violates | |
7356 | the C Standard, which requires that structure types in different | |
7357 | modules must be compatible if one is to be passed to the other. | |
7358 | * lib/bbitset.h (bitset): Now points to a union, not to a struct. | |
7359 | All instances of "struct bitset_struct *" replaced with "bitset". | |
7360 | * lib/bitset.h (struct bitset_struct): Remove, replacing with.... | |
7361 | (union bitset_union, struct abitset_struct, struct ebitset_struct, | |
7362 | struct lbitset_struct, struct bitset_stats_struct): New types. | |
7363 | All uses of struct bitset_struct changed to union bitset_union, | |
7364 | etc. | |
ba0fe3c7 | 7365 | * lib/abitset.c (struct abitset_struct, abitset, |
f28a0f2d PE |
7366 | struct bitset_struct): Remove. |
7367 | * lib/bitset_stats.c (struct bitset_stats_struct, bitset_stats, | |
7368 | struct bitset_struct): Remove. | |
7369 | * lib/ebitset.c (struct ebitset_struct, ebitset, struct | |
7370 | bitset_struct): Remove. | |
7371 | * lib/lbitset.c (struct lbitset_struct, lbitset, bitset_struct): | |
7372 | Likewise. | |
7373 | ||
7374 | Do not call a function of type T using a call that assumes the | |
7375 | function is of a different type U. Standard C requires that a | |
7376 | function must be called with a type that is compatible with its | |
7377 | definition. | |
7378 | * lib/bbitset.h (bitset_and_or_, bitset_andn_or_, bitset_or_and_): | |
7379 | New decls. | |
7380 | * lib/bitset.c (bitset_and_or_, bitset_andn_or_, bitset_or_and_): | |
7381 | New functions. | |
7382 | * lib/ebitset.c (PFV): Remove. | |
7383 | * lib/lbitset.c (PFV): Likewise. | |
7384 | * lib/ebitset.c (ebitset_and, ebitset_andn, ebitset_or, | |
7385 | ebitset_xor, ebitset_copy, ebitset_ones, ebitset_empty_p): New | |
7386 | decls. | |
7387 | (ebitset_and, ebitset_andn, ebitset_or, ebitset_xor): New functions. | |
7388 | (ebitset_vtable): Use them. | |
7389 | * lib/lbitset.c (lbitset_and, lbitset_andn, lbitset_or, | |
7390 | lbitset_xor): New functions. | |
7391 | (lbitset_vtable): Use them. | |
7392 | ||
7393 | * lib/bitset.h (bitset_next, bitset_prev, bitset_only_set_p): | |
7394 | Declare. | |
7395 | ||
7396 | * lib/bitsetv.c (bitsetv_alloc): Add a cast to (void *) to avoid a | |
7397 | GCC warning. | |
7398 | * lib/lbitset.c (LBITSET_CURRENT1): Likewise. | |
7399 | Use offsetof, for simplicity. | |
7400 | ||
6fbe4984 PE |
7401 | 2002-10-06 Paul Eggert <eggert@twinsun.com> |
7402 | ||
7403 | * lib/bitset.h (bitset_reset): Do not assume that bitset_word is | |
7404 | the same width as int. This reapplies a hunk of the 2002-08-12 patch | |
161a71f3 | 7405 | <http://lists.gnu.org/archive/html/bison-patches/2002-08/msg00007.html>, |
6fbe4984 PE |
7406 | which was inadvertently undone by the 2002-09-30 patch. |
7407 | * lib/lbitset.c (debug_lbitset): Do not assume that bitset_word is | |
7408 | the same width as int. | |
7409 | ||
420f93c8 PE |
7410 | 2002-10-04 Paul Eggert <eggert@twinsun.com> |
7411 | ||
7412 | Version 1.50. | |
7413 | ||
7414 | * configure.ac (AC_INIT), NEWS: Increment version number. | |
7415 | ||
7416 | * doc/bison.texinfo: Minor spelling, grammar, and white space | |
7417 | fixes. | |
7418 | (Symbols): Mention that any negative value returned from yylex | |
7419 | signifies end-of-input. Warn about negative chars. Mention | |
7420 | the portable Standard C character set. | |
7421 | ||
7422 | The GNU coding standard says CFLAGS and YFLAGS are reserved | |
7423 | for the installer to set. | |
7424 | * lib/Makefile.am (AM_CFLAGS): Renamed from CFLAGS. | |
7425 | * src/Makefile.am (AM_CFLAGS): Likewise. | |
7426 | (AM_YFLAGS): Renamed from YFLAGS. | |
7427 | ||
7428 | Fix some MAX and MIN problems. | |
7429 | * src/gram.h (ITEM_NUMBER_MIN): MIN_MAX -> INT_MIN. | |
7430 | * src/lalr.h (GOTO_NUMBER_MAX): INT_MAX -> SHRT_MAX. | |
7431 | * src/symtab.h (SYMBOL_NUMBER_MAX): New macro. | |
7432 | * src/reader.c (reader): Use it. | |
7433 | ||
7434 | * tests/regression.at (Braces parsing): Use grep, not fgrep, as | |
7435 | POSIX 1003.1-2001 has removed fgrep. | |
7436 | ||
7437 | 2002-10-04 Michael Hayes <m.hayes@elec.canterbury.ac.nz> | |
7438 | ||
7439 | * lib/bbitset.h (BITSET_WINDEX_MAX): Redefine so that it cannot be | |
7440 | interpreted as signed. | |
7441 | * lib/ebitset.c (ebitset_list): Fix bug. | |
7442 | ||
ff68026d PE |
7443 | 2002-10-01 Paul Eggert <eggert@twinsun.com> |
7444 | ||
7445 | More fixes for 64-bit hosts and large bitsets. | |
7446 | ||
7447 | * lib/abitset.c (struct abitset_struct.n_bits, abitset_small_list, | |
7448 | abitset_size, abitset_list, abitset_list_reverse, abitset_list): | |
7449 | Use bitset_bindex, not int or unsigned int or size_t, to count bits. | |
7450 | * lib/bbitset.h (struct bitset_vtable.size, struct bitset_vtable.count, | |
7451 | struct bitset_vtable.list, struct bitset_vtable.list_reverse, | |
7452 | bitset_count_, bitset_next, bitset_prev, bitset_first, bitset_last, | |
7453 | bitset_count_): Likewise. | |
7454 | * lib/bitset.h (bitset_iterator.num, bitset_iterator.i, | |
7455 | bitset_first, bitset_last): Likewise. | |
7456 | * lib/bitset_stats.c (bitset_stats_size, bitset_stats_list, | |
7457 | bitset_stats_list_reverse, bitset_stats_size, | |
7458 | bitset_stats_count, bitset_stats_list, bitset_stat_list_reverse): | |
7459 | Likewise. | |
7460 | * lib/bitsetv-print.c (bitsetv_matrix_dump): Likewise. | |
7461 | * lib/bitsetv.c (bitsetv_alloc, bitsetv_create, bitsetv_free, | |
7462 | bitsetv_zero, bitsetv_ones, bitsetv_transitive_closure, | |
7463 | bitsetv_reflexive_transitive_closure): Likewise. | |
7464 | * lib/bitsetv.h (bitsetv_alloc, bitsetv_create): Likewise. | |
7465 | * lib/ebitset.c (ebitset_size, ebitset_list, ebitset_list_reverse): | |
7466 | Likewise. | |
7467 | * lib/lbitset.c (lbitset_size, lbitset_list, lbitset_list_merge): | |
7468 | Likewise. | |
420f93c8 | 7469 | |
ff68026d PE |
7470 | * lib/abitset.c (abitset_ones, abitset_zero, abitset_bytes): |
7471 | Use size_t, not unsigned int, to count bytes. | |
7472 | * lib/abitset.h (abitset_bytes): Likewise. | |
7473 | * lib/bitset.c (bitset_bytes, bitset_alloc, bitset_obstack_alloc): | |
7474 | Likewise. | |
7475 | * lib/bitset.h (bitset_bytes): Likewise. | |
7476 | * lib/bitset_stats.c (bitset_stats_bytes, bitset_stats_init): Likewise. | |
7477 | * lib/bitset_stats.h (bitset_stats_bytes): Likewise. | |
7478 | * lib/bitsetv.c (bitsetv_alloc): Likewise. | |
7479 | * lib/ebitset.c (ebitset_bytes): Likewise. | |
7480 | * lib/ebitset.h (ebitset_bytes): Likewise. | |
7481 | * lib/lbitset.c (lbitset_bytes): Likewise. | |
7482 | * lib/lbitset.h (lbitset_bytes): Likewise. | |
420f93c8 | 7483 | |
ff68026d PE |
7484 | * lib/abitset.c (abitset_empty_p, abitset_not, abitset_equal_p, |
7485 | abitset_subset_p, abitset_disjoint_p, abitset_and, | |
7486 | abitset_and_cmp, abitset_andn, abitset_andn_cmp, abitset_or, | |
7487 | abitset_or_cmp, abitset_xor, abitset_xor_cmp, abitset_and_or, | |
7488 | abitset_and_or_cmp, abitset_andn_or, abitset_andn_or_cmp, | |
7489 | abitset_or_and, abitset_or_and_cmp): | |
7490 | Use bitset_windex instead of unsigned int. | |
7491 | * lib/bitsetv.c (bitsetv_dump, debug_bitsetv): Likewise. | |
7492 | * lib/ebitset.c (struct ebitset_struct.size, ebitset_elts_grow, | |
7493 | ebitset_elt_add, ebitset_elt_remove, ebitset_weed, | |
7494 | ebitset_elt_find, ebitset_list_reverse, ebitset_list, ebitset_init): | |
7495 | Likewise. | |
7496 | * lib/lbitset.c (lbitset_ones, lbitset_not): Likewise. | |
420f93c8 | 7497 | |
ff68026d PE |
7498 | * lib/bitset.c (bitset_print): |
7499 | Use proper printf formats for widths of integer types. | |
7500 | * lib/bitset_stats.c (bitset_percent_histogram_print, | |
7501 | bitset_log_histogram_print, bitset_stats_print_1): Likewise. | |
7502 | * lib/bitsetv-print.c (bitsetv_matrix_dump): Likewise. | |
7503 | * lib/bitsetv.c (bitsetv_dump, debug_bitsetv): Likewise. | |
7504 | * lib/lbitset.c (lbitset_bytes): Likewise. | |
420f93c8 | 7505 | |
ff68026d PE |
7506 | * lib/bbitset.h (BITSET_BINDEX_MAX, BITSET_WINDEX_MAX, |
7507 | BITSET_SIZE_MAX): New macros. | |
7508 | (BITSET_INDEX_MAX): Remove. It wasn't right, since it assumed that | |
7509 | sizeof (bitset_word) == sizeof (bitset_windex). All uses changed | |
7510 | to BITSET_WINDEX_MAX. | |
7511 | ||
7512 | * lib/bitset.c (bitset_next, bitset_prev, bitset_first, | |
7513 | bitset_last): Return BITSET_BINDEX_MAX (not -1) for no value, | |
7514 | since we now return the bitset_bindex type (not int). | |
7515 | ||
7516 | * lib/bitsetv.c (bitsetv_alloc): Check for arithmetic overflow | |
7517 | when computing sizes. | |
7518 | * lib/ebitset.c (ebitset_elts_grow): Likewise. | |
7519 | ||
7520 | * lib/lbitset.c (lbitset_elt_find): Simplify windex calculation | |
7521 | and avoid cast to unsigned. | |
7522 | ||
6aa452a6 AD |
7523 | 2002-09-30 Akim Demaille <akim@epita.fr> |
7524 | ||
7525 | * lib/abitset.c, lib/bbitset.h, lib/bitset.c, lib/bitset.h, | |
7526 | * lib/bitset_stats.c, lib/bitsetv.c, lib/ebitset.c, lib/lbitset.c: | |
7527 | Updates from Michael Hayes. | |
7528 | ||
927f7817 AD |
7529 | 2002-09-30 Art Haas <ahaas@neosoft.com> |
7530 | ||
7531 | * configure.ac: Update AC_OUTPUT and AM_CONFIG_HEADER | |
7532 | invocations. | |
7533 | * tests/cxx-type.at (declarator): Don't rely on NDEBUG being not | |
7534 | defined. | |
7535 | ||
9738f41e AD |
7536 | 2002-09-27 Akim Demaille <akim@epita.fr> |
7537 | ||
7538 | Version 1.49c. | |
7539 | ||
a5c75d7f AD |
7540 | 2002-09-27 Akim Demaille <akim@epita.fr> |
7541 | ||
7542 | * configure.ac (AM_INIT_AUTOMAKE): We _need_ 1.7. | |
7543 | (Because of AC_LIBSOURCE). | |
7544 | ||
8280e179 AD |
7545 | 2002-09-27 Akim Demaille <akim@epita.fr> |
7546 | ||
7547 | Playing with Autoscan. | |
7548 | ||
7549 | * configure.ac: Remove the old LIBOBJ tweaks. | |
7550 | (AC_REPLACE_FUNCS): Add strrchr and strtol. | |
7551 | * lib/strrchr.c: New. | |
7552 | * lib/strtol.c: New, from the Coreutils 4.5.1. | |
7553 | ||
ae64af35 AD |
7554 | 2002-09-27 Akim Demaille <akim@epita.fr> |
7555 | ||
7556 | Playing with Autoscan. | |
7557 | ||
7558 | * m4/prereq.m4 (jm_PREREQ_ARGMATCH, jm_FUNC_ARGMATCH): New. | |
7559 | * lib/Makefile.am (libbison_a_SOURCES): No longer include | |
7560 | argmatch.c and argmatch.h, since they are AC_LIBSOURCE'd. | |
7561 | * lib/strcasecmp.c, lib/strncasecmp.c, lib/memcmp.c: New, from the | |
7562 | Coreutils 4.5.1. | |
7563 | ||
d1a1114f AD |
7564 | 2002-09-24 Akim Demaille <akim@epita.fr> |
7565 | ||
7566 | * doc/bison.texinfo (Stack Overflow): xref to Recursion. | |
7567 | (Frequently Asked Questions, Parser Stack Overflow): New. | |
7568 | ||
b906441c AD |
7569 | 2002-09-13 Akim Demaille <akim@epita.fr> |
7570 | ||
7571 | Playing with autoscan. | |
7572 | ||
7573 | * src/reader.c (get_merge_function): Use xstrdup, not strdup. | |
7574 | * src/files.c (skeleton_find): Remove, unused. | |
7575 | * m4/memcmp.m4: New, from the Coreutils 4.5.1. | |
7576 | * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Run jm_FUNC_MEMCMP. | |
7577 | ||
bd701811 AD |
7578 | 2002-09-13 Akim Demaille <akim@epita.fr> |
7579 | ||
7580 | * configure.ac (AM_INIT_AUTOMAKE): Require Automake 1.6.3. | |
7581 | * Makefile.am (AUTOMAKE_OPTIONS): Don't. | |
7582 | ||
e0a13e7b AD |
7583 | 2002-09-13 Akim Demaille <akim@epita.fr> |
7584 | ||
7585 | * configure.ac: Require 2.54. | |
7586 | s/jm_FUNC_MALLOC/AC_FUNC_MALLOC/. | |
7587 | s/jm_FUNC_REALLOC/AC_FUNC_REALLOC/. | |
7588 | * m4/c-bs-a.m4, m4/malloc.m4, m4/mbstate_t.m4, m4/realloc.m4: | |
7589 | Remove, provided by Autoconf macros. | |
7590 | ||
c97011bf AD |
7591 | 2002-09-12 Akim Demaille <akim@epita.fr> |
7592 | ||
7593 | * m4/prereq.m4: Update, from Coreutils 4.5.1. | |
7594 | ||
d862b1be AD |
7595 | 2002-09-12 Akim Demaille <akim@epita.fr> |
7596 | ||
7597 | * m4/prereq.m4: Update, from Fileutils 4.1.5. | |
7598 | * configure.ac (jm_PREREQ_TEMPNAME): Invoke it. | |
7599 | Reported by Martin Mokrejs. | |
7600 | ||
3d38c03a AD |
7601 | 2002-09-10 Akim Demaille <akim@epita.fr> |
7602 | ||
7603 | * src/parse-gram.y: Associate a human readable string to each | |
7604 | token type. | |
7605 | * tests/regression.at (Invalid inputs): Adjust. | |
7606 | ||
b6347355 AD |
7607 | 2002-09-10 Gary V. Vaughan <gary@gnu.org> |
7608 | ||
7609 | * tests/Makefile.am ($(srcdir)/package.m4): Bison now ships | |
7610 | with an Autoconf-2.5x style configure.ac. | |
7611 | ||
09ba4ab2 PE |
7612 | 2002-09-06 Paul Eggert <eggert@twinsun.com> |
7613 | ||
7614 | * doc/bison.texinfo (Conditions): Make explicit that the GPL | |
7615 | exception applies only to yacc.c. This is a modification of a | |
7616 | patch originally suggested by Akim Demaille. | |
7617 | ||
21846f69 AD |
7618 | 2002-09-06 Akim Demaille <akim@epita.fr> |
7619 | ||
09ba4ab2 PE |
7620 | * data/c.m4 (b4_copyright): Move the GPL exception comment from |
7621 | here to... | |
7622 | * data/yacc.c: here. | |
7623 | ||
21846f69 AD |
7624 | * data/lalr1.cc (struct yyltype): Don't define it, since we use |
7625 | LocationType. | |
7626 | (b4_ltype): Default to yy::Location from location.hh. | |
7627 | ||
c0ad8bf3 AD |
7628 | 2002-09-04 Jim Meyering <jim@meyering.net> |
7629 | ||
7630 | * data/yacc.c: Guard the declaration of yytoknum also with | |
7631 | `#ifdef YYPRINT', so it is declared only when used. | |
7632 | ||
3a93251e AD |
7633 | 2002-09-04 Akim Demaille <akim@epita.fr> |
7634 | ||
7635 | * configure.in: Rename as... | |
7636 | * configure.ac: this. | |
7637 | Bump to 1.49c. | |
7638 | ||
427c0dda AD |
7639 | 2002-09-04 Akim Demaille <akim@epita.fr> |
7640 | ||
7641 | * src/assoc.c, src/closure.c, src/gram.c, src/injections.c, | |
7642 | * src/lalr.c, src/LR0.c, src/relation.c, src/tables.c: Don't | |
7643 | translate maintainer only messages. | |
7644 | ||
6a254321 PE |
7645 | 2002-08-12 Paul Eggert <eggert@twinsun.com> |
7646 | ||
645e30d1 PE |
7647 | Version 1.49b. |
7648 | ||
6a254321 PE |
7649 | * Makefile.am (SUBDIRS): Remove intl. |
7650 | (DISTCLEANFILES): Remove. | |
7651 | * NEWS: Mention that GNU M4 is now required. Clarify what is | |
7652 | meant by "larger grammars". Mention the pt_BR translation. | |
7653 | * configure.in (AC_CHECK_DECLS): Add getenv, getopt. | |
7654 | (AM_GNU_GETTEXT_VERSION): New macro, replacing GETTEXT_VERSION var. | |
7655 | Bump version from 0.11.2 to 0.11.5. | |
7656 | (BISON_PREREQ_STAGE): Remove. | |
7657 | (AM_GNU_GETTEXT): Use external gettext. | |
7658 | (AC_OUTPUT): Remove intl/Makefile. | |
7659 | ||
7660 | * config/depcomp, config/install-sh: Sync with Automake 1.6.3. | |
7661 | ||
7662 | * data/glr.c: Include string.h, for strlen. | |
7663 | (yyreportParseError): Use size_t for yysize. | |
7664 | (yy_yypstack): No longer nested inside yypstates, as nested | |
7665 | functions are not portable. Do not assume size_t is the | |
7666 | same width as int. | |
7667 | (yypstates): Do not assume that ptrdiff_t is the same width | |
7668 | as int, and similarly for yyposn and YYINDEX. | |
7669 | ||
7670 | * data/yacc.c: Fix comment about `$$ = $1': it can copy garbage. | |
7671 | ||
7672 | * lib/Makefile.am (INCLUDES): Do not include from the intl | |
7673 | directory, which has been removed. | |
7674 | * src/Makefile.am (INCLUDES): Likewise. | |
7675 | ||
7676 | * lib/Makefile.am (libbison_a_SOURCES): Add unlocked-io.h. | |
7677 | (bitsets_sources, additional_bitsets_sources, timevars_sources): | |
7678 | New vars. | |
7679 | ||
7680 | * lib/Makefile.am (libbison_a_SOURCES): Avoid +=, a GNU make extension. | |
7681 | * tests/Makefile.am (EXTRA_DIST): Likewise. | |
7682 | ||
7683 | * lib/abitset.c (abitset_reverse_list, ebitset_reverse_list): | |
7684 | Do not assume that bitset_windex is the same width as unsigned. | |
7685 | ||
7686 | * lib/abitset.c (abitset_unused_clear): Do not assume that | |
7687 | bitset_word is the same width as int. | |
7688 | * lib/bbitset.h (BITSET_INDEX_MAX, BITSET_MSB): Likewise. | |
7689 | * lib/bitset.h (bitset_set, bitset_reset): Likewise. | |
7690 | * lib/bitset_stats.c (bitset_stats_set, bitset_stats_reset): Likewise. | |
7691 | * lib/ebitset.c (ebitset_set, ebitset_reset): Likewise. | |
7692 | * lib/lbitset.c (lbitset_set, lbitset_reset): Likewise. | |
7693 | ||
7694 | * lib/abitset.c (abitset_op1): Use -1, not ~0, as memset arg (for | |
7695 | portability to one's complement hosts!). | |
7696 | * lib/ebitset.c (ebitset_op1): Likewise. | |
7697 | * lib/lbitset.c (lbitset_op1): Likewise. | |
7698 | ||
7699 | * lib/argmatch.c, lib/quotearg.c, quotearg.h: Sync with GNU tar. | |
7700 | * lib/argmatch.h, lib/basename.c, lib/dirname.c, lib/dirname.h, | |
7701 | lib/hash.c, lib/hash.h, lib/strnlen.c, lib/xmalloc.c: | |
7702 | Sync with fileutils. | |
7703 | * lib/error.c, lib/getopt.c, lib/getopt.h, lib/getopt1.c, | |
7704 | lib/gettext.h: Sync with diffutils. | |
7705 | ||
7706 | * lib/memrchr.c, lib/mkstemp.c, lib/strchr.c, lib/strnlen.c, | |
7707 | lib/strspn.c, lib/tempname.c: Use GPL, not LGPL. | |
7708 | ||
7709 | * lib/obstack.c, lib/obstack.h: Sync with fileutils, except use | |
7710 | PROTOTYPES to check for prototypes, and "defined __STDC__" to | |
7711 | check for void *. | |
7712 | ||
7713 | * lib/bbitset.h (BITSET_WORD_BITS): Now of type unsigned, not | |
7714 | size_t; the old version tried to do this but casted improperly. | |
7715 | (bitset_bindex, bitset_windex): Now size_t, not unsigned long. | |
7716 | (bitset_test): Now returns int, not unsigned long. | |
7717 | ||
7718 | * lib/bitset_stats.c: Include "gettext.h". | |
7719 | (_): New macro. | |
7720 | (bitset_stats_set, bitset_stats_reset, bitset_stats_test): Don't | |
7721 | name locals "index", as it generates unnecessary warnings on some | |
7722 | hosts that have an "index" function. | |
7723 | ||
7724 | * lib/bitset_stats.c (bitset_stats_print_1, bitset_stats_print, | |
7725 | bitset_stats_read, bitset_stats_write): Wrap strings in _() if | |
7726 | they need translation. | |
7727 | * src/LR0.c (state_list_append, new_itemsets, get_state, | |
7728 | append_states, generate_states): Likewise. | |
7729 | * src/assoc.c (assoc_to_string): Likewise. | |
7730 | * src/closure.c (print_closure, set_firsts, closure): Likewise. | |
7731 | * src/gram.c (grammar_dump): Likewise. | |
7732 | * src/injections.c (injections_compute): Likewise. | |
7733 | * src/lalr.c (lookaheads_print): Likewise. | |
7734 | * src/relation.c (relation_transpose): Likewise. | |
7735 | * src/scan-gram.l: Likewise. | |
7736 | * src/tables.c (table_grow, pack_vector): Likewise. | |
7737 | ||
7738 | * m4/Makefile.am (EXTRA_DIST): Remove codeset.m4, | |
7739 | glibc21.m4, isc-posix.m4 lcmessage.m4, stage.m4. | |
7740 | * m4/malloc.m4, m4/realloc.m4: Sync with diffutils. | |
7741 | * m4/mbstate_t.m4: Sync with fileutils. | |
7742 | * m4/prereq.m4 (jm_PREREQ_QUOTEARG): AC_MBSTATE_T -> AC_TYPE_MBSTATE_T. | |
7743 | ||
7744 | * po/LINGUAS: Add pt_BR. | |
7745 | * po/POTFILES.in: Add src/assoc.c, src/closure.c, src/gram.c, | |
7746 | src/main.c, src/relation.c, src/state.c, lib/bitset_stats.c, | |
7747 | lib/timevar.c. | |
7748 | Use src/parse-gram.y instead of src/parse-gram.c, as the gettext | |
7749 | manual recommends. | |
7750 | Similarly, use src/scan-gram.l instead of src/scan-gram.c. | |
7751 | ||
7752 | * src/complain.c (strerror_r): Remove decl; not needed. | |
7753 | (strerror): Use same pattern as ../lib/error.c. | |
7754 | ||
7755 | * src/files.c, src/files.h (compute_header_macro): Remove; unused. | |
7756 | ||
7757 | * src/gram.c (grammar_dump): Do not assume ptrdiff_t fits in int. | |
7758 | ||
7759 | * src/main.c (main): Cast result of bindtextdomain and textdomain | |
7760 | to void, to avoid a GCC warning when --disable-nls is in effect. | |
7761 | ||
7762 | * src/scan-gram.l: Use strings rather than escapes when possible, | |
7763 | to minimize the number of warnings from xgettext. | |
7764 | (handle_action_dollar, handle_action_at): Don't use isdigit, | |
7765 | as it mishandles negative chars and it may not work as expected | |
7766 | outside the C locale. | |
7767 | ||
7768 | * src/symtab.c (symbol_get): Don't cast LHS of an assignment; | |
7769 | this is a GCC extension and is not portable to other compilers. | |
7770 | ||
7771 | * src/system.h (alloca): Use same pattern as ../lib/error.c. | |
7772 | Do not include <ctype.h>; no longer needed. | |
7773 | Do not include <malloc.h>; no longer needed (and generates | |
7774 | warnings on OpenBSD 3.0). | |
7775 | ||
7776 | * tests/cxx-type.at (yylex): Do not pass signed char to isupper; | |
7777 | it's not portable. | |
7778 | ||
7779 | * tests/regression.at: Do not use 'cc -c input.c -o input'; | |
7780 | Sun C rejects this. Instead, use 'cc -c input.c -o input.o'. | |
7781 | ||
7782 | * tests/synclines.at (AC_SYNCLINES_COMPILE): Accept any nonzero | |
7783 | exit status as failure, not just exit status 1. Sun C exits | |
7784 | with status 2 sometimes. | |
7785 | ||
7786 | * tests/torture.at (AT_INCREASE_DATA_SIZE): New macro. | |
7787 | Use it for the two large tests. | |
7788 | ||
c8f002c7 AD |
7789 | 2002-08-02 Akim Demaille <akim@epita.fr> |
7790 | ||
7791 | * src/conflicts.c (conflicts_output): Don't output rules never | |
7792 | reduced here, since anyway that computation doesn't work. | |
7793 | * src/gram.h, src/gram.h (rule_filter_t, rule_useful_p) | |
7794 | (rule_useless_p, rule_never_reduced_p): New. | |
7795 | (grammar_rules_partial_print): Use a filter instead of a range. | |
7796 | Display the title only if needed. | |
7797 | (grammar_rules_print): Adjust. | |
7798 | (grammar_rules_never_reduced_report): New. | |
7799 | * src/tables.c (action_row): Move the computation of rules never | |
7800 | reduced to... | |
7801 | (token_actions): here. | |
7802 | * src/main.c (main): Make the parser before making the report, so | |
7803 | that rules never reduced are computed. | |
7804 | Call grammar_rules_never_reduced_report. | |
7805 | * src/print.c (print_results): Report rules never reduced. | |
7806 | * tests/conflicts.at, tests/reduce.at: Adjust. | |
7807 | ||
cd08e51e AD |
7808 | 2002-08-01 Akim Demaille <akim@epita.fr> |
7809 | ||
7810 | Instead of attaching lookaheads and duplicating the rules being | |
7811 | reduced by a state, attach the lookaheads to the reductions. | |
7812 | ||
7813 | * src/state.h (state_t): Remove the `lookaheads', | |
7814 | `lookaheads_rule' member. | |
7815 | (reductions_t): Add a `lookaheads' member. | |
7816 | Use a regular array for the `rules'. | |
7817 | * src/state.c (reductions_new): Initialize the lookaheads member | |
7818 | to 0. | |
7819 | (state_rule_lookaheads_print): Adjust. | |
7820 | * src/state.h, src/state.c (state_reductions_find): New. | |
7821 | * src/conflicts.c (resolve_sr_conflict, set_conflicts) | |
7822 | (count_rr_conflicts): Adjust. | |
7823 | * src/lalr.c (LArule): Remove. | |
7824 | (add_lookback_edge): Adjust. | |
7825 | (state_lookaheads_count): New. | |
7826 | (states_lookaheads_initialize): Merge into... | |
7827 | (initialize_LA): this. | |
7828 | (lalr_free): Adjust. | |
7829 | * src/main.c (main): Don't free nullable and derives too early: it | |
7830 | is used by --verbose. | |
7831 | * src/print.c, src/print_graph.c, src/tables.c: Adjust. | |
7832 | ||
bb0027a9 AD |
7833 | 2002-08-01 Akim Demaille <akim@epita.fr> |
7834 | ||
7835 | * src/derives.h, src/derives.c (derives): A `rule_t***' instead of | |
7836 | `rule_number_t**'. | |
7837 | (set_derives, free_derives): Rename as... | |
7838 | (derives_compute, derives_free): this. | |
7839 | Adjust all dependencies. | |
7840 | * src/nullable.c (set_nullable, free_nullable): Rename as... | |
7841 | (nullable_compute, nullable_free): these. | |
7842 | (rule_list_t): Store rule_t *, not rule_number_t. | |
7843 | * src/state.c (state_rule_lookaheads_print): Directly compare rule | |
7844 | pointers, instead of their numbers. | |
7845 | * src/main.c (main): Call nullable_free, and derives_free earlier, | |
7846 | as they were lo longer used. | |
7847 | ||
3325ddc4 AD |
7848 | 2002-08-01 Akim Demaille <akim@epita.fr> |
7849 | ||
7850 | * lib/timevar.c (get_time): Include children time. | |
7851 | * src/lalr.h (LA, LArule): Don't export them: used with the | |
7852 | state_t. | |
7853 | * src/lalr.c (LA, LArule): Static. | |
7854 | * src/lalr.h, src/lalr.c (lalr_free): New. | |
7855 | * src/main.c (main): Call it. | |
7856 | * src/tables.c (pack_vector): Check whether loc is >= to the | |
7857 | table_size, not >. | |
7858 | (pack_tables): Don't free froms, tos, conflict_tos, and pos... | |
7859 | (tables_generate): do it, since that's also it which allocates | |
7860 | them. | |
7861 | Don't free LA and LArule, main does. | |
7862 | ||
c6f1a33c AD |
7863 | 2002-07-31 Akim Demaille <akim@epita.fr> |
7864 | ||
7865 | Separate parser tables computation and output. | |
7866 | ||
7867 | * src/output.c (nvectors, base_t, base, base_ninf, conflict_table) | |
7868 | (conflict_list, conflict_list_cnt, table, check, table_ninf) | |
7869 | (yydefgoto, yydefact, high): Move to... | |
7870 | * src/tables.h, src/tables.c: here. | |
7871 | * src/output.c (vector_number_t, VECTOR_NUMBER_MAX) | |
7872 | (VECTOR_NUMBER_MIN, state_number_to_vector_number) | |
7873 | (symbol_number_to_vector_number, nvectors, BASE_MAX, BASE_MIN) | |
7874 | (froms, tos, conflict_tos, tally, width, action_t, ACTION_MAX) | |
7875 | (ACTION_MIN, actrow, order, nentries, pos, conflrow) | |
7876 | (conflict_list_free, table_size, lowzero, table_grow, conflict_row) | |
7877 | (action_row, save_row, token_actions, save_column, default_goto) | |
7878 | (goto_actions, sort_actions, matching_state, pack_vector) | |
7879 | (table_ninf_remap, pack_table, prepare_actions): Move to... | |
7880 | * src/tables.c: here. | |
7881 | * src/tables.h, src/tables.c(tables_generate, tables_free): New. | |
7882 | * src/output.c (token_actions, output_base, output_conflicts) | |
7883 | (output_check): Merge into... | |
7884 | (prepare_actions): this. | |
7885 | (actions_output): Rename as... | |
7886 | (user_actions_output): this. | |
7887 | * src/main.c (main): Call tables_generate and tables_free. | |
7888 | ||
1509d42f AD |
7889 | 2002-07-31 Akim Demaille <akim@epita.fr> |
7890 | ||
7891 | Steal GCC's --time-report support. | |
7892 | ||
7893 | * lib/timevar.c, lib/timevar.h, lib/timevar.def: New, | |
7894 | stolen/adjusted from GCC. | |
7895 | * m4/stage.m4: Remove time related checks. | |
7896 | * m4/timevar.m4: New. | |
7897 | * configure.in: Adjust. | |
7898 | * src/system.h: Adjust to using timevar.h. | |
7899 | * src/getargs.h, src/getargs.c: Support trace_time for | |
7900 | --trace=time. | |
7901 | * src/main.c (stage): Remove. | |
7902 | (main): Replace `stage' invocations with timevar calls. | |
7903 | * src/output.c: Insert pertinent timevar calls. | |
7904 | ||
273a74fa AD |
7905 | 2002-07-31 Akim Demaille <akim@epita.fr> |
7906 | ||
7907 | Let --trace have arguments. | |
7908 | ||
7909 | * src/getargs.h (enum trace_e): New. | |
7910 | * src/getargs.c (trace_args, trace_types, trace_argmatch): New. | |
7911 | (long_options, short_options): --trace/-T takes an optional | |
7912 | argument. | |
7913 | Change all the uses of trace_flag to reflect the new flags. | |
7914 | * tests/sets.at (Firsts, Nullable, Broken Closure): Use --trace=sets. | |
7915 | ||
7916 | Strengthen `stage' portability. | |
7917 | ||
7918 | * m4/stage.m4 (BISON_PREREQ_STAGE): New. | |
7919 | * configure.in: Use it. | |
7920 | Don't check for malloc.h and sys/times.h. | |
7921 | * src/system.h: Include them when appropriate. | |
7922 | * src/main.c (stage): Compile only when mallinfo, struct mallinfo, | |
7923 | times and struct tms are available. | |
7924 | ||
217598da AD |
7925 | 2002-07-30 Akim Demaille <akim@epita.fr> |
7926 | ||
7927 | In verbose parse error message, don't report `error' as an | |
7928 | expected token. | |
7929 | * tests/actions.at (Printers and Destructors): Adjust. | |
7930 | * tests/calc.at (Calculator $1): Adjust. | |
7931 | * data/yacc.c, data/glr.c, data/lalr1.c: When making the verbose | |
7932 | error message, do not report the parser accepts the error token in | |
7933 | that state. | |
7934 | ||
52489d44 AD |
7935 | 2002-07-30 Akim Demaille <akim@epita.fr> |
7936 | ||
7937 | Normalize conflict related messages. | |
7938 | ||
7939 | * src/complain.h, src/complain.c (warn, complain): New. | |
7940 | * src/conflicts.c (conflicts_print): Use them. | |
7941 | (conflict_report_yacc): New, extracted from... | |
7942 | (conflicts_print): here. | |
7943 | * tests/conflicts.at, tests/existing.at: Adjust. | |
7944 | ||
e8832397 AD |
7945 | 2002-07-30 Akim Demaille <akim@epita.fr> |
7946 | ||
7947 | Report rules which are never reduced by the parser: those hidden | |
7948 | by conflicts. | |
7949 | ||
7950 | * src/LR0.c (save_reductions): Don't make the final state too | |
7951 | different: save its reduction (accept) instead of having a state | |
7952 | without any action (no shift or goto, no reduce). | |
7953 | Note: the final state is now a ``regular'' state, i.e., the | |
7954 | parsers now contain `reduce 0' as default reduction. | |
7955 | Nevertheless, since they decide to `accept' when yystate = | |
7956 | final_state, they still will not reduce rule 0. | |
7957 | * src/print.c (print_actions, print_reduction): Adjust. | |
7958 | * src/output.c (action_row): Track reduced rules. | |
7959 | (token_actions): Report rules never reduced. | |
7960 | * tests/conflicts.at, tests/regression.at: Adjust. | |
7961 | ||
caf23d24 AD |
7962 | 2002-07-30 Akim Demaille <akim@epita.fr> |
7963 | ||
7964 | `stage' was accidently included in a previous patch. | |
7965 | Initiate its autoconfiscation. | |
7966 | ||
7967 | * configure.in: Look for malloc.h and sys/times.h. | |
7968 | * src/main.c (stage): Adjust. | |
7969 | Report only when trace_flag. | |
7970 | ||
640748ee AD |
7971 | 2002-07-29 Akim Demaille <akim@epita.fr> |
7972 | ||
7973 | * src/state.h, src/state.c (transitions_t): Holds state_t*'s, not | |
7974 | state_number_t. | |
7975 | (errs_t): symbol_t*, not symbol_number_t. | |
7976 | (reductions_t): rule_t*, not rule_number_t. | |
7977 | (FOR_EACH_SHIFT): New. | |
7978 | * src/LR0.c, src/conflicts.c, src/lalr.c, src/output.c | |
7979 | * src/print.c, src/print_graph.c: Adjust. | |
7980 | ||
88bce5a2 AD |
7981 | 2002-07-29 Akim Demaille <akim@epita.fr> |
7982 | ||
7983 | Use $accept and $end, as BYacc and BTYacc do, instead of $axiom and $. | |
7984 | ||
7985 | * src/symtab.h, src/symtab.c (eoftoken, axiom): Rename as... | |
7986 | (endtoken, accept): these. | |
7987 | * src/reader.c (reader): Set endtoken's default tag to "$end". | |
7988 | Set undeftoken's tag to "$undefined" instead of "$undefined.". | |
7989 | * doc/bison.texinfo (Table of Symbols): Mention $accept and $end. | |
7990 | Adjust. | |
7991 | ||
1bfb97db AD |
7992 | 2002-07-29 Akim Demaille <akim@epita.fr> |
7993 | ||
7994 | * src/reduce.c (reduce_grammar): When the language is empty, | |
7995 | complain about the start symbol, not the axiom. | |
7996 | Use its location. | |
7997 | * tests/reduce.at (Empty Language): New. | |
7998 | ||
fc5734fe AD |
7999 | 2002-07-26 Akim Demaille <akim@epita.fr> |
8000 | ||
8001 | * src/reader.h, src/reader.c (gram_error): ... can't get | |
8002 | yycontrol without making too strong assumptions on the parser | |
8003 | itself. | |
8004 | * src/output.c (prepare_tokens): Use the real 0th value of | |
8005 | token_translations instead of `0'. | |
8006 | * src/parse-gram.y (yyerror): Don't rely on yycontrol being | |
8007 | visible here. | |
8008 | * data/yacc.c (yyreport_parse_error): Rename yylocation as yylloc | |
8009 | for the time being: %locations ought to provide it to yyerror. | |
8010 | ||
3650b4b8 AD |
8011 | 2002-07-25 Akim Demaille <akim@epita.fr> |
8012 | ||
8013 | * src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1. | |
8014 | * doc/bison.texinfo (Decl Summary): s/$illegal/$undefined./. | |
8015 | * tests/regression.at (Web2c Actions): Adjust. | |
8016 | ||
4b3d3a8e AD |
8017 | 2002-07-25 Akim Demaille <akim@epita.fr> |
8018 | ||
8019 | Stop storing rules from 1 to nrules + 1. | |
8020 | ||
8021 | * src/LR0.c, src/closure.c, src/derives.c, src/gram.c, src/lalr.c | |
8022 | * src/nullable.c, src/output.c, src/print.c, src/reader.c | |
8023 | * src/reduce.c: Allocate and free from &rules[0], not &rules[1]. | |
8024 | Iterate from 0 to nrules. | |
8025 | Use rule_number_as_item_number and item_number_as_rule_number. | |
8026 | Adjust to `derive' now containing possibly 0. | |
8027 | * src/gram.h (rule_number_as_item_number, item_number_as_rule_number): | |
8028 | Handle the `- 1' part in rule numbers from/to item numbers. | |
8029 | * src/conflicts.c (log_resolution): Fix the message which reversed | |
8030 | shift and reduce. | |
8031 | * src/output.c (action_row): Initialize default_rule to -1. | |
8032 | (token_actions): Adjust. | |
8033 | * tests/sets.at (Nullable, Firsts): Fix the previously bogus | |
8034 | expected output. | |
8035 | * tests/conflicts.at (Resolved SR Conflicts): Likewise. | |
8036 | ||
4a2a22f4 AD |
8037 | 2002-07-25 Akim Demaille <akim@epita.fr> |
8038 | ||
8039 | * data/c.m4 (b4_c_function, b4_c_ansi_args, b4_c_ansi_arg) | |
8040 | (b4_c_knr_arg_names, b4_c_knr_arg_name, b4_c_knr_arg_decls) | |
8041 | (b4_c_knr_arg_decl): New. | |
8042 | * data/yacc.c: Use it to define yysymprint, yydestruct, and | |
8043 | yyreport_parse_error. | |
8044 | ||
b8df3223 AD |
8045 | 2002-07-25 Akim Demaille <akim@epita.fr> |
8046 | ||
8047 | * data/yacc.c (yyreport_parse_error): New, extracted from... | |
8048 | (yyparse): here. | |
8049 | (yydestruct, yysymprint): Move above yyparse. | |
8050 | Be K&R compliant. | |
8051 | ||
a762e609 AD |
8052 | 2002-07-25 Akim Demaille <akim@epita.fr> |
8053 | ||
8054 | * data/c.m4 (b4_ints_in, b4_int_type, b4_int_type_for): New, | |
8055 | replace... | |
8056 | (b4_sint_type, b4_uint_type): these. | |
8057 | * data/yacc.c, data/glr.c, data/lalr1.cc: Use b4_int_type_for. | |
8058 | * tests/regression.at (Web2c Actions): Adjust. | |
8059 | ||
12b0043a AD |
8060 | 2002-07-25 Akim Demaille <akim@epita.fr> |
8061 | ||
8062 | * src/gram.h (TIEM_NUMBER_MAX): New. | |
8063 | (item_number_of_rule_number, rule_number_of_item_number): Rename | |
8064 | as... | |
8065 | (rule_number_as_item_number, item_number_as_rule_number): these. | |
8066 | Adjust dependencies. | |
8067 | * src/output.c (vector_number_t, VECTOR_NUMBER_MAX) | |
8068 | (VECTOR_NUMBER_MIN, state_number_to_vector_number) | |
8069 | (symbol_number_to_vector_number): New. | |
8070 | (order): Of vector_number_t* type. | |
8071 | (base_t, BASE_MAX, BASE_MIN): New. | |
8072 | (froms, tos, width, pos, check): Of base_t type. | |
8073 | (action_number_t, ACTION_MIN, ACTION_MAX): New. | |
8074 | (actrow): Of action_number_t type. | |
8075 | (conflrow): Of unsigned int type. | |
8076 | (table_ninf, base_ninf): New. | |
8077 | (GENERATE_MUSCLE_INSERT_TABLE): Also output the `*_min' value. | |
8078 | (muscle_insert_int_table, muscle_insert_base_table) | |
8079 | (muscle_insert_rule_number_table): New. | |
8080 | (prepare_tokens): Output `toknum' as int_table. | |
8081 | (action_row): Returns a rule_number_t. | |
8082 | Use ACTION_MIN, not SHRT_MIN. | |
8083 | (token_actions): yydefact is rule_number_t*. | |
8084 | (table_ninf_remap): New. | |
8085 | (pack_table): Use it for `base' and `table'. | |
8086 | * data/yacc.c, data/glr.c, data/lalr1.cc (YYFLAG): Remove, | |
8087 | replaced with... | |
8088 | (YYPACT_NINF, YYTABLE_NINF): these. | |
8089 | (yypact, yytable): Compute their types instead of hard-coded | |
8090 | `short'. | |
8091 | * tests/regression.at (Web2c Actions): Adjust. | |
8092 | ||
5dde258a AD |
8093 | 2002-07-19 Akim Demaille <akim@epita.fr> |
8094 | ||
8095 | * src/scan-gram.l (id): Can start with an underscore. | |
8096 | ||
a945ec39 AD |
8097 | 2002-07-16 Akim Demaille <akim@epita.fr> |
8098 | ||
8099 | * src/assoc.c, src/asssoc.h (assoc_t, assoc_to_string): New. | |
8100 | Adjust all former `associativity' dependencies. | |
8101 | * src/symtab.c (symbol_new): Default associativity is `undef', not | |
8102 | `right'. | |
8103 | (symbol_check_alias_consistence): Adjust. | |
8104 | ||
fae437e8 AD |
8105 | 2002-07-09 Akim Demaille <akim@epita.fr> |
8106 | ||
8107 | * doc/bison.texinfo: Properly set the ``header'' part. | |
8108 | Use @dircategory ``GNU programming tools'' as per Texinfo's | |
8109 | documentation. | |
8110 | Use @copying. | |
8111 | ||
1a715ef2 AD |
8112 | 2002-07-09 Akim Demaille <akim@epita.fr> |
8113 | ||
8114 | * lib/quotearg.h: Protect against multiple inclusions. | |
8115 | * src/location.h (location_t): Add a `file' member. | |
8116 | (LOCATION_RESET, LOCATION_PRINT): Adjust. | |
8117 | * src/complain.c (warn_at, complain_at, fatal_at): Drop | |
8118 | `error_one_per_line' support. | |
8119 | ||
a5d50994 AD |
8120 | 2002-07-09 Akim Demaille <akim@epita.fr> |
8121 | ||
8122 | * src/complain.h, src/complain.c (warn, complain): Remove, unused. | |
8123 | * src/reader.c (lineno): Remove. | |
8124 | Adjust all dependencies. | |
8125 | (get_merge_function): Take a location and use complain_at. | |
8126 | * src/symtab.h, src/symtab.c (symbol_make_alias): Likewise. | |
8127 | * tests/regression.at (Invalid inputs, Mixing %token styles): | |
8128 | Adjust. | |
8129 | ||
b275314e AD |
8130 | 2002-07-09 Akim Demaille <akim@epita.fr> |
8131 | ||
8132 | * src/parse-gram.y (rules_or_grammar_declaration): Add an error | |
8133 | recovery rule, and forbid extensions when --yacc. | |
8134 | (gram_error): Use complain_at. | |
8135 | * src/reader.c (reader): Exit if there were parse errors. | |
8136 | ||
865b9df1 AD |
8137 | 2002-07-09 Akim Demaille <akim@epita.fr> |
8138 | ||
8139 | * tests/synclines.at (AT_SYNCLINES_COMPILE): New. | |
8140 | (AT_TEST_SYNCLINE): Adjust to unusual GCC outputs. | |
8141 | Reported by R Blake <blakers@mac.com>. | |
8142 | ||
c76e14da AD |
8143 | 2002-07-09 Akim Demaille <akim@epita.fr> |
8144 | ||
8145 | * data/yacc.c: Output the copyright notive in the header. | |
8146 | ||
7db2ed2d AD |
8147 | 2002-07-03 Akim Demaille <akim@epita.fr> |
8148 | ||
8149 | * src/output.c (froms, tos): Are state_number_t. | |
8150 | (save_column): sp, sp1, and sp2 are state_number_t. | |
8151 | (prepare): Rename `final' as `final_state_number', `nnts' as | |
8152 | `nterms_number', `nrules' as `rules_number', `nstates' as | |
8153 | `states_number', and `ntokens' as `tokens_number'. Remove `nsym', | |
8154 | unused. | |
8155 | * data/yacc.c, data/glr.c, data/lalr1.cc: Adjust. | |
8156 | * data/lalr1.cc (nsym_): Remove, unused. | |
8157 | ||
e68e0410 AD |
8158 | 2002-07-03 Akim Demaille <akim@epita.fr> |
8159 | ||
8160 | * src/lalr.h, src/lalr.c (goto_number_t): New. | |
8161 | * src/lalr.c (goto_list_t): New. | |
8162 | Propagate them. | |
8163 | * src/nullable.c (rule_list_t): New. | |
8164 | Propagate. | |
8165 | * src/types.h: Remove. | |
8166 | ||
e1a4f3a4 AD |
8167 | 2002-07-03 Akim Demaille <akim@epita.fr> |
8168 | ||
8169 | * src/closure.c (print_fderives): Use rule_rhs_print. | |
8170 | * src/derives.c (print_derives): Use rule_rhs_print. | |
8171 | (rule_list_t): New, replaces `shorts'. | |
8172 | (set_derives): Add comments. | |
8173 | * tests/sets.at (Nullable, Firsts): Adjust. | |
8174 | ||
536545f3 AD |
8175 | 2002-07-03 Akim Demaille <akim@epita.fr> |
8176 | ||
8177 | * src/output.c (prepare_actions): Free `tally' and `width'. | |
8178 | (prepare_actions): Allocate and free `order'. | |
8179 | * src/symtab.c (symbols_free): Free `symbols'. | |
8180 | * src/scan-gram.l (scanner_free): Clear Flex's scanners memory. | |
8181 | * src/output.c (m4_invoke): Move to... | |
8182 | * src/scan-skel.l: here. | |
8183 | (<<EOF>>): Close yyout, and free its name. | |
8184 | ||
8b752b00 AD |
8185 | 2002-07-03 Akim Demaille <akim@epita.fr> |
8186 | ||
8187 | Fix some memory leaks, and fix a bug: state 0 was examined twice. | |
8188 | ||
8189 | * src/LR0.c (new_state): Merge into... | |
8190 | (state_list_append): this. | |
8191 | (new_states): Merge into... | |
8192 | (generate_states): here. | |
8193 | (set_states): Don't ensure a proper `errs' state member here, do it... | |
8194 | * src/conflicts.c (conflicts_solve): here. | |
8195 | * src/state.h, src/state.c: Comment changes. | |
8196 | (state_t): Rename member `shifts' as `transitions'. | |
8197 | Adjust all dependencies. | |
8198 | (errs_new): For consistency, also take the values as argument. | |
8199 | (errs_dup): Remove. | |
8200 | (state_errs_set): New. | |
8201 | (state_reductions_set, state_transitions_set): Assert that no | |
8202 | previous value was assigned. | |
8203 | (state_free): New. | |
8204 | (states_free): Use it. | |
8205 | * src/conflicts.c (resolve_sr_conflict): Don't use an `errs_t' as | |
8206 | temporary storage: use `errs' and `nerrs' as elsewhere. | |
8207 | (set_conflicts): Allocate and free this `errs'. | |
8208 | ||
613f5e1a AD |
8209 | 2002-07-02 Akim Demaille <akim@epita.fr> |
8210 | ||
8211 | * lib/libiberty.h: New. | |
8212 | * lib: Update the bitset implementation from upstream. | |
8213 | * src/closure.c, src/lalr.c, src/output.c, src/print_graph.c, | |
8214 | * src/state.c: Use BITSET_FOR_EACH, not BITSET_EXECUTE. | |
8215 | * src/main.c: Adjust bitset stats calls. | |
8216 | ||
26e0cadc PE |
8217 | 2002-07-01 Paul Eggert <eggert@twinsun.com> |
8218 | ||
8219 | * src/scan-gram.l (<SC_ESCAPED_CHARACTER>): Convert to unsigned | |
8220 | char, so that negative chars don't collide with $. | |
8221 | ||
1154cced AD |
8222 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8223 | ||
8224 | Have the GLR tests be `warning' checked, and fix the warnings. | |
8225 | ||
8226 | * data/glr.c (YYFPRINTF): Always define it, not only when YYDEBUG | |
8227 | (yyuserAction, yyreportAmbiguity): `Use' all the arguments. | |
8228 | (yyremoveDeletes): `yyi' and `yyj' are size_t. | |
8229 | Use YYFPRINTF when under if (YYDEBUG) to avoid empty `if' bodies. | |
8230 | (yyaddDeferredAction): static. | |
8231 | (yyglrReduce): yyi, yyk, amd yyposn are size_t. | |
8232 | (yyreportParseError): yyprefix is const. | |
8233 | yytokenp is used only when verbose. | |
8234 | (yy__GNUC__): Replace with __GNUC__. | |
8235 | (yypdumpstack): yyi is size_t. | |
8236 | (yypreference): Un-yy local variables and arguments, to avoid | |
8237 | clashes with `yyr1'. Anyway, we are not in the user name space. | |
8238 | (yytname_size): be an int, as is compared with ints. | |
8239 | * tests/testsuite.at (AT_COMPILE, AT_PARSER_CHECK): New. | |
8240 | Use them. | |
8241 | * tests/cxx-gram.at: Use quotation to protect $1. | |
8242 | Use AT_COMPILE to enable warnings hunts. | |
8243 | Prototype yylex and yyerror. | |
8244 | `Use' argc. | |
8245 | Include `string.h', not `strings.h'. | |
8246 | Produce and prototype stmtMerge only when used. | |
8247 | yylex takes a location. | |
8248 | ||
97650f4e AD |
8249 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8250 | ||
8251 | We spend a lot of time in quotearg, in particular when --verbose. | |
8252 | ||
8253 | * src/symtab.c (symbol_get): Store a quoted version of the key. | |
8254 | (symbol_tag_get, symbol_tag_get_n, symbol_tag_print): Remove. | |
8255 | Adjust all callers. | |
8256 | ||
d2576365 AD |
8257 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8258 | ||
8259 | * src/state.h (reductions_t): Rename member `nreds' as num. | |
8260 | (errs_t): Rename members `nerrs' and `errs' as `num' and `symbols'. | |
8261 | * src/state.c (ERRS_ALLOC, REDUCTIONS_ALLOC): Use the correct types. | |
8262 | ||
ccaf65bc AD |
8263 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8264 | ||
8265 | * src/state.h, src/state.c (shift_t, SHIFT_SYMBOL, SHIFT_IS_SHIFT) | |
8266 | (SHIFT_IS_GOTO, SHIFT_IS_ERROR, SHIFT_DISABLE, SHIFT_IS_DISABLED) | |
8267 | (shifts_to): Rename as... | |
8268 | (transition_t, TRANSITION_SYMBOL, TRANSITION_IS_TRANSITION) | |
8269 | (TRANSITION_IS_GOTO, TRANSITION_IS_ERROR, TRANSITION_DISABLE) | |
8270 | (TRANSITION_IS_DISABLED, transitions_to): these. | |
8271 | ||
87675353 AD |
8272 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8273 | ||
8274 | * src/print.c (print_shifts, print_gotos): Merge into... | |
8275 | (print_transitions): this. | |
8276 | (print_transitions, print_errs, print_reductions): Align the | |
8277 | lookaheads columns. | |
8278 | (print_core, print_transitions, print_errs, print_state, | |
8279 | print_grammar): Output empty lines separator before, not after. | |
8280 | (state_default_rule_compute): Rename as... | |
8281 | (state_default_rule): this. | |
8282 | * tests/conflicts.at (Defaulted Conflicted Reduction), | |
8283 | (Unresolved SR Conflicts, Resolved SR Conflicts): Adjust. | |
8284 | * tests/regression.at (Rule Line Numbers, Web2c Report): Adjust. | |
8285 | ||
ce4ccb4b AD |
8286 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8287 | ||
8288 | Display items as we display rules. | |
8289 | ||
8290 | * src/gram.h, src/gram.c (rule_lhs_print): New. | |
8291 | * src/gram.c (grammar_rules_partial_print): Use it. | |
8292 | * src/print.c (print_core): Likewise. | |
8293 | * tests/conflicts.at (Defaulted Conflicted Reduction), | |
8294 | (Unresolved SR Conflicts): Adjust. | |
8295 | (Unresolved SR Conflicts): Adjust and rename as... | |
8296 | (Resolved SR Conflicts): this, as was meant. | |
8297 | * tests/regression.at (Web2c Report): Adjust. | |
8298 | ||
bc933ef1 AD |
8299 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8300 | ||
8301 | * src/print.c (state_default_rule_compute): New, extracted from... | |
8302 | (print_reductions): here. | |
8303 | Pessimize, but clarify the code. | |
8304 | * tests/conflicts.at (Defaulted Conflicted Reduction): New. | |
8305 | ||
53d4308d AD |
8306 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8307 | ||
8308 | * src/output.c (action_row): Let default_rule be always a rule | |
8309 | number. | |
8310 | ||
574fb2d5 AD |
8311 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8312 | ||
8313 | * src/closure.c (print_firsts, print_fderives, closure): | |
8314 | Use BITSET_EXECUTE. | |
8315 | * src/lalr.c (lookaheads_print): Likewise. | |
8316 | * src/state.c (state_rule_lookaheads_print): Likewise. | |
8317 | * src/print_graph.c (print_core): Likewise. | |
8318 | * src/print.c (print_reductions): Likewise. | |
8319 | * src/output.c (action_row): Likewise. | |
8320 | Use SHIFT_IS_DISABLED, SHIFT_IS_SHIFT and SHIFT_SYMBOL. | |
8321 | ||
05811fd7 AD |
8322 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8323 | ||
8324 | * src/print_graph.c: Use report_flag. | |
8325 | ||
0e4d5753 AD |
8326 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8327 | ||
8328 | * src/lalr.c (traverse, digraph, matrix_print, transpose): Move | |
8329 | to... | |
8330 | * src/relation.h, src/relation.c (traverse, relation_digraph) | |
8331 | (relation_print, relation_transpose): New. | |
8332 | ||
24c7d800 AD |
8333 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8334 | ||
8335 | * src/state.h, src/state.c (shifts_to): New. | |
8336 | * src/lalr.c (build_relations): Use it. | |
8337 | ||
9222837b AD |
8338 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8339 | ||
8340 | * src/gram.h (rule_number_t, RULE_NUMBER_MAX, int_of_rule_number) | |
8341 | (item_number_of_rule_number, rule_number_of_item_number): New. | |
8342 | * src/LR0.c, src/closure.c, src/derives.c, src/derives.h, | |
8343 | * src/gram.c, src/lalr.c, src/nullable.c, src/output.c, src/print.c, | |
8344 | * src/print_graph.c, src/reader.c, src/reduce.c, src/reduce.h: | |
8345 | Propagate their use. | |
8346 | Much remains to be done, in particular wrt `shorts' from types.h. | |
8347 | ||
260008e5 AD |
8348 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8349 | ||
8350 | * src/symtab.c (symbol_new): Initialize the `printer' member. | |
8351 | ||
8a731ca8 AD |
8352 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8353 | ||
8354 | * src/LR0.c (save_reductions): Remove, replaced by... | |
8355 | * src/state.h, src/state.c (state_reductions_set): New. | |
8356 | (reductions, errs): Rename as... | |
8357 | (reductions_t, errs_t): these. | |
8358 | Adjust all dependencies. | |
8359 | ||
32e1e0a4 AD |
8360 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8361 | ||
8362 | * src/LR0.c (state_list_t, state_list_append): New. | |
8363 | (first_state, last_state): Now symbol_list_t. | |
8364 | (this_state): Remove. | |
8365 | (new_itemsets, append_states, save_reductions): Take a state_t as | |
8366 | argument. | |
8367 | (set_states, generate_states): Adjust. | |
8368 | (save_shifts): Remove, replaced by... | |
8369 | * src/state.h, src/state.c (state_shifts_set): New. | |
8370 | (shifts): Rename as... | |
8371 | (shifts_t): this. | |
8372 | Adjust all dependencies. | |
8373 | * src/state.h (state_t): Remove the `next' member. | |
8374 | ||
e5fb6710 AD |
8375 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8376 | ||
8377 | * src/vcg.c (quote): Use slot 2, since we often pass symbol tag | |
8378 | escaped in slot 0. | |
8379 | ||
c7ca99d4 AD |
8380 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8381 | ||
8382 | Use hash.h for the state hash table. | |
8383 | ||
8384 | * src/LR0.c (STATE_HASH_SIZE, state_hash): Remove. | |
8385 | (allocate_storage): Use state_hash_new. | |
8386 | (free_storage): Use state_hash_free. | |
8387 | (new_state, get_state): Adjust. | |
8388 | * src/lalr.h, src/lalr.c (states): Move to... | |
8389 | * src/states.h (state_t): Remove the `link' member, no longer | |
8390 | used. | |
8391 | * src/states.h, src/states.c: here. | |
8392 | (state_hash_new, state_hash_free, state_hash_lookup) | |
8393 | (state_hash_insert, states_free): New. | |
8394 | * src/states.c (state_table, state_compare, state_hash): New. | |
8395 | * src/output.c (output_actions): Do not free states now, since we | |
8396 | still need to know the final_state number in `prepare', called | |
8397 | afterwards. Do it... | |
8398 | * src/main.c (main): here: call states_free after `output'. | |
8399 | ||
df0e7316 AD |
8400 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8401 | ||
8402 | * src/state.h, src/state.c (state_new): New, extracted from... | |
8403 | * src/LR0.c (new_state): here. | |
8404 | * src/state.h (STATE_ALLOC): Move to... | |
8405 | * src/state.c: here. | |
8406 | * src/LR0.h, src/LR0.c (nstates, final_state): Move to... | |
8407 | * src/state.h, src/state.c: here. | |
8408 | ||
39f41916 AD |
8409 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8410 | ||
8411 | * src/reader.c (gensym): Rename as... | |
8412 | * src/symtab.h, src/symtab.c (dummy_symbol_get): this. | |
8413 | (getsym): Rename as... | |
8414 | (symbol_get): this. | |
8415 | ||
d57650a5 AD |
8416 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8417 | ||
8418 | * src/state.h (state_number_t, STATE_NUMBER_MAX): New. | |
8419 | * src/LR0.c, src/LR0.h, src/conflicts.c, src/lalr.c, src/lalr.h, | |
8420 | * src/output.c, src/print.c, src/print_graph.c: Propagate. | |
8421 | * src/LR0.h, src/LR0.h (final_state): Is a state_t*. | |
8422 | ||
5a08f1ce AD |
8423 | 2002-06-30 Akim Demaille <akim@epita.fr> |
8424 | ||
8425 | Make the test suite pass with warnings checked. | |
8426 | ||
8427 | * tests/actions.at (Printers and Destructors): Improve. | |
8428 | Avoid unsigned vs. signed issues. | |
8429 | * tests/calc.at: Don't exercise the scanner here, do it... | |
8430 | * tests/input.at (Torturing the Scanner): here. | |
8431 | ||
720623af PH |
8432 | 2002-06-28 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
8433 | ||
88e7e941 | 8434 | * data/glr.c: Correct typo in Emacs-mode directive. Slightly |
720623af PH |
8435 | reorganize first lines parallel to yacc.c. |
8436 | ||
fb8135fa AD |
8437 | 2002-06-28 Akim Demaille <akim@epita.fr> |
8438 | ||
8439 | * data/c.m4 (b4_copyright, b4_sint_type, b4_uint_type, b4_token_define) | |
8440 | (b4_token_enum, b4_token_defines): New, factored from... | |
8441 | * data/lalr1.cc, data/yacc.c, glr.c: here. | |
8442 | ||
41442480 AD |
8443 | 2002-06-28 Akim Demaille <akim@epita.fr> |
8444 | ||
8445 | * data/yacc.c (yydestruct, yysymprint): Pacify GCC warnings for | |
8446 | unused variables. | |
8447 | * src/output.c (merger_output): static. | |
8448 | ||
e0e5bf84 AD |
8449 | 2002-06-28 Akim Demaille <akim@epita.fr> |
8450 | ||
ba0fe3c7 | 8451 | * src/reader.h: s/grammer_current_rule_merge_set/grammar_.../. |
e0e5bf84 AD |
8452 | * src/conflicts.c (conflicts_total_count): `i' is unsigned, to |
8453 | pacify GCC. | |
8454 | * src/output.c (save_row): Initialize all the variables to pacify GCC. | |
e0e5bf84 | 8455 | |
676385e2 PH |
8456 | 2002-06-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
8457 | ||
8458 | Accumulated changelog for new GLR parsing features. | |
8459 | ||
6a254321 | 8460 | * src/conflicts.c (count_total_conflicts): Change name to |
676385e2 PH |
8461 | conflicts_total_count. |
8462 | * src/conflicts.h: Ditto. | |
8463 | * src/output.c (token_actions): Use the new name. | |
8464 | (output_conflicts): Change conflp => conflict_list_heads, and | |
8465 | confl => conflict_list for better readability. | |
8466 | * data/glr.c: Use the new names. | |
8467 | * NEWS: Add self to GLR announcement. | |
e0e5bf84 | 8468 | |
676385e2 PH |
8469 | * src/reader.c (free_merger_functions): Cleanup: XFREE->free. |
8470 | ||
8471 | * doc/bison.texinfo (GLR Parsers): Make corrections suggested by | |
8472 | Akim Demaille. | |
8473 | ||
8474 | * data/bison.glr: Change name to glr.c | |
8475 | * data/glr.c: Renamed from bison.glr. | |
8476 | * data/Makefile.am: Add glr.c | |
e0e5bf84 AD |
8477 | |
8478 | * src/getargs.c: | |
8479 | ||
676385e2 | 8480 | * src/symlist.h: Add dprec and merger fields to symbol_list_s. |
ba0fe3c7 | 8481 | * src/symlist.c (symbol_list_new): Initialize dprec and merger fields. |
e0e5bf84 | 8482 | |
676385e2 PH |
8483 | Originally 2002-06-16 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
8484 | ||
8485 | * data/bison.glr: Be sure to restore the | |
8486 | current #line when returning to the skeleton contents after having | |
8487 | exposed the input file's #line. | |
8488 | ||
8489 | Originally 2002-06-13 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> | |
8490 | ||
8491 | * data/bison.glr: Bring up to date with changes to bison.simple. | |
8492 | ||
8493 | Originally 2002-06-03 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> | |
8494 | ||
8495 | * data/bison.glr: Correct definitions that use b4_prefix. | |
8496 | Various reformatting. | |
8497 | (GLRStack): Make yychar (in YYPURE case) and yytokenp as part of stack. | |
8498 | (yyreportParseError, yyrecoverParseError, yyprocessOneStack): remove | |
8499 | yytokenp argument; now part of stack. | |
8500 | (yychar): Define to behave as documented. | |
8501 | (yyclearin): Ditto. | |
e0e5bf84 | 8502 | |
676385e2 PH |
8503 | Originally 2002-05-14 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
8504 | ||
8505 | * src/reader.h: Add declaration for free_merger_functions. | |
8506 | ||
8507 | * src/reader.c (merge_functions): New variable. | |
8508 | (get_merge_function): New function. | |
8509 | (free_merger_functions): New function. | |
8510 | (readgram): Check for %prec that is not followed by a symbol. | |
8511 | Handle %dprec and %merge declarations. | |
8512 | (packgram): Initialize dprec and merger fields in rules array. | |
8513 | ||
8514 | * src/output.c (conflict_tos, conflrow, conflict_table, conflict_list, | |
8515 | conflict_list_cnt, conflict_list_free): New variables. | |
8516 | (table_grow): Also grow conflict_table. | |
e0e5bf84 | 8517 | (prepare_rules): Output dprec and merger tables. |
676385e2 | 8518 | (conflict_row): New function. |
e0e5bf84 | 8519 | (action_row): Output conflict lists for GLR parser. Don't use |
676385e2 PH |
8520 | default reduction in conflicted states for GLR parser so that there |
8521 | are spaces for the conflict lists. | |
8522 | (save_row): Also save conflict information. | |
8523 | (token_actions): Allocate conflict list. | |
8524 | (merger_output): New function. | |
8525 | (pack_vector): Pack conflict table, too. | |
8526 | (output_conflicts): New function to output yyconflp and yyconfl. | |
8527 | (output_check): Allocate conflict_tos. | |
8528 | (output_actions): Output conflict tables, also. | |
8529 | (output_skeleton): Output b4_mergers definition. | |
8530 | (prepare): Output b4_max_rhs_length definition. | |
8531 | Use 'bison.glr' as default skeleton for GLR parsers. | |
8532 | ||
8533 | * src/gram.c (glr_parser): New flag. | |
8534 | (grammar_free): Call free_merger_functions. | |
8535 | ||
8536 | * src/conflicts.c (count_rr_conflicts): Augment to optionally count | |
8537 | all pairs of conflicting reductions, rather than just all tokens | |
8538 | causing conflicts. Needed to size conflict tables. | |
e0e5bf84 | 8539 | (conflicts_output): Modify call to count_rr_conflicts for new |
676385e2 PH |
8540 | interface. |
8541 | (conflicts_print): Ditto. | |
8542 | (count_total_conflicts): New function. | |
8543 | ||
8544 | * src/reader.h (merger_list): New type. | |
8545 | (merge_functions): New variable. | |
8546 | ||
8547 | * src/lex.h (tok_dprec, tok_merge): New token types. | |
8548 | ||
8549 | * src/gram.h (rule_s): Add dprec and merger fields. | |
8550 | (glr_parser): New flag. | |
8551 | ||
8552 | * src/conflicts.h (count_total_conflicts): New function. | |
8553 | ||
8554 | * src/options.c (option_table): Add %dprec, %merge, and %glr-parser. | |
8555 | ||
8556 | * doc/bison.texinfo (Generalized LR Parsing): New section. | |
8557 | (GLR Parsers): New section. | |
8558 | (Language and Grammar): Mention GLR parsing. | |
8559 | (Table of Symbols): Add %dprec, %glr-parser, %merge, GLR | |
8560 | Correct typo ("tge" -> "the"). | |
8561 | ||
8562 | * data/bison.glr: New skeleton for GLR parsing. | |
8563 | ||
8564 | * tests/cxx-gram.at: New tests for GLR parsing. | |
8565 | ||
8566 | * tests/testsuite.at: Include cxx-gram.at. | |
8567 | ||
8568 | * tests/Makefile.am: Add cxx-gram.at. | |
e0e5bf84 | 8569 | |
676385e2 PH |
8570 | * src/parse-gram.y: |
8571 | ||
8572 | * src/scan-gram.l: Add %dprec, %glr-parser, %merge. | |
8573 | ||
8574 | * src/parse-gram.y: Grammar for %dprec, %merge, %glr-parser. | |
e0e5bf84 | 8575 | |
b5480d74 | 8576 | 2002-06-27 Akim Demaille <akim@epita.fr> |
e2aaf4c4 AD |
8577 | |
8578 | * src/options.h, src/options.c: Remove. | |
8579 | * src/getargs.c (short_options, long_options): New. | |
8580 | ||
60491a94 AD |
8581 | 2002-06-27 Akim Demaille <akim@epita.fr> |
8582 | ||
8583 | * data/bison.simple, data/bison.c++: Rename as... | |
8584 | * data/yacc.c, data/lalr1.cc: these. | |
8585 | * doc/bison.texinfo (Environment Variables): Remove. | |
8586 | ||
9be0c25b AD |
8587 | 2002-06-25 Raja R Harinath <harinath@cs.umn.edu> |
8588 | ||
8589 | * src/getargs.c (report_argmatch): Initialize strtok(). | |
8590 | ||
1ae72863 AD |
8591 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8592 | ||
8593 | * data/bison.simple (b4_symbol_actions): New, replaces... | |
8594 | (b4_symbol_destructor, b4_symbol_printer): these. | |
8595 | (yysymprint): Be sure to call YYPRINT only for tokens, and using | |
8596 | user token numbers. | |
8597 | ||
87542d29 AD |
8598 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8599 | ||
8600 | * data/bison.simple (yydestructor): Rename as... | |
8601 | (yydestruct): this. | |
8602 | ||
1a31ed21 AD |
8603 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8604 | ||
8605 | * src/symtab.h, src/symtab.c (symbol_type_set) | |
8606 | (symbol_destructor_set, symbol_precedence_set): The location is | |
8607 | the last argument. | |
8608 | Adjust all callers. | |
8609 | ||
e776192e AD |
8610 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8611 | ||
8612 | * src/parse-gram.y (YYPRINT, yyprint): Don't mess with the parser | |
8613 | internals. | |
8614 | * src/reader.h, src/reader.c (grammar_current_rule_prec_set): | |
8615 | Takes a location. | |
8616 | * src/symtab.h, src/symtab.c (symbol_class_set) | |
8617 | (symbol_user_token_number_set): Likewise. | |
8618 | Adjust all callers. | |
8619 | Promote complain_at. | |
8620 | * tests/input.at (Type Clashes): Adjust. | |
8621 | ||
5c1180b3 AD |
8622 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8623 | ||
8624 | * data/bison.simple (YYLEX): Fix the declaration when | |
8625 | %pure-parser. | |
8626 | ||
e3170060 AD |
8627 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8628 | ||
8629 | * data/bison.simple (yysymprint): Don't print the token number, | |
8630 | just its name. | |
8631 | * tests/actions.at (Destructors): Rename as... | |
8632 | (Printers and Destructors): this. | |
8633 | Also exercise %printer. | |
8634 | ||
253862fd AD |
8635 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8636 | ||
8637 | * data/bison.simple (YYDSYMPRINT): New. | |
8638 | Use it to remove many of the #if YYDEBUG/if (yydebug). | |
8639 | ||
366eea36 AD |
8640 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8641 | ||
8642 | * src/symtab.h, src/symtab.c (symbol_t): printer and | |
8643 | printer_location are new members. | |
8644 | (symbol_printer_set): New. | |
8645 | * src/parse-gram.y (PERCENT_PRINTER): New token. | |
8646 | Handle its associated rule. | |
8647 | * src/scan-gram.l: Adjust. | |
8648 | (handle_destructor_at, handle_destructor_dollar): Rename as... | |
8649 | (handle_symbol_code_at, handle_symbol_code_dollar): these. | |
8650 | * src/output.c (symbol_printers_output): New. | |
8651 | (output_skeleton): Call it. | |
8652 | * data/bison.simple (yysymprint): New. Cannot be named yyprint | |
8653 | since there are already many grammar files with a user `yyprint'. | |
8654 | Replace the calls to YYPRINT to calls to yysymprint. | |
8655 | * tests/calc.at: Adjust. | |
8656 | * tests/torture.at (AT_DATA_STACK_TORTURE): Remove YYPRINT: it was | |
8657 | taking advantage of parser very internal details (stack size!). | |
8658 | ||
4f25ebb0 AD |
8659 | 2002-06-20 Akim Demaille <akim@epita.fr> |
8660 | ||
8661 | * src/scan-gram.l: Complete the scanner with the missing patterns | |
8662 | to pacify Flex. | |
8663 | Use `quote' and `symbol_tag_get' where appropriate. | |
8664 | ||
93b68a0e AD |
8665 | 2002-06-19 Akim Demaille <akim@epita.fr> |
8666 | ||
8667 | * tests/actions.at (Destructors): Augment to test locations. | |
8668 | * data/bison.simple (yydestructor): Pass it the current location | |
8669 | if locations are enabled. | |
8670 | Prototype only when __STDC__ or C++. | |
8671 | Change the argument names to move into the yy name space: there is | |
8672 | user code here. | |
8673 | ||
58612f1d AD |
8674 | 2002-06-19 Akim Demaille <akim@epita.fr> |
8675 | ||
74310291 AD |
8676 | * data/bison.simple (b4_pure_if): New. |
8677 | Use it instead of #ifdef YYPURE. | |
8678 | ||
8679 | 2002-06-19 Akim Demaille <akim@epita.fr> | |
8680 | ||
8681 | * data/bison.simple (b4_location_if): New. | |
58612f1d AD |
8682 | Use it instead of #ifdef YYLSP_NEEDED. |
8683 | ||
f25bfb75 AD |
8684 | 2002-06-19 Akim Demaille <akim@epita.fr> |
8685 | ||
8686 | Prepare @$ in %destructor, but currently don't bind it in the | |
8687 | skeleton, as %location use is not cleaned up yet. | |
8688 | ||
8689 | * src/scan-gram.l (handle_dollar, handle_destructor_at) | |
8690 | (handle_action_at): New. | |
8691 | (handle_at, handle_action_dollar, handle_destructor_dollar): Take | |
8692 | a braced_code_t and a location as additional arguments. | |
8693 | (handle_destructor_dollar): Instead of requiring `b4_eval', just | |
8694 | unquote one when outputting `b4_dollar_dollar'. | |
8695 | Adjust callers. | |
8696 | * data/bison.simple (b4_eval): Remove. | |
8697 | (b4_symbol_destructor): Adjust. | |
8698 | * tests/input.at (Invalid @n): Adjust. | |
8699 | ||
c732d2c6 AD |
8700 | 2002-06-19 Zack Weinberg <zack@codesourcery.com> |
8701 | ||
8702 | * doc/bison.texinfo: Document ability to have multiple | |
8703 | prologue sections. | |
8704 | ||
8c165d89 AD |
8705 | 2002-06-18 Akim Demaille <akim@epita.fr> |
8706 | ||
8707 | * src/files.c (compute_base_names): When computing the output file | |
8708 | names from the input file name, strip the directory part. | |
8709 | ||
ca98bf57 AD |
8710 | 2002-06-18 Akim Demaille <akim@epita.fr> |
8711 | ||
8712 | * data/bison.simple.new: Comment changes. | |
8713 | Reported by Andreas Schwab. | |
8714 | ||
0bfb02ff AD |
8715 | 2002-06-18 Matt Kraai <kraai@alumni.cmu.edu> |
8716 | ||
8717 | * data/bison.simple (yyoverflowlab): #ifndef yyoverflow, so that | |
8718 | there are no `label `yyoverflowlab' defined but not used' warnings | |
8719 | when yyoverflow is defined. | |
8720 | ||
24c0aad7 AD |
8721 | 2002-06-18 Akim Demaille <akim@epita.fr> |
8722 | ||
8723 | * src/symtab.h, src/symtab.c (symbol_t): destructor_location is a | |
8724 | new member. | |
8725 | (symbol_destructor_set): Adjust. | |
8726 | * src/output.c (symbol_destructors_output): Output the destructor | |
8727 | locations. | |
8728 | Output the symbol name. | |
8729 | * data/bison.simple (b4_symbol_destructor): Adjust. | |
8730 | ||
5719c109 AD |
8731 | 2002-06-18 Cris Bailiff <c.bailiff@awayweb.com> |
8732 | and Akim Demaille <akim@epita.fr> | |
8733 | ||
8734 | * data/bison.simple.new (yyerrlab1): Be sure to pop and destroy | |
8735 | what's left on the stack when the error recovery hits EOF. | |
8736 | * tests/actions.at (Destructors): Complete to exercise this case. | |
8737 | ||
9280d3ef AD |
8738 | 2002-06-17 Akim Demaille <akim@epita.fr> |
8739 | ||
8740 | * data/m4sugar/m4sugar.m4 (m4_map): Recognize when the list of | |
8741 | arguments is really empty, not only equal to `[]'. | |
8742 | * src/symtab.h, src/symtab.c (symbol_t): `destructor' is a new | |
8743 | member. | |
8744 | (symbol_destructor_set): New. | |
8745 | * src/output.c (symbol_destructors_output): New. | |
8746 | * src/reader.h (brace_code_t, current_braced_code): New. | |
8747 | * src/scan-gram.l (BRACED_CODE): Use it to branch on... | |
8748 | (handle_dollar): Rename as... | |
8749 | (handle_action_dollar): this. | |
8750 | (handle_destructor_dollar): New. | |
8751 | * src/parse-gram.y (PERCENT_DESTRUCTOR): New. | |
8752 | (grammar_declaration): Use it. | |
8753 | * data/bison.simple (yystos): Is always defined. | |
8754 | (yydestructor): New. | |
8755 | * tests/actions.at (Destructors): New. | |
8756 | * tests/calc.at (_AT_CHECK_CALC_ERROR): Don't rely on egrep. | |
8757 | ||
dafdc66f AD |
8758 | 2002-06-17 Akim Demaille <akim@epita.fr> |
8759 | ||
8760 | * src/symlist.h, src/symlist.c (symbol_list_length): New. | |
8761 | * src/scan-gram.l (handle_dollar, handle_at): Compute the | |
8762 | rule_length only when needed. | |
8763 | * src/output.c (actions_output, token_definitions_output): Output | |
8764 | the full M4 block. | |
8765 | * src/symtab.c: Don't access directly to the symbol tag, use | |
8766 | symbol_tag_get. | |
8767 | * src/parse-gram.y: Use symbol_list_free. | |
8768 | ||
56c47203 AD |
8769 | 2002-06-17 Akim Demaille <akim@epita.fr> |
8770 | ||
8771 | * src/reader.h, src/reader.c (symbol_list, symbol_list_new) | |
8772 | (symbol_list_prepend, get_type_name): Move to... | |
8773 | * src/symlist.h, src/symlist.c (symbol_list_t, symbol_list_new) | |
8774 | (symbol_list_prepend, symbol_list_n_type_name_get): here. | |
8775 | Adjust all callers. | |
8776 | (symbol_list_free): New. | |
8777 | * src/scan-gram.l (handle_dollar): Takes a location. | |
8778 | * tests/input.at (Invalid $n): Adjust. | |
8779 | ||
1e0bab92 AD |
8780 | 2002-06-17 Akim Demaille <akim@epita.fr> |
8781 | ||
8782 | * src/reader.h, src/reader.c (symbol_list_new): Export it. | |
8783 | (symbol_list_prepend): New. | |
8784 | * src/parse-gram.y (%union): `list' is a new member. | |
8785 | (symbols.1): New, replaces... | |
8786 | (terms_to_prec.1, nterms_to_type.1): these. | |
8787 | * src/symtab.h, src/symtab.c (symbol_type_set, symbol_precedence_set) | |
8788 | Take a location as additional argument. | |
8789 | Adjust all callers. | |
8790 | ||
04e60654 AD |
8791 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8792 | ||
8793 | * src/parse-gram.y: Move %token in the declaration section so that | |
8794 | we don't depend upon CVS Bison. | |
8795 | ||
10e5b8bd AD |
8796 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8797 | ||
8798 | * src/state.h, src/state.c (state_rule_lookaheads_print): New. | |
8799 | * src/print.c (print_core): Use it. | |
8800 | ||
9801d40c AD |
8801 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8802 | ||
8803 | * src/conflicts.c (log_resolution): Accept the rule involved in | |
8804 | the sr conflicts instead of the lookahead number that points to | |
8805 | that rule. | |
8806 | (flush_reduce): Accept the current lookahead vector as argument, | |
8807 | instead of the index in LA. | |
8808 | (resolve_sr_conflict): Accept the current number of lookahead | |
8809 | bitset to consider for the STATE, instead of the index in LA. | |
8810 | (set_conflicts): Adjust. | |
8811 | * src/lalr.c, src/lalr.h, src/state.h: Comment changes. | |
8812 | ||
c0263492 AD |
8813 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8814 | ||
8815 | * src/state.h (state_t): Replace the `lookaheadsp' member, a | |
8816 | short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**). | |
8817 | Adjust all dependencies. | |
8818 | * src/lalr.c (initialize_lookaheads): Split into... | |
8819 | (states_lookaheads_count, states_lookaheads_initialize): these. | |
8820 | (lalr): Adjust. | |
8821 | ||
9757c359 AD |
8822 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8823 | ||
8824 | * src/gram.h, src/gram.c (grammar_rules_partial_print): New, eved | |
8825 | out of... | |
8826 | (grammar_rules_print): here. | |
8827 | * src/reduce.c (reduce_output): Use it. | |
8828 | * tests/reduce.at (Useless Rules, Reduced Automaton) | |
8829 | (Underivable Rules): Adjust. | |
8830 | ||
6b98e4b5 AD |
8831 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8832 | ||
8833 | Copy BYacc's nice way to report the grammar. | |
8834 | ||
8835 | * src/gram.h, src/gram.c (grammar_rhs_print, grammar_rules_print): | |
8836 | New. | |
8837 | Don't print the rules' location, it is confusing and useless. | |
8838 | (rule_print): Use grammar_rhs_print. | |
8839 | * src/print.c (print_grammar): Use grammar_rules_print. | |
8840 | ||
6b98e4b5 AD |
8841 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8842 | ||
8843 | Complete and rationalize `useless thing' warnings. | |
8844 | ||
8845 | * src/symtab.h, src/symtab.c (symbol_tag_get, symbol_tag_get_n) | |
8846 | (symbol_tag_print): New. | |
8847 | Use them everywhere in place of accessing directly the tag member. | |
8848 | * src/gram.h, src/gram.c (rule_print): New. | |
8849 | Use it where a rule used to be printed `by hand'. | |
8850 | * src/reduce.c (nonterminals_reduce): Report the use nonterminals. | |
8851 | (reduce_grammar_tables): Report the useless rules. | |
8852 | (reduce_print): Useless things are a warning, not an error. | |
8853 | Report it as such. | |
8854 | * tests/reduce.at (Useless Nonterminals, Useless Rules): | |
8855 | (Reduced Automaton, Underivable Rules): Adjust. | |
8856 | * tests/regression.at (Web2c Report, Web2c Report): Adjust. | |
8857 | * tests/conflicts.at (Unresolved SR Conflicts) | |
8858 | (Solved SR Conflicts): Adjust. | |
8859 | ||
ee000ba4 AD |
8860 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8861 | ||
8862 | Let symbols have a location. | |
8863 | ||
8864 | * src/symtab.h, src/symtab.c (symbol_t): Location is a new member. | |
8865 | (getsym): Adjust. | |
8866 | Adjust all callers. | |
8867 | * src/complain.h, src/complain.c (complain_at, fatal_at, warn_at): | |
8868 | Use location_t, not int. | |
8869 | * src/symtab.c (symbol_check_defined): Take advantage of the | |
8870 | location. | |
8871 | * tests/regression.at (Invalid inputs): Adjust. | |
8872 | ||
8efe435c AD |
8873 | 2002-06-15 Akim Demaille <akim@epita.fr> |
8874 | ||
8875 | * src/parse-gram.y (YYLLOC_DEFAULT, current_lhs_location): New. | |
8876 | (input): Don't try to initialize yylloc here, do it in the | |
8877 | scanner. | |
8878 | * src/scan-gram.l (YY_USER_INIT): Initialize yylloc. | |
8879 | * src/gram.h (rule_t): Change line and action_line into location | |
8880 | and action_location, of location_t type. | |
8881 | Adjust all dependencies. | |
8882 | * src/location.h, src/location.c (empty_location): New. | |
8883 | * src/reader.h, src/reader.c (grammar_start_symbol_set) | |
8884 | (grammar_symbol_append, grammar_rule_begin, grammar_rule_end) | |
8885 | (grammar_current_rule_symbol_append) | |
8886 | (grammar_current_rule_action_append): Expect a location as argument. | |
8887 | * src/reader.c (grammar_midrule_action): Adjust to attach an | |
8888 | action's location as dummy symbol location. | |
8889 | * src/symtab.h, src/symtab.c (startsymbol_location): New. | |
8890 | * tests/regression.at (Web2c Report, Rule Line Numbers): Adjust | |
8891 | the line numbers. | |
8892 | ||
1921f1d7 AD |
8893 | 2002-06-14 Akim Demaille <akim@epita.fr> |
8894 | ||
8895 | Grammar declarations may be found in the grammar section. | |
8896 | ||
8897 | * src/parse-gram.y (rules_or_grammar_declaration): New. | |
8898 | (declarations): Each declaration may end with a semicolon, not | |
8899 | just... | |
8900 | (grammar_declaration): `"%union"'. | |
8901 | (grammar): Branch to rules_or_grammar_declaration. | |
8902 | ||
4515534c AD |
8903 | 2002-06-14 Akim Demaille <akim@epita.fr> |
8904 | ||
8905 | * src/main.c (main): Invoke scanner_free. | |
8906 | ||
f958596b AD |
8907 | 2002-06-14 Akim Demaille <akim@epita.fr> |
8908 | ||
8909 | * src/output.c (m4_invoke): Extracted from... | |
8910 | (output_skeleton): here. | |
8911 | Free tempfile. | |
8912 | ||
2c569025 AD |
8913 | 2002-06-14 Akim Demaille <akim@epita.fr> |
8914 | ||
8915 | * src/parse-gram.y (directives, directive, gram) | |
8916 | (grammar_directives, precedence_directives, precedence_directive): | |
8917 | Rename as... | |
8918 | (declarations, declaration, grammar, grammar_declaration) | |
8919 | (precedence_declaration, precedence_declarator): these. | |
8920 | (symbol_declaration): New. | |
8921 | ||
592e8d4d AD |
8922 | 2002-06-14 Akim Demaille <akim@epita.fr> |
8923 | ||
8924 | * src/files.c (action_obstack): Remove, unused. | |
8925 | (output_obstack): Remove it, and all its dependencies, as it is no | |
8926 | longer needed. | |
8927 | * src/reader.c (epilogue_set): Build the epilogue in the | |
8928 | muscle_obstack. | |
8929 | * src/output.h, src/output.c (muscle_obstack): Move to... | |
8930 | * src/muscle_tab.h, src/muscle_tab.h: here. | |
8931 | (muscle_init): Initialize muscle_obstack. | |
8932 | (muscle_free): New. | |
8933 | * src/main.c (main): Call it. | |
8934 | ||
0c15323d AD |
8935 | 2002-06-14 Akim Demaille <akim@epita.fr> |
8936 | ||
8937 | * src/location.h: New, extracted from... | |
8938 | * src/reader.h: here. | |
8939 | * src/Makefile.am (noinst_HEADERS): Merge into | |
8940 | (bison_SOURCES): this. | |
8941 | Add location.h. | |
8942 | * src/parse-gram.y: Use location_t instead of Bison's. | |
8943 | * src/reader.h, src/reader.c (prologue_augment, epilogue_set): | |
8944 | Use location_t instead of ints. | |
8945 | ||
e96c9728 AD |
8946 | 2002-06-14 Akim Demaille <akim@epita.fr> |
8947 | ||
8948 | * data/bison.simple, data/bison.c++: Be sure to restore the | |
8949 | current #line when returning to the skeleton contents after having | |
8950 | exposed the input file's #line. | |
8951 | ||
75d1fe16 AD |
8952 | 2002-06-12 Akim Demaille <akim@epita.fr> |
8953 | ||
8954 | * src/scan-gram.l (SC_BRACED_CODE): Don't use `<.*>', it is too | |
8955 | eager. | |
8956 | * tests/actions.at (Exotic Dollars): New. | |
8957 | ||
6c35d22c AD |
8958 | 2002-06-12 Akim Demaille <akim@epita.fr> |
8959 | ||
8960 | * src/scan-gram.l (SC_PROLOGUE): Don't eat characters amongst | |
8961 | ['"/] too eagerly. | |
8962 | * tests/input.at (Torturing the Scanner): New. | |
8963 | ||
1d6412ad AD |
8964 | 2002-06-11 Akim Demaille <akim@epita.fr> |
8965 | ||
8966 | * src/scan-gram.l (YY_OBS_INIT): Remove, replace with... | |
8967 | [SC_COMMENT,SC_STRING,SC_CHARACTER,SC_BRACED_CODE,SC_PROLOGUE] | |
8968 | [SC_EPILOGUE]: Output the quadrigraphs only when not in a comment. | |
8969 | * src/reader.h, src/scan-gram.l (scanner_initialize): this. | |
8970 | * src/reader.c (reader): Use it. | |
8971 | ||
4cdb01db AD |
8972 | 2002-06-11 Akim Demaille <akim@epita.fr> |
8973 | ||
8974 | * src/scan-gram.l (YY_OBS_FINISH): Don't set yylval. | |
8975 | Adjust all callers. | |
8976 | (scanner_last_string_free): New. | |
8977 | ||
44995b2e AD |
8978 | 2002-06-11 Akim Demaille <akim@epita.fr> |
8979 | ||
8980 | * src/scan-gram.l (YY_INIT, YY_GROW, YY_FINISH): Rename as... | |
8981 | (YY_OBS_INIT, YY_OBS_GROW, YY_OBS_FINISH): these. | |
8982 | (last_string, YY_OBS_FREE): New. | |
8983 | Use them when returning an ID. | |
8984 | ||
e9955c83 AD |
8985 | 2002-06-11 Akim Demaille <akim@epita.fr> |
8986 | ||
8987 | Have Bison grammars parsed by a Bison grammar. | |
8988 | ||
8989 | * src/reader.c, src/reader.h (prologue_augment): New. | |
8990 | * src/reader.c (copy_definition): Remove. | |
8991 | ||
8992 | * src/reader.h, src/reader.c (gram_start_symbol_set, prologue_augment) | |
8993 | (grammar_symbol_append, grammar_rule_begin, grammar_midrule_action) | |
8994 | (grammar_current_rule_prec_set, grammar_current_rule_check) | |
8995 | (grammar_current_rule_symbol_append) | |
8996 | (grammar_current_rule_action_append): Export. | |
8997 | * src/parse-gram.y (symbol_list_new, symbol_list_symbol_append_ | |
8998 | (symbol_list_action_append): Remove. | |
8999 | Hook the routines from reader. | |
9000 | * src/scan-gram.l: In INITIAL, characters and strings are tokens. | |
9001 | * src/system.h (ATTRIBUTE_NORETURN, ATTRIBUTE_UNUSED): Now. | |
9002 | ||
9003 | * src/reader.c (read_declarations): Remove, unused. | |
9004 | ||
9005 | * src/parse-gram.y: Handle the epilogue. | |
9006 | * src/reader.h, src/reader.c (gram_start_symbol_set): Rename as... | |
9007 | (grammar_start_symbol_set): this. | |
9008 | * src/scan-gram.l: Be sure to ``use'' yycontrol to keep GCC quiet. | |
9009 | * src/reader.c (readgram): Remove, unused. | |
9010 | (reader): Adjust to insert eoftoken and axiom where appropriate. | |
9011 | ||
9012 | * src/reader.c (copy_dollar): Replace with... | |
9013 | * src/scan-gram.h (handle_dollar): this. | |
9014 | * src/parse-gram.y: Remove `%thong'. | |
9015 | ||
9016 | * src/reader.c (copy_at): Replace with... | |
9017 | * src/scan-gram.h (handle_at): this. | |
9018 | ||
9019 | * src/complain.h, src/complain.c (warn_at, complain_at, fatal_at): | |
9020 | New. | |
9021 | ||
9022 | * src/scan-gram.l (YY_LINES): Keep lineno synchronized for the | |
9023 | time being. | |
9024 | ||
9025 | * src/reader.h, src/reader.c (grammar_rule_end): New. | |
9026 | ||
9027 | * src/parse.y (current_type, current_class): New. | |
9028 | Implement `%nterm', `%token' support. | |
9029 | Merge `%term' into `%token'. | |
9030 | (string_as_id): New. | |
9031 | * src/symtab.h, src/symtab.c (symbol_make_alias): Don't pass the | |
9032 | type name. | |
9033 | ||
9034 | * src/parse-gram.y: Be sure to handle properly the beginning of | |
9035 | rules. | |
9036 | ||
9037 | * src/parse-gram.y: Handle %type. | |
9038 | * src/reader.c (grammar_rule_end): Call grammar_current_rule_check. | |
9039 | ||
9040 | * src/parse-gram.y: More directives support. | |
9041 | * src/options.c: No longer handle source directives. | |
9042 | ||
9043 | * src/parse-gram.y: Fix %output. | |
9044 | ||
9045 | * src/parse-gram.y: Handle %union. | |
9046 | Use the prologue locations. | |
9047 | * src/reader.c (parse_union_decl): Remove. | |
9048 | ||
9049 | * src/reader.h, src/reader.c (epilogue_set): New. | |
9050 | * src/parse-gram.y: Use it. | |
9051 | ||
9052 | * data/bison.simple, data/bison.c++: b4_stype is now either not | |
9053 | defined, then default to int, or to the contents of %union, | |
9054 | without `union' itself. | |
9055 | Adjust. | |
9056 | * src/muscle_tab.c (muscle_init): Don't predefine `stype'. | |
9057 | ||
9058 | * src/output.c (actions_output): Don't output braces, as they are | |
9059 | already handled by the scanner. | |
9060 | ||
9061 | * src/scan-gram.l (SC_CHARACTER): Set the user_token_number of | |
9062 | characters to themselves. | |
9063 | ||
9064 | * tests/reduce.at (Reduced Automaton): End the grammars with %% so | |
9065 | that the epilogue has a proper #line. | |
9066 | ||
9067 | * src/parse-gram.y: Handle precedence/associativity. | |
9068 | ||
9069 | * src/symtab.c (symbol_precedence_set): Requires the symbol to be | |
9070 | a terminal. | |
9071 | * src/scan-gram.l (SC_BRACED_CODE): Catch strings and characters. | |
9072 | * tests/calc.at: Do not use `%token "foo"' as it makes not sense | |
9073 | at all to define terminals that cannot be emitted. | |
9074 | ||
9075 | * src/scan-gram.l: Escape M4 characters. | |
9076 | ||
9077 | * src/scan-gram.l: Working properly with escapes in user | |
9078 | strings/characters. | |
9079 | ||
9080 | * tests/torture.at (AT_DATA_TRIANGULAR_GRAMMAR) | |
9081 | (AT_DATA_HORIZONTAL_GRAMMAR): Respect the `%token ID NUM STRING' | |
9082 | grammar. | |
9083 | Use more modest sizes, as for the time being the parser does not | |
9084 | release memory, and therefore the process swallows a huge amount | |
9085 | of memory. | |
9086 | ||
9087 | * tests/torture.at (AT_DATA_LOOKAHEADS_GRAMMAR): Adjust to the | |
9088 | stricter %token grammar. | |
9089 | ||
9090 | * src/symtab.h (associativity): Add `undef_assoc'. | |
9091 | (symbol_precedence_set): Do nothing when passed an undef_assoc. | |
9092 | * src/symtab.c (symbol_check_alias_consistence): Adjust. | |
9093 | ||
9094 | * tests/regression.at (Invalid %directive): Remove, as it is now | |
9095 | meaningless. | |
9096 | (Invalid inputs): Adjust to the new error messages. | |
9097 | (Token definitions): The new grammar doesn't allow too many | |
9098 | eccentricities. | |
9099 | ||
9100 | * src/lex.h, src/lex.c: Remove. | |
9101 | * src/reader.c (lastprec, skip_to_char, read_signed_integer) | |
9102 | (copy_character, copy_string2, copy_string, copy_identifier) | |
9103 | (copy_comment, parse_token_decl, parse_type_decl, parse_assoc_decl) | |
9104 | (parse_muscle_decl, parse_dquoted_param, parse_skel_decl) | |
9105 | (parse_action): Remove. | |
9106 | * po/POTFILES.in: Adjust. | |
9107 | ||
2e047461 AD |
9108 | 2002-06-11 Akim Demaille <akim@epita.fr> |
9109 | ||
cd05d13c | 9110 | * src/reader.c (parse_action): Don't store directly into the |
2e047461 AD |
9111 | rule's action member: return the action as a string. |
9112 | Don't require `rule_length' as an argument: compute it. | |
9113 | (grammar_current_rule_symbol_append) | |
9114 | (grammar_current_rule_action_append): New, eved out from | |
9115 | (readgram): here. | |
9116 | Remove `action_flag', `rulelength', unused now. | |
9117 | ||
9af3fbce AD |
9118 | 2002-06-11 Akim Demaille <akim@epita.fr> |
9119 | ||
9120 | * src/reader.c (grammar_current_rule_prec_set). | |
9121 | (grammar_current_rule_check): New, eved out from... | |
9122 | (readgram): here. | |
9123 | Remove `xaction', `first_rhs': useless. | |
9124 | * tests/input.at (Type clashes): New. | |
9125 | * tests/existing.at (GNU Cim Grammar): Adjust. | |
9126 | ||
1485e106 AD |
9127 | 2002-06-11 Akim Demaille <akim@epita.fr> |
9128 | ||
9129 | * src/reader.c (grammar_midrule_action): New, Eved out from | |
9130 | (readgram): here. | |
9131 | ||
da4160c3 AD |
9132 | 2002-06-11 Akim Demaille <akim@epita.fr> |
9133 | ||
9134 | * src/reader.c (grammar_rule_begin, previous_rule, current_rule): | |
9135 | New. | |
9136 | (readgram): Use them as replacement of inlined code, crule and | |
9137 | crule1. | |
9138 | ||
f6d0f937 AD |
9139 | 2002-06-11 Akim Demaille <akim@epita.fr> |
9140 | ||
9141 | * src/reader.c (grammar_end, grammar_symbol_append): New. | |
9142 | (readgram): Use them. | |
9143 | Make the use of `p' as local as possible. | |
9144 | ||
69078d4b AD |
9145 | 2002-06-10 Akim Demaille <akim@epita.fr> |
9146 | ||
9147 | GCJ's parser requires the tokens to be defined before the prologue. | |
9148 | ||
9149 | * data/bison.simple: Output the token definition before the user's | |
9150 | prologue. | |
9151 | * tests/regression.at (Braces parsing, Duplicate string) | |
9152 | (Mixing %token styles): Check the output from bison. | |
9153 | (Early token definitions): New. | |
9154 | ||
5e424082 AD |
9155 | 2002-06-10 Akim Demaille <akim@epita.fr> |
9156 | ||
9157 | * src/symtab.c (symbol_user_token_number_set): Don't complain when | |
9158 | assigning twice the same user number to a token, so that we can | |
9159 | use it in... | |
9160 | * src/lex.c (lex): here. | |
9161 | Also use `symbol_class_set' instead of hand written code. | |
9162 | * src/reader.c (parse_assoc_decl): Likewise. | |
9163 | ||
44536b35 AD |
9164 | 2002-06-10 Akim Demaille <akim@epita.fr> |
9165 | ||
9166 | * src/symtab.c, src/symtab.c (symbol_class_set) | |
9167 | (symbol_user_token_number_set): New. | |
9168 | * src/reader.c (parse_token_decl): Use them. | |
9169 | Use a switch instead of ifs. | |
9170 | Use a single argument. | |
9171 | ||
8b9f2372 AD |
9172 | 2002-06-10 Akim Demaille <akim@epita.fr> |
9173 | ||
9174 | Remove `%thong' support as it is undocumented, unused, duplicates | |
9175 | `%token's job, and creates useless e-mail traffic with people who | |
9176 | want to know what it is, why it is undocumented, unused, and | |
9177 | duplicates `%token's job. | |
9178 | ||
9179 | * src/reader.c (parse_thong_decl): Remove. | |
9180 | * src/options.c (option_table): Remove "thong". | |
9181 | * src/lex.h (tok_thong): Remove. | |
9182 | ||
3ae2b51f AD |
9183 | 2002-06-10 Akim Demaille <akim@epita.fr> |
9184 | ||
9185 | * src/symtab.c, src/symtab.c (symbol_type_set) | |
9186 | (symbol_precedence_set): New. | |
9187 | * src/reader.c (parse_type_decl, parse_assoc_decl): Use them. | |
9188 | (value_components_used): Remove, unused. | |
9189 | ||
2f1afb73 AD |
9190 | 2002-06-09 Akim Demaille <akim@epita.fr> |
9191 | ||
9192 | Move symbols handling code out of the reader. | |
9193 | ||
9194 | * src/reader.h, src/reader.c (errtoken, undeftoken, eoftoken) | |
9195 | (axiom): Move to... | |
9196 | * src/symtab.h, src/symtab.c: here. | |
9197 | ||
9198 | * src/gram.c (start_symbol): Remove: use startsymbol->number. | |
9199 | * src/reader.c (startval): Rename as... | |
9200 | * src/symtab.h, src/symtab.c (startsymbol): this. | |
9201 | * src/reader.c: Adjust. | |
9202 | ||
9203 | * src/reader.c (symbol_check_defined, symbol_make_alias) | |
9204 | (symbol_check_alias_consistence, symbol_pack, symbol_translation) | |
9205 | (token_translations_init) | |
9206 | Move to... | |
9207 | * src/symtab.c: here. | |
9208 | * src/reader.c (packsymbols): Move to... | |
9209 | * src/symtab.h, src/symtab.c (symbols_pack): here. | |
9210 | * src/symtab.h, src/symtab.c (symbol_make_alias): Takes SYMVAL as | |
9211 | argument. | |
9212 | ||
e9bca3ad AD |
9213 | 2002-06-03 Akim Demaille <akim@epita.fr> |
9214 | ||
9215 | * src/muscle_tab.c (muscle_insert, muscle_find): Declarations, | |
9216 | then statements. | |
9217 | ||
86eff183 AD |
9218 | 2002-06-03 Akim Demaille <akim@epita.fr> |
9219 | ||
9220 | * src/muscle_tab.c (muscle_find, muscle_insert): Don't initialize | |
9221 | structs with non literals. | |
9222 | * src/scan-skel.l: never-interactive. | |
9223 | * src/conflicts.c (enum conflict_resolution_e): No trailing | |
9224 | comma. | |
9225 | * src/getargs.c (usage): Split long literal strings. | |
9226 | Reported by Hans Aberg. | |
9227 | ||
717be197 AD |
9228 | 2002-05-28 Akim Demaille <akim@epita.fr> |
9229 | ||
9230 | * data/bison.c++: Use C++ ostreams. | |
9231 | (cdebug_): New member. | |
9232 | ||
670ddffd AD |
9233 | 2002-05-28 Akim Demaille <akim@epita.fr> |
9234 | ||
9235 | * src/output.c (output_skeleton): Be sure to allocate enough room | |
9236 | for `/' _and_ for `\0' in full_skeleton. | |
9237 | ||
769b430f AD |
9238 | 2002-05-28 Akim Demaille <akim@epita.fr> |
9239 | ||
9240 | * data/bison.c++: Catch up with bison.simple: | |
9241 | 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> | |
9242 | and Paul Eggert <eggert@twinsun.com>: `error' handing. | |
9243 | 2002-05-26 Akim Demaille <akim@epita.fr>: stos_, token_number_, | |
9244 | and popping traces. | |
9245 | ||
7067cb36 PH |
9246 | 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
9247 | ||
9248 | * src/output.c (output_skeleton): Put an explicit path in front of | |
9249 | the skeleton file name, rather than relying on the -I directory, | |
9250 | to partially alleviate effects of having a skeleton file lying around | |
9251 | in the current directory. | |
769b430f | 9252 | |
4a713ec2 PH |
9253 | 2002-05-27 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
9254 | ||
769b430f | 9255 | * src/conflicts.c (log_resolution): Correct typo: |
4a713ec2 PH |
9256 | obstack_printf should be obstack_fgrow1. |
9257 | ||
b408954b AD |
9258 | 2002-05-26 Akim Demaille <akim@epita.fr> |
9259 | ||
9260 | * src/state.h (state_t): `solved_conflicts' is a new member. | |
9261 | * src/LR0.c (new_state): Set it to 0. | |
9262 | * src/conflicts.h, src/conflicts.c (print_conflicts) | |
9263 | (free_conflicts, solve_conflicts): Rename as... | |
9264 | (conflicts_print, conflicts_free, conflicts_solve): these. | |
9265 | Adjust callers. | |
9266 | * src/conflicts.c (enum conflict_resolution_e) | |
9267 | (solved_conflicts_obstack): New, used by... | |
9268 | (log_resolution): this. | |
9269 | Adjust to attach the conflict resolution to each state. | |
9270 | Complete the description with the precedence/associativity | |
9271 | information. | |
9272 | (resolve_sr_conflict): Adjust. | |
9273 | * src/print.c (print_state): Output its solved_conflicts. | |
9274 | * tests/conflicts.at (Unresolved SR Conflicts) | |
9275 | (Solved SR Conflicts): Exercise --report=all. | |
9276 | ||
a49aecd5 AD |
9277 | 2002-05-26 Akim Demaille <akim@epita.fr> |
9278 | ||
9279 | * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c, | |
9280 | * src/nullable.c, src/output.c, src/print.c, src/print_graph.c, | |
9281 | * src/reader.c, src/reduce.c, src/state.h, src/symtab.h | |
9282 | (token_number_t, item_number_as_token_number) | |
9283 | (token_number_as_item_number, muscle_insert_token_number_table): | |
9284 | Rename as... | |
9285 | (symbol_number_t, item_number_as_symbol_number) | |
9286 | (symbol_number_as_item_number, muscle_insert_symbol_number_table): | |
9287 | these, since it is more appropriate. | |
9288 | ||
5504898e AD |
9289 | 2002-05-26 Akim Demaille <akim@epita.fr> |
9290 | ||
9291 | * tests/calc.at (AT_CHECK_CALC): Adjust: there are now additional | |
9292 | `Error:' lines. | |
9293 | * data/bison.simple (yystos) [YYDEBUG]: New. | |
9294 | (yyparse) [YYDEBUG]: Display the symbols which are popped during | |
9295 | error recovery. | |
9296 | * tests/regression.at (Web2c Actions): Adjust: yystos is output now. | |
9297 | ||
ec3bc396 AD |
9298 | 2002-05-25 Akim Demaille <akim@epita.fr> |
9299 | ||
9300 | * doc/bison.texinfo (Debugging): Split into... | |
9301 | (Tracing): this new section, its former contents, and... | |
9302 | (Understanding): this new section. | |
9303 | * src/getargs.h, src/getargs.c (verbose_flag): Remove, replaced | |
9304 | by... | |
9305 | (report_flag): this. | |
9306 | Adjust all dependencies. | |
9307 | (report_args, report_types, report_argmatch): New. | |
9308 | (usage, getargs): Report/support -r, --report. | |
9309 | * src/options.h | |
9310 | (struct option_table_struct): Rename as.., | |
9311 | (struct option_table_s): this. | |
9312 | Rename the `set_flag' member to `flag' to match with getopt_long's | |
9313 | struct. | |
9314 | * src/options.c (option_table): Split verbose into an entry for | |
9315 | %verbose, and another for --verbose. | |
9316 | Support --report/-r, so remove -r from the obsolete --raw. | |
9317 | * src/print.c: Attach full item sets and lookaheads reports to | |
9318 | report_flag instead of trace_flag. | |
9319 | * lib/argmatch.h, lib/argmatch.c: New, from Fileutils 4.1. | |
9320 | ||
78df8250 PE |
9321 | 2002-05-24 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
9322 | and Paul Eggert <eggert@twinsun.com> | |
769b430f | 9323 | |
78df8250 PE |
9324 | * data/bison.simple (yyparse): Correct error handling to conform to |
9325 | POSIX and yacc. Specifically, after syntax error is discovered, | |
9326 | do not reduce further before shifting the error token. | |
9327 | Clean up the code a bit by removing the labels yyerrdefault, | |
9328 | yyerrhandle, yyerrpop. | |
9329 | * NEWS: Document the above. | |
9330 | ||
c0c9ea05 PH |
9331 | 2002-05-20 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
9332 | ||
9333 | * data/bison.simple (yyr1): Don't use yy_token_number_type as element | |
9334 | type; it isn't always big enough, since it doesn't necessarily | |
9335 | include non-terminals. | |
769b430f | 9336 | (yytranslate): Expand definition of yy_token_number_type, so that |
c0c9ea05 PH |
9337 | the latter can be removed. |
9338 | (yy_token_number_type): Remove, only one use. | |
9339 | * data/bison.c++ (r1_): Parallel change to yyr1 in bison.simple--- | |
9340 | don't use TokenNumberType as element type. | |
769b430f | 9341 | |
c0c9ea05 PH |
9342 | * tests/regression.at: Modify expected output to agree with change |
9343 | to yyr1 and yytranslate. | |
769b430f | 9344 | |
6390a83f FK |
9345 | 2002-05-13 Florian Krohm <florian@edamail.fishkill.ibm.com> |
9346 | ||
9347 | * src/reader.c (parse_action): Use copy_character instead of | |
9348 | obstack_1grow. | |
9349 | ||
db7c8e9a AD |
9350 | 2002-05-13 Akim Demaille <akim@epita.fr> |
9351 | ||
9352 | * tests/regression.at (Token definitions): Prototype yylex and | |
9353 | yyerror. | |
9354 | ||
fcc61800 PH |
9355 | 2002-05-12 Paul Hilfinger <Hilfinger@CS.Berkeley.EDU> |
9356 | ||
158c687b | 9357 | * src/scan-skel.l: Correct off-by-one error in handling of __oline__. |
fcc61800 PH |
9358 | * data/bison.simple (b4_sint_type, b4_uint_type): Correct to reflect |
9359 | 32-bit arithmetic. | |
9360 | * data/bison.c++ (b4_sint_type, b4_uint_type): Ditto. | |
9361 | ||
5683e9b2 AD |
9362 | 2002-05-07 Akim Demaille <akim@epita.fr> |
9363 | ||
9364 | * tests/synclines.at: Be sure to prototype yylex and yyerror to | |
9365 | avoid GCC warnings. | |
9366 | ||
0c2d3f4c AD |
9367 | 2002-05-07 Akim Demaille <akim@epita.fr> |
9368 | ||
9369 | Kill GCC warnings. | |
9370 | ||
9371 | * src/reduce.c (nonterminals_reduce): Don't loop over RITEM: loop | |
9372 | over the RHS of each rule. | |
9373 | * src/gram.h, src/gram.c (nritems): Is `unsigned int', not int. | |
9374 | * src/state.h (state_t): Member `nitems' is unsigned short. | |
9375 | * src/LR0.c (get_state): Adjust. | |
9376 | * src/reader.c (packgram): Likewise. | |
9377 | * src/output.c (GENERATE_MUSCLE_INSERT_TABLE): `max' is of type | |
9378 | `Type'. | |
9379 | (muscle_insert_int_table): Remove, unused. | |
9380 | (prepare_rules): Remove `max'. | |
9381 | ||
1565b720 AD |
9382 | 2002-05-06 Akim Demaille <akim@epita.fr> |
9383 | ||
9384 | * src/closure.c (print_firsts): Display of the symbol tags. | |
9385 | (bitmatrix_print): Move to... | |
9386 | * lib/bitsetv-print.h, lib/bitsetv-print.c (bitsetv_matrix_dump): | |
9387 | here. | |
9388 | * tests/sets.at (Nullable, Broken Closure, Firsts): Adjust. | |
9389 | ||
cfaee611 AD |
9390 | 2002-05-06 Akim Demaille <akim@epita.fr> |
9391 | ||
9392 | * src/muscle_tab.c (muscle_m4_output): Must return TRUE for | |
9393 | hash_do_for_each. | |
9394 | ||
458be8e0 AD |
9395 | 2002-05-06 Akim Demaille <akim@epita.fr> |
9396 | ||
9397 | * src/LR0.c (new_state, get_state): Instead of using the global | |
9398 | `kernel_size' and `kernel_base', have two new arguments: | |
9399 | `core_size' and `core'. | |
9400 | Adjust callers. | |
9401 | ||
a900a624 AD |
9402 | 2002-05-06 Akim Demaille <akim@epita.fr> |
9403 | ||
9404 | * src/reader.c (packgram): No longer end `ritem' with a 0 | |
9405 | sentinel: it is not used. | |
9406 | ||
d4e7d3a1 AD |
9407 | 2002-05-05 Akim Demaille <akim@epita.fr> |
9408 | ||
9409 | New experimental feature: display the lookaheads in the report and | |
9410 | graph. | |
9411 | ||
9412 | * src/print (print_core): When --trace-flag, display the rules | |
9413 | lookaheads. | |
9414 | * src/print_graph.c (print_core): Likewise. | |
9415 | Swap the arguments. | |
9416 | Adjust caller. | |
9417 | ||
39ceb25b AD |
9418 | 2002-05-05 Akim Demaille <akim@epita.fr> |
9419 | ||
9420 | * tests/torture.at (Many lookaheads): New test. | |
9421 | ||
5372019f AD |
9422 | 2002-05-05 Akim Demaille <akim@epita.fr> |
9423 | ||
9424 | * src/output.c (GENERATE_OUTPUT_TABLE): Replace with... | |
9425 | (GENERATE_MUSCLE_INSERT_TABLE): this. | |
9426 | (output_int_table, output_unsigned_int_table, output_short_table) | |
9427 | (output_token_number_table, output_item_number_table): Replace with... | |
9428 | (muscle_insert_int_table, muscle_insert_unsigned_int_table) | |
9429 | (muscle_insert_short_table, muscle_insert_token_number_table) | |
9430 | (muscle_insert_item_number_table): these. | |
9431 | Adjust all callers. | |
9432 | (prepare_tokens): Don't free `translations', since... | |
9433 | * src/reader.h, src/reader.c (grammar_free): do it. | |
9434 | Move to... | |
9435 | * src/gram.h, src/gram.c (grammar_free): here. | |
9436 | * data/bison.simple, data/bison.c++: b4_token_number_max is now | |
9437 | b4_translate_max. | |
9438 | ||
5df5f6d5 AD |
9439 | 2002-05-05 Akim Demaille <akim@epita.fr> |
9440 | ||
9441 | * src/output.c (output_unsigned_int_table): New. | |
9442 | (prepare_rules): `i' is unsigned. | |
9443 | `prhs', `rline', `r2' are unsigned int. | |
9444 | Rename muscle `rhs_number_max' as `rhs_max'. | |
9445 | Output muscles `prhs_max', `rline_max', and `r2_max'. | |
9446 | Free rline and r1. | |
9447 | * data/bison.simple, data/bison.c++: Adjust to use these muscles | |
9448 | to compute types instead of constant types. | |
9449 | * tests/regression.at (Web2c Actions): Adjust. | |
9450 | ||
b87f8b21 AD |
9451 | 2002-05-04 Akim Demaille <akim@epita.fr> |
9452 | ||
9453 | * src/symtab.h (SALIAS, SUNDEF): Rename as... | |
9454 | (USER_NUMBER_ALIAS, USER_NUMBER_UNDEFINED): these. | |
9455 | Adjust dependencies. | |
9456 | * src/output.c (token_definitions_output): Be sure not to output a | |
9457 | `#define 'a'' when fed with `%token 'a' "a"'. | |
9458 | * tests/regression.at (Token definitions): New. | |
9459 | ||
8bb936e4 PE |
9460 | 2002-05-03 Paul Eggert <eggert@twinsun.com> |
9461 | ||
9462 | * data/bison.simple (b4_token_defines): Also define YYTOKENTYPE | |
9463 | for K&R C. | |
9464 | ||
9465 | 2002-05-03 gettextize <bug-gnu-gettext@gnu.org> | |
9466 | ||
9467 | * Makefile.am (SUBDIRS): Remove intl. | |
9468 | (EXTRA_DIST): Add config/config.rpath. | |
9469 | ||
53c71a12 AD |
9470 | 2002-05-03 Akim Demaille <akim@epita.fr> |
9471 | ||
9472 | * data/bison.simple (m4_if): Don't output empty enums. | |
9473 | And actually, output valid enum definitions :(. | |
9474 | ||
289dd0cf AD |
9475 | 2002-05-03 Akim Demaille <akim@epita.fr> |
9476 | ||
9477 | * configure.bat: Remove, completely obsolete. | |
9478 | * Makefile.am (EXTRA_DIST): Adjust. | |
9479 | Don't distribute config.rpath... | |
9480 | * config/Makefile.am (EXTRA_DIST): Do it. | |
9481 | ||
db85e524 AD |
9482 | 2002-05-03 Akim Demaille <akim@epita.fr> |
9483 | ||
9484 | * configure.in (GETTEXT_VERSION): New. | |
9485 | Suggested by Bruno Haible for the forthcoming Gettext 0.10.3. | |
9486 | ||
83ccf991 AD |
9487 | 2002-05-03 Akim Demaille <akim@epita.fr> |
9488 | ||
9489 | * data/bison.simple (b4_token_enum): New. | |
9490 | (b4_token_defines): Use it to output tokens both as #define and | |
9491 | enums. | |
9492 | Suggested by Paul Eggert. | |
9493 | * src/output.c (token_definitions_output): Don't output spurious | |
9494 | white spaces. | |
9495 | ||
1f418995 AD |
9496 | 2002-05-03 Akim Demaille <akim@epita.fr> |
9497 | ||
9498 | * data/m4sugar/m4sugar.m4: Update from CVS Autoconf. | |
9499 | ||
45119f04 RA |
9500 | 2002-05-02 Robert Anisko <robert@lrde.epita.fr> |
9501 | ||
9502 | * data/bison.c++: Adapt expansion of $s and @s to the C++ parser. | |
9503 | Update the stack class, give a try to deque as the default container. | |
9504 | ||
b2d52318 AD |
9505 | 2002-05-02 Akim Demaille <akim@epita.fr> |
9506 | ||
9507 | * data/bison.simple (yyparse): Do not implement @$ = @1. | |
9508 | (YYLLOC_DEFAULT): Adjust to do it. | |
9509 | * doc/bison.texinfo (Location Default Action): Fix. | |
9510 | ||
3a8b4109 AD |
9511 | 2002-05-02 Akim Demaille <akim@epita.fr> |
9512 | ||
9513 | * src/reader.c (parse_braces): Merge into... | |
9514 | (parse_action): this. | |
9515 | ||
84614e13 AD |
9516 | 2002-05-02 Akim Demaille <akim@epita.fr> |
9517 | ||
9518 | * configure.in (ALL_LINGUAS): Remove. | |
9519 | * po/LINGUAS, hr.po: New. | |
9520 | ||
fdbcd8e2 AD |
9521 | 2002-05-02 Akim Demaille <akim@epita.fr> |
9522 | ||
9523 | Remove the so called hairy (semantic) parsers. | |
9524 | ||
9525 | * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove. | |
9526 | * src/gram.h, src/gram.c (semantic_parser): Remove. | |
9527 | (rule_t): Remove the guard and guard_line members. | |
9528 | * src/lex.h (token_t): remove tok_guard. | |
9529 | * src/options.c (option_table): Remove %guard and %semantic_parser | |
9530 | support. | |
9531 | * src/output.c, src/output.h (guards_output): Remove. | |
9532 | (prepare): Adjust. | |
9533 | (token_definitions_output): Don't output the `T' | |
9534 | tokens (???). | |
9535 | (output_skeleton): Don't output the guards. | |
9536 | * src/files.c, src/files.c (attrsfile): Remove. | |
9537 | * src/reader.c (symbol_list): Remove the guard and guard_line | |
9538 | members. | |
9539 | Adjust dependencies. | |
9540 | (parse_guard): Remove. | |
9541 | * data/bison.hairy: Remove. | |
9542 | * doc/bison.texinfo (Environment Variables): Remove occurrences of | |
9543 | BISON_HAIRY. | |
9544 | ||
82b6cb3f AD |
9545 | 2002-05-02 Akim Demaille <akim@epita.fr> |
9546 | ||
9547 | * src/reader.c (copy_at, copy_dollarm parse_braces, parse_action) | |
9548 | (parse_guard): Rename the formal argument `stack_offset' as | |
9549 | `rule_length', which is more readable. | |
9550 | Adjust callers. | |
9551 | (copy_at, copy_dollar): Instead of outputting the hard coded | |
9552 | values of $$, $n and so forth, output invocation to b4_lhs_value, | |
9553 | b4_lhs_location, b4_rhs_value, and b4_rhs_location. | |
900c877b AD |
9554 | Note: this patch partially drops `semantic-parser' support: it |
9555 | always does `rule_length - n', where semantic parsers ought to | |
9556 | always use `-n'. | |
82b6cb3f AD |
9557 | * data/bison.simple, data/bison.c++ (b4_lhs_value) |
9558 | (b4_lhs_location, b4_rhs_value, and b4_rhs_location: New. | |
9559 | ||
6cbfbcc5 AD |
9560 | 2002-05-02 Akim Demaille <akim@epita.fr> |
9561 | ||
9562 | * configure.in (AC_INIT): Bump to 1.49b. | |
9563 | (AM_INIT_AUTOMAKE): Short invocation. | |
9564 | ||
b8548114 AD |
9565 | 2002-05-02 Akim Demaille <akim@epita.fr> |
9566 | ||
9567 | Version 1.49a. | |
9568 | ||
c20cd1fa AD |
9569 | 2002-05-01 Akim Demaille <akim@epita.fr> |
9570 | ||
9571 | * src/skeleton.h: Remove. | |
9572 | ||
8a9566d4 AD |
9573 | 2002-05-01 Akim Demaille <akim@epita.fr> |
9574 | ||
9575 | * src/skeleton.h: Fix the #endif. | |
9576 | Reported by Magnus Fromreide. | |
9577 | ||
8c6d399a PE |
9578 | 2002-04-26 Paul Eggert <eggert@twinsun.com> |
9579 | ||
9580 | * data/bison.simple (YYSTYPE_IS_TRIVIAL, YYLTYPE_IS_TRIVIAL): | |
9581 | Define if we define YYSTYPE and YYLTYPE, respectively. | |
b756bb75 | 9582 | (YYCOPY): Fix [] quoting problem in the non-GCC case. |
8a9566d4 | 9583 | |
2b7ed18a RA |
9584 | 2002-04-25 Robert Anisko <robert@lrde.epita.fr> |
9585 | ||
9586 | * src/scan-skel.l: Postprocess quadrigraphs. | |
9587 | ||
9588 | * src/reader.c (copy_character): New function, used to output | |
9589 | single characters while replacing `[' and `]' with quadrigraphs, to | |
9590 | avoid troubles with M4 quotes. | |
9591 | (copy_comment): Output characters with copy_character. | |
9592 | (read_additionnal_code): Likewise. | |
9593 | (copy_string2): Likewise. | |
9594 | (copy_definition): Likewise. | |
9595 | ||
9596 | * tests/calc.at: Exercise M4 quoting. | |
9597 | ||
34a89c50 AD |
9598 | 2002-04-25 Akim Demaille <akim@epita.fr> |
9599 | ||
9600 | * tests/sets.at (AT_EXTRACT_SETS): Sed portability issue: no space | |
9601 | between `!' and the command. | |
9602 | Reported by Paul Eggert. | |
9603 | ||
0dd1580a RA |
9604 | 2002-04-24 Robert Anisko <robert@lrde.epita.fr> |
9605 | ||
9606 | * tests/calc.at: Exercise prologue splitting. | |
9607 | ||
9608 | * data/bison.simple, data/bison.c++: Use `b4_pre_prologue' and | |
9609 | `b4_post_prologue' instead of `b4_prologue'. | |
9610 | ||
9611 | * src/output.c (prepare): Add the `pre_prologue' and `post_prologue' | |
9612 | muscles. | |
9613 | (output): Free pre_prologue_obstack and post_prologue_obstack. | |
9614 | * src/files.h, src/files.c (attrs_obstack): Remove. | |
9615 | (pre_prologue_obstack, post_prologue_obstack): New. | |
9616 | * src/reader.c (copy_definition): Add a parameter to specify the | |
9617 | obstack to fill, instead of using attrs_obstack unconditionally. | |
9618 | (read_declarations): Pass pre_prologue_obstack to copy_definition if | |
9619 | `%union' has not yet been seen, pass post_prologue_obstack otherwise. | |
9620 | ||
83c1796f PE |
9621 | 2002-04-23 Paul Eggert <eggert@twinsun.com> |
9622 | ||
9623 | * data/bison.simple: Remove unnecessary commentary and white | |
9624 | space differences from 1_29-branch. | |
9625 | Depend on YYERROR_VERBOSE, not defined (YYERROR_VERBOSE). | |
9626 | ||
9627 | (union yyalloc, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYCOPY, | |
9628 | YYSTACK_RELOCATE): Do not define if yyoverflow is defined, or | |
9629 | if this is a C++ parser and YYSTYPE or YYLTYPE has nontrivial | |
9630 | constructors or destructors. | |
9631 | ||
9632 | (yyparse) [! defined YYSTACK_RELOCATE]: Do not relocate the stack. | |
9633 | ||
1207eeac AD |
9634 | 2002-04-23 Akim Demaille <akim@epita.fr> |
9635 | ||
9636 | * tests/sets.at (AT_EXTRACT_SETS): Don't use 8 char long sed labels. | |
9637 | * tests/synclines.at (AT_TEST_SYNCLINE): Be robust to GCC's | |
9638 | location with columns. | |
9639 | * tests/conflicts.at (%nonassoc and eof): Don't use `error.h'. | |
9640 | All reported by Paul Eggert. | |
9641 | ||
78ab8f67 AD |
9642 | 2002-04-22 Akim Demaille <akim@epita.fr> |
9643 | ||
9644 | * src/reduce.c (dump_grammar): Move to... | |
9645 | * src/gram.h, src/gram.c (grammar_dump): here. | |
9646 | Be sure to separate long item numbers. | |
9647 | Don't read the members of a rule's prec if its nil. | |
9648 | ||
133c20e2 AD |
9649 | 2002-04-22 Akim Demaille <akim@epita.fr> |
9650 | ||
9651 | * src/output.c (table_size, table_grow): New. | |
9652 | (MAXTABLE): Remove, replace uses with table_size. | |
9653 | (pack_vector): Instead of dying when the table is too big, grow it. | |
9654 | ||
9515e8a7 AD |
9655 | 2002-04-22 Akim Demaille <akim@epita.fr> |
9656 | ||
9657 | * data/bison.simple (yyr1): Its type is that of a token number. | |
9658 | * data/bison.c++ (r1_): Likewise. | |
9659 | * tests/regression.at (Web2c Actions): Adjust. | |
9660 | ||
23c5a174 AD |
9661 | 2002-04-22 Akim Demaille <akim@epita.fr> |
9662 | ||
9663 | * src/reader.c (token_translations_init): 256 is now the default | |
9664 | value for the error token, i.e., it will be assigned another | |
9665 | number if the user assigned 256 to one of her tokens. | |
9666 | (reader): Don't force 256 to error. | |
9667 | * doc/bison.texinfo (Symbols): Adjust. | |
9668 | * tests/torture.at (AT_DATA_HORIZONTAL_GRAMMAR) | |
9669 | (AT_DATA_TRIANGULAR_GRAMMAR): Number the tokens as 1, 2, 3 | |
9670 | etc. instead of 10, 20, 30 (which was used to `jump' over error | |
9671 | (256) and undefined (2)). | |
9672 | ||
5fbb0954 AD |
9673 | 2002-04-22 Akim Demaille <akim@epita.fr> |
9674 | ||
9675 | Propagate more token_number_t. | |
9676 | ||
9677 | * src/gram.h (token_number_as_item_number) | |
9678 | (item_number_as_token_number): New. | |
9679 | * src/output.c (GENERATE_OUTPUT_TABLE): New. | |
9680 | Use it to create output_item_number_table and | |
9681 | output_token_number_table. | |
9682 | * src/LR0.c, src/derives.c, src/gram.c, src/gram.h, src/lalr.c, | |
9683 | * src/lex.c, src/nullable.c, src/output.c, src/print.c, | |
9684 | * src/print_graph.c, src/reader.c, src/reduce.c, src/state.h, | |
9685 | * src/symtab.c, src/symtab.h: Use token_number_t instead of shorts. | |
9686 | ||
4f940944 AD |
9687 | 2002-04-22 Akim Demaille <akim@epita.fr> |
9688 | ||
9689 | * src/output.h, src/output.c (get_lines_number): Remove. | |
9690 | ||
3ded9a63 AD |
9691 | 2002-04-19 Akim Demaille <akim@epita.fr> |
9692 | ||
9693 | * doc/bison.texinfo (Actions): Make clear that `|' is not the same | |
9694 | as Lex/Flex'. | |
9695 | (Debugging): More details about enabling the debugging features. | |
9696 | (Table of Symbols): Describe $$, $n, @$, and @n. | |
9697 | Suggested by Tim Josling. | |
9698 | ||
e0c471a9 AD |
9699 | 2002-04-19 Akim Demaille <akim@epita.fr> |
9700 | ||
9701 | * doc/bison.texinfo: Remove the uses of the obsolete @refill. | |
9702 | ||
fecc10cd AD |
9703 | 2002-04-10 Akim Demaille <akim@epita.fr> |
9704 | ||
9705 | * src/system.h: Rely on HAVE_LIMITS_H. | |
9706 | Suggested by Paul Eggert. | |
9707 | ||
51dec47b AD |
9708 | 2002-04-09 Akim Demaille <akim@epita.fr> |
9709 | ||
9710 | * tests/calc.at (_AT_CHECK_CALC_ERROR): Receive as argument the | |
9711 | full stderr, and strip it according to the bison options, instead | |
9712 | of composing the error message from different bits. | |
9713 | This makes it easier to check for several error messages. | |
9714 | Adjust all the invocations. | |
9715 | Add an invocation exercising the error token. | |
9716 | Add an invocation demonstrating a stupid error message. | |
9717 | (_AT_DATA_CALC_Y): Follow the GCS: initial column is 1, not 0. | |
9718 | Adjust the tests. | |
9719 | Error message are for stderr, not stdout. | |
9720 | ||
007a50a4 AD |
9721 | 2002-04-09 Akim Demaille <akim@epita.fr> |
9722 | ||
9723 | * src/gram.h, src/gram.c (error_token_number): Remove, use | |
9724 | errtoken->number. | |
9725 | * src/reader.c (reader): Don't specify the user token number (2) | |
9726 | for $undefined, as it uselessly prevents using it. | |
9727 | * src/gram.h (token_number_t): Move to... | |
9728 | * src/symtab.h: here. | |
9729 | (state_t.number): Is a token_number_t. | |
9730 | * src/print.c, src/reader.c: Use undeftoken->number instead of | |
9731 | hard coded 2. | |
9732 | (Even though this 2 is not the same as above: the number of the | |
9733 | undeftoken remains being 2, it is its user token number which | |
9734 | might not be 2). | |
9735 | * src/output.c (prepare_tokens): Rename the `maxtok' muscle with | |
9736 | `user_token_number_max'. | |
9737 | Output `undef_token_number'. | |
9738 | * data/bison.simple, data/bison.c++: Use them. | |
9739 | Be sure to map invalid yylex return values to | |
9740 | `undef_token_number'. This saves us from gratuitous SEGV. | |
9741 | ||
9742 | * tests/conflicts.at (Solved SR Conflicts) | |
9743 | (Unresolved SR Conflicts): Adjust. | |
9744 | * tests/regression.at (Web2c Actions): Adjust. | |
9745 | ||
06446ccf AD |
9746 | 2002-04-08 Akim Demaille <akim@epita.fr> |
9747 | ||
9748 | * data/bison.c++: s/b4_item_number_max/b4_rhs_number_max/. | |
9749 | Adding #line. | |
9750 | Remove the duplicate `typedefs'. | |
9751 | (RhsNumberType): Fix the declaration and various other typos. | |
9752 | Use __ofile__. | |
9753 | * data/bison.simple: Use __ofile__. | |
9754 | * src/scan-skel.l: Handle __ofile__. | |
9755 | ||
62a3e4f0 AD |
9756 | 2002-04-08 Akim Demaille <akim@epita.fr> |
9757 | ||
9758 | * src/gram.h (item_number_t): New, the type of item numbers in | |
9759 | RITEM. Note that it must be able to code symbol numbers as | |
9760 | positive number, and the negation of rule numbers as negative | |
9761 | numbers. | |
9762 | Adjust all dependencies (pretty many). | |
9763 | * src/reduce.c (rule): Remove this `short *' pointer: use | |
9764 | item_number_t. | |
9765 | * src/system.h (MINSHORT, MAXSHORT): Remove. | |
9766 | Include `limits.h'. | |
9767 | Adjust dependencies to using SHRT_MAX and SHRT_MIN. | |
9768 | (shortcpy): Remove. | |
9769 | (MAXTABLE): Move to... | |
9770 | * src/output.c (MAXTABLE): here. | |
9771 | (prepare_rules): Use output_int_table to output rhs. | |
9772 | * data/bison.simple, data/bison.c++: Adjust. | |
9773 | * tests/torture.at (Big triangle): Move the limit from 254 to | |
9774 | 500. | |
9775 | * tests/regression.at (Web2c Actions): Ajust. | |
9776 | ||
9777 | Trying with bigger grammars shows various phenomena: at 3000 (28Mb | |
9778 | of grammar file) bison is killed by my system, at 2000 (12Mb) bison | |
9779 | passes, but produces negative #line number, once fixed, GCC is | |
9780 | killed while compiling 14Mb, at 1500 (6.7 Mb of grammar, 8.2Mb of | |
9781 | C), it passes. | |
9782 | * src/state.h (state_h): Code input lines on ints, not shorts. | |
9783 | ||
bb88b0fc AD |
9784 | 2002-04-08 Akim Demaille <akim@epita.fr> |
9785 | ||
9786 | * src/reduce.c (reduce_grammar): First reduce the nonterminals, | |
9787 | and then the grammar. | |
9788 | ||
9a636f47 AD |
9789 | 2002-04-08 Akim Demaille <akim@epita.fr> |
9790 | ||
9791 | * src/system.h: No longer using strndup. | |
9792 | ||
680e8701 AD |
9793 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9794 | ||
9795 | * src/muscle_tab.h (MUSCLE_INSERT_LONG_INT): New. | |
9796 | * src/output.c (output_table_data): Return the longest number. | |
9797 | (prepare_tokens): Output `token_number_max'). | |
9798 | * data/bison.simple, data/bison.c++ (b4_sint_type, b4_uint_type): | |
9799 | New. | |
9800 | Use them to define yy_token_number_type/TokenNumberType. | |
9801 | Use this type for yytranslate. | |
9802 | * tests/torture.at (Big triangle): Push the limit from 124 to | |
9803 | 253. | |
9804 | * tests/regression.at (Web2c Actions): Adjust. | |
9805 | ||
817e9f41 AD |
9806 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9807 | ||
9808 | * tests/torture.at (Big triangle): New. | |
9809 | (GNU AWK Grammar, GNU Cim Grammar): Move to... | |
9810 | * tests/existing.at: here. | |
9811 | ||
5123689b AD |
9812 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9813 | ||
9814 | * src/gram.h, src/gram.c (nitems): Remove, it is an alias of | |
9815 | nritems. | |
9816 | Adjust dependencies. | |
9817 | ||
f3849179 AD |
9818 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9819 | ||
9820 | * src/reader.c: Normalize increments to prefix form. | |
9821 | ||
bd02036a AD |
9822 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9823 | ||
9824 | * src/reader.c, symtab.c: Remove debugging code. | |
9825 | ||
db8837cb AD |
9826 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9827 | ||
9828 | Rename all the `bucket's as `symbol_t'. | |
9829 | ||
9830 | * src/gram.c, src/gram.h, src/lex.c, src/lex.h, src/output.c, | |
9831 | * src/reader.c, src/reader.h, src/reduce.c, src/state.h, | |
9832 | * src/symtab.c, src/symtab.h (bucket): Rename as... | |
9833 | (symbol_t): this. | |
9834 | (symbol_list_new, bucket_check_defined, bucket_make_alias) | |
9835 | (bucket_check_alias_consistence, bucket_pack, bucket_translation) | |
9836 | (bucket_new, bucket_free, hash_compare_bucket, hash_bucket) | |
9837 | (buckets_new, buckets_free, buckets_do): Rename as... | |
9838 | (symbol_list_new, symbol_check_defined, symbol_make_alias) | |
9839 | (symbol_check_alias_consistence, symbol_pack, symbol_translation) | |
9840 | (symbol_new, symbol_free, hash_compare_symbol_t, hash_symbol_t) | |
9841 | (symbols_new, symbols_free, symbols_do): these. | |
9842 | ||
72a23c97 AD |
9843 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9844 | ||
9845 | Use lib/hash for the symbol table. | |
9846 | ||
9847 | * src/gram.c (ntokens): Initialize to 1, to reserve a slot for | |
9848 | EOF. | |
9849 | * src/lex.c (lex): Set the `number' member of new terminals. | |
9850 | * src/reader.c (bucket_check_defined, bucket_make_alias) | |
9851 | (bucket_check_alias_consistence, bucket_translation): New. | |
9852 | (reader, grammar_free, readgram, token_translations_init) | |
9853 | (packsymbols): Adjust. | |
9854 | (reader): Number the predefined tokens. | |
9855 | * src/reduce.c (inaccessable_symbols): Just use hard coded numbers | |
9856 | for predefined tokens. | |
9857 | * src/symtab.h (bucket): Remove all the hash table related | |
9858 | members. | |
9859 | * src/symtab.c (symtab): Replace by... | |
9860 | (bucket_table): this. | |
9861 | (bucket_new, bucket_free, hash_compare_bucket, hash_bucket) | |
9862 | (buckets_new, buckets_do): New. | |
9863 | ||
280a38c3 AD |
9864 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9865 | ||
9866 | * src/gram.c (nitems, nrules, nsyms, ntokens, nvars, nritems) | |
9867 | (start_symbol, max_user_token_number, semantic_parser) | |
9868 | (error_token_number): Initialize. | |
9869 | * src/reader.c (grammar, start_flag, startval, typed, lastprec): | |
9870 | Initialize. | |
9871 | (reader): Don't. | |
9872 | (errtoken, eoftoken, undeftoken, axiom): Extern. | |
9873 | ||
03b31c0c AD |
9874 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9875 | ||
9876 | * src/gram.h (rule_s): prec and precsym are now pointers | |
9877 | to the bucket giving the priority/associativity. | |
9878 | Member `associativity' removed: useless. | |
9879 | * src/reduce.c, src/conflicts.c: Adjust. | |
9880 | ||
8b3df748 AD |
9881 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9882 | ||
9883 | * src/lalr.c, src/LR0.c, src/closure.c, src/gram.c, src/reduce.c: | |
9884 | Properly escape the symbols' TAG when outputting them. | |
9885 | ||
e601aa1d AD |
9886 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9887 | ||
9888 | * src/lalr.h (LA): Is a bitsetv, not bitset*. | |
9889 | ||
b0299a2e AD |
9890 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9891 | ||
9892 | * src/lalr.h, src/lalr.c (LAruleno): Replace with... | |
9893 | (LArule): this, which is an array to rule_t*. | |
9894 | * src/print.c, src/conflicts.c: Adjust. | |
9895 | ||
d7e1f00c AD |
9896 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9897 | ||
9898 | * src/gram.h (rule_t): Rename `number' as `user_number'. | |
9899 | `number' is a new member. | |
9900 | Adjust dependencies. | |
9901 | * src/reduce.c (reduce_grammar_tables): Renumber rule_t.number. | |
9902 | ||
cc9305dd AD |
9903 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9904 | ||
9905 | As a result of the previous patch, it is no longer needed | |
9906 | to reorder ritem itself. | |
9907 | ||
9908 | * src/reduce.c (reduce_grammar_tables): Don't sort RITEM. | |
9909 | ||
b0940840 AD |
9910 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9911 | ||
9912 | Be sure never to walk through RITEMS, but use only data related to | |
9913 | the rules themselves. RITEMS should be banished. | |
9914 | ||
9915 | * src/output.c (output_token_translations): Rename as... | |
9916 | (prepare_tokens): this. | |
9917 | In addition to `translate', prepare the muscles `tname' and | |
9918 | `toknum', which were handled by... | |
9919 | (output_rule_data): this. | |
9920 | Remove, and move the remainder of its outputs into... | |
9921 | (prepare_rules): this new routines, which also merges content from | |
9922 | (output_gram): this. | |
9923 | (prepare_rules): Be sure never to walk through RITEMS. | |
9924 | (output_stos): Rename as... | |
9925 | (prepare_stos): this. | |
9926 | (output): Always invoke prepare_states, after all, just don't use it | |
9927 | in the output if you don't need it. | |
9928 | ||
643a5994 AD |
9929 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9930 | ||
9931 | * src/LR0.c (new_state): Display `nstates' as the name of the | |
9932 | newly created state. | |
9933 | Adjust to initialize first_state and last_state if needed. | |
9934 | Be sure to distinguish the initial from the final state. | |
9935 | (new_states): Create the itemset of the initial state, and use | |
9936 | new_state. | |
9937 | * src/closure.c (closure): Now that the initial state has its | |
9938 | items properly set, there is no need for a special case when | |
9939 | creating `ruleset'. | |
9940 | ||
9941 | As a result, now the rule 0, reducing to $axiom, is visible in the | |
9942 | outputs. Adjust the test suite. | |
9943 | ||
9944 | * tests/conflicts.at (Solved SR Conflicts) | |
9945 | (Unresolved SR Conflicts): Adjust. | |
9946 | * tests/regression.at (Web2c Report, Rule Line Numbers): Idem. | |
9947 | * tests/conflicts.at (S/R in initial): New. | |
9948 | ||
b4c4ccc2 AD |
9949 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9950 | ||
9951 | * src/LR0.c (allocate_itemsets): Don't loop over ritem: loop over | |
9952 | the RHS of the rules. | |
9953 | * src/output.c (output_gram): Likewise. | |
9954 | ||
bba97eb2 AD |
9955 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9956 | ||
9957 | * src/gram.h (rule_t): `lhs' is now a pointer to the symbol's | |
9958 | bucket. | |
9959 | Adjust all dependencies. | |
9960 | * src/reduce.c (nonterminals_reduce): Don't forget to renumber the | |
9961 | `number' of the buckets too. | |
9962 | * src/gram.h: Include `symtab.h'. | |
9963 | (associativity): Move to... | |
9964 | * src/symtab.h: here. | |
9965 | No longer include `gram.h'. | |
9966 | ||
c3b407f4 AD |
9967 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9968 | ||
9969 | * src/gram.h, src/gram.c (rules_rhs_length): New. | |
9970 | (ritem_longest_rhs): Use it. | |
9971 | * src/gram.h (rule_t): `number' is a new member. | |
9972 | * src/reader.c (packgram): Set it. | |
9973 | * src/reduce.c (reduce_grammar_tables): Move the useless rules at | |
9974 | the end of `rules', and count them out of `nrules'. | |
9975 | (reduce_output, dump_grammar): Adjust. | |
9976 | * src/print.c (print_grammar): It is no longer needed to check for | |
9977 | the usefulness of a rule, as useless rules are beyond `nrules + 1'. | |
9978 | * tests/reduce.at (Reduced Automaton): New test. | |
9979 | ||
11652ab3 AD |
9980 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9981 | ||
9982 | * src/reduce.c (inaccessable_symbols): Fix a buglet: because of a | |
9983 | lacking `+ 1' to nrules, Bison reported as useless a token if it | |
9984 | was used solely to set the precedence of the last rule... | |
9985 | ||
26b23c1a AD |
9986 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9987 | ||
9988 | * data/bison.c++, data/bison.simple: Don't output the current file | |
9989 | name in #line, to avoid useless diffs between two identical | |
9990 | outputs under different names. | |
9991 | ||
18bcecb0 AD |
9992 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9993 | ||
9994 | * src/closure.c, src/print.c, src/reader.c, src/reduce.c: | |
9995 | Normalize loops to using `< nrules + 1', not `<= nrules'. | |
9996 | ||
fa770c86 AD |
9997 | 2002-04-07 Akim Demaille <akim@epita.fr> |
9998 | ||
9999 | * TODO: Update. | |
10000 | ||
d9b739c3 AD |
10001 | 2002-04-07 Akim Demaille <akim@epita.fr> |
10002 | ||
10003 | * src/output.c, src/reader.c, src/symtab.c, src/symtab.h: Rename | |
10004 | bucket.value as bucket.number. | |
10005 | ||
99013900 AD |
10006 | 2002-04-07 Akim Demaille <akim@epita.fr> |
10007 | ||
10008 | * src/closure.c, src/derives.c, src/gram.h, src/lalr.c, | |
10009 | * src/nullable.c, src/output.c, src/print.c, src/print_graph.c, | |
10010 | * src/reader.c, src/reduce.c: Let rule_t.rhs point directly to the | |
10011 | RHS, instead of being an index in RITEMS. | |
10012 | ||
e966383b PE |
10013 | 2002-04-04 Paul Eggert <eggert@twinsun.com> |
10014 | ||
10015 | * doc/bison.texinfo: Update copyright date. | |
10016 | (Rpcalc Lexer, Symbols, Token Decl): Don't assume ASCII. | |
10017 | (Symbols): Warn about running Bison in one character set, | |
10018 | but compiling and/or running in an incompatible one. | |
10019 | Warn about character code 256, too. | |
10020 | ||
10021 | 2002-04-03 Paul Eggert <eggert@twinsun.com> | |
10022 | ||
10023 | * src/bison.data (YYSTACK_ALLOC): Depend on whether | |
10024 | YYERROR_VERBOSE is nonzero, not whether it is defined. | |
10025 | ||
10026 | Merge changes from bison-1_29-branch. | |
c307773e | 10027 | |
8d6c48b9 PE |
10028 | 2002-03-20 Paul Eggert <eggert@twinsun.com> |
10029 | ||
10030 | Merge fixes from Debian bison_1.34-1.diff. | |
10031 | ||
10032 | * configure.in (AC_PREREQ): 2.53. | |
10033 | ||
e53c6322 AD |
10034 | 2002-03-20 Akim Demaille <akim@epita.fr> |
10035 | ||
10036 | * src/conflicts.c (log_resolution): Argument `resolution' is const. | |
10037 | ||
9ffbeca7 PE |
10038 | 2002-03-19 Paul Eggert <eggert@twinsun.com> |
10039 | ||
21db0b2a PE |
10040 | * src/bison.simple (YYCOPY): New macro. |
10041 | (YYSTACK_RELOCATE): Use it. | |
10042 | Remove Type arg; no longer needed. All callers changed. | |
10043 | (yymemcpy): Remove; no longer needed. | |
10044 | ||
9ffbeca7 PE |
10045 | * Makefile.am (AUTOMAKE_OPTIONS): 1.6. |
10046 | * doc/Makefile.am (AUTOMAKE_OPTIONS): Remove. | |
10047 | ||
642cb8f8 AD |
10048 | 2002-03-19 Akim Demaille <akim@epita.fr> |
10049 | ||
10050 | Test and fix the #line outputs. | |
10051 | ||
10052 | * tests/atlocal.at (GCC): New. | |
10053 | * tests/synclines.at (AT_TEST_SYNCLINE): New macro. | |
0ffd4fd1 | 10054 | (Prologue synch line, %union synch line, Postprologue synch line) |
642cb8f8 AD |
10055 | (Action synch line, Epilogue synch line): New tests. |
10056 | * src/reader.c (parse_union_decl): Define the muscle stype_line. | |
10057 | * data/bison.simple, data/bison.c++: Use it. | |
10058 | ||
3c31a486 AD |
10059 | 2002-03-19 Akim Demaille <akim@epita.fr> |
10060 | ||
10061 | * tests/regression.at (%nonassoc and eof, Unresolved SR Conflicts) | |
10062 | (Solved SR Conflicts, %expect not enough, %expect right) | |
10063 | (%expect too much): Move to... | |
10064 | * tests/conflicts.at: this new file. | |
10065 | ||
0d8bed56 AD |
10066 | 2002-03-19 Akim Demaille <akim@epita.fr> |
10067 | ||
10068 | * data/m4sugar/m4sugar.m4: Update from CVS Autoconf. | |
10069 | * data/bison.simple, data/bison.c++: Handle the `#define' part, so | |
10070 | that we can move to enums for instance. | |
10071 | * src/output.c (token_definitions_output): Output a list of | |
10072 | `token-name, token-number' instead of the #define. | |
10073 | (output_skeleton): Name this list `b4_tokens', not `b4_tokendefs'. | |
10074 | ||
9208d17f AD |
10075 | 2002-03-14 Akim Demaille <akim@epita.fr> |
10076 | ||
10077 | Use Gettext 0.11.1. | |
10078 | ||
af27eacb RA |
10079 | 2002-03-09 Robert Anisko <robert@lrde.epita.fr> |
10080 | ||
10081 | * data/bison.c++: Make the user able to add members to the generated | |
10082 | parser by subclassing. | |
10083 | ||
9101a310 RA |
10084 | 2002-03-05 Robert Anisko <robert@lrde.epita.fr> |
10085 | ||
10086 | * src/reader.c (read_additionnal_code): `c' should be an integer, not | |
10087 | a character. | |
10088 | Reported by Nicolas Tisserand and Nicolas Burrus. | |
10089 | ||
fff9bf0b RA |
10090 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
10091 | ||
10092 | * src/reader.c: Warn about lacking semi-colons, do not complain. | |
10093 | ||
64dba31e RA |
10094 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
10095 | ||
10096 | * data/bison.c++: Remove a debug line. | |
10097 | ||
374f5a14 RA |
10098 | 2002-03-04 Robert Anisko <robert@lrde.epita.fr> |
10099 | ||
10100 | * data/bison.c++: Unmerge value as yylval and value as yyval. Unmerge | |
10101 | location as yylloc and location as yyloc. Use YYLLOC_DEFAULT, and | |
10102 | provide a default implementation. | |
10103 | ||
bfcf1f3a AD |
10104 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10105 | ||
10106 | * tests/input.at (Invalid $n, Invalid @n): Add the ending `;'. | |
10107 | * tests/output.at (AT_CHECK_OUTPUT): Likewise. | |
10108 | * tests/headers.at (AT_TEST_CPP_GUARD_H): Ditto. | |
10109 | * tests/semantic.at (Parsing Guards): Similarly. | |
10110 | * src/reader.at (readgram): Complain if the last rule is not ended | |
10111 | with a semi-colon. | |
10112 | ||
65ccf9fc AD |
10113 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10114 | ||
10115 | * src/warshall.h, src/warshall.c (bitmatrix_print): Move to... | |
10116 | * src/closure.c: here. | |
10117 | (set_firsts): Use bitsetv_reflexive_transitive_closure instead of | |
10118 | RTC. | |
10119 | * src/warshall.h, src/warshall.c: Remove. | |
10120 | * tests/sets.at (Broken Closure): Adjust. | |
10121 | ||
d0039cbc AD |
10122 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10123 | ||
10124 | * src/output.c (output_skeleton): tempdir is const. | |
10125 | bytes_read is unused. | |
10126 | ||
345cea78 AD |
10127 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10128 | ||
10129 | * lib/bbitset.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c, | |
10130 | * lib/bitsetv.h, lib/ebitset.c, lib/lbitset.c, lib/sbitset.c: | |
10131 | Update. | |
10132 | From Michael Hayes. | |
10133 | ||
564801f7 AD |
10134 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10135 | ||
10136 | * src/closure.c (closure): `r' is unused. | |
10137 | ||
e5352bc7 AD |
10138 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10139 | ||
10140 | * tests/sets.at (Broken Closure): Add the ending `;'. | |
10141 | * src/reader.at (readgram): Complain if a rule is not ended with a | |
10142 | semi-colon. | |
10143 | ||
914feea9 AD |
10144 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10145 | ||
10146 | * src/conflicts.c (set_conflicts): Use bitset_disjoint_p. | |
10147 | (count_sr_conflicts): Use bitset_count. | |
10148 | * src/reduce.c (inaccessable_symbols): Ditto. | |
10149 | (bits_size): Remove. | |
10150 | * src/warshall.h, src/warshall.c: Convert to bitsetv. | |
10151 | ||
f0250de6 AD |
10152 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10153 | ||
10154 | * src/closure.c, src/conflicts.c, src/lalr.c, src/print.c, | |
10155 | * src/reduce.c: Remove the `bitset_zero's following the | |
10156 | `bitset_create's, as now it is performed by the latter. | |
10157 | ||
ef017502 AD |
10158 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10159 | ||
10160 | * lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h, | |
10161 | * lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h, | |
10162 | * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the | |
10163 | latest sources from Michael. | |
10164 | ||
76514394 AD |
10165 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10166 | ||
10167 | * src/output.c (output): Don't free the grammar. | |
10168 | * src/reader.c (grammar_free): New. | |
10169 | * src/main.c (main): Call it and don't free symtab here. | |
10170 | ||
55024580 AD |
10171 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10172 | ||
10173 | * src/lex.c (parse_percent_token): Be sure to 0-end token_buffer | |
10174 | before returning. | |
10175 | Reported by Benoit Perrot. | |
10176 | ||
f9abaa2c AD |
10177 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10178 | ||
10179 | Use bitset operations when possible, not loops over bits. | |
10180 | ||
10181 | * src/conflicts.c (set_conflicts, count_sr_conflicts): Use | |
10182 | bitset_or. | |
10183 | * src/print.c (print_reductions): Use bitset_and, bitset_andn. | |
10184 | * src/reduce.c (useless_nonterminals): Formatting changes. | |
10185 | * src/warshall.c (TC): Use bitset_or. | |
10186 | ||
0e721e75 AD |
10187 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10188 | ||
10189 | * src/lalr.h, src/lalr.c (tokensetsize): Remove, unused. | |
10190 | * src/system.h (BITS_PER_WORD, WORDSIZE, SETBIT, RESETBIT, BITISSET): | |
10191 | Ditto. | |
10192 | ||
0fb1ffb1 AD |
10193 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10194 | ||
10195 | * src/lalr.c (F): Now a bitset*. | |
10196 | Adjust all dependencies. | |
10197 | ||
b86796bf AD |
10198 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10199 | ||
10200 | * src/conflicts.c (shiftset, lookaheadset): Now bitset. | |
10201 | Adjust all dependencies. | |
10202 | ||
602bbf31 AD |
10203 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10204 | ||
10205 | * src/L0.c, src/LR0.h (nstates): Be size_t. | |
10206 | Adjust comparisons (signed vs unsigned). | |
10207 | * src/conflics.c, src/lalr.c, src/lalr.h, src/output.c (LA): Now a | |
10208 | bitset*. | |
10209 | Adjust all dependencies. | |
10210 | ||
d8a0245c AD |
10211 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10212 | ||
10213 | * src/closure.c (firsts): Now, also a bitset. | |
10214 | Adjust all dependencies. | |
10215 | (varsetsize): Remove, now unused. | |
10216 | * src/warshall.h, src/warshall.c: Now work on arrays of bitsets. | |
10217 | ||
34ba9743 AD |
10218 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10219 | ||
10220 | * src/print.c: Convert to use bitset.h, not hand coded iterations | |
10221 | over ints. | |
10222 | ||
ed86e78c AD |
10223 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10224 | ||
10225 | * src/reduce.c: Convert to use bitset.h, not hand coded BSet. | |
10226 | ||
dfdb1797 AD |
10227 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10228 | ||
10229 | * src/closure.c (ruleset): Be a bitset. | |
10230 | (rulesetsize): Remove. | |
10231 | ||
7086e707 AD |
10232 | 2002-03-04 Akim Demaille <akim@epita.fr> |
10233 | ||
10234 | * lib/bitset-int.h, lib/bitset.c, lib/bitset.h, lib/bitsetv.c, | |
10235 | * lib/bitsetv.h, lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, | |
10236 | * lib/lbitset.h, lib/sbitset.c, lib/sbitset.h: New. | |
10237 | * src/closure.c (fderives): Be an array of bitsets. | |
10238 | ||
98254360 RA |
10239 | 2002-02-28 Robert Anisko <robert@lrde.epita.fr> |
10240 | ||
10241 | * data/bison.c++: Merge the two generated headers. Insert a copyright | |
10242 | notice in each output file. | |
10243 | ||
a75c057f AD |
10244 | 2002-02-28 Akim Demaille <akim@epita.fr> |
10245 | ||
10246 | * data/bison.c++: Copy the prologue of bison.simple to fetch | |
10247 | useful M4 definitions, such as b4_header_guard. | |
10248 | ||
06b00abc AD |
10249 | 2002-02-25 Akim Demaille <akim@epita.fr> |
10250 | ||
10251 | * src/getargs.c (version): Give the name of the authors, and use a | |
a75c057f AD |
10252 | translator friendly scheme for the bgr |
10253 | copyright notice. | |
06b00abc | 10254 | |
70e7d534 AD |
10255 | 2002-02-25 Akim Demaille <akim@epita.fr> |
10256 | ||
10257 | * src/output.c (header_output): Remove, now handled completely via | |
10258 | M4. | |
10259 | ||
abe017f6 AD |
10260 | 2002-02-25 Akim Demaille <akim@epita.fr> |
10261 | ||
10262 | * m4/m4.m4: New, from CVS Autoconf. | |
10263 | * configure.in: Invoke it. | |
10264 | * src/output.c (output_skeleton): Use its result instead of the | |
10265 | hard coded name. | |
10266 | ||
381fb12e AD |
10267 | 2002-02-25 Akim Demaille <akim@epita.fr> |
10268 | ||
10269 | * lib/tempname.c, lib/mkstemp.c, m4/mkstemp.m4: New, stolen from | |
10270 | Fileutils 4.1.5. | |
10271 | * configure.in: Invoke UTILS_FUNC_MKSTEMP. | |
10272 | * src/output.c (output_skeleton): Use mkstemp to create a real | |
10273 | temporary file. | |
10274 | Move the filling of `skeleton' and its muscle to... | |
10275 | (prepare): here. | |
10276 | (output): Move the definition of the prologue muscle to... | |
10277 | (prepare): here. | |
10278 | * src/system.h (DEFAULT_TMPDIR): New. | |
10279 | ||
6f38107f PE |
10280 | 2002-02-14 Paul Eggert <eggert@twinsun.com> |
10281 | ||
10282 | Remove the support for C++ namespace cleanliness; it was | |
10283 | causing more problems than it was curing, since it didn't work | |
10284 | properly on some nonstandard C++ compilers. This can wait | |
10285 | for a proper C++ parser. | |
10286 | ||
10287 | * NEWS: Document this. | |
10288 | * doc/bison.texinfo (Bison Parser, Debugging): Remove special mention | |
10289 | of C++, as it's treated like C now. | |
10290 | * src/bison.simple (YYSTD): Remove. | |
10291 | (YYSIZE_T, YYFPRINTF, YYPARSE_PARAM_ARG, YYPARSE_PARAM_DECL): | |
10292 | Treat C++ just like Standard C instead of trying to support | |
10293 | namespace cleanliness. | |
10294 | ||
80cce3da AD |
10295 | 2002-02-14 Akim Demaille <akim@epita.fr> |
10296 | ||
10297 | * tests/regression.at (else): Adjust to Andreas' change. | |
10298 | ||
842e8679 AD |
10299 | 2002-02-14 Akim Demaille <akim@epita.fr> |
10300 | ||
10301 | * lib/Makefile.am (EXTRA_DIST): Ship strnlen.c. | |
10302 | ||
4bda3f10 AD |
10303 | 2002-02-13 Andreas Schwab <schwab@suse.de> |
10304 | ||
10305 | * src/output.c (output_rule_data): Don't output NULL, it might | |
10306 | not be defined yet. | |
10307 | ||
4162fa07 | 10308 | 2002-02-11 Robert Anisko <robert@lrde.epita.fr> |
b418ecd8 | 10309 | |
4162fa07 RA |
10310 | * data/bison.c++ (YYDEBUG, YYERROR_VERBOSE): After the prologue. |
10311 | (Copyright notice): Update. | |
b418ecd8 | 10312 | |
bd16a5dc AD |
10313 | 2002-02-11 Akim Demaille <akim@epita.fr> |
10314 | ||
10315 | * tests/regression.at (%nonassoc and eof): Don't include | |
10316 | nonportable headers. | |
10317 | ||
8d69a1a3 RA |
10318 | 2002-02-08 Robert Anisko <robert@lrde.epita.fr> |
10319 | ||
10320 | * data/bison.c++: Correct error recovery. Make the user able to | |
10321 | initialize the starting location. | |
10322 | ||
9b2d0677 AD |
10323 | 2002-02-07 Akim Demaille <akim@epita.fr> |
10324 | ||
10325 | * tests/input.at: New. | |
10326 | ||
69e2658b RA |
10327 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
10328 | ||
10329 | * data/bison.c++: Replace some direct m4 expansions by constants. Be | |
9b2d0677 | 10330 | more consistent when naming methods and variables. Put preprocessor |
69e2658b RA |
10331 | directives around tables only needed for debugging. |
10332 | ||
4aacc3a7 RA |
10333 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
10334 | ||
10335 | * data/bison.c++ (yy::b4_name::print_): New method, replaces yyprint in | |
10336 | C++ parsers. | |
10337 | (yy::b4_name::parse): Use print_. | |
10338 | ||
762a801e RA |
10339 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
10340 | ||
10341 | * data/bison.c++ (yy::b4_name::parse): Error recovery is back. | |
10342 | ||
4bb2bc3f RA |
10343 | 2002-02-07 Robert Anisko <robert@lrde.epita.fr> |
10344 | ||
10345 | * data/bison.c++ (yy::b4_name::error_): New method, replaces yyerror in | |
10346 | C++ parsers. | |
10347 | (yy::b4_name::parse): Build verbose error messages, and use error_. | |
10348 | ||
6b45a3ca RA |
10349 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
10350 | ||
10351 | * data/bison.c++: Fix m4 quoting in comments. | |
10352 | ||
50997c6e RA |
10353 | 2002-02-06 Robert Anisko <robert@lrde.epita.fr> |
10354 | ||
10355 | * data/bison.c++: Adjust the parser code. Fix some muscles that were | |
10356 | not expanded by m4. | |
10357 | ||
3f3eed27 AD |
10358 | 2002-02-05 Akim Demaille <akim@epita.fr> |
10359 | ||
10360 | * data/bison.c++: Adjust to the M4 back end. | |
10361 | More is certainly needed. | |
10362 | ||
be2a1a68 AD |
10363 | 2002-02-05 Akim Demaille <akim@epita.fr> |
10364 | ||
10365 | Give a try to M4 as a back end. | |
10366 | ||
10367 | * lib/readpipe.c: New, from wdiff. | |
10368 | * src/Makefile.am (DEFS): Define PKGDATADIR, not BISON_SIMPLE and | |
10369 | BISON_HAIRY. | |
10370 | * src/system.h (BISON_HAIRY, BISON_SIMPLE): Remove the DOS and VMS | |
10371 | specific values. Now it is m4 that performs the lookup. | |
10372 | * src/parse-skel.y: Remove. | |
10373 | * src/muscle_tab.c, src/muscle_tab.h (muscles_m4_output): New. | |
10374 | * src/output.c (actions_output, guards_output) | |
10375 | (token_definitions_output): No longer keeps track of the output | |
10376 | line number, hence remove the second argument. | |
10377 | (guards_output): Check against the guard member of a rule, not the | |
10378 | action member. | |
10379 | Adjust callers. | |
10380 | (output_skeleton): Don't look for the skeleton location, let m4 do | |
10381 | that. | |
10382 | Create `/tmp/muscles.m4'. This is temporary, a proper temporary | |
10383 | file will be used. | |
10384 | Invoke `m4' on m4sugar.m4, muscles.m4, and the skeleton. | |
10385 | (prepare): Given that for the time being changesyntax is not | |
10386 | usable in M4, rename the muscles using `-' to `_'. | |
10387 | Define `defines_flag', `output_parser_name' and `output_header_name'. | |
10388 | * src/output.h (actions_output, guards_output) | |
10389 | (token_definitions_output): Adjust prototypes. | |
10390 | * src/scan-skel.l: Instead of scanning the skeletons, it now | |
10391 | processes the output of m4: `__oline__' and `#output'. | |
10392 | * data/bison.simple: Adjust to be used by M4(sugar). | |
10393 | * tests/Makefile.am: Use check_SCRIPTS to make sure `bison' is up | |
10394 | to date. | |
10395 | * tests/bison.in: Use the secrete envvar `BISON_PKGDATADIR' | |
10396 | instead of the dead `BISON_SIMPLE' and `BISON_HAIRY'. | |
10397 | * data/m4sugar/m4sugar.m4, data/m4sugar/version.m4: New, | |
10398 | shamelessly stolen from CVS Autoconf. | |
10399 | ||
beda758b AD |
10400 | 2002-02-05 Akim Demaille <akim@epita.fr> |
10401 | ||
10402 | * lib/hash.c, lib/hash.h: Replace with Fileutils 4.1's version. | |
10403 | * configure.in: Check for the declarations of free and malloc. | |
10404 | * src/muscle_tab.c: Adjust. | |
10405 | ||
5ece6d43 AD |
10406 | 2002-02-05 Akim Demaille <akim@epita.fr> |
10407 | ||
10408 | * src/muscle_tab.c (muscle_init): Don't default to NULL muscle | |
10409 | which have no values. | |
10410 | ||
5bb18f9a AD |
10411 | 2002-02-05 Akim Demaille <akim@epita.fr> |
10412 | ||
10413 | * src/bison.simple, src/bison.hairy, src/bison.c++: Move to... | |
10414 | * data/: here. | |
10415 | ||
894dd62e PE |
10416 | 2002-01-29 Paul Eggert <eggert@twinsun.com> |
10417 | ||
10418 | * src/bison.simple (YYSIZE_T): Do not define merely because | |
10419 | YYSTACK_USE_ALLOCA is nonzero or alloca or _ALLOCA_H are defined. | |
10420 | On some platforms, <alloca.h> does not declare YYSTD (size_t). | |
10421 | ||
82841af7 AD |
10422 | 2002-01-27 Akim Demaille <akim@epita.fr> |
10423 | ||
10424 | Fix `%nonassoc and eof'. | |
10425 | ||
10426 | * src/state.c (errs_dup): Aaaah! The failure was due to bytes | |
10427 | which were not properly copied! Replace | |
10428 | memcpy (res->errs, src->errs, src->nerrs); | |
10429 | with | |
10430 | memcpy (res->errs, src->errs, src->nerrs * sizeof (src->errs[0])); | |
10431 | !!! | |
10432 | * tests/regression.at (%nonassoc and eof): Adjust to newest | |
10433 | Autotest: `.' is not in the PATH. | |
10434 | ||
318b76e9 AD |
10435 | 2002-01-27 Akim Demaille <akim@epita.fr> |
10436 | ||
10437 | * tests/sets.at (AT_EXTRACT_SETS): New. | |
10438 | (Nullable): Use it. | |
10439 | (Firsts): New. | |
10440 | ||
30d2f3d5 AD |
10441 | 2002-01-26 Akim Demaille <akim@epita.fr> |
10442 | ||
10443 | * tests/actions.at, tests/calc.at, tests/headers.at, | |
10444 | * tests/torture.at: Adjust to the newest Autotest which no longer | |
10445 | forces `.' in the PATH. | |
10446 | ||
30f8c395 AD |
10447 | 2002-01-25 Akim Demaille <akim@epita.fr> |
10448 | ||
10449 | * tests/regression.at (%nonassoc and eof): New. | |
10450 | Suggested by Robert Anisko. | |
10451 | ||
29ae55f1 AD |
10452 | 2002-01-24 Akim Demaille <akim@epita.fr> |
10453 | ||
10454 | Bison dumps core when trying to complain about broken input files. | |
10455 | Reported by Cris van Pelt. | |
10456 | ||
10457 | * src/lex.c (parse_percent_token): Be sure to set token_buffer. | |
10458 | * tests/regression.at (Invalid input: 1, Invalid input: 2): Merge | |
10459 | into... | |
10460 | (Invalid inputs): Strengthen: exercise parse_percent_token. | |
10461 | ||
2b548aa6 RA |
10462 | 2002-01-24 Robert Anisko <robert.anisko@epita.fr> |
10463 | ||
10464 | * src/Makefile.am: Add bison.c++. | |
10465 | * src/bison.c++: New skeleton. | |
10466 | ||
bb0146c2 AD |
10467 | 2002-01-21 Paolo Bonzini <bonzini@gnu.org> |
10468 | ||
10469 | * po/it.po: New. | |
10470 | ||
bec30531 AD |
10471 | 2002-01-21 Kees Zeelenberg <kzlg@users.sourceforge.net> |
10472 | ||
10473 | * src/files.c (skeleton_find) [MSDOS]: Fix cp definition. | |
10474 | ||
fc6edc45 MA |
10475 | 2002-01-20 Marc Autret <marc@gnu.org> |
10476 | ||
10477 | * src/files.c (compute_output_file_names): Fix | |
10478 | ||
5e5d5415 MA |
10479 | 2002-01-20 Marc Autret <marc@gnu.org> |
10480 | ||
10481 | * tests/output.at: New test. | |
10482 | * src/files.c (compute_base_names): Don't map extensions when | |
10483 | the YACC flag is set, use defaults. | |
10484 | Reported by Evgeny Stambulchik. | |
10485 | ||
44ea3fbd MA |
10486 | 2002-01-20 Marc Autret <marc@gnu.org> |
10487 | ||
ba0fe3c7 PE |
10488 | * src/system.h: Need to define __attribute__ away for non-GCC |
10489 | compilers as well (i.e., the vendor C compiler). | |
44ea3fbd MA |
10490 | Suggested by Albert Chin-A-Young. |
10491 | ||
338963d1 TVH |
10492 | 2002-01-11 Tim Van Holder <tim.van.holder@pandora.be> |
10493 | ||
10494 | * lib/hash.h, lib/hash.c: Renamed __P to PARAMS and used the | |
10495 | canonical definition. | |
10496 | * src/system.h: Use the canonical definition for PARAMS (avoids | |
10497 | a conflict with the macro from lib/hash.h). | |
10498 | ||
c57b2479 AD |
10499 | 2002-01-11 Akim Demaille <akim@epita.fr> |
10500 | ||
10501 | * configure.in: Use AC_FUNC_STRNLEN. | |
d9e9746c | 10502 | Fixes the failures observed on AIX 4.3 by H.Merijn Brand. |
c57b2479 | 10503 | |
b85810ae AD |
10504 | 2002-01-09 Akim Demaille <akim@epita.fr> |
10505 | ||
10506 | * src/files.c, src/files.h (output_infix): New. | |
10507 | (tab_extension): Remove. | |
10508 | (compute_base_names): Compute the former, drop the latter. | |
10509 | * src/output.c (prepare): Insert the muscles `output-infix', and | |
10510 | `output-suffix'. | |
10511 | * src/parse-skel.y (string, string.1): New. | |
10512 | (section.header): Use it. | |
10513 | (section.yacc): Remove. | |
10514 | (prefix): Remove too. | |
10515 | * src/scan-skel.l: Adjust. | |
10516 | * src/bison.simple, src/bison.hairy: Adjust. | |
10517 | ||
cae60122 AD |
10518 | 2002-01-09 Akim Demaille <akim@epita.fr> |
10519 | ||
10520 | * configure.in (WERROR_CFLAGS): Compute it. | |
10521 | * src/Makefile.am (CFLAGS): Pass it. | |
10522 | * tests/atlocal.in (CFLAGS): Idem. | |
10523 | * src/files.c: Fix a few warnings. | |
10524 | (get_extension_index): Remove, unused. | |
10525 | ||
ae404801 AD |
10526 | 2002-01-08 Akim Demaille <akim@epita.fr> |
10527 | ||
10528 | * src/getargs.c (AS_FILE_NAME): New. | |
10529 | (getargs): Use it to convert DOSish file names. | |
10530 | * src/files.c (base_name): Rename as full_base_name to avoid | |
10531 | clashes with `base_name ()'. | |
10532 | (filename_split): New. | |
10533 | (compute_base_names): N-th rewrite, using filename_split. | |
10534 | ||
22312b71 AD |
10535 | 2002-01-08 Akim Demaille <akim@epita.fr> |
10536 | ||
10537 | * lib/basename.c, lib/dirname.h, lib/dirname.c, lib/memrchr.c: | |
10538 | New, stolen from the Fileutils 4.1. | |
10539 | * lib/Makefile.am (libbison_a_SOURCES): Adjust. | |
10540 | * configure.in: Check for the presence of memrchr, and of its | |
10541 | prototype. | |
10542 | ||
a67cef01 TVH |
10543 | 2002-01-07 Tim Van Holder <tim.van.holder@pandora.be> |
10544 | ||
10545 | * lib/hash.h (__P): Added definition for this macro. | |
10546 | * src/Makefile.am: Add parse-skel.c and scan-skel.c to | |
10547 | BUILT_SOURCES, to ensure they are generated first. | |
10548 | * src/parse-skel.y: Use YYERROR_VERBOSE instead of | |
10549 | %error-verbose to allow bootstrapping with bison 1.30x. | |
10550 | ||
2b25d624 AD |
10551 | 2002-01-06 Akim Demaille <akim@epita.fr> |
10552 | ||
10553 | * src/reader.c (parse_braces): Don't fetch the next char, the | |
10554 | convention is to fetch on entry. | |
10555 | * tests/torture.at (GNU Cim Grammar): Reintroduce their weird | |
10556 | 'switch' without a following semicolon. | |
10557 | * tests/regression.at (braces parsing): New. | |
10558 | ||
3460813b AD |
10559 | 2002-01-06 Akim Demaille <akim@epita.fr> |
10560 | ||
10561 | Bison is dead wrong in its RR conflict reports. | |
10562 | ||
10563 | * tests/torture.at (GNU Cim Grammar): New. | |
10564 | * src/conflicts.c (count_rr_conflicts): Fix. | |
10565 | ||
73784c64 AD |
10566 | 2002-01-06 Akim Demaille <akim@epita.fr> |
10567 | ||
10568 | Creating package.m4 from configure.ac causes too many problems. | |
10569 | ||
10570 | * tests/Makefile.am (package.m4): Create it by hand, | |
10571 | AC_CONFIG_TESTDIR no longer does in the most recent CVS Autoconf. | |
10572 | ||
25d81090 AD |
10573 | 2002-01-06 Akim Demaille <akim@epita.fr> |
10574 | ||
10575 | * src/Makefile.am (bison_SOURCES): Add parse-skel.h and | |
10576 | skeleton.h. | |
10577 | ||
a9b8959e PE |
10578 | 2002-01-04 Paul Eggert <eggert@twinsun.com> |
10579 | ||
10580 | * doc/bison.texinfo (Debugging): | |
10581 | Remove YYSTDERR; it's no longer defined or used. | |
10582 | Also, s/cstdio.h/cstdio/. | |
10583 | ||
25d81090 AD |
10584 | 2002-01-03 Akim Demaille <akim@epita.fr> |
10585 | ||
10586 | * tests/bison.in, tests/atlocal.in: Adjust to CVS Autoconf. | |
10587 | ||
1109455c AD |
10588 | 2002-01-03 Akim Demaille <akim@epita.fr> |
10589 | ||
10590 | * src/parse-skel.y (process_skeleton): Don't bind the parser's | |
10591 | tracing code to --trace, wait for a better --trace option, with | |
10592 | args. | |
10593 | ||
7ea5e977 AD |
10594 | 2002-01-03 Akim Demaille <akim@epita.fr> |
10595 | ||
10596 | * src/bison.simple (YYSTDERR): Remove, replace `stderr'. | |
10597 | The ISO C++ standard is extremely clear about it: stderr is | |
10598 | considered a macro, not a regular symbol (see table 94 `Header | |
10599 | <cstdio> synopsis', [lib.c.files] 27.8.2 C Library files). | |
10600 | Therefore std:: does not apply to it. It still does with fprintf. | |
10601 | Also, s/cstdio.h/cstdio/. | |
10602 | ||
fab5b110 AD |
10603 | 2002-01-03 Akim Demaille <akim@epita.fr> |
10604 | ||
10605 | * lib/quotearg.c: Use `#include "..."' instead of `#include <...>' | |
10606 | for non system headers. | |
10607 | ||
aed7fd9b AD |
10608 | 2002-01-02 Akim Demaille <akim@epita.fr> |
10609 | ||
10610 | Equip the skeleton chain with location tracking, runtime trace, | |
10611 | pure parser and scanner. | |
10612 | ||
10613 | * src/parse-skel.y: Request a pure parser, locations, and prefix | |
10614 | renaming. | |
10615 | (%union): Having several members with the same type does not help | |
10616 | type mismatches, simplify. | |
10617 | (YYPRINT, yyprint): New. | |
10618 | (yyerror): ``Rename'' (there is a #define yyerror skel_error) as... | |
10619 | (skel_error): this. | |
10620 | Handle locations. | |
10621 | * src/scan-skel.l: Adjust to these changes. | |
10622 | * src/skeleton.h (LOCATION_RESET, LOCATION_LINES, LOCATION_STEP) | |
10623 | (LOCATION_PRINT, skel_control_t): New. | |
10624 | ||
24fad99e AD |
10625 | 2001-12-30 Akim Demaille <akim@epita.fr> |
10626 | ||
10627 | * src/parse-skel.y: Get rid of the shift/reduce conflict: | |
10628 | replace `gb' with BLANKS. | |
10629 | * src/scan-skel.l: Adjust. | |
10630 | ||
a4b36db4 AD |
10631 | 2001-12-30 Akim Demaille <akim@epita.fr> |
10632 | ||
10633 | * src/system.h: We don't need nor want bcopy. | |
10634 | Throw away MS-DOS crap: we don't need getpid. | |
10635 | * configure.in: We don't need strndup. It was even causing | |
10636 | problems: because Flex includes the headers *before* us, | |
10637 | _GNU_SOURCE is not defined by config.h, and therefore strndup was | |
10638 | not visible. | |
10639 | * lib/xstrndup.c: New. | |
10640 | * src/scan-skel.l: Use it. | |
10641 | Be sure to initialize yylval.muscle member when scanning a MUSCLE. | |
10642 | * src/parse-skel.y: Use %directives instead of #defines. | |
10643 | ||
1239777d AD |
10644 | 2001-12-30 Akim Demaille <akim@epita.fr> |
10645 | ||
10646 | * src/skeleton.h: New. | |
10647 | * src/output.c (output_parser, output_master_parser): Remove, dead | |
10648 | code. | |
10649 | * src/output.h (get_lines_number, actions_output, guards_output) | |
10650 | (token_definitions_output): Prototype them. | |
10651 | * src/parse-skel.y: Add the license notice. | |
10652 | Include output.h and skeleton.h. | |
10653 | (process_skeleton): Returns void, and takes a single parameter. | |
10654 | * src/scan-skel.l: Add the license notice. | |
10655 | Include skeleton.h. | |
10656 | Don't use %option yylineno: it seems that then Flex imagines | |
10657 | REJECT has been used, and therefore it won't reallocate its | |
10658 | buffers (which makes no other sense to me than a bug). It results | |
10659 | in warnings for `unused: yy_flex_realloc'. | |
10660 | ||
9b3add5b RA |
10661 | 2001-12-30 Robert Anisko <robert.anisko@epita.fr> |
10662 | ||
10663 | * src/muscle_tab.h (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
10664 | (MUSCLE_INSERT_PREFIX): ...to there. | |
10665 | * src/output.c (MUSCLE_INSERT_INT, MUSCLE_INSERT_STRING) | |
10666 | (MUSCLE_INSERT_PREFIX): Move from here... | |
10667 | ||
10668 | * src/bison.hairy: Add a section directive. Put braces around muscle | |
10669 | names. This parser skeleton is still broken, but Bison should not | |
10670 | choke on a bad muscle 'syntax'. | |
10671 | * src/bison.simple: Add a section directive. Put braces around muscle | |
10672 | names. | |
10673 | ||
10674 | * src/files.h (strsuffix, stringappend): Add declarations. | |
10675 | (tab_extension): Add declaration. | |
10676 | (short_base_name): Add declaration. | |
10677 | ||
10678 | * src/files.c (strsuffix, stringappend): No longer static. These | |
10679 | functions are used in the skeleton parser. | |
10680 | (tab_extension): New. | |
10681 | (compute_base_names): Use the computations done in this function | |
fab5b110 | 10682 | to guess if the generated parsers should have '.tab' in their |
9b3add5b RA |
10683 | names. |
10684 | (short_base_name): No longer static. | |
10685 | ||
10686 | * src/output.c (output_skeleton): New. | |
10687 | (output): Disable call to output_master_parser, and give a try to | |
10688 | a new skeleton handling system. | |
10689 | (guards_output, actions_output): No longer static. | |
10690 | (token_definitions_output, get_lines_number): No longer static. | |
10691 | ||
10692 | * configure.in: Use AM_PROG_LEX and AC_PROG_YACC. | |
10693 | ||
fab5b110 | 10694 | * src/Makefile.am (bison_SOURCES): Add scan-skel.l and |
9b3add5b RA |
10695 | parse-skel.y. |
10696 | ||
10697 | * src/parse-skel.y: New file. | |
10698 | * src/scan-skel.l: New file. | |
10699 | ||
b5b61c61 AD |
10700 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10701 | ||
10702 | %name-prefix is broken. | |
10703 | ||
10704 | * src/files.c (spec_name_prefix): Initialize to NULL, not to "yy". | |
10705 | Adjust all dependencies. | |
10706 | * tests/headers.at (export YYLTYPE): Strengthen this test: use | |
10707 | %name-prefix. | |
10708 | ||
10709 | Renaming yylval but not yylloc is not consistent. Now we do. | |
10710 | ||
10711 | * src/bison.simple: Prefix yylloc if used. | |
10712 | * doc/bison.texinfo (Decl Summary): Document that. | |
10713 | ||
8c9a50be AD |
10714 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10715 | ||
10716 | * doc/bison.texinfo: Promote `%long-directive' over | |
10717 | `%long_directive'. | |
10718 | Remove all references to fixed-output-files, yacc is enough. | |
10719 | ||
d99361e6 AD |
10720 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10721 | ||
10722 | * src/bison.simple: Define YYDEBUG and YYERROR_VERBOSE *after* the | |
10723 | user prologue. These are defaults. | |
10724 | * tests/actions.at (Mid-rule actions): Make sure the user can | |
10725 | define YYDEBUG and YYERROR_VERBOSE. | |
10726 | ||
b9cecb91 AD |
10727 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10728 | ||
10729 | * src/output.c (header_output): Don't forget to export YYLTYPE and | |
10730 | yylloc. | |
10731 | * tests/headers.at (export YYLTYPE): New, make sure it does. | |
10732 | * tests/regression.at (%union and --defines, Invalid CPP headers): | |
10733 | Move to... | |
10734 | * tests/headers.at: here. | |
10735 | ||
aea13e97 AD |
10736 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10737 | ||
10738 | * src/gram.h (rule_s): Member `assoc' is of type `associativity'. | |
10739 | ||
931394cb AD |
10740 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10741 | ||
10742 | * tests/actions.at (Mid-rule actions): Output on a single line | |
10743 | instead of several. | |
10744 | ||
704a47c4 AD |
10745 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10746 | ||
10747 | * doc/bison.texinfo: Formatting changes. | |
10748 | ||
091e20bb AD |
10749 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10750 | ||
10751 | Don't store the token defs in a muscle, just be ready to output it | |
10752 | on command. Now possible via `symbols'. Fixes a memory leak. | |
10753 | ||
10754 | * src/output.c (token_definitions_output): New. | |
10755 | (output_parser, header_output): Use it. | |
10756 | * src/reader.c (symbols_save): Remove. | |
10757 | ||
cce71710 AD |
10758 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10759 | ||
10760 | * src/bison.simple: Do not provide a default for YYSTYPE and | |
10761 | YYLTYPE before the user's prologue. Otherwise it's hardly... a | |
10762 | default. | |
10763 | ||
82c035a8 AD |
10764 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10765 | ||
10766 | Mid-rule actions are simply... ignored! | |
10767 | ||
10768 | * src/reader.c (readgram): Be sure to attach mid-rule actions to | |
10769 | the empty-rule associated to the dummy symbol, not to the host | |
10770 | rule. | |
10771 | * tests/actions.at (Mid-rule actions): New. | |
10772 | ||
8419d367 AD |
10773 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10774 | ||
10775 | Memory leak. | |
10776 | ||
10777 | * src/reader.c (reader): Free grammar. | |
10778 | ||
375d5806 AD |
10779 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10780 | ||
10781 | Memory leak. | |
10782 | ||
10783 | * src/LR0.c (new_itemsets): Don't allocate `shift_symbol' here, | |
10784 | since it allocates it for each state, although only one is needed. | |
10785 | (allocate_storage): Do it here. | |
10786 | ||
f51cb8ff AD |
10787 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10788 | ||
10789 | * src/options.h, src/options.c (create_long_option_table): Rename | |
10790 | as... | |
10791 | (long_option_table_new): this, with a clearer prototype. | |
10792 | (percent_table): Remove, unused, | |
10793 | * src/getargs.c (getargs): Adjust. | |
10794 | ||
29e88316 AD |
10795 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10796 | ||
10797 | * src/LR0.c, src/conflicts.c, src/lalr.c, src/lalr.h, src/output.c | |
10798 | * src/print.c, src/print_graph.c, src/state.h: Rename state_table | |
10799 | as states. | |
10800 | ||
b9f71f19 AD |
10801 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10802 | ||
10803 | * src/lalr.c (build_relations): Rename `states' as `states1'. | |
10804 | Sorry, I don't understand exactly what it is, no better name... | |
10805 | ||
1a2b5d37 AD |
10806 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10807 | ||
10808 | * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c | |
10809 | * src/gram.h, src/lalr.c, src/nullable.c, src/output.c, src/print.c | |
10810 | * src/print_graph.c, src/reader.c, src/reduce.c: Rename rule_table | |
10811 | as rules. | |
10812 | ||
1cca533e AD |
10813 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10814 | ||
10815 | * src/gram.c (rprec, rprecsym, rassoc): Remove, unused since long | |
10816 | ago. | |
10817 | ||
c03ae966 AD |
10818 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10819 | ||
10820 | * src/reader.c, src/reader.h (user_toknums): Remove. | |
10821 | Adjust all users to use symbols[i]->user_token_number. | |
10822 | ||
5a670b1e AD |
10823 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10824 | ||
10825 | * src/gram.c, src/gram.h (sprec, sassoc): Remove. | |
10826 | Adjust all users to use symbols[i]->prec or ->assoc. | |
10827 | ||
ad949da9 AD |
10828 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10829 | ||
10830 | * src/reader.c, src/reader.h (tags): Remove. | |
10831 | Adjust all users to use symbols[i]->tag. | |
10832 | ||
0e78e603 AD |
10833 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10834 | ||
10835 | * src/gram.h, src/gram.c (symbols): New, similar to state_table | |
10836 | and rule_table. | |
10837 | * src/reader.c (packsymbols): Fill this table. | |
10838 | Drop sprec. | |
10839 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
10840 | * src/reduce.c (reduce_grammar): Adjust: just sort symbols, a | |
10841 | single table. | |
10842 | Use symbols[i]->tag instead of tags[i]. | |
10843 | ||
213e640e AD |
10844 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10845 | ||
10846 | * tests/calc.at (_AT_DATA_CALC_Y): Also use %union. | |
10847 | In addition, put a comment in there, to replace... | |
10848 | * tests/regression.at (%union and C comments): Remove. | |
10849 | ||
e7b8bef1 AD |
10850 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10851 | ||
10852 | * tests/regression.at (Web2c Actions): Blindly move the actual | |
10853 | output as expected output. The contents *seem* right to me, but I | |
10854 | can't pretend reading perfectly parser tables... Nonetheless, all | |
10855 | the other tests pass correctly, the table look OK, even though the | |
10856 | presence of `$axiom' is to be noted: AFAICS it is useless (but | |
10857 | harmless). | |
10858 | ||
b68e7744 AD |
10859 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10860 | ||
10861 | * src/reader.c (readgram): Don't add the rule 0 if there were no | |
10862 | rules read. In other words, add it _after_ having performed | |
10863 | grammar sanity checks. | |
10864 | Fixes the `tests/regression.at (Invalid input: 1)' Failure. | |
10865 | ||
78d5bae9 AD |
10866 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10867 | ||
10868 | * tests/regression.at (Web2c Report): Catch up: the rule 0 is now | |
10869 | visible, and some states have now a different number. | |
10870 | ||
ff442794 AD |
10871 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10872 | ||
10873 | * src/reader.c (readgram): Bind the initial rule's lineno to that | |
10874 | of the first rule. | |
10875 | * tests/regression.at (Rule Line Numbers, Unresolved SR Conflicts): | |
10876 | (Solved SR Conflicts): Adjust rule 0's line number. | |
10877 | ||
610ab194 AD |
10878 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10879 | ||
10880 | Fix the `GAWK Grammar' failure. | |
10881 | ||
10882 | * src/LR0.c (final_state): Initialize to -1 so that we do compute | |
10883 | the reductions of the first state which was mistakenly confused | |
10884 | with the final state because precisely final_state was initialized | |
10885 | to 0. | |
10886 | * tests/sets.at (Nullable): Adjust: state 0 does have lookaheads, | |
10887 | now noticed by Bison. | |
10888 | * tests/regression.at (Rule Line Numbers): Adjust: state 0 does | |
10889 | have a reduction on $default. | |
10890 | ||
29d29c8f AD |
10891 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10892 | ||
10893 | * src/gram.c (ritem_print): Be sure to subtract 1 when displaying | |
10894 | rule line numbers. | |
10895 | * src/closure.c (print_closure): Likewise. | |
10896 | * src/derives.c (print_derives): Likewise. | |
10897 | * tests/sets.at (Nullable): Adjust: the rule numbers are correct | |
10898 | now. | |
10899 | ||
7c6b64d0 AD |
10900 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10901 | ||
10902 | * src/lalr.c (lookaheads_print): New. | |
10903 | (lalr): Call it when --trace-flag. | |
10904 | * tests/sets.at (Nullable): Adjust: when tracing, the lookaheads | |
10905 | are dumped. | |
10906 | ||
3d4daee3 AD |
10907 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10908 | ||
10909 | * src/derives.c (print_derives): Be sure to use `>= 0', not `> 0', | |
10910 | when walking through ritem, even via rule->rhs. | |
10911 | * src/reduce.c (dump_grammar, useful_production, reduce_output) | |
10912 | (useful_production, useless_nonterminals): Likewise. | |
10913 | (reduce_grammar_tables): Likewise, plus update nritems. | |
10914 | * src/nullable.c (set_nullable): Likewise. | |
10915 | * src/lalr.c (build_relations): Likewise. | |
10916 | * tests/sets.at (Nullable): Adjust. | |
10917 | Fortunately, now, the $axiom is no longer nullable. | |
10918 | ||
9e7f6bbd AD |
10919 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10920 | ||
10921 | * src/LR0.c (generate_states): Use nritems, not nitems, nor using | |
10922 | the 0-sentinel. | |
10923 | * src/gram.c (ritem_longest_rhs): Likewise. | |
10924 | * src/reduce.c (nonterminals_reduce): Likewise. | |
10925 | * src/print_graph.c (print_graph): Likewise. | |
10926 | * src/output.c (output_rule_data): Likewise. | |
10927 | * src/nullable.c (set_nullable): Likewise. | |
10928 | ||
255ef638 AD |
10929 | 2001-12-29 Akim Demaille <akim@epita.fr> |
10930 | ||
10931 | * src/output.c: Comment changes. | |
10932 | ||
0d8a7363 AD |
10933 | 2001-12-27 Paul Eggert <eggert@twinsun.com> |
10934 | ||
10935 | * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special | |
10936 | cases for non-GNU systems like AIX, HP-UX, SGI, Sun, and | |
10937 | Sparc, as they were causing more porting problems than the | |
10938 | (minor) performance improvement was worth. | |
10939 | ||
10940 | Also, catch up with 1.31's YYSTD. | |
10941 | ||
3db472b9 AD |
10942 | 2001-12-27 Akim Demaille <akim@epita.fr> |
10943 | ||
10944 | * src/output.c (output_gram): Rely on nritems, not the | |
10945 | 0-sentinel. See below. | |
10946 | Use -1 as separator, not 0. | |
10947 | * src/bison.simple (yyparse): Subtract 1 to the rule numbers. | |
10948 | Rely on -1 as separator in yyrhs, instead of 0. | |
10949 | * tests/calc.at (AT_CHECK_CALC): Now, the parsers no longer issue | |
10950 | twice `Now at end of input', therefore there are two lines less to | |
10951 | expect. | |
10952 | ||
b365aa05 AD |
10953 | 2001-12-27 Akim Demaille <akim@epita.fr> |
10954 | ||
10955 | * tests/regression.at (Unresolved SR Conflicts): | |
10956 | (Solved SR Conflicts, Rule Line Numbers): Adjust to the changes | |
10957 | below. | |
10958 | ||
30171f79 AD |
10959 | 2001-12-27 Akim Demaille <akim@epita.fr> |
10960 | ||
10961 | * src/LR0.c (new_state): Recognize the final state by the fact it | |
10962 | is reached by eoftoken. | |
10963 | (insert_start_shifting_state, insert_eof_shifting_state) | |
10964 | (insert_accepting_state, augment_automaton): Remove, since now | |
10965 | these states are automatically computed from the initial state. | |
10966 | (generate_states): Adjust. | |
10967 | * src/print.c: When reporting a rule number to the user, substract | |
10968 | 1, so that the axiom rule is rule 0, and the first user rule is 1. | |
10969 | * src/reduce.c: Likewise. | |
10970 | * src/print_graph.c (print_core): For the time being, just as for | |
10971 | the report, depend upon --trace-flags to dump the full set of | |
10972 | items. | |
10973 | * src/reader.c (readgram): Once the grammar read, insert the rule | |
10974 | 0: `$axiom: START-SYMBOL $'. | |
10975 | * tests/set.at: Adjust: rule 0 is now displayed, and since the | |
10976 | number of the states has changed (the final state is no longer | |
10977 | necessarily the last), catch up. | |
10978 | ||
75142d45 AD |
10979 | 2001-12-27 Akim Demaille <akim@epita.fr> |
10980 | ||
10981 | Try to make the use of the eoftoken valid. Given that its value | |
10982 | is 0 which was also used as a sentinel in ritem, (i) make sure >= 0 | |
10983 | is used instead of > 0 where appropriate, (ii), depend upon nritems | |
10984 | instead of the 0-sentinel. | |
10985 | ||
10986 | * src/gram.h, src/gram.c (nritems): New. | |
10987 | Expected to be duplication of nitems, but for the time being... | |
10988 | * src/reader.c (packgram): Assert nritems and nitems are equal. | |
10989 | * src/LR0.c (allocate_itemsets, new_itemsets): Adjust. | |
10990 | * src/closure.c (print_closure, print_fderives): Likewise. | |
10991 | * src/gram.c (ritem_print): Likewise. | |
10992 | * src/print.c (print_core, print_grammar): Likewise. | |
10993 | * src/print_graph.c: Likewise. | |
10994 | ||
b7c49edf AD |
10995 | 2001-12-27 Akim Demaille <akim@epita.fr> |
10996 | ||
10997 | * src/main.c (main): If there are complains after grammar | |
10998 | reductions, then output the report anyway if requested, then die. | |
10999 | * src/symtab.c (bucket_new): Initialize `value' to -1, not 0. | |
11000 | * src/reader.c (eoftoken): New. | |
11001 | (parse_token_decl): If the token being defined has value `0', it | |
11002 | is the eoftoken. | |
11003 | (packsymbols): No longer hack `tags' to insert `$' by hand. | |
11004 | Be sure to preserve the value of the eoftoken. | |
11005 | (reader): Make sure eoftoken is defined. | |
11006 | Initialize nsyms to 0: now eoftoken is created just like the others. | |
11007 | * src/print.c (print_grammar): Don't special case the eof token. | |
11008 | * src/regression.at: Adjust: `$' has value 0, not -1, which was a | |
11009 | lie anyway, albeit pleasant. | |
11010 | * tests/calc.at: Exercise error messages with eoftoken. | |
11011 | Change the grammar so that empty input is invalid. | |
11012 | Adjust expectations. | |
11013 | When yyungeting, be sure to use a valid yylloc: use last_yylloc. | |
11014 | ||
ec2da99f AD |
11015 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11016 | ||
11017 | * configure.in: Check the protos of strchr ans strspn. | |
11018 | Replace strchr if needed. | |
11019 | * src/system.h: Provide the protos of strchr, strspn and memchr if | |
11020 | missing. | |
11021 | * lib/strchr.c: New. | |
11022 | * src/reader.c (symbols_save): Use strchr. | |
11023 | ||
8adfa272 AD |
11024 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11025 | ||
11026 | * src/print.c, src/print_graph.c (escape): New. | |
11027 | Use it to quote the TAGS outputs. | |
11028 | * src/print_graph.c (print_state): Now errors are in red, and | |
11029 | reductions in green. | |
11030 | Prefer high to wide: output the state number on a line of its own. | |
11031 | ||
80dac38c AD |
11032 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11033 | ||
11034 | * src/state.h, src/state.c (reductions_new): New. | |
11035 | * src/LR0.c (set_state_table): Let all the states have a | |
11036 | `reductions', even if reduced to 0. | |
11037 | (save_reductions): Adjust. | |
11038 | * src/lalr.c (initialize_LA, initialize_lookaheads): Adjust. | |
11039 | * src/print.c (print_reductions, print_actions): Adjust. | |
11040 | * src/output.c (action_row): Adjust. | |
11041 | ||
2cec70b9 AD |
11042 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11043 | ||
11044 | * src/state.h, src/state.c (errs_new, errs_dup): New. | |
11045 | * src/LR0.c (set_state_table): Let all the states have an errs, | |
11046 | even if reduced to 0. | |
11047 | * src/print.c (print_errs, print_reductions): Adjust. | |
11048 | * src/output.c (output_actions, action_row): Adjust. | |
11049 | * src/conflicts.c (resolve_sr_conflict): Adjust. | |
11050 | ||
13ca549a AD |
11051 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11052 | ||
11053 | * src/lalr.c (set_goto_map, initialize_F): Use SHIFT_SYMBOL. | |
11054 | ||
5092aba5 AD |
11055 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11056 | ||
11057 | * src/conflicts.c, src/conflicts.h (print_reductions): Move to... | |
11058 | * src/print.c: here. | |
11059 | (lookaheadset, shiftset): New, used as additional storage by | |
11060 | print_reductions. | |
11061 | (print_results): Adjust. | |
11062 | (print_shifts, print_gotos, print_errs): New, extracted from... | |
11063 | (print_actions): here. | |
11064 | * src/print_graph.c (print_actions): Remove dead code. | |
11065 | ||
11e2beca AD |
11066 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11067 | ||
11068 | * src/reader.c (copy_dollar, copy_at): Better checking of `n' in | |
11069 | `$n' and `@n'. | |
11070 | ||
dac3c910 AD |
11071 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11072 | ||
11073 | * src/lalr.c (add_lookback_edge): Use state_t instead of ints. | |
11074 | (build_relations): Adjust. | |
11075 | ||
d0b0fefa AD |
11076 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11077 | ||
11078 | * src/lalr.c (set_goto_map): Remove a wrong but benign loop | |
11079 | duplication. | |
11080 | ||
adc8c848 AD |
11081 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11082 | ||
11083 | * src/reader.c (packgram): Catch nitems overflows. | |
11084 | ||
14d293ac AD |
11085 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11086 | ||
11087 | * src/files.c, src/files.h (guard_obstack): Remove. | |
11088 | * src/output.c (output): Adjust. | |
11089 | * src/reader.c (parse_braces): New, factoring... | |
11090 | (copy_action, copy_guard): these two which are renamed as... | |
11091 | (parse_action, parse_guard): these. | |
11092 | As a voluntary consequence, using braces around guards is now | |
11093 | mandatory. | |
11094 | ||
f499b062 AD |
11095 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11096 | ||
11097 | * src/gram.h (rule_t): `guard' and `guard_line' are new members. | |
11098 | * src/reader.c (symbol_list): `guard' and `guard_line' are new | |
11099 | members. | |
11100 | (symbol_list_new): Adjust. | |
11101 | (copy_action): action_line is the first line, not the last. | |
11102 | (copy_guard): Just as for actions, store the `action' only, not | |
11103 | the switch/case/break flesh. | |
11104 | Don't parse the user action that might follow the guard, let... | |
11105 | (readgram): do it, i.e., now, there can be an action after a | |
11106 | guard. | |
11107 | In other words the guard is just explicitly optional. | |
11108 | (packgram): Adjust. | |
11109 | * src/output.c (guards_output): New. | |
11110 | (output_parser): Call it when needed. | |
11111 | (output): Also free the guard and attrs obstacks. | |
11112 | * src/files.c, src/files.h (obstack_save): Remove. | |
11113 | (output_files): Remove. | |
11114 | As a result, if one needs the former `.act' file, using an | |
11115 | appropriate skeleton which requires actions and guards is now | |
11116 | required. | |
11117 | * src/main.c (main): Adjust. | |
11118 | * tests/semantic.at: New. | |
11119 | * tests/regression.at: Use `input.y' as input file name. | |
11120 | Avoid 8+3 problems by requiring input.c when the test needs the | |
11121 | parser. | |
11122 | ||
d945f5cd AD |
11123 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11124 | ||
11125 | * src/reader.c (symbol_list_new): Be sure to initialize all the | |
11126 | fields. | |
11127 | ||
d200e455 AD |
11128 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11129 | ||
11130 | All the hacks using a final pseudo state are now useless. | |
11131 | ||
11132 | * src/LR0.c (set_state_table): state_table holds exactly nstates. | |
11133 | * src/lalr.c (nLA): New. | |
11134 | (initialize_LA, compute_lookaheads, initialize_lookaheads): Use it | |
11135 | instead of lookaheadsp from the pseudo state (nstate + 1). | |
11136 | ||
f9507c28 AD |
11137 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11138 | ||
11139 | * src/output.c (action_row, token_actions): Use a state_t instead | |
11140 | of a integer, and nlookaheads instead of the following state's | |
11141 | lookaheadsp. | |
11142 | ||
065fbd27 AD |
11143 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11144 | ||
11145 | * src/conflicts.c (log_resolution, flush_shift) | |
11146 | (resolve_sr_conflict, set_conflicts, solve_conflicts) | |
11147 | (count_sr_conflicts, count_rr_conflicts, conflicts_output) | |
11148 | (conflicts_print, print_reductions): Use a state_t instead of an | |
11149 | integer when referring to a state. | |
11150 | As much as possible, depend upon nlookaheads, instead of the | |
11151 | `lookaheadsp' member of the following state (since lookaheads of | |
11152 | successive states are successive, the difference between state n + 1 | |
11153 | and n served as the number of lookaheads for state n). | |
11154 | * src/lalr.c (add_lookback_edge): Likewise. | |
11155 | * src/print.c (print_core, print_actions, print_state) | |
11156 | (print_results): Likewise. | |
11157 | * src/print_graph.c (print_core, print_actions, print_state) | |
11158 | (print_graph): Likewise. | |
11159 | * src/conflicts.h: Adjust. | |
11160 | ||
1b177bd7 AD |
11161 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11162 | ||
11163 | * src/bison.hairy: Formatting/comment changes. | |
11164 | ANSIfy. | |
11165 | Remove `register' indications. | |
11166 | Add plenty of `static'. | |
11167 | ||
7742ddeb AD |
11168 | 2001-12-27 Akim Demaille <akim@epita.fr> |
11169 | ||
11170 | * src/output.c (prepare): Drop the muscle `ntbase' which | |
11171 | duplicates ntokens. | |
11172 | * src/bison.simple: Formatting/comment changes. | |
11173 | Use YYNTOKENS only, which is documented, but not YYNTBASE, which | |
11174 | is an undocumented synonym. | |
11175 | ||
1fa14068 AD |
11176 | 2001-12-22 Akim Demaille <akim@epita.fr> |
11177 | ||
11178 | * src/output.c (output_table_data): Change the prototype to use | |
11179 | `int' for array ranges: some invocations do pass an int, not a | |
11180 | short. | |
11181 | Reported by Wayne Green. | |
11182 | ||
b9752825 AD |
11183 | 2001-12-22 Akim Demaille <akim@epita.fr> |
11184 | ||
11185 | Some actions of web2c.y are improperly triggered. | |
11186 | Reported by Mike Castle. | |
11187 | ||
11188 | * src/lalr.c (traverse): s/F (i)[k] = F (j)[k]/F (j)[k] = F (i)[k]/. | |
11189 | * tests/regression.at (Web2c): Rename as... | |
11190 | (Web2c Report): this. | |
11191 | (Web2c Actions): New. | |
11192 | ||
776209d6 AD |
11193 | 2001-12-22 Akim Demaille <akim@epita.fr> |
11194 | ||
11195 | Reductions in web2c.y are improperly reported. | |
11196 | Reported by Mike Castle. | |
11197 | ||
11198 | * src/conflicts.c (print_reductions): Fix. | |
11199 | * tests/regression.at (Web2c): New. | |
11200 | ||
275fc3ad AD |
11201 | 2001-12-18 Akim Demaille <akim@epita.fr> |
11202 | ||
11203 | Some host fail on `assert (!"foo")', which expands to | |
11204 | ((!"foo") ? (void)0 : __assert("!"foo."", __FILE__, __LINE__)) | |
11205 | Reported by Nelson Beebee. | |
11206 | ||
11207 | * src/output.c, src/vcg.c: Replace `assert (!"it succeeded")' with | |
11208 | `#define it_succeeded 0' and `assert (it_succeeded)'. | |
11209 | ||
897668ee MA |
11210 | 2001-12-17 Marc Autret <autret_m@epita.fr> |
11211 | ||
11212 | * src/bison.simple: Don't hard code the skeleton line and filename. | |
11213 | * src/output.c (output_parser): Rename 'line' as 'output_line'. | |
11214 | New line counter 'skeleton_line' (skeleton-line muscle). | |
11215 | ||
ab3399e0 PE |
11216 | 2001-12-17 Paul Eggert <eggert@twinsun.com> |
11217 | ||
11218 | * NEWS, doc/bison.texinfo, doc/bison.1, doc/bison.rnh: Document that | |
11219 | YYDEBUG must be defined to a nonzero value. | |
11220 | ||
11221 | * src/bison.simple (yytname): Do not assume that the user defines | |
11222 | YYDEBUG to a properly parenthesized expression. | |
11223 | ||
3877f72b AD |
11224 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11225 | ||
11226 | * src/state.h (state_t): Rename lookaheads as lookaheadsp. | |
11227 | nlookaheads is a new member. | |
11228 | Adjust all users. | |
11229 | * src/lalr.h (nlookaheads): Remove this orphan declaration. | |
11230 | * src/lalr.c (initialize_lookaheads): Set nlookaheads for each | |
11231 | state. | |
776209d6 | 11232 | |
331dbc1b AD |
11233 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11234 | ||
11235 | * src/files.h, src/files.c (open_files, close_files): Remove. | |
11236 | * src/main.c (main): Don't open/close files, nor invoke lex_free, | |
11237 | let... | |
11238 | * src/reader.c (reader): Do it. | |
776209d6 | 11239 | |
be750e4c AD |
11240 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11241 | ||
11242 | * src/conflicts.c (print_reductions): Formatting changes. | |
776209d6 | 11243 | |
709ae8c6 AD |
11244 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11245 | ||
11246 | * src/conflicts.c (flush_shift): Also adjust lookaheadset. | |
11247 | (flush_reduce): New. | |
11248 | (resolve_sr_conflict): Adjust. | |
776209d6 | 11249 | |
f87685c3 AD |
11250 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11251 | ||
11252 | * src/output.c (output_obstack): Be static and rename as... | |
11253 | (format_obstack): this, to avoid any confusion with files.c's | |
11254 | output_obstack. | |
11255 | * src/reader.h (muscle_obstack): Move to... | |
11256 | * src/output.h: here, since it's defined in output.c. | |
11257 | ||
837491d8 AD |
11258 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11259 | ||
11260 | * src/output.c (action_row, save_column, default_goto) | |
11261 | (sort_actions, matching_state, pack_vector): Better variable | |
11262 | locality. | |
11263 | ||
796d61fb AD |
11264 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11265 | ||
11266 | * src/output.c: Various formatting changes. | |
776209d6 | 11267 | |
64d15509 AD |
11268 | 2001-12-17 Akim Demaille <akim@epita.fr> |
11269 | ||
11270 | * src/files.c (output_files): Free the output_obstack. | |
11271 | * src/main.c (main): Call print and print_graph conditionally. | |
11272 | * src/print.c (print): Work unconditionally. | |
11273 | * src/print_graph.c (print_graph): Work unconditionally. | |
11274 | * src/conflicts.c (log_resolution): Output only if verbose_flag. | |
11275 | ||
fbc8ecb7 MA |
11276 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
11277 | ||
11278 | * src/output.c (actions_output): Fix. When we use %no-lines, | |
11279 | there is one less line per action. | |
11280 | ||
f0440388 MA |
11281 | 2001-12-16 Marc Autret <autret_m@epita.fr> |
11282 | ||
11283 | * src/bison.simple: Remove a useless #line directive. | |
11284 | s/#line %%line %%skeleton/#line %%line "%%parser-file-name"/'. | |
11285 | * src/output.c (get_lines_number): New. | |
776209d6 | 11286 | (output_parser): Adjust, now takes care about the lines of a |
f0440388 MA |
11287 | output muscles. |
11288 | Fix line numbering. | |
11289 | (actions_output): Computes the number of lines taken by actions. | |
11290 | (output_master_parser): Insert new skeleton which is the name of | |
11291 | the output parser file name. | |
11292 | ||
a79986b8 MA |
11293 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
11294 | ||
11295 | * src/bison.simple [YYERROR_VERBOSE]: Restore backward compatibility. | |
11296 | ||
4ec8e00f MA |
11297 | 2001-12-15 Marc Autret <autret_m@epita.fr> |
11298 | ||
11299 | * src/output.c (output_gram): Keep track of the hairy one. | |
11300 | ||
1a4648ff AD |
11301 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11302 | ||
11303 | Make `make distcheck' work. | |
11304 | ||
11305 | * lib/Makefile.am (INCLUDES): Add top_srcdir/intl, since hash uses | |
11306 | system.h which uses libgettext.h. | |
11307 | ||
9c2c67e6 AD |
11308 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11309 | ||
11310 | * src/nullable.c (set_nullable): Useless rules must be skipped, | |
11311 | otherwise, since we range over their symbols, we might look at a | |
11312 | nonterminal which no longer ``exists'', i.e., it is not counted in | |
11313 | `nvars', hence we overflow our arrays. | |
11314 | ||
93ede233 AD |
11315 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11316 | ||
11317 | The header can also be produced directly, without any obstack! | |
11318 | Yahoo! | |
11319 | ||
11320 | * src/files.c, src/files.h (defines_obstack): Remove. | |
11321 | (compute_header_macro): Global. | |
11322 | (defines_obstack_save): Remove. | |
11323 | * src/reader.c (parse_union_decl): No longer output to | |
11324 | defines_obstack: its content can be found in the `stype' muscle | |
11325 | anyway. | |
11326 | (output_token_translations): Merge into... | |
11327 | (symbols_output): this. | |
11328 | Rename as... | |
11329 | (symbols_save): this. | |
11330 | (reader): Adjust. | |
11331 | * src/output.c (header_output): New. | |
11332 | (output): Call it. | |
11333 | ||
2666f928 AD |
11334 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11335 | ||
11336 | * src/reader.c (parse_union_decl): Instead of handling two obstack | |
11337 | simultaneously, use one to define the `stype' muscle, and use the | |
11338 | value of the latter to fill defines_obstack. | |
11339 | (copy_comment): Remove. | |
11340 | (copy_comment2): Work for a single obstack. | |
11341 | Rename as... | |
11342 | (copy_comment): this. | |
11343 | ||
428046f8 AD |
11344 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11345 | ||
11346 | * src/lex.c, src/lex.h (xgetc): No longer static. | |
11347 | * src/reader.c (parse_union_decl): Revamp. | |
11348 | ||
ea52d706 AD |
11349 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11350 | ||
11351 | Still making progress in separating Bison into (i) input, (ii) | |
11352 | process, (iii) output: now we can directly output the parser file | |
11353 | without using table_obstack at all. | |
11354 | ||
11355 | * src/files.c, src/files.h (table_obstack): Bye bye. | |
11356 | (parser_file_name): New. | |
11357 | * src/files.c (compute_output_file_names): Compute it. | |
11358 | * src/output.c (actions_output, output_parser) | |
11359 | (output_master_parser): To a file instead of an obstack. | |
11360 | ||
3f96f4dc AD |
11361 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11362 | ||
11363 | Attach actions to rules, instead of pre-outputting them to | |
11364 | actions_obstack. | |
11365 | ||
11366 | * src/gram.h (rule_t): action and action_line are new members. | |
11367 | * src/reader.c (symbol_list): Likewise. | |
11368 | (copy_action): Save the actions within the rule. | |
11369 | (packgram): Save them in rule_table. | |
11370 | * src/output.c (actions_output): New. | |
11371 | (output_parser): Use it on `%%actions'. | |
11372 | (output_rule_data): Don't free rule_table. | |
11373 | (output): Do it. | |
11374 | (prepare): Don't save the `action' muscle. | |
11375 | * src/bison.simple: s/%%action/%%actions/. | |
11376 | ||
51576fb3 AD |
11377 | 2001-12-15 Akim Demaille <akim@epita.fr> |
11378 | ||
11379 | * src/reader.c (copy_action): When --yacc, don't append a `;' | |
11380 | to the user action: let it fail if lacking. | |
dee049eb | 11381 | Suggested by Arnold Robbins and Tom Tromey. |
51576fb3 | 11382 | |
2648a72d AD |
11383 | 2001-12-14 Akim Demaille <akim@epita.fr> |
11384 | ||
11385 | * src/lex.c (literalchar): Simply return the char you decoded, non | |
11386 | longer mess around with obstacks and int pointers. | |
11387 | Adjust all callers. | |
11388 | ||
92790e5b AD |
11389 | 2001-12-14 Akim Demaille <akim@epita.fr> |
11390 | ||
11391 | * src/lex.c (literalchar): Don't escape the special characters, | |
11392 | just decode them, and keep them as char (before, eol was output as | |
11393 | the 2 char string `\n' etc.). | |
11394 | * src/output.c (output_rule_data): Use quotearg to output the | |
11395 | token strings. | |
11396 | ||
927c1557 PE |
11397 | 2001-12-13 Paul Eggert <eggert@twinsun.com> |
11398 | ||
11399 | * src/bison.simple (YYSIZE_T, YYSTACK_ALLOC, YYSTACK_FREE): | |
11400 | Do not infringe on the global user namespace when using C++. | |
11401 | (YYFPRINTF, YYSTDERR): New macros, needed for the above. | |
11402 | All uses of `fprintf' and `stderr' changed. | |
11403 | ||
11404 | * doc/bison.texinfo: Document YYFPRINTF, YYSTDERR. | |
11405 | ||
ed8e1f68 AD |
11406 | 2001-12-13 Akim Demaille <akim@epita.fr> |
11407 | ||
11408 | The computation of nullable is broken: it doesn't handle empty | |
11409 | RHS's properly. | |
11410 | ||
11411 | * tests/torture.at (GNU AWK Grammar): New. | |
11412 | * tests/sets.at (Nullable): New. | |
11413 | * src/nullable.c (set_nullable): Instead of blindly looping over | |
11414 | `ritems', loop over the rules, and then over their rhs's. | |
11415 | ||
11416 | Work around Autotest bugs. | |
11417 | ||
11418 | * src/warshall.c (bitmatrix_print): Don't use `+--+' as table | |
11419 | frame, because Autotest understand lines starting with a `+' as | |
11420 | traces from the shell. Then, they are not processed properly. | |
11421 | Admittedly an Autotest bug, but we don't have time to wait for | |
11422 | Autotest to catch up. | |
11423 | * tests/regression.at (Broken Closure): Adjust to the new table | |
11424 | frames. | |
11425 | Move to... | |
11426 | * tests/sets.at: here. | |
11427 | ||
cb581495 AD |
11428 | 2001-12-13 Akim Demaille <akim@epita.fr> |
11429 | ||
11430 | * src/closure.c (closure): Use nrules instead of playing tricks | |
11431 | with BITS_PER_WORD. | |
11432 | ||
2e729273 AD |
11433 | 2001-12-13 Akim Demaille <akim@epita.fr> |
11434 | ||
11435 | * src/print.c (print_actions): Output the handling of `$' as the | |
11436 | traces do: shifting the token EOF. Before EOF was treated as a | |
11437 | nonterminal. | |
11438 | * tests/regression.at: Adjust some tests. | |
11439 | * src/print_graph.c (print_core): Complete the set of items via | |
11440 | closure. The next-to-final and final states are still unsatisfying, | |
11441 | but that's to be addressed elsewhere. | |
11442 | No longer output the rule numbers, but do output the state number. | |
11443 | A single loop for the shifts + gotos is enough, but picked a | |
11444 | distinct color for each. | |
11445 | (print_graph): Initialize and finalize closure. | |
11446 | ||
107f7dfb AD |
11447 | 2001-12-13 Akim Demaille <akim@epita.fr> |
11448 | ||
11449 | * src/reader.c (readgram): Remove dead code, an strip useless | |
11450 | braces. | |
11451 | (get_type): Remove, unused. | |
11452 | ||
9b53a24f AD |
11453 | 2001-12-12 Akim Demaille <akim@epita.fr> |
11454 | ||
11455 | * src/complain.h, src/complain.c: Remove error_one_per_line, rely | |
11456 | on that of lib/error.c. | |
11457 | ||
dbfb6dcd AD |
11458 | 2001-12-12 Akim Demaille <akim@epita.fr> |
11459 | ||
11460 | Some hosts don't like `/' in includes. | |
11461 | ||
11462 | * src/system.h: Include libgettext.h without qualifying the path. | |
11463 | * src/Makefile.am (INCLUDES): Add $(top_srcdir)/intl, remove | |
11464 | $(top_srcdir). | |
11465 | ||
c25fb648 MA |
11466 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
11467 | ||
11468 | * src/output.c (output_parser): Remove useless muscle. | |
11469 | ||
710ddc4f MA |
11470 | 2001-12-11 Marc Autret <autret_m@epita.fr> |
11471 | ||
11472 | * src/bison.simple: Remove #line just before %%epilogue. It | |
11473 | is now handled in ... | |
11474 | * src/reader.c (read_additionnal_code): Add the output of a | |
11475 | #line for the epilogue. | |
11476 | ||
e83d80b8 MA |
11477 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
11478 | ||
927c1557 | 11479 | * src/reader.c (copy_definition): Re-use CPP-outed code which |
e83d80b8 MA |
11480 | replace precedent remove. |
11481 | * src/bison.simple: Remove #line before %%prologue because | |
11482 | %%input-line is wrong at this time. | |
11483 | ||
971d5158 MA |
11484 | 2001-12-10 Marc Autret <autret_m@epita.fr> |
11485 | ||
11486 | * src/reader.c (symbols_output): Clean up. | |
927c1557 | 11487 | * src/output.c (output_gram, output): Clean up. |
971d5158 | 11488 | |
5edafffd AD |
11489 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11490 | ||
11491 | * src/lalr.c (initialize_lookaheads): New. Extracted from... | |
11492 | * src/LR0.c (set_state_table): here. | |
11493 | * src/lalr.c (lalr): Call it. | |
11494 | ||
0279f8e9 AD |
11495 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11496 | ||
11497 | * src/state.h (shifts): Remove the `number' member: shifts are | |
11498 | attached to state, hence no longer need to be labelled with a | |
11499 | state number. | |
11500 | ||
190c4f5f AD |
11501 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11502 | ||
11503 | Now that states have a complete set of members, the linked list of | |
11504 | shifts is useless: just fill directly the state's shifts member. | |
11505 | ||
11506 | * src/state.h (shifts): Remove the `next' member. | |
11507 | * src/LR0.c (first_state, last_state): Remove. | |
11508 | Adjust the callers. | |
11509 | (augment_automaton): Don't look for the shifts that must be added | |
11510 | a shift on EOF: it is those of the state we looked for! But now, | |
11511 | since shifts are attached, it is no longer needed to looking | |
11512 | merely by its id: its number. | |
11513 | ||
2a73b93d AD |
11514 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11515 | ||
11516 | * src/LR0.c (augment_automaton): Better variable locality. | |
11517 | Remove an impossible branch: if there is a state corresponding to | |
11518 | the start symbol being shifted, then there is shift for the start | |
11519 | symbol from the initial state. | |
11520 | ||
74392f6a AD |
11521 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11522 | ||
11523 | * src/LR0.c (augment_automaton): Call `insert_eof_shifting_state' | |
11524 | only when appropriate: when insert_start_shifting_state' is not | |
11525 | invoked. | |
11526 | * tests/regression.at (Rule Line Numbers): Adjust. | |
11527 | ||
37c82725 AD |
11528 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11529 | ||
11530 | * src/LR0.c (augment_automaton): Now that all states have shifts, | |
11531 | merge the two cases addition shifts to the initial state. | |
11532 | ||
6a164e0c AD |
11533 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11534 | ||
11535 | * src/lalr.c (set_state_table): Move to... | |
11536 | * src/LR0.c: here. | |
11537 | * src/lalr.c (lalr): Don't call it... | |
11538 | * src/LR0.c (generate_states): do it. | |
11539 | * src/LR0.h (first_state): Remove, only the table is used. | |
11540 | ||
7215de24 AD |
11541 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11542 | ||
11543 | * src/LR0.h (first_shift, first_reduction): Remove. | |
11544 | * src/lalr.c: Don't use first_shift: find shifts through the | |
11545 | states. | |
11546 | ||
80e25d4d AD |
11547 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11548 | ||
11549 | * src/LR0.c: Attach shifts to states as soon as they are | |
11550 | computed. | |
11551 | * src/lalr.c (set_state_table): Instead of assigning shifts to | |
11552 | state, just assert that the mapping was properly done. | |
11553 | ||
0ab3728b AD |
11554 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11555 | ||
11556 | * src/LR0.c (insert_start_shift): Rename as... | |
11557 | (insert_start_shifting_state): this. | |
11558 | (insert_eof_shifting_state, insert_accepting_state): New. | |
11559 | (augment_automaton): Adjust. | |
11560 | Better locality of the variables. | |
11561 | When looking if the start_symbol is shifted from the initial | |
11562 | state, using `while (... symbol != start_symbol ...)' sounds | |
11563 | better than `while (... symbol < start_symbol ...)': If fail | |
11564 | to see how the order between symbols could be relevant! | |
11565 | ||
78af9bbc AD |
11566 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11567 | ||
11568 | * src/getargs.h: Don't declare `spec_name_prefix' and | |
11569 | `spec_file_prefix', declared by src/files.h. | |
11570 | * src/files.c, src/files.h: Default for spec_name_prefix is "yy". | |
11571 | * src/muscle_tab.c (muscle_init): Default prefix to NULL. | |
11572 | * src/output.c (prepare): Adjust. | |
11573 | * src/reader.c (symbols_output): Likewise. | |
11574 | * src/vmsgetargs.c: Vaguely adjust, but who cares? | |
11575 | ||
bdef2a41 AD |
11576 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11577 | ||
11578 | * src/muscle_tab.c (muscle_init): NULL is a better default than | |
11579 | `"0"'. | |
11580 | ||
3735969c AD |
11581 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11582 | ||
11583 | * src/reader.c (reader): Calling symbols_output once is enough. | |
11584 | ||
49701457 AD |
11585 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11586 | ||
11587 | Now that states have a complete set of members, the linked list of | |
11588 | reductions is useless: just fill directly the state's reductions | |
11589 | member. | |
11590 | ||
11591 | * src/state.h (struct reductions): Remove member `number' and | |
11592 | `next'. | |
11593 | * src/LR0.c (first_reduction, last_reduction): Remove. | |
11594 | (save_reductions): Don't link the new reductions, store them in | |
11595 | this_state. | |
11596 | * src/lalr.c (set_state_table): No need to attach reductions to | |
11597 | states, it's already done. | |
11598 | * src/output.c (output_actions): No longer free the shifts, then | |
11599 | the reductions, then the states: free all the states and their | |
11600 | members. | |
11601 | ||
0edad749 AD |
11602 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11603 | ||
11604 | * src/options.c (OPTN, DRTV, BOTH): New. | |
11605 | (option_table): Use them. | |
11606 | ||
0edad749 AD |
11607 | * src/muscle_tab.c: Don't include xalloc.h and string.h: that's |
11608 | the job of system.h. | |
11609 | * src/options.c: Don't include stdio.h and xalloc.h for the same | |
11610 | reasons. | |
11611 | ||
5449dd0f AD |
11612 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11613 | ||
11614 | * src/output.c (output, prepare): Make sure the values of the | |
11615 | muscles `action' and `prologue' are 0-terminated. | |
11616 | ||
a870c567 AD |
11617 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11618 | ||
11619 | Clean up GCC warnings. | |
11620 | ||
11621 | * src/reader.c (copy_action): `buf' is not used. | |
11622 | (parse_skel_decl): Be static. | |
11623 | * src/muscle_tab.c (mhash1, mhash2, muscle_insert): Preserve `const'. | |
11624 | * src/options.h (create_long_option_table): Have a real prototype. | |
11625 | * lib/hash.c, lib/hash.h (hash_insert, hash_insert_at, hash_delete) | |
11626 | (hash_delete_at): Return const void *. | |
11627 | Adjust casts to preserve the const. | |
11628 | ||
80df8768 AD |
11629 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11630 | ||
11631 | * configure.in: Require 2.52g. | |
11632 | M4 is not needed, but AUTOM4TE is. | |
11633 | * m4/m4.m4: Remove. | |
11634 | * tests/Makefile.am: Adjust. | |
11635 | ||
f693ad14 AD |
11636 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11637 | ||
11638 | One structure for states is enough, even though theoretically | |
11639 | there are LR(0) states and LALR(1) states. | |
11640 | ||
11641 | * src/lalr.h (state_t): Remove. | |
11642 | (state_table): Be state_t **, not state_t *. | |
11643 | * src/state.h (core, CORE_ALLOC): Rename as... | |
11644 | (state_t, STATE_ALLOC): this. | |
11645 | Add the LALR(1) members: shifts, reductions, errs. | |
11646 | * src/LR0.c (state_table): Rename as... | |
11647 | (state_hash): this, to avoid name clashes with the global | |
11648 | `state_table'. | |
11649 | * src/print_graph.c, src/LR0.c, src/LR0.h, src/conflicts.c | |
11650 | * src/lalr.c, src/lalr.h, src/output.c, src/print.c: Adjust. | |
11651 | ||
74ffbcb6 AD |
11652 | 2001-12-10 Akim Demaille <akim@epita.fr> |
11653 | ||
11654 | Bison dumps core on bash.y. | |
11655 | Reported by Pascal Bart. | |
11656 | ||
11657 | * src/warshall.c (bitmatrix_print): New. | |
11658 | (TC): Use it. | |
ba0fe3c7 | 11659 | When performing a transitive closure R(i, j) && R(j, k) => R(i, k), |
74ffbcb6 AD |
11660 | j must be the outer loop. |
11661 | * tests/regression.at (Broken Closure): New. | |
11662 | ||
07708e19 AD |
11663 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11664 | ||
11665 | * tests/atlocal.in (CPPFLAGS): Do not leave a space between -I and | |
11666 | its argument. | |
ba1ecc07 | 11667 | Reported by Peter Hamorsky. |
07708e19 | 11668 | |
92b16366 AD |
11669 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11670 | ||
11671 | * src/conflicts.c (err_table): Remove. | |
11672 | (resolve_sr_conflict): Adjust. | |
11673 | * src/lalr.h (state_t.reduction_table, state_t.shift_table): | |
11674 | Rename as... | |
11675 | (state_t.reductions, state_t.shifts): this. | |
11676 | ||
076ab033 AD |
11677 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11678 | ||
11679 | * src/reduce.c (reduce_grammar_tables): No longer disable the | |
11680 | removal of useless rules via CPP but via `if (0)', so that the | |
11681 | compiler still check the code is valid. | |
11682 | For instance, it should have noticed `rline' no longer exists: use | |
11683 | the `line' member of rule_t. | |
11684 | * src/gram.c (dummy, rline): Remove, unused. | |
11685 | ||
3843c413 AD |
11686 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11687 | ||
11688 | * src/output.c (pack_vector): Use assert, not berror. | |
11689 | * src/main.c (berror): Remove, unused. | |
11690 | ||
43168960 AD |
11691 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11692 | ||
11693 | New experimental feature: if --verbose --trace output all the | |
11694 | items of a state, not only its kernel. | |
11695 | ||
11696 | * src/print.c (print_core): If `trace_flag', then invoke closure | |
11697 | before outputting the items of the state (print_core is no longer | |
11698 | a correct name them). | |
11699 | (print_results): Invoke new_closure/free_closure if needed. | |
11700 | ||
b2872512 AD |
11701 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11702 | ||
11703 | * src/LR0.c (new_itemsets): Use nshifts only, not shiftcount. | |
11704 | * src/closure.c, src/closure.h (itemsetsize): Rename as... | |
11705 | (nitemset): for consistency with the rest of the project. | |
11706 | ||
23cbcc6c AD |
11707 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11708 | ||
11709 | * src/closure.c (print_closure): Improve. | |
11710 | (closure): Use it for printing input and output. | |
11711 | ||
03ec521c AD |
11712 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11713 | ||
11714 | * src/closure.c (FIRSTS, FDERIVES): Adjust to reality: they are | |
11715 | indexed by nonterminals. | |
11716 | ||
3a7456dd AD |
11717 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11718 | ||
11719 | * src/warshall.c (TC, RTC): De-obsfucate (source reduced to 22% of | |
11720 | what it was!). | |
11721 | * src/warshall.h: Remove accidental duplication of the content. | |
11722 | ||
1cbcf2e7 AD |
11723 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11724 | ||
11725 | * src/closure.c (set_fderives): De-obfuscate. | |
11726 | ||
84182270 AD |
11727 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11728 | ||
11729 | * src/closure.c (print_firsts, print_fderives): De-obfuscate. | |
11730 | ||
3f6f053c AD |
11731 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11732 | ||
11733 | * src/closure.c (set_firsts): De-obfuscate. | |
11734 | ||
7a5350ba AD |
11735 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11736 | ||
11737 | * src/output.c (action_row): De-obfuscate | |
11738 | using the good o' techniques: arrays not pointers, variable | |
11739 | locality, BITISSET, RESETBIT etc. | |
11740 | ||
d954473d AD |
11741 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11742 | ||
11743 | Pessimize the code to simplify it: from now on, all the states | |
11744 | have a valid SHIFTS, which NSHIFTS is possibly 0. | |
11745 | ||
11746 | * src/LR0.c (shifts_new): Be global and move to.. | |
11747 | * src/state.c, src/state.h: here. | |
11748 | * src/conflicts, src/lalr.c, src/output.c, src/print.c, | |
11749 | * src/print_graph: Adjust. | |
11750 | ||
9839bbe5 AD |
11751 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11752 | ||
11753 | * src/state.h (SHIFT_DISABLE, SHIFT_IS_DISABLED): New. | |
11754 | * src/conflicts.c: Use it. | |
11755 | Restore a few missing `if (!SHIFT_IS_DISABLED)' which were | |
11756 | incorrectly ``simplified''. | |
11757 | ||
9f136c07 AD |
11758 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11759 | ||
11760 | * src/conflicts.c (flush_shift, resolve_sr_conflict): De-obfuscate | |
11761 | using the good o' techniques: arrays not pointers, variable | |
11762 | locality, BITISSET, RESETBIT etc. | |
11763 | ||
b608206e AD |
11764 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11765 | ||
11766 | * src/state.h (SHIFT_SYMBOL): New. | |
11767 | * src/conflicts.c: Use it to deobfuscate. | |
11768 | ||
52afa962 AD |
11769 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11770 | ||
11771 | * src/conflicts.c (count_sr_conflicts, count_rr_conflicts) | |
11772 | (print_reductions): De-obfuscate using the good o' techniques: | |
11773 | arrays not pointers, variable locality, BITISSET. | |
11774 | ||
e74dc321 AD |
11775 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11776 | ||
11777 | * src/conflicts.c (print_reductions): Arrays, not pointers. | |
11778 | Use BITISSET. | |
11779 | ||
768fca83 AD |
11780 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11781 | ||
11782 | * src/conflicts.c (print_reductions): Pessimize, but clarify. | |
11783 | ||
a17e599f AD |
11784 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11785 | ||
11786 | * src/conflicts.c (print_reductions): Improve variable locality. | |
11787 | ||
a04bc341 AD |
11788 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11789 | ||
11790 | * src/conflicts.c (print_reductions): Pessimize, but clarify. | |
11791 | ||
c8ea038e AD |
11792 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11793 | ||
11794 | * src/conflicts.c (print_reductions): Improve variable locality. | |
11795 | ||
aa2aab3c AD |
11796 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11797 | ||
11798 | * src/state.h (SHIFT_IS_ERROR, SHIFT_IS_GOTO, SHIFT_IS_SHIFT): New. | |
11799 | * src/lalr.c: Use them. | |
11800 | ||
b178c8cc AD |
11801 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11802 | ||
11803 | * src/LR0.c (augment_automaton): Formatting changes. | |
11804 | Better variable locality. | |
11805 | ||
f67d13aa AD |
11806 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11807 | ||
11808 | * src/lalr.c (matrix_print): New. | |
11809 | (transpose): Use it. | |
11810 | Use arrays instead of pointers. | |
11811 | ||
c2713865 AD |
11812 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11813 | ||
11814 | * src/lalr.c (maxrhs): Move to... | |
11815 | * src/gram.c, src/gram.h (ritem_longest_rhs): here. | |
11816 | * src/lalr.c (build_relations): Adjust. | |
11817 | ||
9887c18a AD |
11818 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11819 | ||
11820 | * src/lalr.c (transpose): Free the memory allocated to the | |
11821 | argument, as it is replaced by the results by the unique caller. | |
11822 | (build_relations): Merely invoke transpose: it handles the memory | |
11823 | deallocation. | |
11824 | Improve variable locality. | |
11825 | Avoid variables used as mere abbreviations. | |
11826 | (compute_lookaheads): Use arrays instead of pointers. | |
11827 | ||
4d4f699c AD |
11828 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11829 | ||
11830 | * src/lalr.c (initialize_F): Improve variable locality. | |
11831 | Avoid variables used as mere abbreviations. | |
11832 | ||
80a69750 AD |
11833 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11834 | ||
11835 | * src/derives.c (print_derives): Display the ruleno. | |
11836 | * src/lalr.c (initialize_F, transpose): Better variable locality | |
11837 | to improve readability. | |
11838 | Avoid variables used as mere abbreviations. | |
11839 | ||
fe961097 AD |
11840 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11841 | ||
11842 | * src/lalr.c (traverse): Use arrays instead of pointers. | |
11843 | ||
e3e4e814 AD |
11844 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11845 | ||
11846 | * src/nullable.c (set_nullable): Use a for loop to de-obfuscate | |
11847 | the handling of squeue. | |
11848 | `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'. | |
11849 | ||
630e182b AD |
11850 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11851 | ||
11852 | Because useless nonterminals are now kept alive (instead of being | |
11853 | `destroyed'), we now sometimes examine them, and store information | |
11854 | related to them. Hence we need to know their number, and adjust | |
11855 | memory allocations. | |
11856 | ||
11857 | * src/reduce.c, src/reduce.h (nuseless_nonterminals): No longer | |
11858 | static. | |
11859 | * src/LR0.c (allocate_itemsets): The memory allocated to | |
11860 | `symbol_count' was used for two different purpose: once to count | |
11861 | the number of occurrences of each symbol, and later reassigned to | |
11862 | `shift_symbol', containing the symbol that can be shifted from a | |
11863 | given state. | |
11864 | Deobfuscate, i.e., allocate, use and free `symbol_count' here | |
11865 | only, and... | |
11866 | (new_itemsets): Allocate `shift_symbol' here. | |
11867 | (allocate_itemsets): symbol_count includes useless nonterminals. | |
11868 | Make room for them. | |
11869 | (free_storage): Use `free', not `XFREE', for pointers that cannot | |
11870 | be null. | |
11871 | ||
81b51460 AD |
11872 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11873 | ||
11874 | * src/nullable.c (set_nullable): Deobfuscate the handling of | |
11875 | ritem. | |
11876 | `symbol >= 0' is wrong now, use `rule_table[ruleno].useful'. | |
11877 | ||
3067fbef AD |
11878 | 2001-12-05 Akim Demaille <akim@epita.fr> |
11879 | ||
11880 | * src/gram.c, src/gram.h (ritem_print): New. | |
11881 | * src/gram.c (dummy): Remove, now there is actual code in gram.c. | |
11882 | (This useless function was defined only to work around VMS linkers | |
11883 | that can't handle compilation units with variables only). | |
11884 | * src/reduce.c (dump_grammar): Use it to trace the construction of | |
11885 | ritem. | |
11886 | ||
c2bea5f9 PE |
11887 | 2001-12-04 Paul Eggert <eggert@twinsun.com> |
11888 | ||
7d27c823 PE |
11889 | * src/bison.simple (union yyalloc): Change member names |
11890 | to be the same as the stack names. | |
11891 | (yyparse): yyptr is now union yyalloc *, not char *. | |
11892 | (YYSTACK_RELOCATE): Likewise. This avoids a GCC warning, | |
11893 | and may generate better code on some machines. | |
c2bea5f9 PE |
11894 | (yystpcpy): Use prototype if __STDC__ is defined, not just |
11895 | if __cplusplus is defined. | |
35687a9d | 11896 | |
2c8a9dfa AD |
11897 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11898 | ||
11899 | * configure.in (WARNING_CFLAGS): Add -Werror when possible. | |
11900 | (CFLAGS): Do not include the WARNING_CFLAGS here, since GNU | |
11901 | Gettext doesn't compile cleanly, and dies with -Werror. | |
11902 | * src/Makefile.am, lib/Makefile.am, tests/atlocal.in (CFLAGS): | |
11903 | Include WARNING_CFLAGS here. | |
11904 | * lib/xstrdup.c: Include xalloc.h, so that xstrdup be declared | |
11905 | before being defined. | |
11906 | ||
f4e421e6 AD |
11907 | 2001-11-27 Paul Eggert <eggert@twinsun.com> |
11908 | ||
11909 | * lib/quotearg.h (quotearg_n, quotearg_n_style): | |
11910 | First arg is int, not unsigned. | |
11911 | * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise. | |
11912 | (SIZE_MAX, UINT_MAX): New macros. | |
11913 | (quotearg_n_options): Abort if N is negative. | |
11914 | Avoid overflow check on hosts where size_t is 64 bits and int | |
11915 | is 32 bits, as overflow is impossible there. | |
11916 | Fix off-by-one typo that caused unnecessary reallocation. | |
11917 | ||
7093d0f5 AD |
11918 | 2001-11-29 Paul Eggert <eggert@twinsun.com> |
11919 | ||
11920 | Name space cleanup in generated parser. | |
11921 | ||
11922 | * doc/bison.texinfo (Bison Parser): Discuss system headers | |
11923 | and their effect on the user name space. | |
11924 | ||
11925 | * src/bison.simple: | |
11926 | (YYSTACK_ALLOC, YYSTACK_FREE, union yyalloc, YYSTACK_GAP_MAX, | |
11927 | YYSTACK_BYTES, YYSTACK_RELOCATE): Do not define unless necessary, | |
11928 | i.e. unless ! defined (yyoverflow) || defined (YYERROR_VERBOSE). | |
11929 | ||
11930 | (YYSIZE_T): New macro. Use it instead of size_t, to avoid infringing | |
11931 | on user names when possible. | |
11932 | ||
11933 | (YYSTACK_USE_ALLOCA): Do not define; just use any existing defn. | |
11934 | Simplify test for whather <alloca.h> exists. | |
11935 | ||
11936 | (<stdlib.h>): Include if we will use malloc, and if standard C or C++. | |
11937 | ||
11938 | (<stdio.h>): Include if YYDEBUG. | |
11939 | ||
11940 | (yymemcpy): Renamed from __yy_memcpy. Do not define unless | |
11941 | ! defined (yyoverflow) && ! defined (yymemcpy). | |
11942 | ||
11943 | (yymemcpy, yyparse): Rename local variables as needed so that | |
11944 | they all begin with 'yy'. | |
11945 | ||
11946 | (yystrlen, yystpcpy): New functions. | |
11947 | ||
11948 | (YY_DECL_NON_LSP_VARIABLES): Renamed from _YY_DECL_VARIABLES. | |
11949 | All uses changed. | |
11950 | ||
11951 | (yyparse): size_t -> YYSIZE_T. Use yystrlen and yystpcpy | |
11952 | instead of relying on string.h functions. Use YYSTACK_ALLOC | |
11953 | and YYSTACK_FREE instead of malloc and free. | |
11954 | ||
fd51e5ff AD |
11955 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11956 | ||
11957 | * src/bison.simple (YYSTYPE, YYLTYPE): Move their definitions | |
11958 | before their first uses. | |
11959 | (YYBISON, YYPURE): Move to the top of the output. | |
11960 | ||
7d13ff5f AD |
11961 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11962 | ||
11963 | * tests/reduce.at (Useless Nonterminals): Fix. | |
11964 | ||
892a3995 AD |
11965 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11966 | ||
11967 | * src/bison.simple (YYSTACK_FREE): Use `do {;} while (0)' as empty | |
11968 | if body instead of `;' to pacify GCC's warnings. | |
11969 | ||
68f1e3ed AD |
11970 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11971 | ||
11972 | Instead of mapping the LHS of unused rules to -1, keep the LHS | |
11973 | valid, but flag the rules as invalid. | |
11974 | ||
11975 | * src/gram.h (rule_t): `useful' is a new member. | |
11976 | * src/print.c (print_grammar): Adjust. | |
11977 | * src/derives.c (set_derives): Likewise. | |
11978 | * src/reader.c (packgram, reduce_output): Likewise. | |
11979 | * src/reduce.c (reduce_grammar_tables): Likewise. | |
11980 | * tests/reduce.at (Underivable Rules, Useless Rules): New. | |
11981 | ||
d2d1b42b AD |
11982 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11983 | ||
11984 | * src/reduce.c (reduce_output): Formatting changes. | |
11985 | * src/print.c (print_results, print_grammar): Likewise. | |
11986 | * tests/regression.at (Rule Line Numbers) | |
11987 | (Solved SR Conflicts, Unresolved SR Conflicts): Adjust. | |
11988 | ||
760b53a8 AD |
11989 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11990 | ||
11991 | * src/reduce.c (nonterminals_reduce): Instead of throwing away | |
11992 | useless nonterminals, move them at the end of the symbol arrays. | |
11993 | (reduce_output): Adjust. | |
11994 | * tests/reduce.at (Useless Nonterminals): Adjust. | |
11995 | ||
00238958 AD |
11996 | 2001-11-30 Akim Demaille <akim@epita.fr> |
11997 | ||
11998 | * src/reduce.c: Various comment/formatting changes. | |
11999 | (nonterminals_reduce): New, extracted from... | |
12000 | (reduce_grammar_tables): here. | |
12001 | (reduce_grammar): Call nonterminals_reduce. | |
12002 | ||
396452de PE |
12003 | 2001-11-29 Paul Eggert <eggert@twinsun.com> |
12004 | ||
12005 | * src/bison.simple (YYSTACK_REALLOC): Remove. | |
12006 | (YYSTACK_ALLOC): Resurrect this macro, with its old meaning. | |
12007 | (YYSTACK_FREE, YYSTACK_GAP_MAX, YYSTACK_BYTES, YYSTACK_RELOCATE): | |
12008 | New macros. | |
12009 | (union yyalloc): New type. | |
12010 | (__yy_memcpy): Last arg is size_t, not unsigned int, to remove | |
12011 | an arbitrary restriction on hosts where size_t is wider than int. | |
12012 | ||
12013 | (yyparse): Don't dump core if alloca or malloc fails; instead, report | |
12014 | a parser stack overflow. Allocate just one block of memory for all | |
12015 | three stacks, instead of allocating three blocks; this typically is | |
12016 | faster and reduces fragmentation. | |
12017 | ||
12018 | Do not limit the number of items in the stack to a value that fits | |
12019 | in 'int', as this is an arbitrary limit on hosts with 64-bit | |
12020 | size_t and 32-bit int. | |
12021 | ||
147e184c MA |
12022 | 2001-11-29 Marc Autret <autret_m@epita.fr> |
12023 | ||
12024 | * tests/calc.at [AT_DATA_CALC_Y]: Use %error-verbose instead | |
12025 | of defining YYERROR_VERBOSE. | |
12026 | [AT_DATA]: $4 is now out of C declarations in the prologue. | |
12027 | ||
426cf563 MA |
12028 | 2001-11-28 Marc Autret <autret_m@epita.fr> |
12029 | ||
12030 | * src/reader.c (parse_dquoted_param): New. | |
12031 | (parse_skel_decl): Use it. | |
12032 | * src/lex.h: Add its prototype. | |
12033 | * src/lex.c (literalchar): Become not static. | |
12034 | ||
c7925b99 MA |
12035 | 2001-11-28 Marc Autret <autret_m@epita.fr> |
12036 | ||
12037 | * src/output.h: And put its extern declaration here. | |
12038 | * src/output.c (error_verbose): Define here. | |
12039 | (prepare): Echo name modification. | |
12040 | * src/getargs.h: Clean its extern declaration. | |
12041 | * src/getargs.c (error_verbose_flag): Remove. | |
12042 | (getargs): Remove case 'e'. | |
12043 | * src/options.c (option_table): 'error-verbose' is now seen as simple | |
12044 | percent option. | |
12045 | Include output.h. | |
12046 | ||
12047 | * src/reader.c (read_declarations): Remove case tok_include. | |
12048 | (parse_include_decl): Remove. | |
12049 | * src/lex.h (token_t): Remove tok_include. | |
12050 | * src/options.c (option_table): 'include' is now a simple command line | |
12051 | option. | |
12052 | ||
5b5d1929 MA |
12053 | 2001-11-28 Marc Autret <autret_m@epita.fr> |
12054 | ||
12055 | * src/bison.simple: Adjust muscle names. | |
12056 | * src/muscle_tab.c (muscle_init): Also rename the muscles. | |
12057 | * src/output.c (prepare): s/_/-/ for the muscles names. | |
12058 | (output_parser): When scanning for a muscle, allow '-' instead of '_'. | |
12059 | ||
8850be4b MA |
12060 | 2001-11-28 Marc Autret <autret_m@epita.fr> |
12061 | ||
12062 | * src/bison.simple: Fix debug. | |
12063 | [YYERROR_VERBOSE]: Re-integrate as an internal macro. | |
12064 | ||
4a38e613 AD |
12065 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12066 | ||
12067 | * src/LR0.c (shifts_new): New. | |
12068 | (save_shifts, insert_start_shift, augment_automaton): Use it. | |
12069 | ||
4b35e1c1 AD |
12070 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12071 | ||
12072 | * src/closure.c (closure): `b' and `ruleno' denote the same value: | |
12073 | keep ruleno only. | |
12074 | ||
d2b04478 AD |
12075 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12076 | ||
12077 | * src/closure.c (closure): Instead of looping over word in array | |
12078 | then bits in words, loop over bits in array. | |
12079 | ||
2c4c30aa AD |
12080 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12081 | ||
12082 | * src/closure.c (closure): No longer optimize the special case | |
12083 | where all the bits of `ruleset[r]' are set to 0, to make the code | |
12084 | clearer. | |
12085 | ||
576890b7 AD |
12086 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12087 | ||
12088 | * src/closure.c (closure): `r' and `c' are new variables, used to | |
12089 | de-obfuscate accesses to RULESET and CORE. | |
12090 | ||
cb487d7d AD |
12091 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12092 | ||
12093 | * src/reduce.c (reduce_print): Use ngettext. | |
12094 | (dump_grammar): Improve the trace accuracy. | |
12095 | ||
6013d43f AD |
12096 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12097 | ||
12098 | * src/reduce.c (dump_grammar): Don't translate trace messages. | |
12099 | ||
cb4956ee AD |
12100 | 2001-11-28 Akim Demaille <akim@epita.fr> |
12101 | ||
12102 | * tests/reduce.at (Useless Terminals, Useless Nonterminals): New. | |
12103 | * src/reduce.c (reduce_grammar_tables): Do not free useless tags, | |
12104 | as all tags are free'ed afterwards. | |
12105 | From Enrico Scholz. | |
12106 | ||
648185ab PE |
12107 | 2001-11-27 Paul Eggert <eggert@twinsun.com> |
12108 | ||
12109 | * src/bison.simple (YYSTACK_REALLOC): Fix typo that caused us to | |
12110 | use alloca when we didn't want to, and vice versa. | |
12111 | ||
68254a03 MA |
12112 | 2001-11-27 Marc Autret <autret_m@epita.fr> |
12113 | ||
9113b58f AD |
12114 | * src/muscle_tab.c (muscle_init): Remove 'verbose' muscle |
12115 | initialization. | |
68254a03 MA |
12116 | * src/output.c (prepare): Remove its update. |
12117 | ||
04d843a2 MA |
12118 | 2001-11-27 Marc Autret <autret_m@epita.fr> |
12119 | ||
12120 | * tests/torture.at [AT_DATA]: Remove YYERROR_VERBOSE definition. | |
12121 | Use %error-verbose. | |
12122 | ||
d2079671 | 12123 | 2001-11-27 Marc Autret <autret_m@epita.fr> |
eeeb962b MA |
12124 | |
12125 | * src/bison.simple: Remove YYERROR_VERBOSE using. | |
12126 | Use %%error_verbose. | |
12127 | (yyparse): Likewise. | |
12128 | * src/output.c (prepare): Give its final value. | |
12129 | * src/muscle_tab.c (muscle_init): Init new muscle 'error_verbose'. | |
12130 | * src/getargs.h: Add its extern declaration. | |
12131 | * src/getargs.c (error_verbose_flag): New int. | |
12132 | (getargs): Update to catch new case. | |
12133 | * src/options.c (option_table): 'error-verbose' is a new option. | |
12134 | (shortopts): Update. | |
12135 | ||
e0327bc8 AD |
12136 | 2001-11-27 Akim Demaille <akim@epita.fr> |
12137 | ||
12138 | * src/system.h: Use intl/libgettext.h. | |
12139 | * src/Makefile.am (INCLUDES): Add -I $(top_srcdir). | |
12140 | ||
000f1a3c AD |
12141 | 2001-11-27 Akim Demaille <akim@epita.fr> |
12142 | ||
12143 | * tests/torture.at (Exploding the Stack Size with Malloc): | |
12144 | s/YYSTACK_USE_ALLOCA_ALLOCA/YYSTACK_USE_ALLOCA/. | |
12145 | ||
26cfe0be AD |
12146 | 2001-11-27 Akim Demaille <akim@epita.fr> |
12147 | ||
12148 | * src/files.c: Include error.h. | |
12149 | Reported by Hans Aberg. | |
12150 | ||
f6bd5427 MA |
12151 | 2001-11-26 Marc Autret <autret_m@epita.fr> |
12152 | ||
d2079671 | 12153 | * src/reader.c (parse_include_decl): New, not yet implemented. |
f6bd5427 MA |
12154 | (read_declarations): Add case tok_include. |
12155 | * src/getargs.h (include): Add its extern definition. | |
12156 | * src/getargs.c (include): New const char *. | |
12157 | (getargs): Add case '-I'. | |
12158 | * src/options.c (option_table): Add include as command line and | |
12159 | percent option. | |
12160 | * src/lex.h (token_t): Add tok_include. | |
12161 | ||
2ca209c1 AD |
12162 | 2001-11-26 Akim Demaille <akim@epita.fr> |
12163 | ||
12164 | * src/reader.c (readgram): Make sure rules for mid-rule actions | |
12165 | have a lineno equal to that of their host rule. | |
12166 | Reported by Hans Aberg. | |
12167 | * tests/regression.at (Rule Line Numbers): New. | |
12168 | ||
0e41b407 AD |
12169 | 2001-11-26 Akim Demaille <akim@epita.fr> |
12170 | ||
12171 | * src/LR0.c (allocate_itemsets): kernel_size contains ints, not | |
12172 | size_ts. | |
12173 | ||
12174 | 2001-11-26 Akim Demaille <akim@epita.fr> | |
12175 | ||
12176 | * src/complain.c, src/complain.h (error): Remove, provided by | |
12177 | lib/error.[ch]. | |
12178 | ||
e0c40012 AD |
12179 | 2001-11-26 Akim Demaille <akim@epita.fr> |
12180 | ||
12181 | * src/reader.c (read_declarations): Don't abort on tok_illegal, | |
12182 | issue an error message. | |
12183 | * tests/regression.at (Invalid %directive): New. | |
12184 | Reported by Hans Aberg. | |
12185 | ||
5e147124 AD |
12186 | 2001-11-26 Akim Demaille <akim@epita.fr> |
12187 | ||
12188 | * configure.in: Invoke AC_FUNC_OBSTACK and AC_FUNC_ERROR_AT_LINE. | |
12189 | * lib/Makefile.am (libbison_a_SOURCES): Adjust. | |
12190 | ||
a034c8b8 AD |
12191 | 2001-11-26 Akim Demaille <akim@epita.fr> |
12192 | ||
12193 | * src/conflicts.c (conflicts_print): Don't complain at all when | |
12194 | there are no reduce/reduce conflicts, and as many shift/reduce | |
12195 | conflicts as expected. | |
12196 | * tests/regression.at (%expect right): Adjust. | |
12197 | ||
c64a20f3 AD |
12198 | 2001-11-23 Akim Demaille <akim@epita.fr> |
12199 | ||
12200 | * lib/alloca.c: Update, from fileutils. | |
12201 | ||
5b0d29bb AD |
12202 | 2001-11-23 Akim Demaille <akim@epita.fr> |
12203 | ||
12204 | * lib/Makefile.am (libbison_a_LIBADD): Add @ALLOCA@. | |
12205 | ||
722c4bfe AD |
12206 | 2001-11-23 Akim Demaille <akim@epita.fr> |
12207 | ||
12208 | * src/system.h: Include alloca.h. | |
12209 | * src/main.c (main) [C_ALLOCA]: Call alloca (0). | |
12210 | ||
6255b435 AD |
12211 | 2001-11-23 Akim Demaille <akim@epita.fr> |
12212 | ||
12213 | * src/print_graph.c (print_actions): Remove `rule', unused. | |
12214 | * src/LR0.c (kernel_size): Contain `int' instead of `size_t' to | |
12215 | pacify GCC's signed < unsigned warnings. | |
12216 | * src/closure.c (itemsetsize): Likewise. | |
12217 | * src/reader.c (symbol_list_new): Static. | |
12218 | ||
b29b2ed5 AD |
12219 | 2001-11-23 Akim Demaille <akim@epita.fr> |
12220 | ||
12221 | Attaching lineno to buckets is stupid, since only one copy of each | |
12222 | symbol is kept, only the line of the first occurrence is kept too. | |
12223 | ||
12224 | * src/symtab.h, src/symtab.c (bucket): Remove the line member. | |
12225 | * src/reader.c (rline_allocated): Remove, unused. | |
12226 | (symbol_list): Have a `line' member. | |
12227 | (symbol_list_new): New. | |
12228 | (readgram): Use it. | |
12229 | * src/print.c (print_grammar): Output the rule line numbers. | |
12230 | * tests/regression.at (Solved SR Conflicts) | |
12231 | (Unresolved SR Conflicts): Adjust. | |
12232 | Reported by Hans Aberg. | |
12233 | ||
a81b1d4a MA |
12234 | 2001-11-22 Marc Autret <autret_m@epita.fr> |
12235 | ||
12236 | * src/bison.simple [YYERROR_VERBOSE]: Force its value to be 1 or 0. | |
12237 | ||
c1ecb3c1 MA |
12238 | 2001-11-22 Marc Autret <autret_m@epita.fr> |
12239 | ||
12240 | * src/muscle_tab.c (muscle_init): Remove initialization of | |
12241 | skeleton muscle. | |
12242 | * src/output.c (output_master_parser): Do it here. | |
12243 | ||
fbe01355 AD |
12244 | 2001-11-20 Akim Demaille <akim@epita.fr> |
12245 | ||
12246 | * po/sv.po: New. | |
12247 | * configure.in (ALL_LINGUAS): Adjust. | |
12248 | * po/POTFILE.in: Remove `nullable.c' and `derives.c' which no | |
12249 | longer contains strings to translate. | |
12250 | ||
81e895c0 AD |
12251 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12252 | ||
12253 | * src/conflicts.c (conflicts_print): Add a missing \n. | |
12254 | ||
6bb1878b AD |
12255 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12256 | ||
12257 | * src/nullable.c (nullable_print): New. | |
12258 | (set_nullable): Call it when tracing. | |
12259 | Better locality of variables. | |
12260 | ||
d9ec2d07 AD |
12261 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12262 | ||
12263 | * src/print.c (print_actions): Better locality of variables. | |
12264 | ||
720e5c1b AD |
12265 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12266 | ||
12267 | * src/derives.c (print_derives): Fix and enrich. | |
12268 | * src/closure.c (print_fderives): Likewise. | |
12269 | ||
fb908786 AD |
12270 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12271 | ||
12272 | * src/closure.c (itemsetend): Remove, replaced with... | |
12273 | (itemsetsize): new. | |
12274 | ||
125ecb56 AD |
12275 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12276 | ||
12277 | * src/LR0.c (kernel_end): Remove, replaced with... | |
12278 | (kernel_size): new. | |
12279 | ||
d8cf039f AD |
12280 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12281 | ||
12282 | * src/conflicts.c (set_conflicts): Use arrays instead of pointers | |
12283 | to clarify. | |
12284 | ||
7bec0760 AD |
12285 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12286 | ||
12287 | * src/closure.c (closure): Use arrays instead of pointers to clarify. | |
12288 | ||
c87d4863 AD |
12289 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12290 | ||
12291 | * src/closure.c, src/derives.c, src/nullable.c: Adjust various | |
12292 | trace messages. | |
12293 | * src/LR0.c: Likewise. | |
12294 | (allocate_itemsets): Use arrays instead of pointers to clarify. | |
12295 | ||
9bfe901c AD |
12296 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12297 | ||
12298 | * src/getargs.c (statistics_flag): Replace with... | |
12299 | (trace_flag): New. | |
12300 | (longopts): Accept --trace instead of --statistics. | |
12301 | * src/getargs.h, src/options.c: Adjust. | |
12302 | * src/LR0.c, src/closure.c, src/derives.c, src/nullable.c, | |
12303 | * src/reduce.c: Use trace_flags instead of the CPP conditional TRACE. | |
12304 | ||
97db7bd4 AD |
12305 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12306 | ||
cc72668c | 12307 | * src/LR0.c (new_itemsets, get_state): Use more arrays and fewer |
97db7bd4 AD |
12308 | pointers to clarify the code. |
12309 | (save_reductions, save_shifts): Factor common parts of alternatives. | |
12310 | ||
2c5f66ed AD |
12311 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12312 | ||
12313 | * src/LR0.c (new_state, get_state): Complete TRACE code. | |
12314 | * src/closure.c: Include `reader.h' to get `tags', needed by the | |
12315 | trace code. | |
12316 | Rename the conditional DEBUG as TRACE. | |
12317 | Output consistently TRACEs to stderr, not stdout. | |
12318 | * src/derives.c: Likewise. | |
12319 | * src/reduce.c: (inaccessable_symbols): Using if is better style | |
12320 | than goto. | |
12321 | Use `#if TRACE' instead of `#if 0' for tracing code. | |
12322 | ||
300f275f AD |
12323 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12324 | ||
12325 | * src/system.h (LIST_FREE, shortcpy): New. | |
12326 | * src/LR0.c: Use them. | |
12327 | * src/output.c (free_itemsets, free_reductions, free_shifts): | |
12328 | Remove, replaced by LIST_FREE. | |
12329 | ||
f59c437a AD |
12330 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12331 | ||
12332 | * src/state.h (CORE_ALLOC, SHIFTS_ALLOC, ERRS_ALLOC) | |
12333 | (REDUCTIONS_ALLOC): New. | |
12334 | * src/LR0.c, src/conflicts.c: Use them to de-obfuscate memory | |
12335 | allocation. | |
12336 | ||
6986fd9e AD |
12337 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12338 | ||
12339 | * src/LR0.c (new_state): Complete trace code. | |
12340 | * src/nullable.c (set_nullable): Don't translate traces. | |
12341 | ||
4bc30f78 AD |
12342 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12343 | ||
12344 | * src/print_graph.c (print_core): Better locality of variables. | |
12345 | * src/print.c (print_core): Likewise. | |
12346 | ||
08a946e0 AD |
12347 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12348 | ||
12349 | * src/vcg.c: You do the output, so you are responsible of the | |
12350 | handling of VCG syntax, in particular: use quotearg. | |
12351 | * src/print_graph.c: Don't. | |
12352 | (print_actions): Don't output the actions as part of the nodes, | |
12353 | since that's the job of the edges. | |
12354 | (print_state): Don't output by hand: fill the node description, | |
9bfe901c | 12355 | and ask for its output. |
08a946e0 | 12356 | |
f0473484 AD |
12357 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12358 | ||
cc72668c AD |
12359 | * src/bison.simple (yyparse): When verbosely reporting an error, |
12360 | no longer put additional quotes around token names. | |
f0473484 AD |
12361 | * tests/calc.at: Adjust. |
12362 | ||
e41dc700 AD |
12363 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12364 | ||
12365 | * src/symtab.h, src/symtab.c: `line' is a new member of `bucket'. | |
12366 | * src/reader.c (record_rule_lines, rline, rline_allocated): Remove. | |
12367 | * src/output.c: Adjust. | |
12368 | ||
652a871c AD |
12369 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12370 | ||
12371 | * src/gram.h (rprec, rprecsym, rassoc): Remove, now part of... | |
12372 | (rule_t): this. | |
12373 | * src/conflicts.c, src/reader.c, src/reduce.c: Adjust. | |
12374 | ||
b2ed6e58 AD |
12375 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12376 | ||
12377 | * src/gram.h (rule_t): New. | |
12378 | (rule_table): New. | |
12379 | (rrhs, rlhs): Remove, part of state_t. | |
12380 | * src/print_graph.c, src/closure.c, src/conflicts.c, src/derives.c, | |
12381 | * src/lalr.c, src/nullable.c, src/output.c, src/print.c, | |
12382 | * src/reader.c, src/reduce.c: Adjust. | |
12383 | ||
edad7067 AD |
12384 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12385 | ||
12386 | * src/reader.c (symbols_output): New, extracted from... | |
12387 | (packsymbols): Here. | |
12388 | (reader): Call it. | |
12389 | ||
3feec034 AD |
12390 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12391 | ||
12392 | * src/lalr.c (set_maxrhs, maxrhs): Remove, replaced with... | |
12393 | (maxrhs): this new function. | |
12394 | ||
ddcd5fdf AD |
12395 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12396 | ||
cc72668c | 12397 | * src/lalr.c (F): New macro to access the variable F. |
ddcd5fdf AD |
12398 | Adjust. |
12399 | ||
bb527fc2 AD |
12400 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12401 | ||
cc72668c | 12402 | * src/lalr.h (LA): New macro to access the variable LA. |
bb527fc2 AD |
12403 | * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c: |
12404 | * src/lalr.c: Adjust. | |
12405 | ||
a845a697 AD |
12406 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12407 | ||
12408 | * src/lalr.c (initialize_LA): Only initialize LA. Let... | |
12409 | (set_state_table): handle the `lookaheads' members. | |
12410 | ||
f004bf6a AD |
12411 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12412 | ||
cc72668c AD |
12413 | * src/lalr.h (lookaheads): Removed array, whose contents is now |
12414 | a member of... | |
f004bf6a AD |
12415 | (state_t): this structure. |
12416 | * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c: | |
12417 | Adjust. | |
12418 | ||
de326cc0 AD |
12419 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12420 | ||
cc72668c AD |
12421 | * src/lalr.h (consistent): Removed array, whose contents is now |
12422 | a member of... | |
de326cc0 AD |
12423 | (state_t): this structure. |
12424 | * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c: | |
12425 | Adjust. | |
12426 | ||
90b4416b AD |
12427 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12428 | ||
cc72668c AD |
12429 | * src/lalr.h (reduction_table, shift_table): Removed arrays, whose |
12430 | contents are now members of... | |
90b4416b AD |
12431 | (state_t): this structure. |
12432 | * src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c: | |
12433 | Adjust. | |
12434 | ||
9703cc49 AD |
12435 | 2001-11-19 Akim Demaille <akim@epita.fr> |
12436 | ||
12437 | * src/lalr.h (state_t): New. | |
12438 | (state_table): Be a state_t * instead of a core **. | |
12439 | (accessing_symbol): Remove, part of state_t. | |
12440 | * src/lalr.c: Adjust. | |
12441 | (set_accessing_symbol): Merge into... | |
12442 | (set_state_table): this. | |
12443 | * src/print_graph.c, src/conflicts.c: Adjust. | |
12444 | ||
d803322e AD |
12445 | 2001-11-14 Akim Demaille <akim@epita.fr> |
12446 | ||
12447 | * tests/calc.at, tests/output.at, tests/regression.at, | |
12448 | * tests/testsuite.at, tests/torture.at: Rely on Autotest 2.52g: | |
12449 | now the tests are run in private dirs, therefore AC_CLEANUP and | |
12450 | family can be simplified to 0-ary. | |
12451 | * tests/atlocal.in: Now that we run `elsewhere' than in tests/, | |
12452 | use abs. path to find config.h. | |
12453 | * tests/calc.at (AT_CHECK_CALC): Don't try to check the compiler's | |
12454 | stderr, there can be way too much random noise. | |
12455 | Instead pass -Werror to GCC and rely on the exit status. | |
12456 | Reported by Wolfram Wagner. | |
12457 | ||
3d76b07d AD |
12458 | 2001-11-14 Akim Demaille <akim@epita.fr> |
12459 | ||
12460 | * src/bison.simple (yyparse): Let yyls1, yyss1 and yyvs1 be | |
12461 | defined only if yyoverflow is defined, to avoid `warning: unused | |
12462 | variable `yyvs1''. | |
12463 | Reported by The Test Suite. | |
12464 | ||
09b503c8 AD |
12465 | 2001-11-14 Akim Demaille <akim@epita.fr> |
12466 | ||
12467 | * src/print.c: Include reduce.h. | |
12468 | Reported by Hans Aberg. | |
12469 | ||
12470 | 2001-11-14 Akim Demaille <akim@epita.fr> | |
12471 | ||
12472 | * src/lex.c, src/lex.h (token_buffer, unlexed_token_buffer): | |
12473 | Revert a previous patch: these are really const. | |
12474 | * src/conflicts.c (conflict_report): Additional useless pair of | |
12475 | braces to pacify GCC's warnings for `if () if () {} else {}'. | |
12476 | * src/lex.c (parse_percent_token): Replace equal_offset with | |
12477 | arg_offset. | |
12478 | arg is const. | |
12479 | Be sure to strdup `arg' when used, since there is no reason for | |
12480 | token_buffer not to change. | |
12481 | ||
0f37a994 AD |
12482 | 2001-11-14 Akim Demaille <akim@epita.fr> |
12483 | ||
12484 | * src/system.h (EXIT_SUCCESS, EXIT_FAILURE): Ensure a proper | |
12485 | definition. | |
12486 | * src/main.c (main): Use them. | |
12487 | Suggested by Hans Aberg. | |
12488 | ||
d39d93b8 AD |
12489 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12490 | ||
12491 | * src/system.h (ngettext): Now that we use ngettext, be sure to | |
12492 | provide a default definition when NLS are not used. | |
12493 | ||
9edcd895 AD |
12494 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12495 | ||
12496 | * doc/bison.texinfo: Use `$' as shell prompt, not `%'. | |
12497 | Use @kbd to denote user input. | |
12498 | (Language and Grammar): ANSIfy the example. | |
12499 | Adjust its layout for info/notinfo. | |
12500 | (Location Tracking Calc): Output error messages to stderr. | |
12501 | Output locations in a more GNUtically correct way. | |
12502 | Fix a couple of Englishos. | |
12503 | Adjust @group/@end group pairs. | |
12504 | ||
7da99ede AD |
12505 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12506 | ||
e3aa65c5 | 12507 | %expect was not functioning at all. |
7da99ede AD |
12508 | |
12509 | * src/conflicts.c (expected_conflicts): Set to -1. | |
12510 | (conflict_report): Use ngettext. | |
12511 | (conflicts_print): Check %expect and make its violation an error. | |
12512 | * doc/bison.texinfo (Expect Decl): Adjust. | |
12513 | * configure.in (AM_GNU_GETTEXT): Ask for ngettext. | |
12514 | * tests/regression.at (%expect not enough, %expect right) | |
12515 | (%expect too much): New. | |
12516 | ||
ba9dda1a AD |
12517 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12518 | ||
12519 | * tests/regression.at (Conflicts): Rename as... | |
12520 | (Unresolved SR Conflicts): this. | |
12521 | (Solved SR Conflicts): New. | |
12522 | ||
337c5bd1 AD |
12523 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12524 | ||
12525 | * src/reduce.c (print_results): Rename as... | |
12526 | (reduce_output): This. | |
12527 | Output to OUT, passed as argument, instead of output_obstack. | |
12528 | (dump_grammar): Likewise. | |
12529 | (reduce_free): New. | |
12530 | Also free V1. | |
12531 | (reduce_grammar): No longer call reduce_output, since... | |
12532 | * src/print.c (print_results): do it. | |
12533 | * src/main.c (main): Call reduce_free; | |
12534 | ||
c73a41af AD |
12535 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12536 | ||
12537 | * src/conflicts.c (print_reductions): Accept OUT as argument. | |
12538 | Output to it, not to output_obstack. | |
12539 | * src/print.c (print_actions): Adjust. | |
12540 | ||
0df87bb6 AD |
12541 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12542 | ||
12543 | * src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return | |
12544 | the result instead of using... | |
12545 | (src_total, rrc_total, src_count, rrc_count): Remove. | |
12546 | (any_conflicts): Remove. | |
12547 | (print_conflicts): Split into... | |
12548 | (conflicts_print, conflicts_output): New. | |
12549 | * src/conflicts.h: Adjust. | |
12550 | * src/main.c (main): Invoke both conflicts_output and conflicts_print. | |
0f37a994 | 12551 | * src/print.c (print_grammar): Issue `\n' between two rules. |
0df87bb6 AD |
12552 | * tests/regression.at (Conflicts): New. |
12553 | Reported by Tom Lane. | |
12554 | ||
e4d3d4de AD |
12555 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12556 | ||
12557 | * tests/regression.at (Invalid input): Remove, duplicate with | |
12558 | ``Invalid input: 1''. | |
12559 | ||
6d7d248e AD |
12560 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12561 | ||
12562 | * tests/torture.at (AT_DATA_STACK_TORTURE) | |
12563 | (Exploding the Stack Size with Alloca) | |
12564 | (Exploding the Stack Size with Malloc): New. | |
12565 | ||
e9e4c321 AD |
12566 | 2001-11-12 Akim Demaille <akim@epita.fr> |
12567 | ||
12568 | * src/bison.simple (YYSTACK_REALLOC): New. | |
12569 | (yyparse) [!yyoverflow]: Use it and free the old stack. | |
0f37a994 | 12570 | Reported by Per Allansson. |
e9e4c321 | 12571 | |
5f7e0832 AD |
12572 | 2001-11-12 Pascal Bart <pascal.bart@epita.fr> |
12573 | ||
12574 | * src/bison.simple: Define type yystype instead of YYSTYPE, and | |
12575 | define CPP macro, which substitute YYSTYPE by yystype. | |
12576 | * src/reader.c (parse_union_decl): Output yystype/YYSTYPE as we do | |
12577 | with yyltype/YYLTYPE. This allows inclusion of the generated | |
12578 | header within the parser if the compiler, such as GGC, accepts | |
12579 | multiple equivalent #defines. | |
12580 | From Akim. | |
12581 | ||
e3f1699f AD |
12582 | 2001-11-05 Akim Demaille <akim@epita.fr> |
12583 | ||
12584 | * src/reader.c (symbols_output): New, extracted from... | |
12585 | (packsymbols): here. | |
12586 | (reader): Adjust. | |
12587 | ||
65be0866 AD |
12588 | 2001-11-05 Akim Demaille <akim@epita.fr> |
12589 | ||
12590 | * src/lex.c (parse_percent_token): s/quotearg/quote/. | |
12591 | ||
e4d910bf AD |
12592 | 2001-11-05 Akim Demaille <akim@epita.fr> |
12593 | ||
12594 | * tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up | |
12595 | pattern. | |
12596 | ||
951366c1 AD |
12597 | 2001-11-05 Akim Demaille <akim@epita.fr> |
12598 | ||
12599 | * src/options.h (struct option_table_struct): set_flags is void*. | |
12600 | * src/options.c (longopts): Support `--output' and `%output'. | |
12601 | (usage): Adjust. | |
12602 | * src/lex.h (tok_setopt): Remove, replaced with... | |
12603 | (tok_intopt, tok_stropt): these new guys. | |
12604 | * src/lex.c (getopt.h): Not needed. | |
12605 | (token_buffer, unlexed_token_buffer): Not const. | |
12606 | (percent_table): Promote `-' over `_' in directive names. | |
12607 | Active `%name-prefix', `file-prefix', and `output'. | |
12608 | (parse_percent_token): Accept possible arguments to directives. | |
12609 | Promote `-' over `_' in directive names. | |
12610 | ||
d8988b2f AD |
12611 | 2001-11-04 Akim Demaille <akim@epita.fr> |
12612 | ||
12613 | * doc/bison.texinfo (Decl Summary): Split the list into | |
12614 | `directives for grammars' and `directives for bison'. | |
12615 | Sort'em. | |
12616 | Add description of `%name-prefix', `file-prefix', and `output'. | |
12617 | Promote `-' over `_' in directive names. | |
12618 | (Bison Options): s/%locactions/%locations/. Nice Freudian slip. | |
12619 | Simplify the description of `--name-prefix'. | |
12620 | Promote `-' over `_' in directive names. | |
12621 | Promote `--output' over `--output-file'. | |
12622 | Fix the description of `--defines'. | |
12623 | * tests/output.at: Exercise %file-prefix and %output. | |
12624 | ||
6468d18e AD |
12625 | 2001-11-02 Akim Demaille <akim@epita.fr> |
12626 | ||
12627 | * doc/refcard.tex: Update. | |
12628 | ||
6b7e85b9 AD |
12629 | 2001-11-02 Akim Demaille <akim@epita.fr> |
12630 | ||
12631 | * src/symtab.h (SUNDEF): New. | |
12632 | * src/symtab.c (bucket_new): Init user_token_number to SUNDEF to | |
12633 | stand for `uninitialized', instead of 0. | |
12634 | * src/reader.c (packsymbols, parse_thong_decl): Adjust. | |
12635 | * src/lex.c (lex): Adjust. | |
12636 | ||
12637 | * tests/calc.at (_AT_DATA_CALC_Y): Declare a token for EOF. | |
12638 | Number it 0. | |
12639 | Let yylex return it instead of a plain 0. | |
12640 | Reported by Dick Streefland. | |
12641 | ||
cd5aafcf AD |
12642 | 2001-11-02 Akim Demaille <akim@epita.fr> |
12643 | ||
12644 | * tests/regression.at (Mixing %token styles): New test. | |
12645 | ||
037ca2f1 AD |
12646 | 2001-11-02 Akim Demaille <akim@epita.fr> |
12647 | ||
12648 | * src/reader.c (parse_thong_decl): Formatting changes. | |
12649 | (token_translations_init): New, extracted from... | |
12650 | (packsymbols): Here. | |
12651 | Adjust. | |
12652 | ||
270a173c AD |
12653 | 2001-11-01 Akim Demaille <akim@epita.fr> |
12654 | ||
12655 | * tests/regression.at (AT_TEST_CPP_GUARD_H): New. | |
12656 | Check that `9foo.y' produces correct cpp guards. | |
12657 | * src/files.c (compute_header_macro): Prepend `BISON_' to CPP | |
12658 | guards. | |
12659 | Reported by Wwp. | |
12660 | ||
561f9a30 AD |
12661 | 2001-11-01 Akim Demaille <akim@epita.fr> |
12662 | ||
12663 | * tests/regression.at (Invalid input: 2): New. | |
12664 | * src/lex.c (unlexed_token_buffer): New. | |
12665 | (lex, unlex): Adjust: when unlexing, be sure to save token_buffer | |
12666 | too. | |
12667 | Reported by Wwp. | |
12668 | ||
f987e9d2 AD |
12669 | 2001-11-01 Akim Demaille <akim@epita.fr> |
12670 | ||
12671 | * tests/calc.at: Catch up with 1.30. | |
12672 | * configure.in: Bump to 1.49a. | |
12673 | Adjust to newer Autotest. | |
12674 | ||
0846f581 PB |
12675 | 2001-10-19 Pascal Bart <pascal.bart@epita.fr> |
12676 | ||
12677 | * src/conflicts.c: Move global variables rrc_total and src_total ... | |
12678 | (print_conflicts): here. | |
12679 | * src/output.c (output): Free global variable user_toknums. | |
12680 | * src/lex.c (token_obstack): Become static. | |
12681 | ||
3c1a79b3 AD |
12682 | 2001-10-18 Akim Demaille <akim@epita.fr> |
12683 | ||
12684 | * tests/atlocal.in (GCC): Add. | |
12685 | * tests/calc.at: s/m4_match/m4_bmatch/. | |
12686 | s/m4_patsubst/m4_bpatsubst/. | |
12687 | (AT_CHECK_CALC): Check the compiler's stderr only if it's GCC. | |
12688 | * configure.in: AC_SUBST(GCC). | |
12689 | ||
5d52e7d0 MA |
12690 | 2001-10-14 Marc Autret <autret_m@epita.fr> |
12691 | ||
12692 | * src/options.c (create_long_option_table): Fix. | |
12693 | ||
631aa1d3 AD |
12694 | 2001-10-10 Akim Demaille <akim@epita.fr> |
12695 | ||
12696 | * src/bison.simple: Be sure to set YYSTACK_USE_ALLOCA. | |
12697 | ||
f6ec6d13 AD |
12698 | 2001-10-04 Akim Demaille <akim@epita.fr> |
12699 | ||
12700 | * src/reader.c (parse_union_decl): Push the caracters in | |
12701 | union_obstack, not attrs_obstack. | |
12702 | ||
342b8b6e AD |
12703 | 2001-10-04 Akim Demaille <akim@epita.fr> |
12704 | ||
12705 | Merge in the branch 1.29. | |
12706 | ||
12707 | * src/reader.c (packsymbols): Use a temporary obstack for | |
12708 | `%%tokendef', since output_stack is already used elsewhere. | |
12709 | ||
12710 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
12711 | ||
12712 | Bump 1.29d. | |
12713 | ||
12714 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
12715 | ||
12716 | Version 1.29c. | |
12717 | ||
12718 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
12719 | ||
12720 | * tests/regression.at (Invalid CPP headers): New. | |
12721 | From Alexander Belopolsky. | |
12722 | * src/files.c (compute_header_macro): Map non alnum chars to `_'. | |
12723 | ||
12724 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
12725 | ||
12726 | * tests/regression.at (Invalid input): New. | |
12727 | * src/lex.c (lex): Be sure to set `token_buffer' in any case. | |
12728 | Reported by Shura. | |
12729 | ||
12730 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
12731 | ||
12732 | * tests/calc.at: Now that --debug works, the tests must be adjusted. | |
12733 | ||
12734 | 2001-10-02 Akim Demaille <akim@epita.fr> | |
12735 | ||
12736 | * src/output.c (output_parser): Assert `skeleton'. | |
12737 | * src/files.c (skeleton_find): Look harder for skeletons on DOSish | |
12738 | systems. | |
12739 | From Shura. | |
12740 | ||
12741 | 2001-10-01 Marc Autret <autret_m@epita.fr> | |
12742 | ||
12743 | * src/lex.h: Echo modifications. | |
12744 | * src/lex.c (unlex): Parameter is now token_t. | |
12745 | From Hans Aberg. | |
12746 | ||
12747 | 2001-10-01 Marc Autret <autret_m@epita.fr> | |
12748 | ||
12749 | * src/main.c: Include lex.h. | |
12750 | From Hans Aberg. | |
12751 | ||
12752 | 2001-09-29 Akim Demaille <akim@epita.fr> | |
12753 | ||
12754 | * src/getargs.c (longopts): `--debug' is `-t', not `-d'. | |
12755 | ||
12756 | 2001-09-28 Akim Demaille <akim@epita.fr> | |
12757 | ||
12758 | * tests/testsuite.at: Update to newer Autotest. | |
12759 | * tests/Makefile.am (EXTRA_DIST): bison is not to be shipped. | |
12760 | ||
12761 | 2001-09-27 Akim Demaille <akim@epita.fr> | |
12762 | ||
12763 | Position independent wrapper. | |
12764 | ||
12765 | * tests/bison: Remove. | |
12766 | * tests/bison.in: New. | |
12767 | * configure.in: Adjust. | |
12768 | ||
12769 | 2001-09-27 Paul Eggert <eggert@twinsun.com> | |
12770 | ||
12771 | Port quotearg fixes from tar 1.13.24. | |
12772 | ||
12773 | * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct | |
12774 | tm to be declared. | |
12775 | (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC. | |
12776 | (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT. | |
12777 | ||
12778 | * m4/Makefile.am (EXTRA_DIST): Add mbrtowc.m4. | |
12779 | * m4/mbrtowc.m4: New file. | |
12780 | * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for mbsinit and stddef.h. | |
12781 | Use jm_FUNC_MBRTOWC instead of AC_CHECK_FUNCS(mbrtowc). | |
12782 | ||
12783 | 2001-09-27 Akim Demaille <akim@epita.fr> | |
12784 | ||
12785 | Bump to 1.29c. | |
12786 | ||
12787 | 2001-09-27 Akim Demaille <akim@epita.fr> | |
12788 | ||
12789 | Version 1.29b. | |
12790 | ||
12791 | 2001-09-25 Akim Demaille <akim@epita.fr> | |
12792 | ||
12793 | * src/system.h: Include `xalloc.h'. | |
12794 | Remove it from the C files. | |
12795 | * src/files.c (output_files): Free the obstacks. | |
12796 | * src/lex.c (init_lex): Rename as... | |
12797 | (lex_init): this. | |
12798 | (lex_free): New. | |
12799 | * src/main.c (main): Use it. | |
12800 | ||
12801 | 2001-09-24 Marc Autret <autret_m@epita.fr> | |
12802 | ||
12803 | * src/vcg.c (open_edge, close_edge, open_node, close_node): Change | |
12804 | to output informations in fout (FILE*). | |
12805 | (open_graph, close_graph): Likewise. | |
12806 | (output_graph, output_edge, output_node): Likewise. | |
12807 | * src/vcg.h: Update function prototypes. | |
12808 | * src/print_graph.c (print_graph): Open output graph file. | |
12809 | (print_actions): Adjust. | |
12810 | * src/files.h: Remove extern declaration. | |
12811 | * src/files.c: Remove graph_obstack declaration. | |
12812 | (open_files): Remove graph_obstack initialization. | |
12813 | (output_files): Remove graph_obstack saving. | |
12814 | ||
12815 | 2001-09-24 Marc Autret <autret_m@epita.fr> | |
12816 | ||
12817 | * src/files.c (compute_output_file_names): Fix. | |
12818 | ||
12819 | 2001-09-24 Marc Autret <autret_m@epita.fr>, | |
12820 | Akim Demaille <akim@epita.fr> | |
12821 | ||
12822 | * src/reader.c (reader): Remove call to free_symtab (). | |
12823 | * src/main.c (main): Call it here. | |
12824 | Include symtab.h. | |
12825 | * src/conflicts.c (initialize_conflicts): Rename as... | |
12826 | (solve_conflicts): this. | |
12827 | * src/print.c (print_core, print_actions, print_state) | |
12828 | (print_grammar): Dump to a file instead a `output_obstack'. | |
12829 | (print_results): Dump `output_obstack', and then proceed with the | |
12830 | FILE *. | |
12831 | * src/files.c (compute_output_file_names, close_files): New. | |
12832 | (output_files): Adjust. | |
12833 | * src/main.c (main): Adjust. | |
12834 | ||
12835 | 2001-09-23 Marc Autret <autret_m@epita.fr> | |
12836 | ||
12837 | * src/files.c (compute_header_macro): Computes header macro name | |
12838 | from spec_defines_file when given. | |
12839 | ||
12840 | 2001-09-23 Marc Autret <autret_m@epita.fr> | |
12841 | ||
12842 | * src/files.c (output_files): Add default extensions. | |
12843 | ||
12844 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
12845 | ||
12846 | * src/conflicts.c (finalize_conflicts): Rename as... | |
12847 | (free_conflicts): this. | |
12848 | ||
12849 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
12850 | ||
12851 | * src/gram.c (gram_free): Rename back as... | |
12852 | (dummy): this. | |
12853 | (output_token_translations): Free `token_translations'. | |
12854 | * src/symtab.c (free_symtab): Free the tag field. | |
12855 | ||
12856 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
12857 | ||
12858 | Remove `translations' as it is always set to true. | |
12859 | ||
12860 | * src/gram.h: Adjust. | |
12861 | * src/reader.c (packsymbols, parse_token_decl): Adjust | |
12862 | * src/print.c (print_grammar): Adjust. | |
12863 | * src/output.c (output_token_translations): Adjust. | |
12864 | * src/lex.c (lex): Adjust. | |
12865 | * src/gram.c: Be sure the set pointers to NULL. | |
12866 | (dummy): Rename as... | |
12867 | (gram_free): this. | |
12868 | ||
12869 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
12870 | ||
12871 | * configure.in: Invoke AM_LIB_DMALLOC. | |
12872 | * src/system.h: Use dmalloc. | |
12873 | * src/LR0.c: Be sure to have pointers initialized to NULL. | |
12874 | (allocate_itemsets): Allocate kernel_items only if needed. | |
12875 | ||
12876 | 2001-09-22 Akim Demaille <akim@epita.fr> | |
12877 | ||
12878 | * configure.in: Bump to 1.29b. | |
12879 | * tests/Makefile.am (DISTCLEANFILES): Add package.m4. | |
12880 | * tests/calc.at (_AT_DATA_CALC_Y): #undef malloc so that we don't | |
12881 | need xmalloc.c in calc.y. | |
12882 | From Pascal Bart. | |
12883 | ||
12884 | 2001-09-21 Akim Demaille <akim@epita.fr> | |
12885 | ||
12886 | Version 1.29a. | |
12887 | * Makefile.maint, config/config.guess, config/config.sub, | |
12888 | * config/missing: Update from masters. | |
12889 | * tests/Makefile.am ($(srcdir)/$(TESTSUITE)): No longer depend | |
12890 | upon package.m4. | |
12891 | * configure.in (ALL_LINGUAS): Add `tr'. | |
12892 | ||
12893 | 2001-09-21 Akim Demaille <akim@epita.fr> | |
12894 | ||
12895 | * tests/Makefile.am (package.m4): Move to... | |
12896 | ($(srcdir)/$(TESTSUITE)): here. | |
12897 | ||
12898 | 2001-09-20 Akim Demaille <akim@epita.fr> | |
12899 | ||
12900 | * src/complain.c: No longer try to be standalone: use system.h. | |
12901 | Don't assume __STDC__ is defined to 1. Just test if it is defined. | |
12902 | * src/complain.h: Likewise. | |
12903 | * src/reduce.c (useless_nonterminals, inaccessable_symbols): | |
12904 | Remove the unused variable `n'. | |
12905 | From Albert Chin-A-Young. | |
12906 | ||
12907 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
12908 | ||
12909 | * doc/bison.1: Update. | |
12910 | * doc/bison.texinfo (Bison Options): Update --defines and --graph | |
12911 | descriptions. | |
12912 | (Option Cross Key): Update. | |
12913 | Add --graph. | |
12914 | ||
12915 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
12916 | ||
12917 | * tests/regression.at: New test (comment in %union). | |
12918 | ||
12919 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
12920 | ||
12921 | * src/reader.c (parse_union_decl): Do not output '/'. Let copy_comment | |
12922 | do that. | |
12923 | Reported by Keith Browne. | |
12924 | ||
12925 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
12926 | ||
12927 | * tests/output.at: Add tests for --defines and --graph. | |
12928 | ||
12929 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
12930 | ||
12931 | * tests/output.at: Removes tests of %{header,src}_extension features. | |
12932 | ||
12933 | 2001-09-18 Akim Demaille <akim@epita.fr> | |
12934 | ||
12935 | * tests/Makefile.am (package.m4): New. | |
12936 | * tests/calc.at (_AT_CHECK_CALC): Just run `calc input'. | |
12937 | (_AT_CHECK_CALC_ERROR): Likewise. | |
12938 | Factor the `, ' part of verbose error messages. | |
12939 | ||
12940 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
12941 | ||
12942 | * src/getargs.c (longopts): Declare --defines and --graph as options | |
12943 | with optional arguments. | |
12944 | * src/files.h: Add extern declarations. | |
12945 | * src/files.c (spec_graph_file, spec_defines_file): New. | |
12946 | (output_files): Update. | |
12947 | Remove CPP-outed code. | |
12948 | ||
12949 | 2001-09-18 Marc Autret <autret_m@epita.fr> | |
12950 | ||
12951 | Turn off %{source,header}_extension feature. | |
12952 | ||
12953 | * src/files.c (compute_exts_from_gf): Update. | |
12954 | (compute_exts_from_src): Update. | |
12955 | (output_files): CPP-out useless code. | |
12956 | * src/files.h: Remove {header,source}_extension extern declarations. | |
12957 | * src/reader.c (parse_dquoted_param): CPP-out. | |
12958 | (parse_header_extension_decl): Remove. | |
12959 | (parse_source_extension_decl): Remove. | |
12960 | (read_declarations): Remove cases tok_{hdrext,srcext}. | |
12961 | * src/lex.c (percent_table): Remove {header,source}_extension entries. | |
12962 | * src/lex.h (token_t): Remove tok_hdrext and tok_srcext. | |
12963 | ||
12964 | 2001-09-10 Akim Demaille <akim@epita.fr> | |
12965 | ||
12966 | * tests/output.at (AT_CHECK_BISON_FLAGS, AT_CHECK_BISON_PERCENT): | |
12967 | (AT_CHECK_BISON_PERCENT_FLAGS): Merge into... | |
12968 | (AT_CHECK_OUTPUT): this. | |
12969 | Merely check ls' exit status, its output is useless. | |
12970 | ||
12971 | 2001-09-10 Akim Demaille <akim@epita.fr> | |
12972 | ||
12973 | * tests/calc.at: Use m4_match. | |
12974 | (_AT_DATA_CALC_Y): Check `yyin != NULL', not `stdin != NULL'. | |
12975 | ||
12976 | 2001-09-10 Marc Autret <autret_m@epita.fr>, | |
12977 | Akim Demaille <akim@epita.fr> | |
12978 | ||
12979 | * src/vcg.h (graph_s): color, textcolor, bordercolor are now | |
12980 | enum color_e. | |
12981 | * src/print_graph.c (print_graph): Initalize graph.layoutalgorithm | |
12982 | to `normal'. | |
12983 | * src/reader.c (parse_token_decl): Initialize token with tok_eof. | |
12984 | * src/lex.h: Adjust prototype. | |
12985 | (token_t): Add `tok_undef'. | |
12986 | * src/lex.c (struct percent_table_struct): Retval is now a token_t. | |
12987 | (parse_percent_token): Now returns token_t. | |
12988 | Add default statement in switch. | |
12989 | (lex): Separate `c' as an input variable, from the token_t result | |
12990 | part. | |
12991 | (unlexed): Is a token_t. | |
12992 | ||
12993 | 2001-09-10 Akim Demaille <akim@epita.fr> | |
12994 | ||
12995 | * configure.in: Bump to 1.29a. | |
12996 | ||
12997 | 2001-09-07 Akim Demaille <akim@epita.fr> | |
12998 | ||
12999 | Version 1.29. | |
13000 | ||
13001 | 2001-08-30 Akim Demaille <akim@epita.fr> | |
13002 | ||
13003 | * tests/atgeneral.m4, tests/atconfig.in, tests/suite.at: Remove. | |
13004 | * m4/atconfig.m4: Remove. | |
13005 | * tests/testsuite.at, tests/atlocal.in, tests/output.at, | |
13006 | * tests/bison: New. | |
13007 | * tests/regression.at, tests/calc.at: Use m4_define, AT_BANNER, | |
13008 | m4_if, m4_patsubst, and m4_regexp. | |
13009 | * tests/calc.at (_AT_CHECK_CALC, _AT_CHECK_CALC_ERROR): Use an | |
13010 | `input' file instead of echo. | |
13011 | ||
13012 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
13013 | ||
13014 | Bump to 1.28e. | |
13015 | ||
13016 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
13017 | ||
13018 | Version 1.28d. | |
13019 | ||
13020 | 2001-08-29 Paul Eggert <eggert@twinsun.com> | |
13021 | ||
13022 | * src/bison.simple (yyparse): Don't take the address of an | |
13023 | item before the start of an array, as that doesn't conform to | |
13024 | the C Standard. | |
13025 | ||
13026 | 2001-08-29 Robert Anisko <anisko_r@epita.fr> | |
13027 | ||
13028 | * doc/bison.texinfo (Location Tracking Calc): New node. | |
13029 | ||
13030 | 2001-08-29 Paul Eggert <eggert@twinsun.com> | |
13031 | ||
13032 | * src/output.c (output): Do not define const, as this now | |
13033 | causes more problems than it cures. | |
13034 | ||
13035 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
13036 | ||
13037 | * doc/bison.texinfo: Modernize `@node' and `@top' use: just name | |
13038 | the nodes. | |
13039 | Be sure to tag the `detailmenu'. | |
13040 | ||
13041 | 2001-08-29 Akim Demaille <akim@epita.fr> | |
13042 | ||
13043 | * Makefile.maint (do-po-update): Wget refuses to overwrite files: | |
13044 | download in a tmp dir. | |
13045 | ||
13046 | 2001-08-28 Marc Autret <autret_m@epita.fr> | |
13047 | ||
13048 | * config/depcomp: New file. | |
13049 | ||
13050 | 2001-08-28 Marc Autret <autret_m@epita.fr> | |
13051 | ||
13052 | * doc/bison.1 (mandoc): Adjust. | |
13053 | From Juan Manuel Guerrero. | |
13054 | ||
13055 | 2001-08-28 Marc Autret <autret_m@epita.fr> | |
13056 | ||
13057 | * src/print_graph.c (print_state): Fix. | |
13058 | ||
13059 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
13060 | ||
13061 | * src/vcg.h (classname_s, infoname_s, node_s): Constify the | |
13062 | char * members. | |
13063 | Echo modifications to the functions prototypes. | |
13064 | * src/vcg.c (add_classname, add_infoname): Adjust arguments. | |
13065 | ||
13066 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
13067 | ||
13068 | * src/vcg.c: Include `xalloc.h'. | |
13069 | (add_colorentry): New. | |
13070 | (add_classname): New. | |
13071 | (add_infoname): New. | |
13072 | * src/vcg.h: Add new prototypes. | |
13073 | ||
13074 | 2001-08-27 Akim Demaille <akim@epita.fr> | |
13075 | ||
13076 | * Makefile.maint: Sync. again with CVS Autoconf. | |
13077 | ||
13078 | 2001-08-27 Akim Demaille <akim@epita.fr> | |
13079 | ||
13080 | * Makefile.maint: Formatting changes. | |
13081 | (po-update, cvs-update, update): New targets. | |
13082 | (AMTAR): Remove. | |
13083 | ||
13084 | 2001-08-27 Akim Demaille <akim@epita.fr> | |
13085 | ||
13086 | * Makefile.am (AUTOMAKE_OPTIONS): 1.5. | |
13087 | * Makefile.maint: Sync. with CVS Autoconf. | |
13088 | ||
13089 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
13090 | ||
13091 | * src/vcg.h (struct infoname_s): New. | |
13092 | (struct colorentry_s): New. | |
13093 | (graph_s): New fields {vertical,horizontal}_order in structure. | |
13094 | Add `infoname' field. | |
13095 | Add `colorentry' field; | |
13096 | * src/vcg_defaults.h (G_VERTICAL_ORDER): New. | |
13097 | (G_HORIZONTAL_ORDER): New. | |
13098 | (G_INFONAME): New. | |
13099 | (G_COLORENTRY): New. | |
13100 | * src/vcg.c (output_graph): Add output of {vertical,horizontal}_order. | |
13101 | Add output of `infoname'. | |
13102 | Add output of `colorentry'. | |
13103 | ||
13104 | 2001-08-27 Marc Autret <autret_m@epita.fr> | |
13105 | ||
13106 | * src/reader.c (parse_dquoted_param): Rename variable `index' to `i'. | |
13107 | This one shadowed a global parameter. | |
13108 | ||
13109 | 2001-08-24 Marc Autret <autret_m@epita.fr> | |
13110 | ||
13111 | * src/print_graph.c (node_output_size): Declared POSIX `size_t' type, | |
13112 | instead of `unsigned'. | |
13113 | (print_state): Do not call obstack_object_size () in obstack_grow () | |
13114 | to avoid macro variables shadowing. | |
13115 | ||
13116 | 2001-08-23 Marc Autret <autret_m@epita.fr> | |
13117 | ||
13118 | * src/lex.c (percent_table): Typo: s/naem/name/. | |
13119 | Add graph option. | |
13120 | Normalize new options declarations. | |
13121 | ||
13122 | 2001-08-20 Pascal Bart <pascal.bart@epita.fr> | |
13123 | ||
13124 | * tests/suite.at: Exercise %header_extension and %source_extension. | |
13125 | ||
13126 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
13127 | ||
13128 | * src/reader.c (parse_dquoted_param): New. | |
13129 | (parse_header_extension_decl): Use it. | |
13130 | (parse_source_extension_decl): Likewise. | |
13131 | ||
13132 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
13133 | ||
13134 | * src/vcg.c: Remove includes of `complain.h' and `xalloc.h'. | |
13135 | (get_xxxx_str): Use assert () instead of complain (). | |
13136 | Remove return invokations in default cases. | |
13137 | (get_decision_str): Modify default behaviour. Remove second argument. | |
13138 | Echo modifications on calls. | |
13139 | (output_graph): Fix. | |
13140 | ||
13141 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
13142 | ||
13143 | * src/getargs.c (usage): Update with ``-g, --graph''. | |
13144 | ||
13145 | 2001-08-16 Marc Autret <autret_m@epita.fr> | |
13146 | ||
13147 | * doc/bison.texinfo (Bison Options): Add items `-g', `--graph'. | |
13148 | (Option Cross Key): Likewise. | |
13149 | * doc/bison.1: Update. | |
13150 | ||
1c8c2190 PB |
13151 | 2001-09-25 Pascal Bart <pascal.bart@epita.fr> |
13152 | ||
13153 | * src/output.c (output_master_parser): Don't finish action_obstack. | |
13154 | (output_parser): Don't care about the muscle action, here. | |
13155 | (prepare): Copy the action_obstack in the action muscle. | |
13156 | (output): Free action_obstack. | |
13157 | ||
180d45ba PB |
13158 | 2001-09-23 Pascal Bart <pascal.bart@epita.fr> |
13159 | ||
13160 | * src/reader.c (parse_union_decl): Add new obstack union_obstack. Which | |
13161 | will contain `%union' declaration. | |
13162 | (parse_union_decl): Delete #line directive output. | |
13163 | (parse_union_decl): Substitute /attrs_obstack/union_obstack for all | |
13164 | informations about %union. | |
13165 | (parse_union_decl): Copy the union_obstack in the muscle stype. | |
13166 | * src/bison.simple: Add new #line directive. | |
13167 | Add typdef %%stype YYSTYPE. | |
13168 | ||
c51d1a19 PB |
13169 | 2001-09-23 Pascal Bart <pascal.bart@epita.fr> |
13170 | ||
13171 | * src/bison.simple: Add new `#line' directive. | |
13172 | ||
6f9344da PB |
13173 | 2001-09-22 Pascal Bart <pascal.bart@epita.fr> |
13174 | ||
13175 | * src/bison.simple: New `#line' directive. | |
13176 | * src/output.c (output_parser): Support new dynamic muscle input_line. | |
13177 | ||
652def80 MA |
13178 | 2001-09-22 Marc Autret <autret_m@epita.fr> |
13179 | ||
13180 | * src/output.c (output_master_parser): New. | |
13181 | (output_parser): Be more re-entrant. | |
13182 | ||
25b222fa MA |
13183 | 2001-09-21 Marc Autret <autret_m@epita.fr> |
13184 | ||
13185 | * src/reader.c (copy_definition, parse_union_decl): Update and use | |
13186 | `linef' muscle. | |
13187 | (copy_action): Likewise. | |
13188 | Use obstack_1grow (). | |
13189 | * src/muscle_tab.c (muscle_init): Add muscle `linef'. | |
13190 | ||
6bc35ae5 MA |
13191 | 2001-09-21 Marc Autret <autret_m@epita.fr> |
13192 | ||
13193 | * src/options.c (option_table): Adjust. | |
13194 | * src/lex.c (parse_percent_token): Fix. | |
13195 | ||
c0629aa1 PB |
13196 | 2001-09-20 Pascal Bart <pascal.bart@epita.fr> |
13197 | ||
13198 | * src/options.c (symtab.h): Include it, need by lex.h. | |
342b8b6e | 13199 | |
82b6d266 PB |
13200 | 2001-09-20 Pascal Bart <pascal.bart@epita.fr> |
13201 | ||
13202 | * src/lex.c (parse_percent_token): Change type of variable `tx', which | |
13203 | is now an option_table_struct*. | |
13204 | (option_strcmp): New function option_strcmp. | |
13205 | (parse_percent_token): Call option_strcmp. | |
13206 | * src/getargs.c (xalloc.h, options.h): Include it. | |
13207 | (getargs): Call create_long_option_table. | |
13208 | (getargs): Free longopts at the end of the function. | |
13209 | (shortopts): Move in options.c. | |
13210 | * src/options.c (create_long_option_table): New function. Convert | |
13211 | information from option_table to option structure. | |
13212 | * src/reader.c (options.h): Include it. | |
13213 | ||
13214 | * src/Makefile.am: Adjust. | |
13215 | * src/options.c (option_table): Create from longopts and percent_table. | |
13216 | * src/getargs.c (longopts): Delete. | |
13217 | * src/lex.c (struct percent_table_struct): Delete. | |
13218 | (percent_table): Delete. | |
13219 | (options.h): Include it. | |
13220 | * src/options.c: Create. | |
13221 | * src/options.h: Create. | |
13222 | Declare enum opt_access_e. | |
13223 | Define struct option_table_struct. | |
13224 | ||
75f5aaea MA |
13225 | 2001-09-20 Marc Autret <autret_m@epita.fr> |
13226 | ||
13227 | * doc/bison.texinfo: Adjust terminologies about prologue and epilogue | |
13228 | sections of Bison. | |
13229 | ||
f508cb0a PB |
13230 | 2001-09-19 Pascal Bart <pascal.bart@epita.fr> |
13231 | ||
13232 | * src/bison.simple: s/%%filename/%%skeleton. | |
13233 | * src/muscle_tab.c (getargs.h): Include it. | |
13234 | (muscle_init): Insert new muscle skeleton. | |
13235 | ||
13105fc1 PB |
13236 | 2001-09-18 Pascal Bart <pascal.bart@epita.fr> |
13237 | ||
13238 | * src/output.c (output_parser): Delete unused variable actions_dumped. | |
13239 | ||
b0c4483e PB |
13240 | 2001-09-07 Pascal Bart <pascal.bart@epita.fr> |
13241 | ||
13242 | * src/output.c (output): Delete call to reader_output_yylsp. | |
13243 | * src/reader.c (reader): Likewise. | |
ba0fe3c7 | 13244 | * src/reader.h: Delete declaration of reader_output_yylsp. |
342b8b6e | 13245 | |
11d82f03 MA |
13246 | 2001-09-02 Marc Autret <autret_m@epita.fr> |
13247 | ||
13248 | * src/reader.c: Include muscle_tab.h. | |
13249 | (parse_union_decl): Update. | |
13250 | (parse_macro_decl): Rename parse_muscle_decl. | |
13251 | Update to use renamed functions and variable. | |
13252 | (read_declarations, copy_action, read_additionnal_code, : Updated | |
13253 | with correct variables and functions names. | |
13254 | (packsymbols, reader): Likewise. | |
342b8b6e | 13255 | |
11d82f03 | 13256 | * src/reader.h (muscle_obstack): Extern declaration update. |
342b8b6e | 13257 | |
11d82f03 MA |
13258 | * src/output.c: Include muscle_tab.h |
13259 | In all functions using macro_insert, change by using muscle_insert (). | |
13260 | (macro_obstack): Rename muscle_obstack. | |
13261 | Echo modifications in the whole file. | |
13262 | (MACRO_INSERT_INT): Rename MUSCLE_INSERT_INT. | |
13263 | (MACRO_INSERT_STRING): Rename MUSCLE_INSERT_STRING. | |
13264 | (MACRO_INSERT_PREFIX): Rename MUSCLE_INSERT_PREFIX. | |
13265 | ||
13266 | * src/muscle_tab.h: Update double inclusion macros. | |
13267 | (macro_entry_s): Rename muscle_entry_s. | |
13268 | Update prototypes. | |
342b8b6e | 13269 | |
11d82f03 MA |
13270 | * src/muscle_tab.c: Include muscle_tab.h. |
13271 | Rename macro_tabble to muscle_table. | |
13272 | (mhash1, mhash2, mcmp): Use muscle_entry. | |
13273 | (macro_init): Rename muscle_init. Update. | |
13274 | (macro_insert): Rename muscle_insert. Update. | |
13275 | (macro_find): Rename muscle_find. Update. | |
13276 | ||
13277 | * src/main.c: Include muscle_tab.h. | |
13278 | (main): Call muscle_init (). | |
13279 | * src/Makefile.am (bison_SOURCES): Echo modifications. | |
13280 | ||
93a37297 MA |
13281 | 2001-09-02 Marc Autret <autret_m@epita.fr> |
13282 | ||
f753cd62 | 13283 | Now the files macro_tab.[ch] are named muscle_tab.[ch]. |
342b8b6e | 13284 | |
f753cd62 MA |
13285 | * src/muscle_tab.c, src/muscle_tab.h: Add files. |
13286 | ||
13287 | 2001-09-02 Marc Autret <autret_m@epita.fr> | |
13288 | ||
13289 | * src/macrotab.c, src/macrotab.h: Remove. | |
93a37297 | 13290 | |
682d48cd PB |
13291 | 2001-09-01 Pascal Bart <pascal.bart@epita.fr> |
13292 | ||
342b8b6e | 13293 | * src/reader.c (copy_guard): Use muscle to specify the `#line' |
682d48cd PB |
13294 | filename. |
13295 | ||
087c8fda MA |
13296 | 2001-09-01 Marc Autret <autret_m@epita.fr> |
13297 | ||
13298 | * tests/calc.at (exp): Now, YYERROR_VERBOSE need to be set | |
13299 | to an explicit value to activate the feature. We do it here. | |
13300 | ||
dda680cb PB |
13301 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
13302 | ||
13303 | * src/output.c (prepare): Delete the `filename' muscule insertion. | |
13304 | * src/reader.c (copy_action): Use `filename' muscule with `#line'. | |
13305 | (parse_union_decl): Likewise. | |
13306 | * src/macrotab.c (macro_init): Initialize filename by infile. | |
13307 | ||
9e644e64 MA |
13308 | 2001-08-31 Marc Autret <autret_m@epita.fr> |
13309 | ||
13310 | * src/bison.simple (YYLSP_NEEDED): New definition. | |
13311 | * src/output.c (prepare): Add macro insertion of `locations_flag' | |
13312 | ||
17da6427 PB |
13313 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
13314 | ||
13315 | * src/output.c (prepare): Delete insertion of previous muscles, | |
13316 | and insert the `prefix' muscles. | |
13317 | * src/macrotab.c (macro_init): Likewise. | |
13318 | (macro_init): Initialization prefix directive by `yy'. | |
342b8b6e | 13319 | * src/bison.simple: Substitute all %%yylex, %%yychar, %%yylval, |
17da6427 PB |
13320 | %%yydebug, %%yyerror, %%yynerrs and %%yyparse by yylex, yychar, |
13321 | yylval, yydebug, yyerror, yynerrs and yyparse. | |
342b8b6e | 13322 | New directive `#define' to substitute yydebug, ... with option |
17da6427 PB |
13323 | name_prefix. |
13324 | ||
e8cb70b9 PB |
13325 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
13326 | ||
13327 | * src/main.c (main): Standardize. | |
13328 | * src/output.c (output_table_data, output_parser): Likewise. | |
13329 | * src/macrotab.h, src/macrotab.c, src/bison.simple: Likewise. | |
13330 | ||
63c2d5de MA |
13331 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr>, Marc Autret <autret_m@epita.fr> |
13332 | ||
342b8b6e | 13333 | * src/reader.c (read_additionnal_code): Rename %%user_code to |
63c2d5de MA |
13334 | %%epilogue. |
13335 | * src/output.c (output): Rename %%declarations to %%prologue. | |
13336 | * src/bison.simple: Echo modifications. | |
342b8b6e | 13337 | |
d8cb5183 MA |
13338 | 2001-08-31 Marc Autret <autret_m@epita.fr> |
13339 | ||
13340 | * src/reader.c (readgram): CleanUp. | |
13341 | (output_token_defines): Likewise. | |
13342 | (packsymbols): Likewise. | |
13343 | (reader): Likewise. | |
13344 | * src/output.c (output): CPP-out useless code. | |
13345 | ||
6c686258 PB |
13346 | 2001-08-31 Pascal Bart <pascal.bart@epita.fr> |
13347 | ||
342b8b6e | 13348 | * src/reader.c (reader): Delete obsolete call to function |
6c686258 PB |
13349 | output_trailers and output_headers. |
13350 | * src/output.h: Remove obsolete functions prototypes of output_headers | |
13351 | and output_trailers. | |
13352 | ||
8f451ef7 PB |
13353 | 2001-08-30 Pascal Bart <pascal.bart@epita.fr> |
13354 | ||
13355 | * src/main.c: Include macrotab.h. | |
342b8b6e | 13356 | * src/macrotab.h (macro_entry_s): Constify fields. |
8f451ef7 PB |
13357 | Adjust functions prototypes. |
13358 | * src/macrotab.c (macro_insert): Constify key and value. | |
13359 | (macro_find): Constify key. | |
13360 | (macro_insert): Include 'xalloc.h' | |
13361 | (macro_insert): Use XMALLOC. | |
13362 | (macro_find): Constify return value. | |
13363 | * src/output.c (output_table_data): Rename table to table_data. | |
13364 | (output_parser): Constify macro_key, macro_value. | |
13365 | ||
997b6fd0 | 13366 | 2001-08-30 Marc Autret <autret_m@epita.fr> |
2ba3b73c MA |
13367 | |
13368 | * src/reader.c (parse_skel_decl): New. | |
342b8b6e | 13369 | (read_declarations): Add case `tok_skel', call parse_skel_decl (). |
2ba3b73c MA |
13370 | * src/lex.h (token_t): New token `tok_skel'. |
13371 | * src/lex.c (percent_table): Add skeleton option entry. | |
13372 | Standardize. | |
13373 | ||
ff48177d MA |
13374 | 2001-08-29 Marc Autret <autret_m@epita.fr> |
13375 | ||
13376 | * src/bison.simple: Add %%user_code directive at the end. | |
13377 | * src/reader.c (read_additionnal_code): New. | |
13378 | (reader): Use it. | |
13379 | * src/output.c (output_program): Remove. | |
13380 | (output): Update. | |
13381 | ||
b33160bf MA |
13382 | 2001-08-28 Marc Autret <autret_m@epita.fr> |
13383 | ||
13384 | * src/output.c (output_actions): Clean up. | |
4e5caae2 | 13385 | (output_gram): CPP-out useless code. |
b33160bf MA |
13386 | * src/reader.c (reader): Clean up, CPP-out useless code. |
13387 | ||
d1a2daf7 PB |
13388 | 2001-08-28 Pascal Bart <pascal.bart@epita.fr> |
13389 | ||
342b8b6e | 13390 | * src/output.c (output): Copy attrs_obstack in the '%%definitions' |
535c0e75 | 13391 | directive. |
d1a2daf7 PB |
13392 | * src/bison.simple: Add `%%definitions'. |
13393 | ||
2b763dfe MA |
13394 | 2001-08-28 Marc Autret <autret_m@epita.fr> |
13395 | ||
13396 | * config/depcomp: New file. | |
13397 | ||
f1a87ef6 PE |
13398 | 2001-08-27 Paul Eggert <eggert@twinsun.com> |
13399 | ||
13400 | * src/bison.simple (yyparse): Don't take the address of an | |
13401 | item before the start of an array, as that doesn't conform to | |
13402 | the C Standard. | |
13403 | ||
82e236e2 RA |
13404 | 2001-08-27 Robert Anisko <robert.anisko@epita.fr> |
13405 | ||
f1a87ef6 | 13406 | * src/output.c (output): Remove the initialization of the macro |
82e236e2 RA |
13407 | obstack. It was done too late here. |
13408 | ||
13409 | * src/reader.c (parse_macro_decl): Fix. Use of the macro obstack was | |
13410 | completely wrong. | |
13411 | (reader): Initialize the macro obstack here, since we need it to grow | |
13412 | '%define' directives. | |
13413 | ||
13414 | * src/reader.h: Declare the macro obstack as extern. | |
13415 | ||
b0cfa28a RA |
13416 | 2001-08-27 Robert Anisko <robert.anisko@epita.fr> |
13417 | ||
13418 | * src/output.c (output_parser): Fix. Store single '%' characters in | |
13419 | the output obstack instead of throwing them away. | |
13420 | ||
6fc74234 AD |
13421 | 2001-08-27 Akim Demaille <akim@epita.fr> |
13422 | ||
13423 | * Makefile.am (AUTOMAKE_OPTIONS): 1.5. | |
13424 | ||
9c76d118 RA |
13425 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13426 | ||
13427 | * lib/Makefile.am: Adjust. | |
13428 | ||
a8289c62 RA |
13429 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13430 | ||
13431 | * src/bison.simple: Update and add '%%' directives. | |
13432 | ||
b6610515 RA |
13433 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13434 | ||
13435 | * src/reader.c (reader): Remove calls to 'output_headers' and | |
13436 | 'output_trailers'. Remove some C output. | |
13437 | (readgram): Disable a piece of code that was writing a default | |
13438 | definition for 'YYSTYPE'. | |
13439 | (reader_output_yylsp): Remove. | |
13440 | (packsymbols): Output token defintions to a macro. | |
13441 | (copy_definition): Disable C output. | |
6fc74234 | 13442 | |
b6610515 RA |
13443 | * src/reader.c (parse_macro_decl): New function used to parse macro |
13444 | declarations. | |
13445 | (copy_string2): Put the body of copy_string into this new function. | |
13446 | Add a parameter to let the caller choose whether he wants to copy the | |
13447 | string delimiters or not. | |
13448 | (copy_string): Be a simple call to copy_string2 with the last argument | |
13449 | bound to true. | |
13450 | (read_declarations): Add case for macro definition. | |
13451 | (copy_identifier): New. | |
6fc74234 | 13452 | (parse_macro_decl): Read macro identifiers using copy_identifier |
b6610515 RA |
13453 | rather than lex. |
13454 | ||
26f609ff RA |
13455 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13456 | ||
13457 | * src/output.c (prepare): Add prefixed names. | |
13458 | (output_parser): Output semantic actions. | |
13459 | (output_parser): Fix bug on '%%line' directives. | |
6fc74234 | 13460 | |
26f609ff RA |
13461 | * src/output.c (output_headers): Remove. The C code printed by this |
13462 | function should now be in the skeletons. | |
13463 | (output_trailers): Remove. | |
13464 | (output): Disable call to 'reader_output_yylsp'. | |
13465 | (output_rule_data): Do not output tables to the table obstack. | |
13466 | ||
13467 | * src/output.c: Remove some C dedicated output. | |
13468 | Improve the use of macro and output obstacks. | |
13469 | (output_defines): Remove. | |
6fc74234 | 13470 | |
26f609ff RA |
13471 | * src/output.c (output_token_translations): Associate 'translate' |
13472 | table with a macro. No output to the table obstack. | |
13473 | (output_gram): Same for 'rhs' and 'prhs'. | |
13474 | (output_stos): Same for 'stos'. | |
13475 | (output_rule_data): Same for 'r1' and 'r2'. | |
13476 | (token_actions): Same for 'defact'. | |
13477 | (goto_actions): Same for 'defgoto'. | |
13478 | (output_base): Same for 'pact' and 'pgoto'. | |
13479 | (output_table): Same for 'table'. | |
13480 | (output_check): Same for 'check'. | |
6fc74234 | 13481 | |
26f609ff RA |
13482 | * src/output.c (output_table_data): New function. |
13483 | (output_short_table): Remove. | |
13484 | (output_short_or_char_table): Remove. | |
6fc74234 | 13485 | |
26f609ff RA |
13486 | * src/output.c (output_parser): Replace most of the skeleton copy code |
13487 | with something new. Skeletons are now processed character by character | |
13488 | rather than line by line, and Bison looks for '%%' macros. This is the | |
13489 | first step in making Bison's output process (a lot) more flexible. | |
13490 | (output_parser): Use the macro table. | |
13491 | ||
6f43b113 RA |
13492 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13493 | ||
13494 | * src/main.c (main): Initialize the macro table. | |
13495 | ||
dd3127cf RA |
13496 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13497 | ||
13498 | * src/lex.c (percent_table): Add tok_define. | |
13499 | * src/lex.h: Add tok_define. | |
13500 | ||
aa321494 RA |
13501 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13502 | ||
13503 | * src/macrotab.c: New file. | |
13504 | * src/macrotab.h: New file. | |
13505 | * src/Makefile.am: Update. | |
13506 | ||
68bd3b6b RA |
13507 | 2001-08-25 Robert Anisko <robert.anisko@epita.fr> |
13508 | ||
13509 | * lib/hash.c: New file. | |
13510 | * lib/hash.h: New file. | |
13511 | * lib/Makefile.am: Update. | |
13512 | ||
45f8dd1e AD |
13513 | 2001-08-15 Akim Demaille <akim@epita.fr> |
13514 | ||
13515 | Version 1.28c. | |
13516 | ||
40a64a7a | 13517 | 2001-08-15 Marc Autret <autret_m@epita.fr> |
0b8afb77 AD |
13518 | |
13519 | * src/reader.c (readgram): Indent output macro YYSTYPE. | |
13520 | (packsymbols): Likewise. | |
13521 | (output_token_defines): Likewise. | |
13522 | * src/files.c: Standardize. | |
13523 | (compute_header_macro): New. | |
13524 | (defines_obstack_save): New. Use compute_header_macro. | |
13525 | (output_files): Update. Use defines_obstack_save. | |
13526 | ||
f9a8293a AD |
13527 | 2001-08-15 Akim Demaille <akim@epita.fr> |
13528 | ||
13529 | * doc/bison.texinfo (Table of Symbols): Document | |
13530 | YYSTACK_USE_ALLOCA. | |
13531 | ||
150ca7a7 AD |
13532 | 2001-08-15 Akim Demaille <akim@epita.fr> |
13533 | ||
13534 | * missing: Update from CVS Automake. | |
13535 | * config/config.guess, config/config.sub, config/texinfo.tex: | |
13536 | Update from gnu.org. | |
13537 | ||
69b5cec4 AD |
13538 | 2001-08-15 Akim Demaille <akim@epita.fr> |
13539 | ||
13540 | * Makefile.maint: Sync with CVS Autoconf. | |
13541 | ||
f2b5126e PB |
13542 | 2001-08-14 Pascal Bart <pascal.bart@epita.fr> |
13543 | ||
69b5cec4 | 13544 | * doc/bison.texinfo: Include GNU Free Documentation License from |
f2b5126e PB |
13545 | `fdl.texi'. |
13546 | * doc/fdl.texi: Add to package. | |
13547 | ||
4ecbf796 MA |
13548 | 2001-08-14 Marc Autret <autret_m@epita.fr> |
13549 | ||
13550 | Turn on %{source,header}_extension features. | |
13551 | ||
69b5cec4 | 13552 | * src/lex.c (percent_table): Un-CPP out header_extension and |
4ecbf796 MA |
13553 | source_extension. |
13554 | * src/files.c (compute_exts_from_gf): Compare pointers with NULL. | |
69b5cec4 | 13555 | (compute_exts_from_src): Remove conditions. It restores priorities |
4ecbf796 MA |
13556 | between options. |
13557 | ||
95fb5662 MA |
13558 | 2001-08-14 Marc Autret <autret_m@epita.fr> |
13559 | ||
13560 | * src/files.c (compute_base_names): Add extensions computing when | |
13561 | `--file-prefix' used. | |
13562 | Standardize function calls. | |
13563 | ||
78d09da9 MA |
13564 | 2001-08-13 Marc Autret <autret_m@epita.fr> |
13565 | ||
69b5cec4 | 13566 | * src/bison.simple (YYSTACK_USE_ALLOCA): Changed to allow users |
78d09da9 MA |
13567 | defining it (defined but null disables alloca). |
13568 | ||
5a009f2c MA |
13569 | 2001-08-13 Marc Autret <autret_m@epita.fr> |
13570 | ||
13571 | * src/bison.simple (_yy_memcpy): CPP reformat. | |
13572 | ||
1e41465a PB |
13573 | 2001-08-13 Pascal Bart <pascal.bart@epita.fr> |
13574 | ||
13575 | * tests/atconfig.in (CPPFLAGS): Fix. | |
13576 | ||
c67a198d PB |
13577 | 2001-08-10 Pascal Bart <pascal.bart@epita.fr> |
13578 | ||
79282c6c | 13579 | * doc/bison.texinfo: Include GNU General Public License from |
c67a198d PB |
13580 | `gpl.texi'. |
13581 | * doc/gpl.texi: Add to package. | |
13582 | ||
09a6de7e MA |
13583 | 2001-08-10 Marc Autret <autret_m@epita.fr> |
13584 | ||
13585 | * src/print_graph.h: Fix. | |
13586 | * src/reader.c (read_declarations): Use parse_header_extension_decl (). | |
13587 | ||
b77b9ee0 AD |
13588 | 2001-08-10 Akim Demaille <akim@epita.fr> |
13589 | ||
13590 | * src/system.h: Provide default declarations for stpcpy, strndup, | |
13591 | and strnlen. | |
13592 | ||
3e259915 MA |
13593 | 2001-08-10 Robert Anisko <anisko_r@epita.fr> |
13594 | ||
13595 | * doc/bison.texinfo (Locations): Update @$ stuff. | |
13596 | ||
ca96bc2d MA |
13597 | 2001-08-09 Robert Anisko <anisko_r@epita.fr> |
13598 | ||
13599 | * src/bison.simple (YYLLOC_DEFAULT): Update. | |
13600 | (yyparse): Adjust. | |
13601 | ||
fdc6758b MA |
13602 | 2001-08-08 Marc Autret <autret_m@epita.fr> |
13603 | ||
b77b9ee0 | 13604 | * doc/bison.texinfo: Change @samp{$<@dots{}>} to |
fdc6758b MA |
13605 | @samp{$<@dots{}>@var{n}} in Section Actions in Mid-Rule. |
13606 | Reported by Fabrice Bauzac. | |
957d4dbf | 13607 | |
600cad3b MA |
13608 | 2001-08-08 Marc Autret <autret_m@epita.fr> |
13609 | ||
13610 | * src/vcg_default.h: Use NULL instead of 0 to initialize pointers. | |
13611 | * src/vcg.c (output_node): Fix. | |
13612 | * src/vcg.h: Cleanup. | |
13613 | * src/print_graph.c: Add comments. | |
b77b9ee0 | 13614 | (node_output_size): New global variable. Simplify the formatting of |
600cad3b | 13615 | the VCG graph output. |
b77b9ee0 | 13616 | (print_actions): Unused code is now used. It notifies the final state |
600cad3b | 13617 | and no action states in the VCG graph. It also give the reduce actions. |
b77b9ee0 | 13618 | The `shift and goto' edges are red and the `go to state' edges are |
600cad3b MA |
13619 | blue. |
13620 | Get the current node name and node_obstack by argument. | |
13621 | (node_obstack): New variable. | |
13622 | (print_state): Manage node_obstack. | |
13623 | (print_core): Use node_obstack given by argument. | |
13624 | A node is not only computed here but in print_actions also. | |
13625 | (print_graph): CPP out useless code instead of commenting it. | |
13626 | ||
976e528f AD |
13627 | 2001-08-07 Pascal Bart <pascal.bart@epita.fr> |
13628 | ||
13629 | * tests/atconfig.in (CPPFLAGS): Fix. | |
13630 | ||
20e8e5ca AD |
13631 | 2001-08-07 Akim Demaille <akim@epita.fr> |
13632 | ||
13633 | * src/print_graph.c (quote): New. | |
13634 | (print_core): Use it. | |
13635 | ||
957d4dbf | 13636 | 2001-08-06 Akim Demaille <akim@epita.fr>, Marc Autret <autret_m@epita.fr> |
3e3da797 | 13637 | |
3e3da797 AD |
13638 | * src/vcg.c (complain.h): Include it. |
13639 | Unepitaize `return' invocations. | |
c4b66126 | 13640 | [NDEBUG] (main): Remove. |
79282c6c | 13641 | * src/vcg.h (node_t, edge_t, graph_t): Constify the char * members. |
c4b66126 AD |
13642 | * src/files.c (open_files): Initialize graph_obstack. |
13643 | * src/print_graph.c (print_actions): CPP out useless code. | |
13644 | (print_core): Don't output the last `\n' in labels. | |
13645 | Use `quote'. | |
13646 | * src/files.c (output_files): Output the VCG file. | |
13647 | * src/main.c (main): Invoke print_graph (); | |
3e3da797 | 13648 | |
957d4dbf | 13649 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
22c2cbc0 AD |
13650 | |
13651 | Automaton VCG graph output. | |
13652 | Using option ``-g'' or long option ``--graph'', you can generate | |
13653 | a gram_filename.vcg file containing a VCG description of the LALR (1) | |
13654 | automaton of your grammar. | |
13655 | ||
13656 | * src/main.c: Call to print_graph() function. | |
13657 | * src/getargs.h: Update. | |
13658 | * src/getargs.c (options): Update to catch `-g' and `--graph' options. | |
13659 | (graph_flag): New flag. | |
13660 | (longopts): Update. | |
13661 | (getargs): Add case `g'. | |
13662 | * src/files.c (graph_obstack): New obstack struct. | |
13663 | (open_files): Initialize new obstack. | |
13664 | (output_files): Saves graph_obstack if required. | |
13665 | * src/files.h (graph_obstack): New extern declaration. | |
13666 | * src/Makefile.am: Add new source files. | |
13667 | ||
927c1557 | 13668 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
ce4d5ce0 AD |
13669 | |
13670 | * src/print_graph.c, src/print_graph.h (graph): New. | |
13671 | * src/vcg.h: New file. | |
13672 | * src/vcg.c: New file, VCG graph handling. | |
13673 | ||
7333d403 AD |
13674 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
13675 | ||
13676 | Add of %source_extension and %header_extension which specify | |
13677 | the source or/and the header output file extension. | |
13678 | ||
13679 | * src/files.c (compute_base_names): Remove initialisation of | |
13680 | src_extension and header_extension. | |
13681 | (compute_exts_from_gf): Update. | |
13682 | (compute_exts_from_src): Update. | |
13683 | (output_files): Update. | |
13684 | * src/reader.c (parse_header_extension_decl): New. | |
13685 | (parse_source_extension_decl): New. | |
13686 | (read_declarations): New case statements for the new tokens. | |
13687 | * src/lex.c (percent_table): Add entries for %source_extension | |
13688 | and %header_extension. | |
13689 | * src/lex.h (token_e): New tokens tok_hdrext and tok_srcext. | |
13690 | ||
84163231 AD |
13691 | 2001-08-06 Marc Autret <autret_m@epita.fr> |
13692 | ||
13693 | * configure.in: Bump to 1.28c. | |
13694 | * doc/bison.texinfo: Texinfo thingies. | |
13695 | ||
8303fc42 AD |
13696 | 2001-08-04 Pascal Bart <pascal.bart@epita.fr> |
13697 | ||
13698 | * tests/atconfig.in (CPPFLAGS): Add. | |
13699 | * tests/calc.at (AT_CHECK): Use CPPFLAGS. | |
13700 | ||
70a84437 AD |
13701 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13702 | ||
13703 | Version 1.28b. | |
13704 | ||
2ce10144 AD |
13705 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13706 | ||
13707 | * tests/Makefile.am (check-local): Ship testsuite. | |
13708 | * tests/calc.at (_AT_DATA_CALC_Y): Prototype all the functions. | |
13709 | Include `string.h'. | |
13710 | ||
1e3e4bc1 AD |
13711 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13712 | ||
13713 | * configure.in: Try using -Wformat when compiling. | |
13714 | ||
42b45b7f AD |
13715 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13716 | ||
13717 | * configure.in: Bump to 1.28b. | |
13718 | ||
8f13fe33 AD |
13719 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13720 | ||
13721 | * src/complain.c: Adjust strerror_r portability issues. | |
13722 | ||
b37ba92c AD |
13723 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13724 | ||
13725 | Version 1.28a. | |
13726 | ||
b0ce6046 AD |
13727 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13728 | ||
13729 | * src/getargs.c, src/getarg.h (skeleton)): Constify. | |
13730 | * src/lex.c (literalchar): Avoid name clashes on `buf'. | |
13731 | * src/getargs.c: Include complain.h. | |
13732 | * src/files.c, src/files.h (skeleton_find): Avoid name clashes. | |
13733 | * lib/quotearg.c, lib/quotearg.h: Update from fileutils 4.1. | |
13734 | ||
d01c415b AD |
13735 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13736 | ||
13737 | * src/reader.c (readgram): Display hidden chars in error messages. | |
13738 | ||
459dd1a6 AD |
13739 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13740 | ||
13741 | Update to gettext 0.10.39. | |
13742 | ||
53b74c0c AD |
13743 | 2001-08-03 Akim Demaille <akim@epita.fr> |
13744 | ||
13745 | * lib/strspn.c: New. | |
13746 | ||
234a3be3 AD |
13747 | 2001-08-01 Marc Autret <autret_m@epita.fr> |
13748 | ||
13749 | * doc/bison.texinfo: Update. | |
13750 | * doc/bison.1 (mandoc): Update. | |
13751 | * src/system.h (EXT_GUARD_C, EXT_STYPE_H): Remove .c and .h. | |
13752 | * src/files.c: Support output files extensions computing. | |
13753 | (src_extension): New static variable. | |
13754 | (header_extension): New static variable. | |
13755 | (tr): New function. | |
13756 | (get_extension_index): New function, gets the index of an extension | |
13757 | filename in a string. | |
13758 | (compute_exts_from_gf): New function, computes extensions from the | |
13759 | grammar file extension. | |
13760 | (compute_exts_from_src): New functions, computes extensions from the | |
13761 | C source file extension, file given by ``-o'' option. | |
13762 | (compute_base_names): Update. | |
13763 | (output_files): Update. | |
13764 | ||
847bf1f5 AD |
13765 | 2001-08-01 Robert Anisko <anisko_r@epita.fr> |
13766 | ||
d995fee7 | 13767 | * doc/bison.texi: Document @$. |
847bf1f5 AD |
13768 | (Locations): New section. |
13769 | ||
d074a105 AD |
13770 | 2001-07-18 Akim Demaille <akim@epita.fr> |
13771 | ||
13772 | * Makefile.maint, GNUmakefile: New, from Autoconf 2.52. | |
13773 | * config/prev-version.txt, config/move-if-change: New. | |
13774 | * Makefile.am: Adjust. | |
13775 | ||
3419715d AD |
13776 | 2001-07-08 Pascal Bart <pascal.bart@epita.fr> |
13777 | ||
13778 | * src/bison.simple (yyparse): Suppress warning `comparaison | |
13779 | between signed and unsigned'. | |
13780 | ||
62ab6972 AD |
13781 | 2001-07-05 Pascal Bart <pascal.bart@epita.fr> |
13782 | ||
13783 | * src/getargs.h (raw_flag): Remove. | |
13784 | * src/getargs.c: Die on `-r'/`--raw'. | |
13785 | * src/lex.c (parse_percent_token): Die on `%raw'. | |
13786 | * src/reader.c (output_token_defines): Suppress call to `raw_flag'. | |
13787 | * tests/calc.at: Suppress test with option `--raw'. | |
13788 | ||
1e24cc5b AD |
13789 | 2001-07-14 Akim Demaille <akim@epita.fr> |
13790 | ||
13791 | * config/: New. | |
13792 | * configure.in: Require Autoconf 2.50. | |
13793 | Update to gettext 0.10.38. | |
13794 | ||
32dfccf8 AD |
13795 | 2001-03-16 Akim Demaille <akim@epita.fr> |
13796 | ||
13797 | * doc/bison.texinfo: ANSIfy the examples. | |
13798 | ||
cd5bd6ac AD |
13799 | 2001-03-16 Akim Demaille <akim@epita.fr> |
13800 | ||
13801 | * getargs.c (skeleton): New variable. | |
13802 | (longopts): --skeleton is a new option. | |
13803 | (shortopts, getargs): -S is a new option. | |
13804 | * getargs.h: Declare skeleton. | |
13805 | * output.c (output_parser): Use it. | |
13806 | ||
5141b016 AD |
13807 | 2001-03-16 Akim Demaille <akim@epita.fr> |
13808 | ||
13809 | * m4/strerror_r.m4: New. | |
13810 | * m4/error.m4: Run AC_FUNC_STRERROR_R. | |
13811 | * lib/error.h, lib/error.c: Update. | |
13812 | ||
447992b9 AD |
13813 | 2001-03-16 Akim Demaille <akim@epita.fr> |
13814 | ||
13815 | * src/getargs.c (longopts): Clean up. | |
13816 | ||
274d42ce AD |
13817 | 2001-02-21 Akim Demaille <akim@epita.fr> |
13818 | ||
13819 | * src/reader.c (gensym): `gensym_count' is your own. | |
13820 | Use a static buf to create the symbol name, as token_buffer is no | |
13821 | longer a buffer. | |
13822 | ||
22c821f3 AD |
13823 | 2001-02-08 Akim Demaille <akim@epita.fr> |
13824 | ||
13825 | * src/conflicts.c (conflict_report): Be sure not to append to res | |
13826 | between two calls, which could happen if both first sprintf were | |
13827 | skipped, but not the first cp += strlen. | |
13828 | ||
18569462 AD |
13829 | 2001-02-08 Akim Demaille <akim@epita.fr> |
13830 | ||
13831 | * lib/memchr.c, lib/stpcpy.c, lib/strndup.c, lib/strnlen.c: | |
13832 | New, from fileutils 4.0.37. | |
13833 | * configure.in: Require Autoconf 2.49c. I took some time before | |
13834 | making this decision. This is the only way out for portability | |
13835 | issues in Bison, it would mean way too much duplicate effort to | |
13836 | import in Bison features implemented in 2.49c since 2.13. | |
13837 | AC_REPLACE_FUNCS and AC_CHECK_DECLS the functions above. | |
13838 | ||
0d8f3c8a AD |
13839 | 2001-02-02 Akim Demaille <akim@epita.fr> |
13840 | ||
13841 | * lib/malloc.c, lib/realloc.c: New, from the fileutils 4.0.37. | |
66075dcf | 13842 | * lib/xalloc.h, lib/xmalloc.c: Update. |
0d8f3c8a | 13843 | |
f17bcd1f AD |
13844 | 2001-01-19 Akim Demaille <akim@epita.fr> |
13845 | ||
13846 | Get rid of the ad hoc handling of token_buffer in the scanner: use | |
13847 | the obstacks. | |
13848 | ||
13849 | * src/lex.c (token_obstack): New. | |
13850 | (init_lex): Initialize it. No longer call... | |
13851 | (grow_token_buffer): this. Remove it. | |
13852 | Adjust all the places which used it to use the obstack. | |
13853 | ||
511e79b3 AD |
13854 | 2001-01-19 Akim Demaille <akim@epita.fr> |
13855 | ||
13856 | * src/lex.h: Rename all the tokens: | |
13857 | s/\bENDFILE\b/tok_eof/g; | |
13858 | s/\bIDENTIFIER\b/tok_identifier/g; | |
13859 | etc. | |
13860 | Let them be enums, not #define, to ease debugging. | |
13861 | Adjust all the code. | |
13862 | ||
0d6508ef AD |
13863 | 2001-01-18 Akim Demaille <akim@epita.fr> |
13864 | ||
13865 | * src/lex.h (MAXTOKEN, maxtoken, grow_token_buffer): Remove, private. | |
13866 | * src/lex.c (maxtoken, grow_token_buffer): Static. | |
13867 | ||
6deb4447 AD |
13868 | 2001-01-18 Akim Demaille <akim@epita.fr> |
13869 | ||
13870 | Since we now use obstacks, more % directives can be enabled. | |
13871 | ||
13872 | * src/lex.c (percent_table): Also accept `%yacc', | |
13873 | `%fixed_output_files', `%defines', `%no_parser', `%verbose', and | |
13874 | `%debug'. | |
13875 | Handle the actions for `%semantic_parser' and `%pure_parser' here, | |
13876 | instead of returning a token. | |
13877 | * src/lex.h (SEMANTIC_PARSER, PURE_PARSER): Remove, unused. | |
13878 | * src/reader.c (read_declarations): Adjust. | |
13879 | * src/files.c (open_files): Don't call `compute_base_names', don't | |
13880 | compute `attrsfile' since they depend upon data which might be | |
13881 | *in* the input file now. | |
13882 | (output_files): Do it here. | |
13883 | * src/output.c (output_headers): Document the fact that this patch | |
13884 | introduces a guaranteed SEGV for semantic parsers. | |
13885 | * doc/bison.texinfo: Document them. | |
13886 | * tests/suite.at: Exercise these %options. | |
13887 | ||
ff4423cc AD |
13888 | 2000-12-20 Akim Demaille <akim@epita.fr> |
13889 | ||
13890 | Also handle the output file (--verbose) with obstacks. | |
13891 | ||
13892 | * files.c (foutput): Remove. | |
13893 | (output_obstack): New. | |
13894 | Adjust all dependencies. | |
13895 | * src/conflicts.c: Return a string. | |
13896 | * src/system.h (obstack_grow_string): Rename as... | |
13897 | (obstack_sgrow): this. Be ready to work with non literals. | |
13898 | (obstack_fgrow4): New. | |
13899 | ||
956dba3a AD |
13900 | 2000-12-20 Akim Demaille <akim@epita.fr> |
13901 | ||
13902 | * src/files.c (open_files): Fix the computation of short_base_name | |
13903 | in the case of `-o foo.tab.c'. | |
13904 | ||
337bab46 AD |
13905 | 2000-12-20 Akim Demaille <akim@epita.fr> |
13906 | ||
13907 | * src/reader.c (copy_string, copy_comment, copy_comment2, copy_at) | |
13908 | (copy_dollar): Now that everything uses obstacks, get rid of the | |
13909 | FILE * parameters. | |
13910 | ||
5d3214b8 AD |
13911 | 2000-12-20 Akim Demaille <akim@epita.fr> |
13912 | ||
13913 | * src/files.c (open_files): Actually the `.output' file is based | |
13914 | on the short_base_name, not base_name. | |
13915 | * tests/suite.at (Checking output file names): Adjust. | |
13916 | ||
29092a57 AD |
13917 | 2000-12-20 Akim Demaille <akim@epita.fr> |
13918 | ||
13919 | * src/bison.s1: Remove, we now use directly... | |
13920 | * src/bison.simple: this. | |
13921 | * src/Makefile.am: Use pkgdata instead of data. | |
13922 | ||
ea5607fd AD |
13923 | 2000-12-20 Akim Demaille <akim@epita.fr> |
13924 | ||
13925 | * src/files.c (guard_obstack): New. | |
13926 | (open_files): Initialize it. | |
13927 | (output_files): Dump it... | |
13928 | * src/files.h: Export it. | |
13929 | * src/reader.c (copy_guard): Use it. | |
13930 | ||
27110317 AD |
13931 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13932 | ||
13933 | * src/files.c (outfile, defsfile, actfile): Removed as global | |
13934 | vars. | |
13935 | (open_files): Don't compute them. | |
13936 | (output_files): Adjust. | |
13937 | (base_name, short_base_name): Be global. | |
13938 | Adjust dependencies. | |
13939 | ||
19c50364 AD |
13940 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13941 | ||
13942 | * src/files.c (strsuffix): New. | |
13943 | (stringappend): Be just like strcat but allocate. | |
13944 | (base_names): Eve out from open_files. | |
13945 | Try to simplify the rather hairy computation of base_name and | |
13946 | short_base_name. | |
13947 | (open_files): Use it. | |
13948 | * tests/suite.at (Checking output file names): New test. | |
13949 | ||
573c1d9f AD |
13950 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13951 | ||
13952 | * src/system.h (obstack_grow_literal_string): Rename as... | |
13953 | (obstack_grow_string): this. | |
13954 | * src/output.c (output_parser): Recognize `%% actions' instead of | |
13955 | `$'. | |
13956 | * src/bison.s1: s/$/%% actions/. | |
13957 | * src/bison.hairy: Likewise. | |
13958 | ||
ef7ddedd AD |
13959 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13960 | ||
13961 | * src/output.c (output_parser): Compute the `#line' lines when | |
13962 | there are. | |
13963 | * src/Makefile.am (bison.simple): Be a simple copy of bison.s1. | |
13964 | Suggested by Hans Aberg. | |
13965 | ||
ff61dabd AD |
13966 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13967 | ||
13968 | Let the handling of the skeleton files be local to the procedures | |
13969 | that use it. | |
13970 | ||
13971 | * src/files.c (xfopen, xfclose, skeleton_find, guardfile): No | |
13972 | longer static. | |
13973 | (fparser, open_extra_files): Remove. | |
13974 | (open_files, output_files): Don't take care of fparser. | |
13975 | * src/files.h: Adjust. | |
13976 | * src/output.c (output_parser): Open and close the file to the | |
13977 | skeleton. | |
13978 | * src/reader.c (read_declarations): When %semantic_parser, open | |
13979 | fguard. | |
13980 | ||
55b96341 AD |
13981 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13982 | ||
13983 | * src/file.h (BISON_SIMPLE, BISON_HAIRY): Move from here... | |
13984 | * src/system.h (BISON_SIMPLE, BISON_HAIRY): ... to here. | |
13985 | ||
358c15b7 AD |
13986 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13987 | ||
13988 | * src/files.c (open_files): Yipee! We no longer need all the code | |
13989 | looking for `/tmp' since we have no tmp file. | |
13990 | ||
7de3329e AD |
13991 | 2000-12-19 Akim Demaille <akim@epita.fr> |
13992 | ||
13993 | * src/system.h (EXT_TAB, EXT_OUTPUT, EXT_STYPE_H, EXT_GUARD_C): | |
13994 | New macros. | |
13995 | * src/files.c (open_files): Less dependency on MSDOS etc. | |
13996 | ||
3abcd459 AD |
13997 | 2000-12-14 Akim Demaille <akim@epita.fr> |
13998 | ||
13999 | * src/bison.s1 (YYLLOC_DEFAULT): New macro. | |
14000 | Provide a default definition. | |
14001 | Use it when executing the default @ action. | |
14002 | * src/reader.c (reader_output_yylsp): No longer include | |
14003 | `timestamp' and `text' in the default YYLTYPE. | |
14004 | ||
2a91a95e AD |
14005 | 2000-12-12 Akim Demaille <akim@epita.fr> |
14006 | ||
14007 | * src/reader.c (copy_definition, parse_union_decl, copy_action) | |
14008 | (copy_guard): Quote the file names. | |
14009 | Reported by Laurent Mascherpa. | |
14010 | ||
14d3eb9b AD |
14011 | 2000-12-12 Akim Demaille <akim@epita.fr> |
14012 | ||
14013 | * src/output.c (output_headers, output_program, output): Be sure | |
14014 | to escape special characters when outputting filenames. | |
14015 | (ACTSTR_PROLOGUE, ACTSTR_EPILOGUE): Remove. | |
14016 | (output_headers): Don't depend on them, Use ACTSTR. | |
14017 | ||
d7045ec6 AD |
14018 | 2000-11-17 Akim Demaille <akim@epita.fr> |
14019 | ||
14020 | * lib/obstack.h: Formatting changes. | |
14021 | (obstack_grow, obstack_grow0): Don't cast WHERE at all: it | |
14022 | prevents type checking. | |
14023 | (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't | |
14024 | cast the value to (void *): assigning a `foo *' to a `void *' | |
14025 | variable is valid. | |
14026 | (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int. | |
14027 | * src/reader.c (parse_union_decl): Typo: use obstack_1grow to | |
14028 | append characters. | |
14029 | ||
6fd54b73 AD |
14030 | 2000-11-17 Akim Demaille <akim@epita.fr> |
14031 | ||
14032 | * tests/Makefile.am (suite.m4, regression.m4, calc.m4): Rename | |
14033 | as... | |
14034 | (suite.m4, regression.m4, calc.m4): these. | |
14035 | * tests/atgeneral.m4: Update from CVS Autoconf. | |
14036 | ||
4c50eae6 AD |
14037 | 2000-11-17 Akim Demaille <akim@epita.fr> |
14038 | ||
14039 | * tests/regression.m4 (%union and --defines): New test, | |
14040 | demonstrating a current bug in the obstack implementation. | |
14041 | ||
a35f64ea AD |
14042 | 2000-11-17 Akim Demaille <akim@epita.fr> |
14043 | ||
14044 | * src/bison.s1 (_YY_DECL_VARIABLES, YY_DECL_VARIABLES): New | |
14045 | macros. | |
14046 | Use them to declare the variables which are global or local to | |
14047 | `yyparse'. | |
14048 | ||
7de23534 AD |
14049 | 2000-11-17 Akim Demaille <akim@epita.fr> |
14050 | ||
14051 | * acconfig.h: Remove, no longer used. | |
14052 | ||
aa7815f5 AD |
14053 | 2000-11-07 Akim Demaille <akim@epita.fr> |
14054 | ||
14055 | * src: s/Copyright (C)/Copyright/g. | |
14056 | ||
5af1f549 AD |
14057 | 2000-11-07 Akim Demaille <akim@epita.fr> |
14058 | ||
14059 | * src/reader.c (reader): #define YYLSP_NEEDED to 1 instead of just | |
14060 | defining. | |
14061 | * src/bison.s1: s/#ifdef YYLSP_NEEDED/#if YYLSP_NEEDED/. | |
14062 | ||
553e2b22 AD |
14063 | 2000-11-07 Akim Demaille <akim@epita.fr> |
14064 | ||
14065 | * src/bison.s1 (YYLEX): Use #if instead of #ifdef. | |
14066 | Merge in a single CPP if/else. | |
14067 | ||
8a4f41d6 AD |
14068 | 2000-11-07 Akim Demaille <akim@epita.fr> |
14069 | ||
14070 | * src/output.c (output): Remove useless variables. | |
14071 | * lib/obstack.c (obstack_grow, obstack_grow0): Rename the second | |
14072 | argument `data' for consistency with the prototypes. | |
14073 | Qualify it `const'. | |
14074 | (obstack_copy, obstack_copy0): Rename the second argument as | |
14075 | `address' for consistency. Qualify it `const'. | |
14076 | * lib/obstack.h (obstack_copy, obstack_copy0, obstack_grow) | |
14077 | (obstack_grow0, obstack_ptr_grow, obstack_ptr_grow_fast): Qualify | |
14078 | `const' their input argument (`data' or `address'). | |
14079 | Adjust the corresponding macros to include `const' in casts. | |
14080 | ||
095a3fb5 AD |
14081 | 2000-11-03 Akim Demaille <akim@epita.fr> |
14082 | ||
14083 | * src/Makefile.am (INCLUDES): s/PFILE/BISON_SIMPLE/. | |
14084 | s/PFILE1/BISON_HAIRY/. | |
14085 | Adjust dependencies. | |
14086 | ||
d1cdce7c AD |
14087 | 2000-11-03 Akim Demaille <akim@epita.fr> |
14088 | ||
090c5ebf | 14089 | For some reason, this was not applied. |
d1cdce7c AD |
14090 | |
14091 | * src/files.c [VMS]: No longer include `ssdef.h', no longer define | |
14092 | `unlink': it's no longer used. | |
14093 | ||
9311529b AD |
14094 | 2000-11-03 Akim Demaille <akim@epita.fr> |
14095 | ||
14096 | * src/files.c (skeleton_find): New function, eved out of... | |
14097 | (open_files, open_extra_files): here. | |
14098 | ||
d8880f69 AD |
14099 | 2000-11-03 Akim Demaille <akim@epita.fr> |
14100 | ||
14101 | Don't use `atexit'. | |
14102 | ||
14103 | * src/files.c (obstack_save): New function. | |
14104 | (done): Rename as... | |
14105 | (output_files): this. | |
14106 | Use `obstack_save'. | |
14107 | * src/main.c (main): Don't use `atexit' to register `done', since | |
14108 | it no longer has to remove tmp files, just call `output_files' | |
14109 | when there are no errors. | |
14110 | ||
0dbb648e AD |
14111 | 2000-11-02 Akim Demaille <akim@epita.fr> |
14112 | ||
14113 | * src/files.c [VMS]: No longer include `ssdef.h', no longer define | |
14114 | `unlink': it's no longer used. | |
14115 | * src/files.h: Formatting changes. | |
14116 | ||
896fe5c1 AD |
14117 | 2000-11-02 Akim Demaille <akim@epita.fr> |
14118 | ||
14119 | Remove the last uses of mktemp and unlink/delete. | |
14120 | ||
14121 | * src/files.c (fdefines, ftable): Removed. | |
14122 | (defines_ostack, table_obstack): New. | |
14123 | Adjust dependencies of the former into uses of the latter. | |
14124 | * src/output.c (output_short_or_char_table, output_short_table): | |
14125 | Convert to using obstacks. | |
14126 | * src/reader.c (copy_comment2): Accept one FILE * and two | |
14127 | obstacks. | |
14128 | (output_token_defines, reader_output_yylsp): Use obstacks. | |
14129 | * src/system.h (obstack_fgrow3): New. | |
1f65350a | 14130 | * po/POTFILES.in: Adjust. |
896fe5c1 | 14131 | |
dd60faec AD |
14132 | 2000-11-01 Akim Demaille <akim@epita.fr> |
14133 | ||
14134 | Change each use of `fattrs' into a use of `attrs_obstack'. | |
14135 | ||
14136 | * src/reader.c (copy_at): Typo: s/yylloc/yyloc/. | |
14137 | * src/files.c (fattrs): Remove. | |
14138 | (attrs_obstack): New. | |
14139 | Adjust all dependencies. | |
14140 | (done): If SEMANTIC_PARSER, dump attrs_obstack into attrsfile. | |
14141 | ||
8c7ebe49 AD |
14142 | 2000-11-01 Akim Demaille <akim@epita.fr> |
14143 | ||
14144 | Introduce obstacks. | |
14145 | Change each use of `faction' into a use of `action_obstack'. | |
14146 | ||
14147 | * lib/obstack.h, lib/obstack.c: New files. | |
14148 | * src/files.c (faction): Remove. | |
14149 | (action_obstack): New. | |
14150 | Adjust all dependencies. | |
14151 | ||
77aee789 AD |
14152 | 2000-10-20 Akim Demaille <akim@epita.fr> |
14153 | ||
14154 | * lib/quote.h (PARAMS): New macro. Use it. | |
14155 | ||
43591cec AD |
14156 | 2000-10-16 Akim Demaille <akim@epita.fr> |
14157 | ||
14158 | * src/output.c (output_short_or_char_table): New function. | |
14159 | (output_short_table, output_token_translations): Use it. | |
14160 | (goto_actions): Use output_short_table. | |
14161 | ||
1e9798d5 AD |
14162 | 2000-10-16 Akim Demaille <akim@epita.fr> |
14163 | ||
14164 | * src/symtab.c (bucket_new): New function. | |
14165 | (getsym): Use it. | |
14166 | ||
14167 | * src/output.c (output_short_table): New argument to display the | |
14168 | comment associated with the table. | |
14169 | Adjust dependencies. | |
14170 | (output_gram): Use it. | |
14171 | (output_rule_data): Nicer output layout for YYTNAME. | |
14172 | ||
f282676b AD |
14173 | 2000-10-16 Akim Demaille <akim@epita.fr> |
14174 | ||
14175 | * src/lex.c (read_typename): New function. | |
14176 | (lex): Use it. | |
14177 | * src/reader.c (copy_dollar): Likewise. | |
14178 | ||
550a72a3 AD |
14179 | 2000-10-16 Akim Demaille <akim@epita.fr> |
14180 | ||
14181 | * src/reader.c (copy_comment2): Expect the input stream to be on | |
14182 | the `/' which is suspected to open a comment, instead of being | |
14183 | called after `//' or `/*' was read. | |
14184 | (copy_comment, copy_definition, parse_union_decl, copy_action) | |
14185 | (copy_guard): Adjust. | |
14186 | ||
131e2fef AD |
14187 | 2000-10-16 Akim Demaille <akim@epita.fr> |
14188 | ||
14189 | * src/reader.c (parse_expect_decl): Use `skip_white_space' and | |
14190 | `read_signed_integer'. | |
14191 | ||
79282c5a AD |
14192 | 2000-10-16 Akim Demaille <akim@epita.fr> |
14193 | ||
14194 | * src/reader.c (copy_dollar): New function. | |
14195 | (copy_guard, copy_action): Use it. | |
14196 | ||
ff4a34be AD |
14197 | 2000-10-16 Akim Demaille <akim@epita.fr> |
14198 | ||
14199 | * lib/quote.h, lib/quote.c, lib/quotearg.h, lib/quotearg.c: | |
14200 | * m4/prereq.m4, m4/c-bs-a.m4, m4/mbstate.m4: | |
14201 | New files, from Fileutils 4.0.27. | |
14202 | * src/main.c (printable_version): Remove. | |
14203 | * src/lex.c, src/reader.c: Use `quote'. | |
14204 | ||
14205 | 2000-10-04 Akim Demaille <akim@epita.fr> | |
14206 | ||
14207 | * lib/error.c, lib/error.h: New files, needed by xmalloc.c. | |
14208 | ||
14ded682 AD |
14209 | 2000-10-04 Akim Demaille <akim@epita.fr> |
14210 | ||
14211 | * doc/bison.texinfo: Various typos spotted by Neil Booth. | |
14212 | ||
8e03724b AD |
14213 | 2000-10-04 Akim Demaille <akim@epita.fr> |
14214 | ||
14215 | When a literal string is used to define two different tokens, | |
14216 | `bison -v' segfaults. | |
14217 | Reported by Piotr Gackiewicz, and fixed by Neil Booth. | |
14218 | ||
14219 | * tests/regression.m4: New file. | |
14220 | Include the core of the sample provided by Piotr Gackiewicz. | |
14221 | * src/reader.c (parse_token_decl): Diagnose bad cases, and proceed | |
14222 | properly. | |
14223 | ||
a9e64249 AD |
14224 | 2000-10-04 Akim Demaille <akim@epita.fr> |
14225 | ||
14226 | * src/reader.c (parse_expect_decl): Keep `count' within the size | |
14227 | of `buffer'. | |
14228 | From Neil Booth. | |
14229 | ||
da9abf43 AD |
14230 | 2000-10-02 Paul Eggert <eggert@twinsun.com> |
14231 | ||
14232 | * bison.s1 (yyparse): Assign the default value | |
14233 | unconditionally, to avoid a GCC warning and make the parser a | |
14234 | tad smaller. | |
14235 | ||
c33638bb AD |
14236 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14237 | ||
14238 | * src/getargs.c (getargs): Don't dump `--help' on unrecognized | |
14239 | options. | |
14240 | ||
444c570a AD |
14241 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14242 | ||
14243 | * src/derives.c, src/print.c, src/reduce.c: To ease the | |
14244 | translation, move some `\n' out of the translated strings. | |
14245 | ||
89cab50d AD |
14246 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14247 | ||
14248 | The location tracking mechanism is precious for parse error | |
14249 | messages. Nevertheless, it is enabled only when `@n' is used in | |
14250 | the grammar, which is a different issue (you can use it in error | |
14251 | message, but not in the grammar per se). Therefore, there should | |
14252 | be another means to enable it. | |
14253 | ||
14254 | * src/getargs.c (getargs): Support `--locations'. | |
14255 | (usage): Report it. | |
14256 | * src/getargs.h (locationsflag): Export it. | |
14257 | * src/lex.c (percent_table): Support `%locations'. | |
14258 | * src/reader.c (yylsp_needed): Remove this variable, now replaced | |
14259 | with `locationsflag'. | |
14260 | * doc/bison.texinfo: Document `--locations' and `%locations'. | |
14261 | Sort the options. | |
14262 | * tests/calc.m4: Test it. | |
14263 | ||
14264 | For regularity of the names, replace each | |
14265 | (nolineflag, toknumflag, rawtokenumflag, noparserflag): with... | |
14266 | (no_lineflag, token_tableflag, rawflag, no_parserflag): this. | |
14267 | In addition replace each `flag' with `_flag'. | |
14268 | ||
d6c2cba0 AD |
14269 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14270 | ||
14271 | Also test parse error messages, including with YYERROR_VERBOSE. | |
14272 | ||
14273 | * tests/calc.m4 (calc.y): Add support for `exp = exp' (non | |
14274 | associative). | |
14275 | Use it to check the computations. | |
14276 | Use it to check `nonassoc' is honored. | |
14277 | (AT_DATA_CALC_Y): Equip `calc.y' with YYERROR_VERBOSE when passed | |
14278 | `--yyerror-verbose'. | |
14279 | (_AT_CHECK_CALC): Adjust to this option. | |
14280 | (_AT_CHECK_CALC_ERROR): New macro to check parse error messages. | |
14281 | ||
5a35a6cb AD |
14282 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14283 | ||
14284 | Test also `--verbose', `--defines' and `--name-prefix'. Testing | |
14285 | the latter demonstrates a flaw in the handling of non debugging | |
14286 | parsers introduced by myself on 2000-03-16: `#define yydebug 0' | |
14287 | was used in order to simplify: | |
14288 | ||
14289 | #if YYDEBUG | |
14290 | if (yydebug) | |
14291 | { | |
14292 | ... | |
14293 | } | |
14294 | #endif | |
14295 | ||
14296 | into | |
14297 | ||
14298 | if (yydebug) | |
14299 | { | |
14300 | ... | |
14301 | } | |
14302 | ||
14303 | unfortunately this leads to a CPP conflict when | |
14304 | `--name-prefix=foo' is used since it produces `#define yydebug | |
14305 | foodebug'. | |
14306 | ||
14307 | * src/bison.s1 [!YYDEBUG]: Do not define yydebug. | |
14308 | (YYDPRINTF): New macro. | |
14309 | Spread its use. | |
14310 | * tests/calc.m4 (AT_CHECK_CALC): Do require a title, build it from | |
14311 | the bison options. | |
14312 | Also test `--verbose', `--defines' and `--name-prefix'. | |
14313 | ||
71da9eea AD |
14314 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14315 | ||
14316 | Improve the readability of the produced parsers. | |
14317 | ||
14318 | * src/bison.s1: Formatting changes. | |
14319 | Improve the comment related to the `$' mark. | |
14320 | (yydefault): Don't fall through to `yyresume': `goto' there. | |
14321 | * src/output.c (output_parser): When the `$' is met, skip the end | |
14322 | of its line. | |
14323 | New variable, `number_of_dollar_signs', to check there's exactly | |
14324 | one `$' in the parser skeleton. | |
14325 | ||
95e36146 AD |
14326 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14327 | ||
14328 | * lib/xstrdup.c: New file, from the fileutils. | |
14329 | * src/reader.c (parse_token_decl, get_type_name, parse_type_decl) | |
14330 | (parse_assoc_decl, parse_thong_decl, get_type): Use `xstrdup' | |
14331 | instead of strlen + xmalloc + strcpy. | |
14332 | * src/symtab.c (copys): Remove, use xstrdup instead. | |
14333 | ||
d7020c20 AD |
14334 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14335 | ||
14336 | * src/gram.h (associativity): New enum type which replaces the | |
14337 | former CPP macros `RIGHT_ASSOC', `LEFT_ASSOC' and `NON_ASSOC' with | |
14338 | `right_assoc', `left_assoc' and `non_assoc'. | |
14339 | Adjust all dependencies. | |
14340 | * src/reader.c: Formatting changes. | |
14341 | (LTYPESTR): Don't define it, use it as a literal in | |
14342 | `reader_output_yylsp'. | |
14343 | * src/symtab.h (symbol_class): New enum type which replaces the | |
14344 | former CPP macros `SUNKNOWN', `STOKEN and `SNTERM' with | |
14345 | `sunknown', `stoken and `snterm'. | |
14346 | ||
1916f98e AD |
14347 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14348 | ||
14349 | * src/getargs.c (fixed_outfiles): Rename as... | |
14350 | (yaccflag): for consistency and accuracy. | |
14351 | Adjust dependencies. | |
14352 | ||
d7913476 AD |
14353 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14354 | ||
14355 | Use the more standard files `xalloc.h' and `xmalloc.c' instead of | |
14356 | Bison's `allocate.c' and `alloc.h'. This patch was surprisingly | |
14357 | difficult and introduced a lot of core dump. It turns out that | |
14358 | Bison used an implementation of `xmalloc' based on `calloc', and | |
14359 | at various places it does depend upon the initialization to 0. I | |
14360 | have not tried to isolate the pertinent places, and all the former | |
14361 | calls to Bison's `xmalloc' are now using `XCALLOC'. Someday, | |
14362 | someone should address this issue. | |
14363 | ||
14364 | * src/allocate.c, src/alloc.h, m4/bison-decl.m4: Remove. | |
14365 | * lib/xmalloc.c, lib/xalloc.h, m4/malloc.m4, m4/realloc.m4: New | |
14366 | files. | |
14367 | Adjust dependencies. | |
14368 | * src/warshall.h: New file. | |
14369 | Propagate. | |
14370 | ||
340ef489 AD |
14371 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14372 | ||
14373 | Various anti-`extern in *.c' changes. | |
14374 | ||
14375 | * src/system.h: Include `assert.h'. | |
14376 | ||
b2ca4022 AD |
14377 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14378 | ||
14379 | * src/state.h (nstates, final_state, first_state, first_shift) | |
14380 | (first_reduction): Move their exportation from here... | |
14381 | * src/LR0.h: to here. | |
14382 | Adjust dependencies. | |
14383 | * src/getargs.c (statisticsflag): New variable. | |
14384 | Add support for `--statistics'. | |
14385 | Adjust dependencies. | |
14386 | ||
14387 | Remove a lot of now useless `extern' statements in most files. | |
14388 | ||
403b315b AD |
14389 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14390 | ||
14391 | * src/LR0.h: New file. | |
14392 | Propagate its use. | |
14393 | ||
07a58c13 AD |
14394 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14395 | ||
14396 | * src/print.h: New file. | |
14397 | Propagate its use. | |
14398 | * src/print.c: Formatting and ordering changes. | |
14399 | (verbose, terse): Replace with... | |
14400 | (print_results): this new function. | |
14401 | Adjust dependencies. | |
14402 | ||
0619caf0 AD |
14403 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14404 | ||
14405 | * src/conflicts.c (conflict_report): New function. | |
14406 | (conflict_log, verbose_conflict_log): Replace with... | |
14407 | (print_conflicts): this function. | |
14408 | Adjust dependencies. | |
14409 | * src/conflicts.h: New file. | |
14410 | Propagate its inclusion. | |
14411 | ||
3519ec76 AD |
14412 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14413 | ||
14414 | * src/nullable.h: New file. | |
14415 | Propagate its inclusion. | |
14416 | * src/nullable.c: Formatting changes. | |
14417 | ||
015acc48 AD |
14418 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14419 | ||
14420 | * src/reduce.h: New file. | |
14421 | Propagate its inclusion. | |
14422 | * src/reduce.c: Topological sort and other formatting changes. | |
14423 | (bool, TRUE, FALSE): Move their definition to... | |
14424 | * src/system.h: here. | |
14425 | ||
8963a27b AD |
14426 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14427 | ||
14428 | * src/files.c: Formatting changes. | |
14429 | (tryopen, tryclose, openfiles): Rename as... | |
14430 | (xfopen, xfclose, open_files): this. | |
14431 | (stringappend): static. | |
14432 | * src/files.h: Complete the list of exported symbols. | |
14433 | Propagate its use. | |
14434 | ||
a70083a3 AD |
14435 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14436 | ||
14437 | * src/reader.h: New file. | |
14438 | Propagate its use instead of tedious list of `extern' and | |
14439 | prototypes. | |
14440 | * src/reader.c: Formatting changes, topological sort, | |
14441 | s/register//. | |
14442 | ||
abadc117 AD |
14443 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14444 | ||
14445 | * src/lex.h: Prototype `lex.c' exported functions. | |
14446 | * src/reader.c: Adjust. | |
14447 | * src/lex.c: Formatting changes. | |
14448 | (safegetc): Rename as... | |
14449 | (xgetc): this. | |
14450 | ||
720d742f AD |
14451 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14452 | ||
14453 | * src/lalr.h: New file. | |
14454 | Propagate its inclusion instead of prototypes and `extern'. | |
14455 | * src/lalr.c: Formatting changes, topological sorting etc. | |
14456 | ||
f2acea59 AD |
14457 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14458 | ||
14459 | * src/output.c (token_actions): Introduce a temporary array, | |
14460 | YYDEFACT, that makes it possible for this function to use | |
14461 | output_short_table. | |
14462 | ||
d019d655 AD |
14463 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14464 | ||
14465 | `user_toknums' is output as a `short[]' in `output.c', while it is | |
14466 | defined as a `int[]' in `reader.c'. For consistency with the | |
14467 | other output tables, `user_toknums' is now defined as a table of | |
14468 | shorts. | |
14469 | ||
14470 | * src/reader.c (user_toknums): Be a short table instead of an int | |
14471 | table. | |
14472 | Adjust dependencies. | |
14473 | ||
14474 | Factor the short table outputs. | |
14475 | ||
14476 | * src/output.c (output_short_table): New function. | |
14477 | * src/output.c (output_gram, output_stos, output_rule_data) | |
14478 | (output_base, output_table, output_check): Use it. | |
14479 | ||
6c89f1c1 AD |
14480 | 2000-10-02 Akim Demaille <akim@epita.fr> |
14481 | ||
14482 | * src/output.c (output): Topological sort of the functions, in | |
14483 | order to get rid of the `static' prototypes. | |
14484 | No longer use `register'. | |
14485 | * src/output.h: New file. | |
14486 | Propagate its inclusion in files explicitly prototyping functions | |
14487 | from output.c. | |
14488 | ||
d9efd181 AD |
14489 | 2000-09-21 Akim Demaille <akim@epita.fr> |
14490 | ||
14491 | * src/atgeneral.m4: Update from Autoconf. | |
14492 | ||
c29240e7 | 14493 | 2000-09-21 Akim Demaille <akim@epita.fr> |
2fa6973e AD |
14494 | |
14495 | * src/closure.h: New file. | |
14496 | * src/closure.c: Formatting changes, topological sort over the | |
14497 | functions, use of closure.h. | |
14498 | (initialize_closure, finalize_closure): Rename as... | |
14499 | (new_closure, free_closure): these. Adjust dependencies. | |
14500 | * src/LR0.c: Formatting changes, topological sort, use of | |
14501 | cloture.h. | |
14502 | (initialize_states): Rename as... | |
14503 | (new_states): this. | |
14504 | * src/Makefile.am (noinst_HEADERS): Adjust. | |
14505 | ||
499daa50 AD |
14506 | 2000-09-20 Akim Demaille <akim@epita.fr> |
14507 | ||
14508 | * src/acconfig.h: Don't protect config.h against multiple | |
14509 | inclusion. | |
14510 | Don't define PARAMS. | |
14511 | * src/system.h: Define PARAMS. | |
14512 | Remove some of the ad-hoc CPP magic for DOS, VMS etc.: this is the | |
14513 | purpose of config.h. system.h must not try to fix wrong | |
14514 | definitions in config.h. | |
14515 | ||
cc84fd5d AD |
14516 | 2000-09-20 Akim Demaille <akim@epita.fr> |
14517 | ||
14518 | * src/derives.h: New file. | |
14519 | * src/main.c, src/derives.h: Use it. | |
14520 | Formatting changes. | |
14521 | * src/Makefile.am (noinst_HEADERS): Adjust. | |
14522 | ||
db5b3a89 AD |
14523 | 2000-09-20 Akim Demaille <akim@epita.fr> |
14524 | ||
14525 | * tests/atgeneral.m4: Update from Autoconf. | |
14526 | * tests/calc.m4 (_AT_DATA_CALC_Y, AT_DATA_CALC_Y, _AT_CHECK_CALC) | |
14527 | (AT_CHECK_CALC): New macros. | |
14528 | Use these macros to test bison with options `', `--raw', | |
14529 | `--debug', `--yacc', `--yacc --debug'. | |
14530 | ||
ceed8467 AD |
14531 | 2000-09-19 Akim Demaille <akim@epita.fr> |
14532 | ||
14533 | * src/output.c: Formatting changes. | |
14534 | * src/machine.h: Remove, leaving its contents in... | |
14535 | * src/system.h: here. | |
14536 | Include stdio.h. | |
14537 | Adjust all dependencies on stdio.h and machine.h. | |
14538 | * src/getargs.h: New file. | |
14539 | Let all `extern' declarations about getargs.c be replaced with | |
14540 | inclusion of `getargs.h'. | |
14541 | * src/Makefile.am (noinst_HEADERS): Adjust. | |
14542 | ||
14543 | * tests/calc.m4 (yyin): Be initialized in main, not on the global | |
14544 | scope. | |
14545 | (yyerror): Returns void, not int. | |
14546 | * doc/bison.texinfo: Formatting changes. | |
14547 | ||
05a1d24b AD |
14548 | 2000-09-19 Akim Demaille <akim@epita.fr> |
14549 | ||
14550 | * tests/calc.m4 (calc.y): Do not assign to stdin, as it's not | |
14551 | portable. | |
14552 | ||
cbd25751 AD |
14553 | 2000-09-18 Akim Demaille <akim@epita.fr> |
14554 | ||
14555 | * configure.in: Append WARNING_CFLAGS to CFLAGS. | |
14556 | * src/Makefile.am (INCLUDES): Don't. | |
14557 | Be ready to fetch headers in lib/. | |
14558 | ||
13863333 AD |
14559 | 2000-09-18 Akim Demaille <akim@epita.fr> |
14560 | ||
14561 | * doc/bison.texinfo: Update the copyright. | |
14562 | ANSIfy and GNUify the examples. | |
14563 | Remove the old menu. | |
14564 | ||
0d533154 AD |
14565 | 2000-09-18 Akim Demaille <akim@epita.fr> |
14566 | ||
14567 | First set of tests: use the `calc' example from the documentation. | |
14568 | ||
14569 | * src/bison.s1 (yyparse): Condition the code using `yytname' which | |
14570 | is defined only when YYDEBUG is. | |
14571 | * m4/atconfig.m4 (AT_CONFIG): Adjust to Autoconf 2.13. | |
14572 | * src/files.c (tryopen, tryclose): Formatting changes. | |
14573 | Move to the top and be static. | |
14574 | * src/reader.c (read_signed_integer): Likewise. | |
14575 | * tests/calc.m4: New file. | |
14576 | * Makefile.am, suite.m4: Adjust. | |
14577 | * m4/atconfig.m4: Set BISON_SIMPLE and BISON_HAIRY. | |
14578 | ||
e79137ac AD |
14579 | 2000-09-18 Akim Demaille <akim@epita.fr> |
14580 | ||
14581 | Add support for an Autotest test suite for Bison. | |
14582 | ||
14583 | * m4/m4.m4, m4/atconfig.m4: New files. | |
14584 | * m4/Makefile.am (EXTRA_DIST): Adjust. | |
14585 | * tests/suite.m4, tests/Makefile.am, tests/atgeneral.m4: New | |
14586 | files. | |
14587 | * src/getargs.c: Display a more standard --version message. | |
14588 | * src/reader.c (reader): Formatting changes. | |
14589 | No longer depend upon VERSION_STRING. | |
14590 | * configure.in: No longer use `dnl'. | |
14591 | Set up the test suite and the new directory `tests/. | |
14592 | (VERSION_STRING): Remove. | |
14593 | ||
27821bff AD |
14594 | 2000-04-14 Akim Demaille <akim@epita.fr> |
14595 | ||
14596 | * src/reader.c (copy_comment2): New function, same as former | |
14597 | `copy_comment', but outputs into two FILE *. | |
14598 | (copy_comment): Use it. | |
14599 | (parse_union_decl): Use it. | |
14600 | (get_type, parse_start_decl): Use the same `invalid' message. | |
14601 | (parse_start_decl, parse_union_decl): Use the same `multiple' | |
14602 | message. | |
14603 | (parse_union_decl, copy_guard, copy_action): Use the same | |
14604 | `unmatched' message. | |
14605 | * m4/Makefile.am (EXTRA_DIST): Add `warning.m4'. | |
14606 | ||
cfe5fbc0 AD |
14607 | 2000-03-31 Akim Demaille <akim@epita.fr> |
14608 | ||
14609 | * src/files.c (tryopen, tryclose): Move to the top. | |
14610 | Be static. | |
14611 | ||
cb7db13e AD |
14612 | 2000-03-31 Akim Demaille <akim@epita.fr> |
14613 | ||
14614 | * src/main.c (main): Don't call `done', exit does it. | |
14615 | ||
a0f6b076 AD |
14616 | 2000-03-31 Akim Demaille <akim@epita.fr> |
14617 | ||
36281465 AD |
14618 | * allocate.c: s/return (foo)/return foo/. |
14619 | * lalr.c: Likewise. | |
14620 | * LR0.c: Likewise. | |
14621 | * output.c: Likewise. | |
14622 | * reader.c: Likewise. | |
14623 | * symtab.c: Likewise. | |
14624 | * vmsgetargs.c: Likewise. | |
14625 | ||
14626 | 2000-03-31 Akim Demaille <akim@epita.fr> | |
14627 | ||
14628 | Clean up the error reporting functions. | |
a0f6b076 AD |
14629 | |
14630 | * src/report.c: New file. | |
14631 | * src/report.h: Likewise. | |
14632 | * src/Makefile.am: Adjust. | |
14633 | * m4/error.m4: New file. | |
14634 | * m4/Makefile.am: Adjust. | |
14635 | * configure.in (jm_PREREQ_ERROR): Call it. | |
14636 | * src/main.c (int_to_string, banner, fatal_banner, warn_banner): | |
14637 | Remove. | |
14638 | (fatal, fatals): Remove. All callers use complain.c::fatal. | |
14639 | (warn, warni, warns, warnss, warnss): Remove. All callers use | |
14640 | complain.c::complain. | |
14641 | (toomany): Remove, use fatal instead. | |
14642 | * src/files.c (done): No argument, use complain_message_count. | |
14643 | * src/main.c (main): Register `done' to `atexit'. | |
14644 | ||
14645 | * src/getargs.c (usage): More `fputs', less `fprintf'. | |
14646 | ||
18539825 AD |
14647 | 2000-03-28 Akim Demaille <akim@epita.fr> |
14648 | ||
14649 | * lib/: New directory. | |
14650 | * Makefile.am (SUBDIRS): Adjust. | |
14651 | * configure.in: Adjust. | |
14652 | (LIBOBJS): Although not used yet, AC_SUBST it, otherwise it's | |
14653 | useless. | |
14654 | * src/alloca.c: Moved to lib/. | |
14655 | * src/getopt.c: Likewise. | |
14656 | * src/getopt1.c: Likewise. | |
14657 | * src/getopt.h: Likewise. | |
14658 | * src/ansi2knr.c: Likewise. | |
14659 | * src/ansi2knr.1: Likewise. | |
14660 | * src/Makefile.am: Adjust. | |
14661 | * lib/Makefile.am: New file. | |
14662 | ||
9f306f2a AD |
14663 | 2000-03-28 Akim Demaille <akim@epita.fr> |
14664 | ||
14665 | * src/getargs.c (usage): Refresh the help message. | |
14666 | ||
0ba347b6 AD |
14667 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14668 | ||
14669 | * src/getopt1.c: Updated from textutils 2.0e | |
14670 | * src/getopt.c: Likewise. | |
14671 | * src/getopt.h: Likewise. | |
14672 | ||
dbe7f271 AD |
14673 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14674 | ||
14675 | * src/Makefile.am (bison.simple): Fix the awk program: quote only | |
14676 | the file name, not the whole `#line LINE FILE'. | |
14677 | ||
75bbe78d AD |
14678 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14679 | ||
14680 | On syntax errors, report the token on which we choked. | |
14681 | ||
aa5fd0ee AD |
14682 | * src/bison.s1 (yyparse): In the label yyerrlab, when |
14683 | YYERROR_VERBOSE, add yychar in msg. | |
75bbe78d | 14684 | |
7b306f52 AD |
14685 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14686 | ||
aa5fd0ee | 14687 | * src/reader.c (copy_at): New function. |
7b306f52 AD |
14688 | (copy_guard): Use it. |
14689 | (copy_action): Use it. | |
14690 | ||
e87b5700 AD |
14691 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14692 | ||
14693 | Be kind to translators, save some useless translations. | |
14694 | ||
aa5fd0ee | 14695 | * src/main.c (banner): New function. |
e87b5700 AD |
14696 | (fatal_banner): Use it. |
14697 | (warn_banner): Use it. | |
14698 | ||
ae3c3164 AD |
14699 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14700 | ||
aa5fd0ee AD |
14701 | * src/reader.c (copy_definition): Use copy_string and |
14702 | copy_comment. Removed now unused `match', `ended', | |
14703 | `cplus_comment'. | |
ae3c3164 AD |
14704 | (copy_comment, copy_string): Moved, to be visible from |
14705 | copy_definition. | |
14706 | ||
4dc58e7c AD |
14707 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14708 | ||
aa5fd0ee AD |
14709 | * src/reader.c (copy_string): Declare `static inline'. No |
14710 | problems with inline, since it is checked by configure. | |
4dc58e7c AD |
14711 | (copy_comment): Likewise. |
14712 | ||
0a6384c4 AD |
14713 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14714 | ||
aa5fd0ee | 14715 | * src/reader.c (packsymbols): Formatting changes. |
0a6384c4 | 14716 | |
3cef001a AD |
14717 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14718 | ||
aa5fd0ee | 14719 | * src/reader.c (copy_comment): New function, factored out from: |
3cef001a AD |
14720 | (copy_action): Use it. Removed now unused `match', `ended', |
14721 | `cplus_comment'. | |
14722 | (copy_guard): Likewise. | |
14723 | ||
ca36d2ef AD |
14724 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14725 | ||
aa5fd0ee | 14726 | * src/reader.c (copy_string): New function, factored out from: |
ca36d2ef AD |
14727 | (copy_action): Use it. |
14728 | (copy_guard): Likewise. | |
14729 | ||
6666f98f AD |
14730 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14731 | ||
14732 | Change the handling of @s so that they behave exactly like $s. | |
14733 | There is now a pseudo variable @$ (readble and writable), location | |
14734 | of the lhs of the rule (by default ranging from the location of | |
14735 | the first symbol of the rhs, to the location of the last symbol, | |
14736 | or, if the rhs is empty, YYLLOC). | |
14737 | ||
14738 | * src/bison.s1 [YYLSP_NEEDED] (yyloc): New variable, twin of | |
14739 | yyval. | |
14740 | (yyparse): When providing a default semantic action, provide a | |
14741 | default location action. | |
14742 | (after the $): No longer change `*YYLSP', just stack YYLOC the | |
14743 | same way you stack YYVAL. | |
14744 | * src/reader.c (read_declarations): Use warns. | |
14745 | (copy_guard, case '@'): Also recognize `@$', expanded as `YYLOC'. | |
14746 | (copy_action, case '@'): Likewise. | |
14747 | Use a standard error message, to save useless work from | |
14748 | translators. | |
14749 | ||
41aca2e0 AD |
14750 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14751 | ||
aa5fd0ee AD |
14752 | * src/bison.s1: Formatting and cosmetics changes. |
14753 | * src/reader.c: Likewise. | |
41aca2e0 AD |
14754 | Update the Copyright notice. |
14755 | ||
dc08c1d5 AD |
14756 | 2000-03-17 Akim Demaille <akim@epita.fr> |
14757 | ||
aa5fd0ee AD |
14758 | * src/bison.s1 (#line): All set to `#line' only, since the |
14759 | Makefile now handles them. | |
dc08c1d5 | 14760 | |
9ee3c97b AD |
14761 | 2000-03-16 Akim Demaille <akim@epita.fr> |
14762 | ||
14763 | * src/output.c (output_rule_data): Output the documentation of | |
14764 | some of the tables. | |
14765 | (Copyright notice): Update. | |
14766 | Formatting changes. | |
14767 | ||
0de741ca AD |
14768 | 2000-03-16 Akim Demaille <akim@epita.fr> |
14769 | ||
14770 | * src/bison.s1 [!YYDEBUG]: Define yydebug to 0. This allows to | |
14771 | remove most `#if YYDEBUG != 0', since `if (yydebug)' is enough. | |
14772 | One `#if YYDEBUG' remains, since it uses variables which are | |
14773 | defined only if `YYDEBUG != 0'. | |
14774 | ||
bb10be54 AD |
14775 | 2000-03-16 Akim Demaille <akim@epita.fr> |
14776 | ||
14777 | * src/bison.s1 (yyparse): Reorganize the definitions of the stacks | |
14778 | and related variables so that the similarities are highlighted. | |
14779 | ||
b07b484a AD |
14780 | 2000-03-16 Akim Demaille <akim@epita.fr> |
14781 | ||
14782 | * src/bison.s1: Properly indent CPP directives. | |
14783 | ||
361f60b3 AD |
14784 | 2000-03-16 Akim Demaille <akim@epita.fr> |
14785 | ||
14786 | * src/bison.s1: Properly indent the `alloca' CPP section. | |
14787 | ||
8c44d3ec AD |
14788 | 2000-03-16 Akim Demaille <akim@epita.fr> |
14789 | ||
14790 | Do not hard code values of directories in `configure.in'. | |
14791 | Update the `configure' tool chain. | |
14792 | ||
14793 | * configure.in (XPFILE, XPFILE1, LOCALEDIR): Remove, handled by | |
14794 | src/makefile.am. | |
14795 | (VERSION_STRING): Use the third arg of AC_DEFINE_UNQUOTED. | |
14796 | (AC_OUTPUT): Add m4/Makefile. | |
14797 | Bump to bison 1.28a, 1.29 has never been released. | |
14798 | * acconfig.h (XPFILE, XPFILE1, LOCALEDIR): Remove, since they are | |
14799 | handled via src/Makefile.am. | |
14800 | (VERSION_STRING, PROTOTYPES, ENABLE_NLS, HAVE_CATGETS, | |
14801 | HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): Remove, handled by | |
14802 | autoheader. | |
14803 | * Makefile.am (SUBDIRS): Add m4. | |
14804 | (ACLOCAL_AM_FLAGS): New variable. | |
14805 | (AUTOMAKE_OPTIONS): Add check-news. | |
14806 | * src/Makefile.am (bison.simple): Use awk to replace #line lines with | |
14807 | the proper line number and file name. | |
14808 | (DEFS): Propagate the location of bison library files and of the | |
14809 | locale files. | |
14810 | (INCLUDES): Added `-I ..' so that one can compile with srcdir != | |
14811 | builddir. | |
14812 | * acinclude.m4: Remove, replaced by the directory m4. | |
14813 | * m4/Makefile.am (EXTRA_DIST): New variable. | |
14814 | * m4/gettext.m4: New file, from the fileutils. | |
14815 | * m4/lcmessage.m4: Likewise | |
14816 | * m4/progtest.m4: Likewise. | |
14817 | * m4/bison-decl.m4: New file, extracted from former acinclude.m4. | |
14818 | ||
f95997e7 AD |
14819 | 2000-03-10 Akim Demaille <akim@epita.fr> |
14820 | ||
14821 | * src/closure.c: | |
14822 | Formatting changes of various comments. | |
14823 | Respect the GNU coding standards at various places. | |
14824 | Don't use `_()' when no translation is needed. | |
14825 | ||
14826 | 1999-12-13 Jesse Thilo <jthilo@gnu.org> | |
14827 | ||
14828 | * src/files.c: | |
14829 | OS/2 honors TMPDIR environment variable. | |
14830 | ||
14831 | 1999-12-13 Jesse Thilo <jthilo@gnu.org> | |
14832 | ||
14833 | * doc/bison.texinfo: Tweaked spelling and grammar. | |
14834 | Updated ISBN. | |
14835 | Removed reference to price of printed copy. | |
14836 | Mention BISON_SIMPLE and BISON_HAIRY. | |
14837 | ||
14838 | 1999-12-13 Jesse Thilo <jthilo@gnu.org> | |
14839 | ||
14840 | * configure.in, NEWS: | |
14841 | Bison 1.29 released. | |
14842 | ||
14843 | 1999-10-27 Jesse Thilo <jthilo@gnu.org> | |
14844 | ||
14845 | * doc/.cvsignore, doc/Makefile.am, doc/refcard.tex: | |
14846 | Added reference card. | |
14847 | ||
14848 | 1999-07-26 Jesse Thilo <jthilo@gnu.org> | |
14849 | ||
14850 | * po/ru.po: Added Russian translation. | |
14851 | ||
14852 | 1999-07-26 Jesse Thilo <jthilo@gnu.org> | |
14853 | ||
14854 | * configure.in: Added Russian translation. | |
14855 | ||
14856 | 1999-07-06 Jesse Thilo <jthilo@gnu.org> | |
14857 | ||
14858 | * configure.in, NEWS, README: | |
14859 | Released version 1.28. | |
14860 | ||
14861 | 1999-06-14 Jesse Thilo <jthilo@gnu.org> | |
14862 | ||
14863 | * src/system.h: | |
14864 | Squashed redefinition warning on some systems. | |
14865 | ||
14866 | * src/getargs.c, src/Makefile.am, src/reader.c, src/version.c: | |
14867 | Have configure build version string instead of relying on ANSI string | |
14868 | concatentation. | |
14869 | ||
14870 | 1999-06-14 Jesse Thilo <jthilo@gnu.org> | |
14871 | ||
14872 | * po/POTFILES.in: Got rid of version.c. | |
14873 | ||
14874 | 1999-06-14 Jesse Thilo <jthilo@gnu.org> | |
14875 | ||
14876 | * acconfig.h, configure.in: | |
14877 | Have configure build version string instead of relying on ANSI string | |
14878 | concatentation. | |
14879 | ||
14880 | 1999-06-08 Jesse Thilo <jthilo@gnu.org> | |
14881 | ||
14882 | * doc/bison.1: | |
14883 | Dropped mention of `+' for long-named options. | |
14884 | ||
14885 | 1999-05-30 Jesse Thilo <jthilo@gnu.org> | |
14886 | ||
14887 | * src/files.c: Added <unistd.h> for unlink(). | |
14888 | ||
14889 | * src/Makefile.am, src/system.h: | |
14890 | I18n fixes. | |
14891 | ||
14892 | 1999-05-30 Jesse Thilo <jthilo@gnu.org> | |
14893 | ||
14894 | * README: Added a FAQ list. | |
14895 | ||
14896 | * configure.in, acconfig.h: | |
14897 | I18n fixes. | |
14898 | ||
14899 | 1999-05-30 Jesse Thilo <jthilo@gnu.org> | |
14900 | ||
14901 | * doc/FAQ, doc/Makefile.am: | |
14902 | Added a FAQ list. | |
14903 | ||
14904 | 1999-05-19 Jesse Thilo <jthilo@gnu.org> | |
14905 | ||
14906 | * src/alloc.h, src/symtab.h, src/version.c: | |
14907 | Protected inclusion of "config.h" with HAVE_CONFIG_H. | |
14908 | ||
14909 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
14910 | ||
14911 | * src/.cvsignore, src/Makefile.am: | |
14912 | Reorganized: sources in `src', documentation in `doc'. | |
14913 | ||
14914 | * src/lex.c (literalchar): | |
14915 | fixed the code for escaping double quotes (thanks | |
14916 | Jonathan Czisny.) | |
14917 | ||
14918 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
14919 | ||
14920 | * po/de.po, po/es.po, po/fr.po, po/nl.po, po/POTFILES.in: | |
14921 | Adjusted paths to reflect directory reorganization. | |
14922 | ||
14923 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
14924 | ||
14925 | * doc/.cvsignore, doc/Makefile.am: | |
14926 | Reorganized: sources in `src', documentation in `doc'. | |
14927 | ||
14928 | 1999-04-18 Jesse Thilo <jthilo@gnu.org> | |
14929 | ||
14930 | * configure.in: | |
14931 | Updated AC_INIT file to reflect directory reorganization. | |
14932 | ||
14933 | * configure.in, .cvsignore, Makefile.am, POTFILES.in: | |
14934 | Reorganized: sources in `src', documentation in `doc'. | |
14935 | ||
14936 | 1999-04-13 Jesse Thilo <jthilo@gnu.org> | |
14937 | ||
14938 | * src/allocate.c: | |
14939 | Don't declare calloc() and realloc() if not necessary. | |
14940 | ||
14941 | 1999-04-13 Jesse Thilo <jthilo@gnu.org> | |
14942 | ||
14943 | * configure.in, acconfig.h, acinclude.m4: | |
14944 | Don't declare calloc() and realloc() if not necessary. | |
14945 | ||
14946 | 1999-03-23 Jesse Thilo <jthilo@gnu.org> | |
14947 | ||
14948 | * po/.cvsignore: Added i18n support. | |
14949 | ||
14950 | 1999-03-23 Jesse Thilo <jthilo@gnu.org> | |
14951 | ||
14952 | * acconfig.h, configure.in, Makefile.am: | |
14953 | Added i18n support. | |
14954 | ||
14955 | 1999-03-22 Jesse Thilo <jthilo@gnu.org> | |
14956 | ||
14957 | * src/bison.s1: Fixed #line numbers. | |
14958 | ||
14959 | 1999-03-15 Jesse Thilo <jthilo@gnu.org> | |
14960 | ||
14961 | * po/es.po, po/fr.po, po/nl.po, po/de.po: | |
14962 | Added PO files from Translation Project. | |
14963 | ||
14964 | 1999-03-03 Jesse Thilo <jthilo@gnu.org> | |
14965 | ||
14966 | * Makefile.am: | |
14967 | Added support for non-ANSI compilers (ansi2knr). | |
14968 | ||
14969 | 1999-02-16 Jesse Thilo <jthilo@gnu.org> | |
14970 | ||
14971 | * configure.in: Bumped version number to 1.27. | |
14972 | ||
14973 | * Makefile.am: | |
14974 | Added `bison.simple' to list of files removed by `make distclean'. | |
14975 | ||
14976 | 1999-02-12 Jesse Thilo <jthilo@gnu.org> | |
14977 | ||
14978 | * src/files.c, src/files.h: | |
14979 | Defined locations of parser files in config.h instead of Makefile. | |
14980 | ||
14981 | 1999-02-12 Jesse Thilo <jthilo@gnu.org> | |
14982 | ||
14983 | * acconfig.h, acinclude.m4, configure.in, Makefile.am: | |
14984 | Defined locations of parser files in config.h instead of Makefile. | |
14985 | ||
14986 | 1999-02-09 Jesse Thilo <jthilo@gnu.org> | |
14987 | ||
14988 | * Makefile.am: | |
14989 | Removed inappropriate use of $< macro. | |
14990 | ||
14991 | 1999-02-05 Jesse Thilo <jthilo@gnu.org> | |
14992 | ||
14993 | * po/Makefile.in.in, po/POTFILES.in: | |
14994 | Add `po' directory skeleton. | |
14995 | ||
14996 | 1999-01-27 Jesse Thilo <jthilo@gnu.org> | |
14997 | ||
14998 | * README: Document help-bison list. | |
14999 | ||
15000 | * configure.in: Add check for mkstemp(). | |
15001 | ||
15002 | 1999-01-20 Jesse Thilo <jthilo@gnu.org> | |
15003 | ||
15004 | * src/conflicts.c, src/LR0.c, src/output.c, src/reader.c: | |
15005 | Hush a few compiler warnings. | |
15006 | ||
15007 | * src/files.c: | |
15008 | Add tryclose(), which verifies that fclose was successful. | |
15009 | Hush a couple of compiler warnings. | |
15010 | ||
15011 | 1999-01-20 Jesse Thilo <jthilo@gnu.org> | |
15012 | ||
15013 | * Makefile.am, OChangeLog: | |
15014 | ChangeLog is now automatically generated. Include the old version as | |
15015 | OChangeLog. | |
15016 | ||
15017 | 1999-01-14 Jesse Thilo <jthilo@gnu.org> | |
15018 | ||
15019 | * 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: | |
15020 | Update FSF address. | |
15021 | ||
15022 | 1999-01-14 Jesse Thilo <jthilo@gnu.org> | |
15023 | ||
15024 | * doc/bison.texinfo: Fix formatting glitch. | |
15025 | ||
15026 | * doc/bison.texinfo: Update FSF address. | |
15027 | ||
15028 | 1999-01-14 Jesse Thilo <jthilo@gnu.org> | |
15029 | ||
15030 | * acconfig.h: Update FSF address. | |
15031 | ||
15032 | 1999-01-08 Jesse Thilo <jthilo@gnu.org> | |
15033 | ||
15034 | * src/system.h: | |
15035 | Don't define PACKAGE here, since config.h defines it. | |
15036 | ||
15037 | 1998-12-30 Jesse Thilo <jthilo@gnu.org> | |
15038 | ||
15039 | * src/reader.c: Update copyright date. | |
15040 | ||
15041 | * src/main.c: | |
15042 | Ditch sprintf to statically-sized buffers in fatal/warn functions in | |
15043 | favor of output directly to stderr (avoids buffer overruns). | |
15044 | ||
15045 | * src/reader.c: Some checks for premature EOF. | |
15046 | ||
15047 | * 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: | |
15048 | Use prototypes if the compiler understands them. | |
15049 | ||
15050 | * src/files.c: Honor TMPDIR on Unix hosts. | |
15051 | Use prototypes if the compiler understands them. | |
15052 | ||
15053 | * src/reader.c: | |
15054 | Fix a couple of buffer overrun bugs. | |
15055 | Use prototypes if the compiler understands them. | |
15056 | ||
15057 | * src/system.h: Include unistd.h and ctype.h. | |
15058 | Use #ifdef instead of #if for NLS symbols. | |
15059 | ||
15060 | 1998-12-30 Jesse Thilo <jthilo@gnu.org> | |
15061 | ||
15062 | * doc/bison.texinfo: | |
15063 | Delete comment "consider using @set for edition number, etc..." since | |
15064 | we now are doing so. | |
15065 | ||
15066 | 1998-12-30 Jesse Thilo <jthilo@gnu.org> | |
15067 | ||
15068 | * configure.in: | |
15069 | Use prototypes if the compiler understands them. | |
15070 | ||
15071 | * NEWS: Document 1.26 highlights. | |
15072 | ||
15073 | * Makefile.am: Require Automake 1.3 or later. | |
15074 | ||
15075 | * acconfig.h: | |
15076 | Use prototypes if the compiler understands them. | |
15077 | ||
15078 | 1998-12-29 Jesse Thilo <jthilo@gnu.org> | |
15079 | ||
15080 | * src/version.c: | |
15081 | Use VERSION symbol from automake for version number. | |
15082 | ||
15083 | 1998-12-29 Jesse Thilo <jthilo@gnu.org> | |
15084 | ||
15085 | * acconfig.h, configure.in, version.cin: | |
15086 | Use VERSION symbol from automake for version number. | |
15087 | ||
15088 | 1998-11-28 Jesse Thilo <jthilo@gnu.org> | |
15089 | ||
15090 | * Makefile.am: | |
15091 | Distribute original version of simple parser (bison.s1), not built | |
15092 | version (bison.simple). | |
15093 | ||
15094 | 1998-11-28 Jesse Thilo <jthilo@gnu.org> | |
15095 | ||
15096 | * doc/bison.texinfo: Add info dir entry. | |
15097 | ||
15098 | * doc/bison.texinfo: | |
15099 | Let automake put version number into documentation. | |
15100 | ||
15101 | 1998-11-26 Jesse Thilo <jthilo@gnu.org> | |
15102 | ||
15103 | * src/bison.cld, src/build.com, src/vmshlp.mar: | |
15104 | Add non-RCS files from /gd/gnu/bison. | |
15105 | ||
15106 | 1998-11-26 Jesse Thilo <jthilo@gnu.org> | |
15107 | ||
15108 | * doc/bison.1: | |
15109 | Document the BISON_HAIRY and BISON_SIMPLE variables. | |
15110 | ||
15111 | 1998-11-25 Jesse Thilo <jthilo@gnu.org> | |
15112 | ||
15113 | * src/version.c: Build version.c automatically. | |
15114 | ||
15115 | * src/reader.c: | |
15116 | Fix token numbering (used to start at 258, not 257). | |
15117 | ||
15118 | * src/system.h: Include config.h. | |
15119 | ||
15120 | * src/getargs.c: Update bug report address. | |
15121 | ||
15122 | * src/alloca.c, src/getopt1.c, src/getopt.c, src/getopt.h: | |
15123 | Get latest copies of alloca.c, getopt.c, getopt.h, getopt1.c from gnu.org. | |
15124 | ||
15125 | 1998-11-25 Jesse Thilo <jthilo@gnu.org> | |
15126 | ||
15127 | * Makefile.am: | |
15128 | Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1). | |
15129 | ||
15130 | * configure.in, version.cin: | |
15131 | Build version.c automatically. | |
15132 | ||
15133 | * AUTHORS: Add AUTHORS file. | |
15134 | ||
15135 | * README: Update bug report address. | |
15136 | ||
15137 | * bison.simple: | |
15138 | Rename bison.simple to bison.s1 (bison.simple is then built from bison.s1). | |
15139 | ||
15140 | * configure.in, Makefile.am, Makefile.in, stamp-h.in: | |
15141 | Add automake stuff. | |
15142 | ||
15143 | 1998-11-25 Jesse Thilo <jthilo@gnu.org> | |
15144 | ||
15145 | * doc/bison.texinfo: Clean up some formatting. | |
15146 | ||
15147 | 1998-05-05 Richard Stallman <rms@gnu.org> | |
15148 | ||
15149 | * doc/bison.texinfo: | |
15150 | Explain better why to make a pure parser. | |
15151 | ||
15152 | 1998-01-05 Richard Stallman <rms@gnu.org> | |
15153 | ||
15154 | * src/files.c (openfiles): | |
15155 | [_WIN32 && !__CYGWIN32__] Use TEMP or Temp to | |
15156 | find a temporary directory, if possible. Do not unlink files while | |
15157 | they are open. | |
15158 | ||
15159 | 1997-08-25 Richard Stallman <rms@gnu.org> | |
15160 | ||
15161 | * src/reader.c (stack_offset;): | |
15162 | Change some warni to warns. | |
15163 | ||
15164 | * src/lex.c (literalchar): Use warns, not warni. | |
15165 | ||
15166 | 1997-06-28 Richard Stallman <rms@gnu.org> | |
15167 | ||
15168 | * src/bison.s1: Add a Bison version comment. | |
15169 | ||
15170 | * src/main.c (fatal, warn, berror): | |
15171 | Use program_name. | |
15172 | ||
15173 | 1997-06-28 Richard Stallman <rms@gnu.org> | |
15174 | ||
15175 | * Makefile.in (bison_version): New variable. | |
15176 | (dist): Use that variable. | |
15177 | (bison.s1): Substitute the Bison version into bison.simple. | |
15178 | ||
15179 | * bison.simple: Add a Bison version comment. | |
15180 | ||
15181 | 1997-06-18 Richard Stallman <rms@gnu.org> | |
15182 | ||
15183 | * src/main.c (fatal, warn, berror): | |
15184 | Make error messages standard. | |
15185 | (toomany): Improve error message text. | |
15186 | ||
15187 | * 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: | |
15188 | new.h renamed to alloc.h. | |
15189 | ||
15190 | 1997-06-18 Richard Stallman <rms@gnu.org> | |
15191 | ||
15192 | * Makefile.in: new.h renamed to alloc.h. | |
15193 | ||
15194 | 1997-05-24 Richard Stallman <rms@gnu.org> | |
15195 | ||
15196 | * src/lex.c (literalchar): | |
15197 | Fix the code for escaping \, " and '. | |
15198 | ||
15199 | (lex): Avoid trouble when there are many chars | |
15200 | to discard in a char literal with just several chars in it. | |
15201 | ||
15202 | 1997-05-17 Richard Stallman <rms@gnu.org> | |
15203 | ||
15204 | * src/bison.s1: | |
15205 | Use malloc, if using alloca is troublesome. | |
15206 | (YYSTACK_USE_ALLOCA): New flag macro. | |
15207 | Define it for some systems and compilers. | |
15208 | (YYSTACK_ALLOC): New macro. | |
15209 | (yyparse): Use YYSTACK_ALLOC to allocate stack. | |
15210 | If it was malloc'd, free it. | |
15211 | ||
15212 | 1997-05-17 Richard Stallman <rms@gnu.org> | |
15213 | ||
15214 | * bison.simple: | |
15215 | Use malloc, if using alloca is troublesome. | |
15216 | (YYSTACK_USE_ALLOCA): New flag macro. | |
15217 | Define it for some systems and compilers. | |
15218 | (YYSTACK_ALLOC): New macro. | |
15219 | (yyparse): Use YYSTACK_ALLOC to allocate stack. | |
15220 | If it was malloc'd, free it. | |
15221 | ||
15222 | 1997-04-23 Richard Stallman <rms@gnu.org> | |
15223 | ||
15224 | * src/bison.s1: | |
15225 | (alloca) [__hpux]: Always define as __builtin_alloca. | |
15226 | ||
15227 | 1997-04-23 Richard Stallman <rms@gnu.org> | |
15228 | ||
15229 | * bison.simple: | |
15230 | (alloca) [__hpux]: Always define as __builtin_alloca. | |
15231 | ||
15232 | 1997-04-22 Richard Stallman <rms@gnu.org> | |
15233 | ||
15234 | * src/bison.s1: | |
15235 | [__hpux]: Include alloca.h (right for HPUX 10) | |
15236 | instead of declaring alloca (right for HPUX 9). | |
15237 | ||
15238 | * src/bison.s1 (__yy_memcpy): | |
15239 | Declare arg `count' as unsigned int. | |
15240 | (yyparse): Cast third arg to __yy_memcpy to unsigned int. | |
15241 | ||
15242 | 1997-04-22 Richard Stallman <rms@gnu.org> | |
15243 | ||
15244 | * bison.simple: | |
15245 | [__hpux]: Include alloca.h (right for HPUX 10) | |
15246 | instead of declaring alloca (right for HPUX 9). | |
15247 | ||
15248 | * bison.simple (__yy_memcpy): | |
15249 | Declare arg `count' as unsigned int. | |
15250 | (yyparse): Cast third arg to __yy_memcpy to unsigned int. | |
15251 | ||
15252 | 1997-01-03 Richard Stallman <rms@gnu.org> | |
15253 | ||
15254 | * src/allocate.c: [__STDC__ or _MSC_VER]: | |
15255 | Declare calloc and realloc to return void *. | |
15256 | ||
15257 | 1997-01-02 Richard Stallman <rms@gnu.org> | |
15258 | ||
15259 | * src/system.h: | |
15260 | [_MSC_VER]: Include stdlib.h and process.h. | |
15261 | [_MSC_VER] (getpid): Define as macro--translate it to _getpid. | |
15262 | ||
15263 | * src/main.c (main): Return FAILURE as a value. | |
15264 | (printable_version): Declare arg as int, not char. | |
15265 | ||
15266 | 1997-01-02 Richard Stallman <rms@gnu.org> | |
15267 | ||
15268 | * Makefile.in (dist): | |
15269 | Explicitly check for symlinks, and copy them. | |
15270 | ||
15271 | 1996-12-19 Richard Stallman <rms@gnu.org> | |
15272 | ||
15273 | * src/files.c: | |
15274 | [_MSC_VER] (XPFILE, XPFILE1): Define, if not already defined. | |
15275 | ||
15276 | 1996-12-18 Paul Eggert <eggert@gnu.org> | |
15277 | ||
15278 | * src/bison.s1 (yyparse): | |
15279 | If __GNUC__ and YYPARSE_PARAM are both defined, | |
15280 | declare yyparse to have a void * argument. | |
15281 | ||
15282 | 1996-12-18 Paul Eggert <eggert@gnu.org> | |
15283 | ||
15284 | * bison.simple (yyparse): | |
15285 | If __GNUC__ and YYPARSE_PARAM are both defined, | |
15286 | declare yyparse to have a void * argument. | |
15287 | ||
15288 | 1996-12-17 Richard Stallman <rms@gnu.org> | |
15289 | ||
15290 | * src/reduce.c (nbits): Add some casts. | |
15291 | ||
15292 | 1996-08-12 Richard Stallman <rms@gnu.org> | |
15293 | ||
15294 | * src/bison.s1: Test _MSDOS as well as _MSDOS_. | |
15295 | ||
15296 | 1996-08-12 Richard Stallman <rms@gnu.org> | |
15297 | ||
15298 | * bison.simple: Test _MSDOS as well as _MSDOS_. | |
15299 | ||
15300 | 1996-07-31 Richard Stallman <rms@gnu.org> | |
15301 | ||
15302 | * src/bison.s1: | |
15303 | [__sun && __i386]: Include alloca.h. | |
15304 | ||
15305 | 1996-07-31 Richard Stallman <rms@gnu.org> | |
15306 | ||
15307 | * bison.simple: | |
15308 | [__sun && __i386]: Include alloca.h. | |
15309 | ||
15310 | 1996-07-30 Richard Stallman <rms@gnu.org> | |
15311 | ||
15312 | * src/bison.s1: Comment change. | |
15313 | ||
15314 | * src/bison.s1: Test _MSDOS_, not MSDOS. | |
15315 | ||
15316 | 1996-07-30 Richard Stallman <rms@gnu.org> | |
15317 | ||
15318 | * bison.simple: Comment change. | |
15319 | ||
15320 | * bison.simple: Test _MSDOS_, not MSDOS. | |
15321 | ||
15322 | 1996-06-01 Richard Stallman <rms@gnu.org> | |
15323 | ||
15324 | * 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: | |
15325 | Insert `_' macro around many string constants. | |
15326 | ||
15327 | * src/main.c: | |
15328 | Insert `_' macro around many string constants. | |
15329 | ||
15330 | (main): Call setlocale, bindtextdomain and textdomain. | |
15331 | ||
15332 | * src/system.h: [HAVE_LOCALE_H]: Include locale.h. | |
15333 | [! HAVE_LOCALE_H] (setlocale): Define as no-op. | |
15334 | [ENABLE_NLS]: Include libintl.h. | |
15335 | [ENABLE_NLS] (gettext): Define. | |
15336 | [! ENABLE_NLS] (bintextdomain, textdomain, _): Consolation definitions. | |
15337 | (N_, PACKAGE, LOCALEDIR): New macros. | |
15338 | ||
15339 | 1996-06-01 Richard Stallman <rms@gnu.org> | |
15340 | ||
15341 | * POTFILES.in: New file. | |
15342 | ||
15343 | * Makefile.in (allocate.o): | |
15344 | Define target explicitly. | |
15345 | ||
15346 | * Makefile.in (CFLAGS): Set to @CFLAGS@. | |
15347 | (LDFLAGS): Set to @LDFLAGS@. | |
15348 | (configure): Run autoconf only if preceding `cd' succeeds. | |
15349 | (bison.s1): Redirect output to temporary file then move the | |
15350 | temporary to the target, rather than redirecting directly to bison.s1. | |
15351 | (clean): Remove config.status and config.log. | |
15352 | (distclean): Don't remove config.status here. | |
15353 | ||
15354 | 1996-05-12 Richard Stallman <rms@gnu.org> | |
15355 | ||
15356 | * src/bison.s1: | |
15357 | (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t. | |
15358 | ||
15359 | 1996-05-12 Richard Stallman <rms@gnu.org> | |
15360 | ||
15361 | * bison.simple: | |
15362 | (__yy_memcpy) [__cplusplus]: Reorder declarations of variables f and t. | |
15363 | ||
15364 | 1996-05-11 Richard Stallman <rms@gnu.org> | |
15365 | ||
15366 | * src/bison.s1 (__yy_memcpy): | |
15367 | Really reorder the args, as was supposedly done on Feb 14 1995. | |
15368 | (yyparse): Calls changed accordingly. | |
15369 | ||
15370 | 1996-05-11 Richard Stallman <rms@gnu.org> | |
15371 | ||
15372 | * Makefile.in (dist): Don't use $(srcdir). | |
15373 | ||
15374 | * bison.simple (__yy_memcpy): | |
15375 | Really reorder the args, as was supposedly done on Feb 14 1995. | |
15376 | (yyparse): Calls changed accordingly. | |
15377 | ||
15378 | 1996-01-27 Richard Stallman <rms@gnu.org> | |
15379 | ||
15380 | * src/output.c (output_rule_data): | |
15381 | Test YYERROR_VERBOSE in the conditional | |
15382 | around the definition of ttyname. | |
15383 | ||
15384 | 1995-12-29 Richard Stallman <rms@gnu.org> | |
15385 | ||
15386 | * src/bison.s1: | |
15387 | Fix line numbers in #line commands. | |
15388 | ||
15389 | 1995-12-29 Richard Stallman <rms@gnu.org> | |
15390 | ||
15391 | * bison.simple: | |
15392 | Fix line numbers in #line commands. | |
15393 | ||
15394 | 1995-12-27 Richard Stallman <rms@gnu.org> | |
15395 | ||
15396 | * src/bison.s1 (YYPARSE_PARAM_DECL): | |
15397 | In C++, make it always null. | |
15398 | (YYPARSE_PARAM_ARG): New macro. | |
15399 | (yyparse): Use YYPARSE_PARAM_ARG. | |
15400 | ||
15401 | 1995-12-27 Richard Stallman <rms@gnu.org> | |
15402 | ||
15403 | * bison.simple (YYPARSE_PARAM_DECL): | |
15404 | In C++, make it always null. | |
15405 | (YYPARSE_PARAM_ARG): New macro. | |
15406 | (yyparse): Use YYPARSE_PARAM_ARG. | |
15407 | ||
15408 | 1995-11-29 Richard Stallman <rms@gnu.org> | |
15409 | ||
15410 | * doc/bison.texinfo: | |
15411 | Describe literal string tokens, %raw, %no_lines, %token_table. | |
15412 | ||
15413 | 1995-11-29 Daniel Hagerty <hag@gnu.org> | |
15414 | ||
15415 | * doc/bison.texinfo: Fixed update date | |
15416 | ||
15417 | 1995-10-16 Richard Stallman <rms@gnu.org> | |
15418 | ||
15419 | * src/version.c: Version 1.25. | |
15420 | ||
15421 | 1995-10-16 Richard Stallman <rms@gnu.org> | |
15422 | ||
15423 | * NEWS: *** empty log message *** | |
15424 | ||
15425 | 1995-10-16 Richard Stallman <rms@gnu.org> | |
15426 | ||
15427 | * doc/bison.1, doc/bison.rnh: | |
15428 | Add new options. | |
15429 | ||
15430 | 1995-10-15 Richard Stallman <rms@gnu.org> | |
15431 | ||
15432 | * src/vmsgetargs.c, src/getargs.c: | |
15433 | Added -n, -k, and -raw switches. | |
15434 | (noparserflag, toknumflag, rawtoknumflag): New variables. | |
15435 | ||
15436 | * src/symtab.h (SALIAS): | |
15437 | New #define for adding aliases to %token. | |
15438 | (struct bucket): Added `alias' field. | |
15439 | ||
15440 | * src/reduce.c (reduce_grammar): | |
15441 | Revise error message. | |
15442 | (print_notices): Remove final `.' from error message. | |
15443 | ||
15444 | * src/reader.c (reader_output_yylsp): | |
15445 | New function. | |
15446 | (readgram): Use `#if 0' around code that accepted %command | |
15447 | inside grammar rules: The documentation doesn't allow it, | |
15448 | and it will fail since the %command processors scan for the next %. | |
15449 | (parse_token_decl): Extended the %token | |
15450 | declaration to allow a multi-character symbol as an alias. | |
15451 | (parse_thong_decl): New function. | |
15452 | (read_declarations): Added %thong declarations. | |
15453 | (read_declarations): Handle NOOP to deal with allowing | |
15454 | % declarations as another means to specify the flags. | |
15455 | (readgram): Allow %prec prior to semantics embedded in a rule. | |
15456 | (skip_to_char, read_declarations, copy_definition) | |
15457 | (parse_token_decl, parse_start_decl, parse_type_decl) | |
15458 | (parse_assoc_decl, parse_union_decl, parse_expect_decl) | |
15459 | (get_type_name, copy_guard, copy_action, readgram) | |
15460 | (get_type, packsymbols): Revised most error messages. | |
15461 | Changed `fatal' to `warnxxx' to avoid aborting for error. | |
15462 | Revised and use multiple warnxxx functions to avoid using VARARGS1. | |
15463 | (read_declarations): Improve the error message for | |
15464 | an invalid character. Do not abort. | |
15465 | (read_declarations, copy_guard, copy_action): Use | |
15466 | printable_version to avoid unprintable characters in printed output. | |
15467 | (parse_expect_decl): Error if argument to %expect exceeds 10 digits. | |
15468 | (parse_token_decl, parse_assoc_decl, parse_type_decl, get_type): | |
15469 | Allow the type of a non-terminal can be given | |
15470 | more than once, as long as all specifications give the same type. | |
15471 | ||
15472 | * src/output.c: | |
15473 | (output_headers, output_trailers, output, output_gram) | |
15474 | (output_rule_data): Implement noparserflag variable. | |
15475 | Implement toknumflag variable. | |
15476 | (output): Call reader_output_yylsp to output LTYPESTR. | |
15477 | ||
15478 | * src/main.c (main): | |
15479 | If reader sees an error, don't process the grammar. | |
15480 | (fatals): Updated to not use VARARGS1. | |
15481 | (printable_version, int_to_string, warn, warni, warns, warnss) | |
15482 | (warnsss): New error reporting functions. Avoid abort for error. | |
15483 | ||
15484 | * src/lex.h: | |
15485 | Added THONG and NOOP for alias processing. | |
15486 | Added SETOPT for the new code that allows setting options with %flags. | |
15487 | ||
15488 | * src/lex.c: | |
15489 | Include getopt.h. Add some extern decls. | |
15490 | (safegetc): New function to deal with EOF gracefully. | |
15491 | (literalchar); new function to deal with reading \ escapes. | |
15492 | (lex): Use literalchar. | |
15493 | (lex): Implemented "..." tokens. | |
15494 | (literalchar, lex, parse_percent_token): Made tokenbuffer | |
15495 | always contain the token. This includes growing the token | |
15496 | buffer while reading an integer. | |
15497 | (parse_percent_token): Replaced if-else statement with percent_table. | |
15498 | (parse_percent_token): Added % declarations as another | |
15499 | way to specify the flags -n, -l, and -r. Also added hooks for | |
15500 | -d, -k, -y, -v, -t, -p, -b, -o, but implementation requires | |
15501 | major changes to files.c. | |
15502 | (lex) Retain in the incoming stream a character following | |
15503 | an incorrect '/'. | |
15504 | (skip_white_space, lex): Revised most error messages | |
15505 | and changed fatal to warn to avoid aborting. | |
15506 | (percent_table): Added %thong declarations. | |
15507 | ||
15508 | * src/gram.h: Comment changes. | |
15509 | ||
15510 | * src/files.c (openfiles, open_extra_files, done): | |
15511 | Add faction flag | |
15512 | and actfile file. Handle noparserflag. Both for -n switch. | |
15513 | ||
15514 | * src/conflicts.c (resolve_sr_conflict): | |
15515 | Remove use of alloca. | |
15516 | ||
15517 | 1995-06-01 Jim Meyering <meyering@gnu.org> | |
15518 | ||
15519 | * doc/bison.texinfo: *** empty log message *** | |
15520 | ||
15521 | 1995-05-06 Richard Stallman <rms@gnu.org> | |
15522 | ||
15523 | * src/bison.s1: Comment change. | |
15524 | ||
15525 | 1995-05-06 Richard Stallman <rms@gnu.org> | |
15526 | ||
15527 | * bison.simple: Comment change. | |
15528 | ||
15529 | 1995-05-03 Richard Stallman <rms@gnu.org> | |
15530 | ||
15531 | * src/version.c: Version now 1.24. | |
15532 | ||
15533 | * src/bison.s1: Change distribution terms. | |
15534 | ||
15535 | * src/version.c: Version now 1.23. | |
15536 | ||
15537 | 1995-05-03 Richard Stallman <rms@gnu.org> | |
15538 | ||
15539 | * doc/bison.texinfo: | |
15540 | Rewrite "Conditions for Using Bison". | |
15541 | Update version to 1.24. | |
15542 | ||
15543 | 1995-05-03 Richard Stallman <rms@gnu.org> | |
15544 | ||
15545 | * bison.simple: Change distribution terms. | |
15546 | ||
15547 | 1995-02-23 Richard Stallman <rms@gnu.org> | |
15548 | ||
15549 | * src/files.c: Test __VMS_POSIX as well as VMS. | |
15550 | ||
15551 | 1995-02-14 Jim Meyering <meyering@gnu.org> | |
15552 | ||
15553 | * src/bison.s1 (__yy_memcpy): | |
15554 | Renamed from __yy_bcopy to avoid | |
15555 | confusion. Reverse FROM and TO arguments to be consistent with | |
15556 | those of memcpy. | |
15557 | ||
15558 | 1995-02-14 Jim Meyering <meyering@gnu.org> | |
15559 | ||
15560 | * bison.simple (__yy_memcpy): | |
15561 | Renamed from __yy_bcopy to avoid | |
15562 | confusion. Reverse FROM and TO arguments to be consistent with | |
15563 | those of memcpy. | |
15564 | ||
15565 | 1994-11-10 David J. MacKenzie <djm@gnu.org> | |
15566 | ||
15567 | * NEWS: reformat | |
15568 | ||
15569 | * NEWS: New file. | |
15570 | ||
15571 | * Makefile.in (DISTFILES): Include NEWS. | |
15572 | ||
15573 | * Makefile.in (DISTFILES): | |
15574 | Include install-sh, not install.sh. | |
15575 | ||
15576 | * configure.in: Update to Autoconf v2 macro names. | |
15577 | ||
15578 | 1994-10-05 David J. MacKenzie <djm@gnu.org> | |
15579 | ||
15580 | * Makefile.in: fix typo | |
15581 | ||
15582 | * Makefile.in (prefix, exec_prefix): | |
15583 | Let configure set them. | |
15584 | ||
15585 | 1994-09-28 David J. MacKenzie <djm@gnu.org> | |
15586 | ||
15587 | * Makefile.in: Set datadir to $(prefix)/share. | |
15588 | ||
15589 | 1994-09-15 Richard Stallman <rms@gnu.org> | |
15590 | ||
15591 | * src/bison.s1: | |
15592 | Update copyright notice and GPL version. | |
15593 | ||
15594 | 1994-09-15 Richard Stallman <rms@gnu.org> | |
15595 | ||
15596 | * bison.simple: | |
15597 | Update copyright notice and GPL version. | |
15598 | ||
15599 | 1994-07-12 Richard Stallman <rms@gnu.org> | |
15600 | ||
15601 | * src/reduce.c, src/reader.c: | |
15602 | entered into RCS | |
15603 | ||
15604 | 1994-05-05 David J. MacKenzie <djm@gnu.org> | |
15605 | ||
15606 | * Makefile.in: entered into RCS | |
15607 | ||
15608 | 1994-03-26 Richard Stallman <rms@gnu.org> | |
15609 | ||
15610 | * src/bison.s1: entered into RCS | |
15611 | ||
15612 | 1994-03-26 Richard Stallman <rms@gnu.org> | |
15613 | ||
15614 | * bison.simple: entered into RCS | |
15615 | ||
15616 | 1994-03-25 Richard Stallman <rms@gnu.org> | |
15617 | ||
15618 | * src/main.c: entered into RCS | |
15619 | ||
15620 | 1994-03-24 Richard Stallman <rms@gnu.org> | |
15621 | ||
15622 | * src/conflicts.c: entered into RCS | |
15623 | ||
15624 | 1994-01-02 Richard Stallman <rms@gnu.org> | |
15625 | ||
15626 | * Makefile.in: *** empty log message *** | |
15627 | ||
15628 | 1993-11-21 Richard Stallman <rms@gnu.org> | |
15629 | ||
15630 | * src/bison.s1: *** empty log message *** | |
15631 | ||
15632 | 1993-11-21 Richard Stallman <rms@gnu.org> | |
15633 | ||
15634 | * doc/bison.texinfo: entered into RCS | |
15635 | ||
15636 | * doc/bison.texinfo: *** empty log message *** | |
15637 | ||
15638 | 1993-11-21 Richard Stallman <rms@gnu.org> | |
15639 | ||
15640 | * bison.simple: *** empty log message *** | |
15641 | ||
15642 | 1993-10-25 David J. MacKenzie <djm@gnu.org> | |
15643 | ||
15644 | * doc/bison.texinfo: *** empty log message *** | |
15645 | ||
15646 | 1993-10-19 Richard Stallman <rms@gnu.org> | |
15647 | ||
15648 | * src/bison.s1: *** empty log message *** | |
15649 | ||
15650 | 1993-10-19 Richard Stallman <rms@gnu.org> | |
15651 | ||
15652 | * bison.simple: *** empty log message *** | |
15653 | ||
15654 | 1993-10-14 Richard Stallman <rms@gnu.org> | |
15655 | ||
15656 | * src/bison.s1: *** empty log message *** | |
15657 | ||
15658 | 1993-10-14 Richard Stallman <rms@gnu.org> | |
15659 | ||
15660 | * bison.simple: *** empty log message *** | |
15661 | ||
15662 | 1993-09-14 David J. MacKenzie <djm@gnu.org> | |
15663 | ||
15664 | * doc/bison.texinfo: *** empty log message *** | |
15665 | ||
15666 | 1993-09-13 Noah Friedman <friedman@gnu.org> | |
15667 | ||
15668 | * Makefile.in: *** empty log message *** | |
15669 | ||
15670 | 1993-09-10 Richard Stallman <rms@gnu.org> | |
15671 | ||
15672 | * src/conflicts.c: *** empty log message *** | |
15673 | ||
15674 | * src/system.h: entered into RCS | |
15675 | ||
15676 | 1993-09-10 Richard Stallman <rms@gnu.org> | |
15677 | ||
15678 | * doc/bison.1: entered into RCS | |
15679 | ||
15680 | 1993-09-06 Noah Friedman <friedman@gnu.org> | |
15681 | ||
15682 | * src/version.c: entered into RCS | |
15683 | ||
15684 | 1993-09-06 Noah Friedman <friedman@gnu.org> | |
15685 | ||
15686 | * Makefile.in: *** empty log message *** | |
15687 | ||
15688 | 1993-07-30 David J. MacKenzie <djm@gnu.org> | |
15689 | ||
15690 | * Makefile.in: *** empty log message *** | |
15691 | ||
15692 | 1993-07-24 Richard Stallman <rms@gnu.org> | |
15693 | ||
15694 | * src/bison.s1: *** empty log message *** | |
15695 | ||
15696 | 1993-07-24 Richard Stallman <rms@gnu.org> | |
15697 | ||
15698 | * bison.simple: *** empty log message *** | |
15699 | ||
15700 | 1993-07-08 David J. MacKenzie <djm@gnu.org> | |
15701 | ||
15702 | * Makefile.in: *** empty log message *** | |
15703 | ||
15704 | 1993-07-04 Richard Stallman <rms@gnu.org> | |
15705 | ||
15706 | * src/bison.s1: *** empty log message *** | |
15707 | ||
15708 | 1993-07-04 Richard Stallman <rms@gnu.org> | |
15709 | ||
15710 | * bison.simple: *** empty log message *** | |
15711 | ||
15712 | 1993-06-26 David J. MacKenzie <djm@gnu.org> | |
15713 | ||
15714 | * src/getargs.c: entered into RCS | |
15715 | ||
15716 | 1993-06-26 David J. MacKenzie <djm@gnu.org> | |
15717 | ||
15718 | * doc/bison.texinfo: *** empty log message *** | |
15719 | ||
15720 | * doc/bison.1: New file. | |
15721 | ||
15722 | 1993-06-25 Richard Stallman <rms@gnu.org> | |
15723 | ||
15724 | * src/getargs.c: New file. | |
15725 | ||
15726 | 1993-06-16 Richard Stallman <rms@gnu.org> | |
15727 | ||
15728 | * src/bison.s1: *** empty log message *** | |
15729 | ||
15730 | 1993-06-16 Richard Stallman <rms@gnu.org> | |
15731 | ||
15732 | * bison.simple: *** empty log message *** | |
15733 | ||
15734 | 1993-06-03 Richard Stallman <rms@gnu.org> | |
15735 | ||
15736 | * src/bison.s1: New file. | |
15737 | ||
15738 | 1993-06-03 Richard Stallman <rms@gnu.org> | |
15739 | ||
15740 | * doc/bison.texinfo: *** empty log message *** | |
15741 | ||
15742 | 1993-06-03 Richard Stallman <rms@gnu.org> | |
15743 | ||
15744 | * bison.simple: New file. | |
15745 | ||
15746 | 1993-05-19 Richard Stallman <rms@gnu.org> | |
15747 | ||
15748 | * doc/bison.texinfo: New file. | |
15749 | ||
15750 | 1993-05-07 Noah Friedman <friedman@gnu.org> | |
15751 | ||
15752 | * Makefile.in: *** empty log message *** | |
15753 | ||
15754 | 1993-04-28 Noah Friedman <friedman@gnu.org> | |
15755 | ||
15756 | * src/reader.c: *** empty log message *** | |
15757 | ||
15758 | 1993-04-23 Noah Friedman <friedman@gnu.org> | |
15759 | ||
15760 | * src/alloc.h: entered into RCS | |
15761 | ||
15762 | 1993-04-20 David J. MacKenzie <djm@gnu.org> | |
15763 | ||
15764 | * src/version.c: *** empty log message *** | |
15765 | ||
15766 | * src/files.c, src/allocate.c: | |
15767 | entered into RCS | |
15768 | ||
15769 | * src/reader.c: *** empty log message *** | |
15770 | ||
15771 | * src/lex.c: entered into RCS | |
15772 | ||
15773 | * src/conflicts.c: New file. | |
15774 | ||
15775 | * src/symtab.c: entered into RCS | |
15776 | ||
15777 | * src/alloc.h: New file. | |
15778 | ||
15779 | * src/LR0.c: entered into RCS | |
15780 | ||
15781 | 1993-04-18 Noah Friedman <friedman@gnu.org> | |
15782 | ||
15783 | * src/reader.c: New file. | |
15784 | ||
15785 | * src/version.c: *** empty log message *** | |
15786 | ||
15787 | 1993-04-18 Noah Friedman <friedman@gnu.org> | |
15788 | ||
15789 | * Makefile.in: *** empty log message *** | |
15790 | ||
15791 | 1993-04-17 Noah Friedman <friedman@gnu.org> | |
15792 | ||
15793 | * Makefile.in: *** empty log message *** | |
15794 | ||
15795 | 1993-04-15 Richard Stallman <rms@gnu.org> | |
15796 | ||
15797 | * src/main.c, src/files.c: | |
15798 | New file. | |
15799 | ||
15800 | 1993-04-15 Noah Friedman <friedman@gnu.org> | |
15801 | ||
15802 | * configure.in: entered into RCS | |
15803 | ||
15804 | * configure.in: *** empty log message *** | |
15805 | ||
15806 | * configure.in: New file. | |
15807 | ||
15808 | 1993-04-14 Richard Stallman <rms@gnu.org> | |
15809 | ||
15810 | * Makefile.in: New file. | |
15811 | ||
15812 | 1993-04-13 Richard Stallman <rms@gnu.org> | |
15813 | ||
15814 | * src/version.c: New file. | |
15815 | ||
15816 | 1993-03-25 Richard Stallman <rms@gnu.org> | |
15817 | ||
15818 | * src/output.c: entered into RCS | |
15819 | ||
15820 | 1992-09-25 Richard Stallman <rms@gnu.org> | |
15821 | ||
15822 | * configure.bat: entered into RCS | |
15823 | ||
15824 | 1992-06-22 Richard Stallman <rms@gnu.org> | |
15825 | ||
15826 | * src/vmsgetargs.c: entered into RCS | |
15827 | ||
15828 | 1992-06-22 Richard Stallman <rms@gnu.org> | |
15829 | ||
15830 | * doc/bison.rnh: entered into RCS | |
15831 | ||
15832 | 1992-04-20 David J. MacKenzie <djm@gnu.org> | |
15833 | ||
15834 | * README: entered into RCS | |
15835 | ||
15836 | 1992-01-22 Richard Stallman <rms@gnu.org> | |
15837 | ||
15838 | * src/machine.h: entered into RCS | |
15839 | ||
15840 | 1991-12-21 Richard Stallman <rms@gnu.org> | |
15841 | ||
15842 | * src/lalr.c, src/closure.c: | |
15843 | entered into RCS | |
15844 | ||
15845 | 1991-12-20 Richard Stallman <rms@gnu.org> | |
15846 | ||
15847 | * src/state.h: entered into RCS | |
15848 | ||
15849 | 1991-12-18 Richard Stallman <rms@gnu.org> | |
15850 | ||
15851 | * src/print.c, src/nullable.c, src/derives.c: | |
15852 | entered into RCS | |
15853 | ||
15854 | 1991-11-03 David J. MacKenzie <djm@gnu.org> | |
15855 | ||
15856 | * src/warshall.c, src/types.h, src/symtab.h, src/lex.h, src/gram.c, src/gram.h, src/files.h: | |
15857 | entered into RCS | |
15858 | ||
15859 | 1988-09-09 Richard Stallman <rms@gnu.org> | |
15860 | ||
15861 | * src/bison.hairy: entered into RCS | |
15862 | ||
15863 | 1987-12-16 Richard Stallman <rms@gnu.org> | |
15864 | ||
15865 | * REFERENCES: entered into RCS | |
dc546b0f | 15866 | |
f294a2c2 | 15867 | |
04098407 | 15868 | ----- |
f294a2c2 | 15869 | |
04098407 | 15870 | Copyright (C) 1987, 1988, 1991, 1992, 1993, 1994, 1995, 1996, |
e2a21b6f PE |
15871 | 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free |
15872 | Software Foundation, Inc. | |
f294a2c2 | 15873 | |
04098407 PE |
15874 | Copying and distribution of this file, with or without |
15875 | modification, are permitted provided the copyright notice and this | |
15876 | notice are preserved. |