Imported Upstream version 20100216
[platform/upstream/byacc.git] / CHANGES
1 2010-02-16  Thomas Dickey  <tom@crayon>
2
3         * yacc.1: document -P and bison-extensions
4
5         * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
6         regen
7
8         * output.c: implement %pure-parser
9
10         * skeleton.c:
11         implement %pure-parser, like bison.  To help with this, changed the stack
12         variables, putting them into a struct.
13
14         * reader.c: implement %pure-parser
15
16         * defs.h: modified skeleton to support %pure-parser feature
17
18         * main.c: add -P option to set %pure-parser
19
20         * output.c:
21         make -r and -p options work together.  The -r option splits the generated
22         parser into code/table files; for this case we cannot use static data.
23         Also, we have to repeat the #define's used for prefix (-p) as well as the
24         redeclaration of yyparse().  Finally, allow any of the prefixed names to
25         be overridden, e.g., by passing a -D option to the compiler.  Make that
26         a little more readable by putting a blank line before each chunk.
27
28         * defs.h: add definitions for %pure-parser
29
30         * skeleton.c:
31         put blank line before/after the redeclaration of yyparse()
32
33         * output.c: allow for other program redefining yylex()
34
35         * skeleton.c:
36         split-off xdecls[] array, to move declaration of yyparse() after #define's
37
38         * defs.h: split-out xdecls[]
39
40         * VERSION: bump
41
42         * configure: regen
43
44         * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS
45
46         * aclocal.m4:
47         resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes.
48
49 2010-02-16  Ostap.Cherkashi
50
51         * skeleton.c: fix a memory leak in the generated skeleton
52
53 2009-12-31  Thomas Dickey  <tom@crayon>
54
55         * config.guess: 2009-12-30
56
57         * config.sub: 2009-12-31
58
59 2009-10-27  Thomas Dickey  <tom@crayon>
60
61         * VERSION: 20091027
62
63         * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c:
64         strict compiler warnings
65
66 2009-10-26  Thomas Dickey  <tom@crayon>
67
68         * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
69         resync
70
71         * main.c, defs.h: introduce some typedefs for portability, etc.
72
73         * makefile.in:
74         don't remove "*.log" in mostlyclean rule since it interferes with regression
75         script.
76
77         * configure: regen
78
79         * aclocal.m4: resync with my-autoconf
80
81 2009-08-25  Thomas Dickey  <tom@crayon>
82
83         * config.guess, config.sub: 2009-08-19
84
85 2009-02-21  Thomas Dickey  <tom@crayon>
86
87         * VERSION: bump
88
89         * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25
90
91 2008-12-26  Thomas Dickey  <tom@crayon>
92
93         * configure: regen with autoconf-2.52 (patched)
94
95 2008-12-25  Thomas Dickey  <tom@crayon>
96
97         * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
98         regenerated
99
100 2008-12-24  Thomas Dickey  <tom@crayon>
101
102         * VERSION: bump
103
104         * skeleton.c:
105         remove ifdef-lint from goto yyerrlab, to quiet gcc warning
106
107 2008-11-26  Thomas Dickey  <tom@crayon>
108
109         * verbose.c, main.c, defs.h, mkpar.c, reader.c:
110         completed implementation of "%expect" (report by Perry E. Metzger).
111         add "%expect-rr", which is (unlike bison) allowable in LALR parsers.
112
113 2008-11-24  Thomas Dickey  <tom@crayon>
114
115         * closure.c, defs.h, error.c, graph.c, lalr.c, lr0.c, main.c, mkpar.c, output.c, reader.c, skeleton.c, symtab.c, verbose.c, warshall.c:
116         change indent-style (request by Perry E. Metzger)
117
118 2008-08-27  Thomas Dickey  <tom@crayon>
119
120         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
121         better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
122
123         * VERSION: bump
124
125         * skeleton.c:
126         better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
127
128         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c:
129         change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's.
130
131         * configure: regen'd
132
133         * configure.in: add -Wwrite-strings to warnings
134
135         * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
136         add YYPARSE_PARAM and YYPARSE_PARAM_TYPE
137
138         * skeleton.c:
139         add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features.
140
141         * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c:
142         fixes for gcc -Wwrite-strings
143
144         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
145         generate the tables as static-const (this is an interface change)
146
147         * output.c: realign columns in start_table()
148
149         * output.c:
150         generate the tables as static-const (this is an interface change)
151
152         * output.c: reorder functions to eliminate forward-references
153
154         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
155         remove 'register' keywords
156
157 2008-08-26  Thomas Dickey  <tom@crayon>
158
159         * warshall.c, verbose.c, symtab.c, skeleton.c, reader.c, output.c, mkpar.c, main.c, lr0.c, lalr.c, graph.c, error.c, closure.c:
160         remove 'register' keywords
161
162 2008-08-25  Thomas Dickey  <tom@crayon>
163
164         * test/ftp.tab.c: regen'd
165
166         * reader.c:
167         improve the left-curly fix by testing after blanks, to avoid having a
168         " {" at the beginning of a line.
169
170         * test/error.tab.c, test/grammar.tab.c: regen'd
171
172         * output.c:
173         move the remaining newline-counting into write_XXX functions.
174
175         * test/calc.tab.c: regen'd
176
177         * output.c:
178         simplify part of the output_file formatting using new functions, e.g.,
179         start_int_table(), output_newline().
180
181         * reader.c:
182         modify copy_action() to indent the first character, it if is is left-curly
183         brace.  That makes the output look more like the original, as well as makes
184         it simpler to edit (not confuse editors which look for a left-curly in the
185         first column as if it were the beginning of a function).
186
187         * skeleton.c: minor fixes to avoid gcc -Wconversion warnings
188
189         * output.c: align the #define's produced for "-p" option
190
191         * test/run_test.sh: use the "-p" option for better coverage.
192
193         * output.c: simplify output_prefix() with new define_prefixed()
194
195         * skeleton.c: include string.h, for memset()
196         change stack size to unsigned to fix gcc -Wconversion warnings.
197
198         * VERSION: bump to 2008/8/25
199
200         * makefile.in: add dependency on VERSION file.
201
202 2008-08-24  Thomas Dickey  <tom@crayon>
203
204         * VERSION: bump
205
206         * lalr.c: improved memory-leak checking by freeing data in includes[]
207
208         * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
209         update to match skeleton-change
210
211         * configure: regen'd
212
213         * skeleton.c: Add fix for stack discussed
214                 http://undeadly.org/cgi?action=article&sid=20080708155228
215         and applied
216                 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29
217
218         * aclocal.m4: resync with my-autoconf (no major changes)
219
220 2008-03-14  Thomas Dickey  <tom@crayon>
221
222         * config.sub: update to 2008-03-08
223
224         * config.guess: update to 2008-03-12
225
226 2007-05-09  Thomas Dickey  <tom@crayon>
227
228         * main.c: close graph, verbose files if opened, on exit.
229
230         * main.c:
231         audit memory leaks - valgrind reported some memory still in use on exit.
232
233         * lalr.c, output.c, reader.c, mkpar.c, lr0.c:
234         add hook for auditing memory leaks
235
236         * defs.h: add hooks for auditing memory leaks
237
238         * configure: regen'd
239
240         * configure.in:
241         use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind,
242         --with-dbmalloc and --with-dmalloc
243
244         * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND
245
246         * aclocal.m4: improve version-checking in CF_GCC_VERSION
247         rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro
248
249         * VERSION: 2007/5/9
250
251         * main.c: file_prefix did not always have a trailing null.
252
253 2007-03-25  Thomas Dickey  <tom@crayon>
254
255         * mkdirs.sh: improved version for "make -j"
256
257 2006-12-22  Thomas Dickey  <tom@crayon>
258
259         * config.guess: 2006/12/22
260
261 2006-12-08  Thomas Dickey  <tom@crayon>
262
263         * config.sub: 2006/12/08
264
265 2005-08-13  Thomas Dickey  <tom@crayon>
266
267         * main.c: add -V to usage message
268
269         * makefile.in: remove -t option from ctags
270
271         * VERSION: 2005/8/13
272
273 2005-08-13  schmitz
274
275         * main.c: Sylvain Schmitz:
276         modify the '-o' option to work like bison's, which sets the file-prefix.
277
278 2005-08-13  Matt.Kraai
279
280         * output.c:
281         Debian #322858 (don't close union_file, which contained data).
282         This feature is used in groff.
283
284 2005-08-13  Thomas Dickey  <tom@crayon>
285
286         * configure: regenerated
287
288         * aclocal.m4: improve checks for Intel compiler warnings
289
290 2005-06-25  Thomas Dickey  <tom@crayon>
291
292         * config.sub: 2005/6/2
293
294         * config.guess: 2005/5/27
295
296 2005-05-05  Thomas Dickey  <tom@crayon>
297
298         * defs.h: add a fallback for GCC_UNUSED
299
300 2005-05-04  Thomas Dickey  <tom@crayon>
301
302         * makefile.in: add "." to include-path to pickup config.h
303
304         * reader.c:
305         apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617.
306
307         * output.c:
308         correct a limit check in pack_vector() - report/analysis by William Evans
309
310         * main.c:
311         exit after printing version.  Otherwise "yacc -V" will exit with an erro
312         after printing the usage message.
313
314         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
315         regenerated after skeleton-changes
316
317         * skeleton.c: replace a few -1's with YYEMPTY
318
319         * skeleton.c:
320         delete yynewerror (no one uses it any more, and it just makes compiler warnings)
321
322         * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD
323
324         * test/run_test.sh:
325         filter out lines with YYPATCH, since that will change with each update
326
327         * yacc.1: add -V option
328
329         * main.c: add -V option to print the version.
330         simplify option-parsing by moving the duplicate logic for setting flags into
331         new function setflag().
332
333         * skeleton.c:
334         move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers).
335         add YYPATCH here so it can be tested by applications.
336
337         * defs.h:
338         add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and
339         YYPATCH symbols.
340
341         * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c:
342         reduce externs by making static the procedures that are not referenced outside
343         the module in which they are defined.
344
345         * makefile.in:
346         the VERSION file holds the patch-date.  Define YYPATCH, so this will be
347         compiled into the skeleton.
348
349         * VERSION: RCS_BASE
350
351         * main.c:
352         add "-o" to usage message.  It is too long for a single line; rewrite usage()
353         to show one option per line.
354
355 2005-05-03  Thomas Dickey  <tom@crayon>
356
357         * main.c: add -o option, to work with scripts that assume bison.
358         simplify create_file_names() with a macro.
359         simplify done() with a macro.
360         adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by
361         onintr(), do not flush output via exit(), but use _exit() instead.
362
363         * defs.h: remove unnecessary externs for main.c
364
365         * yacc.1: add -o option
366
367         * graph.c: remove unused parameter
368
369         * mkpar.c, defs.h, reader.c:
370         add support for "%expect", a bison feature from FreeBSD sources
371
372         * lr0.c, reader.c, main.c, skeleton.c, graph.c, symtab.c, closure.c, mkpar.c, lalr.c, error.c, warshall.c, verbose.c, output.c:
373         indent'd
374
375         * configure: regenerated for 2005/5/5
376
377         * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER)
378
379 2005-04-27  schmitz
380
381         * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1:
382         Sylvain Schmitz <schmitz@i3s.unice.fr>:
383         add graphical output of the LALR(1) automaton for graphviz,
384         associated with command-line option `-g'
385
386 2005-04-16  Thomas Dickey  <tom@crayon>
387
388         * config.sub: 2005/2/10
389
390         * config.guess: 2005/3/24
391
392 2004-03-28  Thomas Dickey  <tom@crayon>
393
394         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
395         updates due to adding yyparse() prototype
396
397         * configure: RCS_BASE
398
399         * configure.in:
400         add AC_ARG_PROGRAM to make --program-prefix, etc., work.
401
402         * makefile.in: first cut of script to support --program-prefix
403
404         * configure.in:
405         reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52
406
407         * makefile.in: modify so DESTDIR works
408
409         * makefile.in: use EXEEXT and OBJEXT
410
411         * configure.in: use CF_PROG_EXT
412         generate a config.h
413
414         * defs.h: make this use the generated config.h
415
416         * skeleton.c: add a forward-reference for yyparse()
417
418         * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT
419
420         * yacc.1: remove the discussion of TMPDIR since it is obsolete
421
422         * skeleton.c: fix a couple of minor compiler-warnings in the skeleton
423
424         * defs.h: remove action_file_name, etc., since we use tmpfile() now.
425
426         * main.c:
427         use tmpfile() for opening the working files.  This quiets a warning
428         advising the use of mkstemp().
429
430         * output.c:
431         Do not close temporary-files here, since they are opened with tmpfile().
432         Just rewind them, and they're ready to read back the data stored in them.
433
434         * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE
435
436         * makefile.in: turn on "make check" rule
437
438         * test/calc.output, test/run_test.sh, test/calc.tab.h: RCS_BASE
439
440         * test/ftp.tab.c: yyparse() is now yyparse(void)
441
442         * test/calc.tab.c: RCS_BASE
443
444         * test/error.tab.c: yyparse() is now yyparse(void)
445
446         * test/README: RCS_BASE
447
448         * yacc.1: various typography fixes prompted by Debian #100947
449
450         * aclocal.m4, makefile.in, configure.in: RCS_BASE
451
452         * README: updated to note that this is not the original
453
454 2004-03-24  Thomas Dickey  <tom@crayon>
455
456         * test/grammar.y: RCS_BASE
457
458 2004-02-23  Thomas Dickey  <tom@crayon>
459
460         * config.sub: RCS_BASE
461
462 2004-02-17  Thomas Dickey  <tom@crayon>
463
464         * config.guess: RCS_BASE
465
466 2003-11-29  Thomas Dickey  <tom@crayon>
467
468         * install-sh: improved quoting
469
470 2002-06-29  Thomas Dickey  <tom@crayon>
471
472         * mkdirs.sh:
473         don't use character range, since some locales don't work as expected
474
475 2001-06-22  Thomas Dickey  <tom@crayon>
476
477         * install-sh: RCS_BASE
478
479 2000-11-20  Thomas Dickey  <tom@crayon>
480
481         * test/calc.y: RCS_BASE
482
483         * vmsbuild.com: original version
484
485 2000-02-23  dickey
486
487         * test/RCS, RCS: PERMIT FILE
488
489 2000-02-14  Thomas Dickey  <tom@crayon>
490
491         * main.c: fix for VMS port - making pathname for temp-file
492
493         * descrip.mms: original version
494
495 2000-02-13  Thomas Dickey  <tom@crayon>
496
497         * defs.h, verbose.c, reader.c, main.c, skeleton.c, warshall.c, symtab.c, closure.c, mkpar.c, lalr.c, lr0.c, output.c, error.c:
498         ansify
499
500 1999-11-30  Thomas Dickey  <tom@crayon>
501
502         * mkdirs.sh: RCS_BASE
503
504 1995-01-01  Thomas Dickey  <tom@crayon>
505
506         * config_h.in: RCS_BASE
507
508 1993-12-23  unknown
509
510         * README.DOS, main.c: MSDOS-port
511
512 1993-12-22  unknown
513
514         * reader.c, defs.h: MSDOS-port
515
516 1993-03-02  unknown
517
518         * README: original version
519
520 1993-02-22  unknown
521
522         * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h, test/error.output, test/error.tab.c, test/error.tab.h:
523         RCS_BASE
524
525         * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES:
526         original version
527
528 1992-10-12  unknown
529
530         * yacc.1: original version
531
532 1992-10-11  unknown
533
534         * defs.h: original version
535
536 1991-01-20  unknown
537
538         * mkpar.c, verbose.c: original version
539
540 1991-01-14  unknown
541
542         * lr0.c, Makefile, Makefile.old: original version
543
544 1990-07-16  unknown
545
546         * NEW_FEATURES: original version
547
548 1990-06-03  unknown
549
550         * ACKNOWLEDGEMENTS: original version
551
552 1990-02-05  unknown
553
554         * symtab.c, lalr.c, error.c: original version
555
556 1990-01-16  unknown
557
558         * test/error.y: RCS_BASE
559
560 1989-11-22  unknown
561
562         * NO_WARRANTY: original version
563
564 1989-09-23  unknown
565
566         * test/ftp.y: RCS_BASE
567