1 2010-02-16 Thomas Dickey <tom@crayon>
3 * yacc.1: document -P and bison-extensions
5 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
8 * output.c: implement %pure-parser
11 implement %pure-parser, like bison. To help with this, changed the stack
12 variables, putting them into a struct.
14 * reader.c: implement %pure-parser
16 * defs.h: modified skeleton to support %pure-parser feature
18 * main.c: add -P option to set %pure-parser
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.
28 * defs.h: add definitions for %pure-parser
31 put blank line before/after the redeclaration of yyparse()
33 * output.c: allow for other program redefining yylex()
36 split-off xdecls[] array, to move declaration of yyparse() after #define's
38 * defs.h: split-out xdecls[]
44 * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS
47 resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes.
49 2010-02-16 Ostap.Cherkashi
51 * skeleton.c: fix a memory leak in the generated skeleton
53 2009-12-31 Thomas Dickey <tom@crayon>
55 * config.guess: 2009-12-30
57 * config.sub: 2009-12-31
59 2009-10-27 Thomas Dickey <tom@crayon>
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
66 2009-10-26 Thomas Dickey <tom@crayon>
68 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
71 * main.c, defs.h: introduce some typedefs for portability, etc.
74 don't remove "*.log" in mostlyclean rule since it interferes with regression
79 * aclocal.m4: resync with my-autoconf
81 2009-08-25 Thomas Dickey <tom@crayon>
83 * config.guess, config.sub: 2009-08-19
85 2009-02-21 Thomas Dickey <tom@crayon>
89 * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25
91 2008-12-26 Thomas Dickey <tom@crayon>
93 * configure: regen with autoconf-2.52 (patched)
95 2008-12-25 Thomas Dickey <tom@crayon>
97 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
100 2008-12-24 Thomas Dickey <tom@crayon>
105 remove ifdef-lint from goto yyerrlab, to quiet gcc warning
107 2008-11-26 Thomas Dickey <tom@crayon>
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.
113 2008-11-24 Thomas Dickey <tom@crayon>
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)
118 2008-08-27 Thomas Dickey <tom@crayon>
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
126 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
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.
133 * configure.in: add -Wwrite-strings to warnings
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
139 add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features.
141 * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c:
142 fixes for gcc -Wwrite-strings
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)
147 * output.c: realign columns in start_table()
150 generate the tables as static-const (this is an interface change)
152 * output.c: reorder functions to eliminate forward-references
154 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
155 remove 'register' keywords
157 2008-08-26 Thomas Dickey <tom@crayon>
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
162 2008-08-25 Thomas Dickey <tom@crayon>
164 * test/ftp.tab.c: regen'd
167 improve the left-curly fix by testing after blanks, to avoid having a
168 " {" at the beginning of a line.
170 * test/error.tab.c, test/grammar.tab.c: regen'd
173 move the remaining newline-counting into write_XXX functions.
175 * test/calc.tab.c: regen'd
178 simplify part of the output_file formatting using new functions, e.g.,
179 start_int_table(), output_newline().
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).
187 * skeleton.c: minor fixes to avoid gcc -Wconversion warnings
189 * output.c: align the #define's produced for "-p" option
191 * test/run_test.sh: use the "-p" option for better coverage.
193 * output.c: simplify output_prefix() with new define_prefixed()
195 * skeleton.c: include string.h, for memset()
196 change stack size to unsigned to fix gcc -Wconversion warnings.
198 * VERSION: bump to 2008/8/25
200 * makefile.in: add dependency on VERSION file.
202 2008-08-24 Thomas Dickey <tom@crayon>
206 * lalr.c: improved memory-leak checking by freeing data in includes[]
208 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
209 update to match skeleton-change
213 * skeleton.c: Add fix for stack discussed
214 http://undeadly.org/cgi?action=article&sid=20080708155228
216 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29
218 * aclocal.m4: resync with my-autoconf (no major changes)
220 2008-03-14 Thomas Dickey <tom@crayon>
222 * config.sub: update to 2008-03-08
224 * config.guess: update to 2008-03-12
226 2007-05-09 Thomas Dickey <tom@crayon>
228 * main.c: close graph, verbose files if opened, on exit.
231 audit memory leaks - valgrind reported some memory still in use on exit.
233 * lalr.c, output.c, reader.c, mkpar.c, lr0.c:
234 add hook for auditing memory leaks
236 * defs.h: add hooks for auditing memory leaks
241 use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind,
242 --with-dbmalloc and --with-dmalloc
244 * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND
246 * aclocal.m4: improve version-checking in CF_GCC_VERSION
247 rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro
251 * main.c: file_prefix did not always have a trailing null.
253 2007-03-25 Thomas Dickey <tom@crayon>
255 * mkdirs.sh: improved version for "make -j"
257 2006-12-22 Thomas Dickey <tom@crayon>
259 * config.guess: 2006/12/22
261 2006-12-08 Thomas Dickey <tom@crayon>
263 * config.sub: 2006/12/08
265 2005-08-13 Thomas Dickey <tom@crayon>
267 * main.c: add -V to usage message
269 * makefile.in: remove -t option from ctags
275 * main.c: Sylvain Schmitz:
276 modify the '-o' option to work like bison's, which sets the file-prefix.
278 2005-08-13 Matt.Kraai
281 Debian #322858 (don't close union_file, which contained data).
282 This feature is used in groff.
284 2005-08-13 Thomas Dickey <tom@crayon>
286 * configure: regenerated
288 * aclocal.m4: improve checks for Intel compiler warnings
290 2005-06-25 Thomas Dickey <tom@crayon>
292 * config.sub: 2005/6/2
294 * config.guess: 2005/5/27
296 2005-05-05 Thomas Dickey <tom@crayon>
298 * defs.h: add a fallback for GCC_UNUSED
300 2005-05-04 Thomas Dickey <tom@crayon>
302 * makefile.in: add "." to include-path to pickup config.h
305 apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617.
308 correct a limit check in pack_vector() - report/analysis by William Evans
311 exit after printing version. Otherwise "yacc -V" will exit with an erro
312 after printing the usage message.
314 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
315 regenerated after skeleton-changes
317 * skeleton.c: replace a few -1's with YYEMPTY
320 delete yynewerror (no one uses it any more, and it just makes compiler warnings)
322 * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD
325 filter out lines with YYPATCH, since that will change with each update
327 * yacc.1: add -V option
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().
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.
338 add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and
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.
346 the VERSION file holds the patch-date. Define YYPATCH, so this will be
347 compiled into the skeleton.
352 add "-o" to usage message. It is too long for a single line; rewrite usage()
353 to show one option per line.
355 2005-05-03 Thomas Dickey <tom@crayon>
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.
363 * defs.h: remove unnecessary externs for main.c
365 * yacc.1: add -o option
367 * graph.c: remove unused parameter
369 * mkpar.c, defs.h, reader.c:
370 add support for "%expect", a bison feature from FreeBSD sources
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:
375 * configure: regenerated for 2005/5/5
377 * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER)
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'
386 2005-04-16 Thomas Dickey <tom@crayon>
388 * config.sub: 2005/2/10
390 * config.guess: 2005/3/24
392 2004-03-28 Thomas Dickey <tom@crayon>
394 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
395 updates due to adding yyparse() prototype
397 * configure: RCS_BASE
400 add AC_ARG_PROGRAM to make --program-prefix, etc., work.
402 * makefile.in: first cut of script to support --program-prefix
405 reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52
407 * makefile.in: modify so DESTDIR works
409 * makefile.in: use EXEEXT and OBJEXT
411 * configure.in: use CF_PROG_EXT
414 * defs.h: make this use the generated config.h
416 * skeleton.c: add a forward-reference for yyparse()
418 * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT
420 * yacc.1: remove the discussion of TMPDIR since it is obsolete
422 * skeleton.c: fix a couple of minor compiler-warnings in the skeleton
424 * defs.h: remove action_file_name, etc., since we use tmpfile() now.
427 use tmpfile() for opening the working files. This quiets a warning
428 advising the use of mkstemp().
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.
434 * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE
436 * makefile.in: turn on "make check" rule
438 * test/calc.output, test/run_test.sh, test/calc.tab.h: RCS_BASE
440 * test/ftp.tab.c: yyparse() is now yyparse(void)
442 * test/calc.tab.c: RCS_BASE
444 * test/error.tab.c: yyparse() is now yyparse(void)
446 * test/README: RCS_BASE
448 * yacc.1: various typography fixes prompted by Debian #100947
450 * aclocal.m4, makefile.in, configure.in: RCS_BASE
452 * README: updated to note that this is not the original
454 2004-03-24 Thomas Dickey <tom@crayon>
456 * test/grammar.y: RCS_BASE
458 2004-02-23 Thomas Dickey <tom@crayon>
460 * config.sub: RCS_BASE
462 2004-02-17 Thomas Dickey <tom@crayon>
464 * config.guess: RCS_BASE
466 2003-11-29 Thomas Dickey <tom@crayon>
468 * install-sh: improved quoting
470 2002-06-29 Thomas Dickey <tom@crayon>
473 don't use character range, since some locales don't work as expected
475 2001-06-22 Thomas Dickey <tom@crayon>
477 * install-sh: RCS_BASE
479 2000-11-20 Thomas Dickey <tom@crayon>
481 * test/calc.y: RCS_BASE
483 * vmsbuild.com: original version
487 * test/RCS, RCS: PERMIT FILE
489 2000-02-14 Thomas Dickey <tom@crayon>
491 * main.c: fix for VMS port - making pathname for temp-file
493 * descrip.mms: original version
495 2000-02-13 Thomas Dickey <tom@crayon>
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:
500 1999-11-30 Thomas Dickey <tom@crayon>
502 * mkdirs.sh: RCS_BASE
504 1995-01-01 Thomas Dickey <tom@crayon>
506 * config_h.in: RCS_BASE
510 * README.DOS, main.c: MSDOS-port
514 * reader.c, defs.h: MSDOS-port
518 * README: original version
522 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h, test/error.output, test/error.tab.c, test/error.tab.h:
525 * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES:
530 * yacc.1: original version
534 * defs.h: original version
538 * mkpar.c, verbose.c: original version
542 * lr0.c, Makefile, Makefile.old: original version
546 * NEW_FEATURES: original version
550 * ACKNOWLEDGEMENTS: original version
554 * symtab.c, lalr.c, error.c: original version
558 * test/error.y: RCS_BASE
562 * NO_WARRANTY: original version
566 * test/ftp.y: RCS_BASE