1 2012-05-26 Thomas E. Dickey <tom@invisible-island.net>
3 * package/debian/changelog, package/byacc.spec, VERSION: bump
6 some versions of gcc may warn that bp is not set in mark_symbol, e.g.,
7 if GCC_NORETURN is not handled; appease the compiler.
10 use the declared types Assoc_t and Value_t in some places where compiler only
11 cared about char versus short.
14 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
18 add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD
19 packagers to build without configure script. Also remove duplicate declaration
20 of pure_parser variable (prompted by patch by Baptiste Daroussin).
22 Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and
26 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
29 2012-05-25 Thomas E. Dickey <tom@invisible-island.net>
31 * output.c, main.c, verbose.c, mkpar.c, lr0.c:
32 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
35 2012-01-15 Thomas E. Dickey <tom@invisible-island.net>
37 * package/debian/copyright: bump
39 * test/run_make.sh: workaround for breakage due to GNU make 3.82
42 tested with Solaris 10 (bison 1.875) and added scripting to exercise
43 the /usr/ccs/bin/yacc executable
45 * test/grammar.tab.c: regen
47 * test/grammar.y: modify to also build with Solaris yacc
49 * VERSION, package/debian/changelog, package/byacc.spec: bump
51 * test/calc1.output, test/calc1.tab.c: regen
54 undo the change made to appease bison, since it was only a warning.
56 * test/pure_calc.tab.c, test/pure_error.tab.c: regen
58 * test/run_make.sh: another fix for running from top-level directory
61 ensure that check_make rule depends on having byacc built.
63 * test/run_make.sh: fixes for building from parent directory
65 * test/pure_error.y, test/pure_calc.y: bison-fixes
67 * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c, test/ftp.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c:
70 * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y:
71 byacc already declares yyerror
73 * test/pure_error.y, test/pure_calc.y:
74 modified to help make the files build with bison
77 supply a "%pure-parser" directive when bison needs it.
79 * test/code_calc.code.c: regen
81 * test/code_calc.y: modified to help make the files build with bison
84 in testing, found that %expect did not work as documented for bison.
85 do not recommend it for portable code.
87 * test/run_make.sh: workaround breakage in bison's %expect directive
89 * test/grammar.y: modified to help make the files build with bison
91 * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen
93 * test/calc1.y: quiet a spurious warning from bison 2.3
95 * test/calc1.tab.c: regen
97 * test/calc1.y: modified to help make the files build with bison
99 * yacc.1: comment on "-y" and "-P" options.
101 * yacc.1: comment on portability
103 * test/ftp.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc3-s.tab.c:
106 * test/ftp.y: modified to help make the files build with bison
107 (bison's "-y" option is of no use in providing "yacc" compatibility)
109 * test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c:
112 * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y:
113 modified to help make the files build with bison
115 * test/calc.tab.c: regen
117 * test/calc.y: modified to help make the files build with bison
119 * test/error.tab.c: regen
121 * test/error.y: modified to help make the files build with bison
123 * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen
126 check for older bisons which (2.3 for instance) do not support pure parsers
128 * test/code_error.y, test/calc3.y, test/calc2.y:
129 modified to help make the files build with bison
131 * test/run_test.sh: use $opt2 in filenames of the generated files
133 * test/quote_calc2-s.tab.c, test/quote_calc3-s.tab.c, test/quote_calc4-s.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4.tab.c:
136 2012-01-14 Thomas E. Dickey <tom@invisible-island.net>
138 * test/calc2.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/calc1.tab.c:
141 * output.c: Several changes:
142 a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex.
143 b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL,
144 using YYLEX_PARAM_TYPE and YYLEX_PARAM.
145 c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL,
146 to help with redefinitions.
148 * test/pure_calc.tab.c:
149 modified to help make the files build with bison
152 start work on followup, to check if the generated files build with bison.
154 * test/pure_calc.y, test/pure_error.tab.c:
155 modified to help make the files build with bison
157 * test/calc3.tab.c: regen
159 * test/quote_calc-s.output, test/quote_calc-s.tab.c, test/quote_calc-s.tab.h, test/quote_calc2-s.output, test/quote_calc2-s.tab.c, test/quote_calc2-s.tab.h, test/quote_calc3-s.output, test/quote_calc3-s.tab.c, test/quote_calc3-s.tab.h, test/quote_calc4-s.output, test/quote_calc4-s.tab.c, test/quote_calc4-s.tab.h:
162 * test/run_test.sh: generate/test with "-s" option applied.
164 2012-01-13 Thomas E. Dickey <tom@invisible-island.net>
166 * package/debian/changelog, package/byacc.spec, VERSION: bump
168 * yacc.1: improve documentation of -s option
170 * yacc.1: note that yacc ignores -y
172 * main.c: add -s option to usage message.
174 * test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h, test/quote_calc3.y, test/quote_calc.tab.h, test/quote_calc.output, test/quote_calc.tab.c, test/quote_calc2.output, test/quote_calc2.tab.c, test/quote_calc2.tab.h, test/quote_calc3.tab.h, test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y:
179 * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE
181 2011-12-19 Thomas E. Dickey <tom@invisible-island.net>
183 * package/debian/changelog, package/byacc.spec, VERSION: bump
185 * yacc.1, output.c, main.c, defs.h:
186 add "-s" option to suppress generating #define's based on string contents
187 in a %token statement. For instance
192 Simply suppressing the second #define makes the behavior closer to yacc.
193 (report by Paulo Andrade).
195 2011-09-08 Thomas E. Dickey <tom@invisible-island.net>
197 * package/debian/changelog, package/byacc.spec, VERSION: bump
200 fix some more interaction between -i and -d flags to ensure YYERRCODE
201 and YYSTYPE are declared, tested with cproto.
203 2011-09-07 Thomas E. Dickey <tom@invisible-island.net>
205 * yacc.1: document "-i" option.
207 * package/debian/changelog, package/byacc.spec, VERSION: bump
209 * output.c: fix an interaction between -i and -d
211 * test/code_error.code.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c:
212 regen - changes for "-i" option move the global/impure variables near the
213 macros that may add a prefix, etc.
215 * skeleton.c, output.c, defs.h: changes to support "-i" option.
217 2011-09-06 Thomas E. Dickey <tom@invisible-island.net>
219 * reader.c: pass explicit file-pointer to write_section()
222 add "-i" option, to generate interface-file (suggested by Denis M. Wilson)
224 2011-09-05 Thomas E. Dickey <tom@invisible-island.net>
229 resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC)
230 and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks)
232 * defs.h, error.c, reader.c:
233 add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson)
235 2011-04-01 Thomas E. Dickey <tom@invisible-island.net>
237 * config.sub: 2011-04-01
239 2011-02-02 Thomas E. Dickey <tom@invisible-island.net>
241 * config.guess: 2011-01-01
243 2010-12-29 Thomas E. Dickey <tom@invisible-island.net>
245 * defs.h, skeleton.c:
246 add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas)
249 mark all of the error-functions as non-returning (report by Christos Zoulas)
251 * test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c, test/ftp.tab.c:
255 use only realloc() rather than realloc+malloc, agree that systems needing this
256 are very rare (prompted by NetBSD change).
258 * test/ftp.tab.c: regen
260 2010-12-29 Christos.Zoulas
263 improve example, which was stuck in 19XX and assumed file sizes were longs.
265 2010-12-29 Thomas E. Dickey <tom@invisible-island.net>
267 * test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c:
270 * test/pure_error.y, test/pure_calc.y, test/ftp.y, test/error.y, test/code_error.y, test/code_calc.y, test/calc.y, test/calc3.y, test/calc2.y, test/calc1.y:
271 use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror
274 remove explicit prototype for yylex() via YYLEX_DECL() macro, since that
275 would prevent declaring yylex() static (request by Christos Zoulas).
277 * test/calc2.tab.c, test/calc3.tab.c: regen
279 2010-12-29 Christos.Zoulas
281 * output.c: correct definition for YYERROR_DECL()
283 2010-12-29 Thomas E. Dickey <tom@invisible-island.net>
285 * package/debian/changelog, package/byacc.spec, VERSION: bump
287 2010-12-26 Thomas E. Dickey <tom@invisible-island.net>
290 change return-type of allocate() to avoid warnings of alignment problems
292 * main.c: Solaris declares chmod() in <sys/stat.h>
296 * main.c: ifdef'd use of fcntl.h
298 * configure.in: add configure checks for fcntl.h, atexit and mkstemp
300 * main.c: for cases where mkstemp() is not available, use tempnam/open
302 * aclocal.m4: add CF_MKSTEMP
305 improve quoting, deprecate ${name-value} in favor of standard ${name:-value}
307 2010-12-25 Thomas E. Dickey <tom@invisible-island.net>
310 start revising use of tmpfile(), to make this work with MinGW. Start by
311 implementing a mkstemp() alternative - noting that mkstemp() also is broken
314 * package/debian/changelog, package/byacc.spec, VERSION: bump
316 2010-11-27 Thomas E. Dickey <tom@invisible-island.net>
318 * package/byacc.spec, package/debian/changelog, VERSION: bump
320 * test/calc2.tab.c, test/calc3.tab.c: regen
323 corrected use of %parse-param value in yyerror(); it doesn't use &yylval
324 (report by Clifford Yapp)
326 2010-11-26 Thomas E. Dickey <tom@invisible-island.net>
331 correct line-numbering when "-r" option is used; the 'outline' variable
332 should only be incremented when writing to the code-file.
334 * test/code_calc.code.c, test/code_error.code.c: regen
338 * yacc.1: comment on -b option vs -r
340 * test/calc2.tab.c, test/calc2.y, test/calc3.tab.c, test/calc3.y, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c:
344 improve on YYERROR_DECL(), adding dummy params which can be used for the
345 actual function declaration. Also add YYERROR_CALL(). The two macros
346 simplify maintaining sets of grammars which may/may not be pure.
348 * test/calc1.y, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c:
351 * output.c: generate yyerror() calls in output.c
352 This is for compatibility with bison, which passes the yylval to yyerror
353 when the %parse-param feature is used.
355 * skeleton.c, defs.h: generate yyerror() calls in output.c
357 * output.c: simplified a little, using putc_code() and putl_code()
359 * test/calc1.tab.h: regen
362 improve ifdef for YYSTYPE union declaration (report by Clifford Yapp)
365 accept underscore as a replacement for dash in command names, e.g.,
366 "%pure_parser" vs "%pure-parser".
368 * test/calc1.tab.c: regen
370 * output.c, reader.c:
371 also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp)
373 * package/debian/changelog, package/byacc.spec, VERSION: bump
375 2010-11-24 Thomas E. Dickey <tom@invisible-island.net>
377 * main.c, defs.h, symtab.c, error.c: reduce global variables
379 * package/debian/changelog, package/byacc.spec, VERSION: bump
382 amend fix for Redhat #112617 to still call default_action_warning() for
383 empty rules (report by Bruce Cran).
385 2010-11-22 Thomas E. Dickey <tom@invisible-island.net>
388 add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp).
390 * test/calc1.tab.c: regen
392 * test/calc1.y: cleanup compiler warnings
394 * test/grammar.y: add "%expect"
396 * test/calc1.tab.h: regen
398 * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE
400 * test/calc2.tab.c, test/calc3.tab.c: regen
403 advanced example from Steve Johnson's paper, uses unions
405 * test/calc3.y, test/calc2.y: init 'base', so examples can run
407 * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++
409 * output.c: compensate for fix in reader.c
412 add/use putc_both() and puts_both(), incidentally fixing a place where
413 a union copied to the union_file may be missing the end of the last line.
415 * package/debian/changelog, package/byacc.spec, VERSION: bump
417 2010-09-28 Thomas E. Dickey <tom@invisible-island.net>
419 * config.guess: 2010-09-24
421 2010-09-10 Thomas E. Dickey <tom@invisible-island.net>
423 * config.sub: 2010-09-11
425 2010-06-10 Thomas E. Dickey <tom@invisible-island.net>
427 * yacc.1, package/debian/changelog, package/byacc.spec, VERSION:
430 2010-06-09 Thomas E. Dickey <tom@invisible-island.net>
432 * reader.c: free declarations in leak-testing code.
434 * main.c: close code_file if -r option used, for leak-testing
437 improve %lex-param / %parse-param implementation by allowing for arrays to
438 be passed as parameters, e.g., "int regs[26]".
440 * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h, test/calc2.tab.c, test/calc2.y, test/calc2.tab.h, test/calc2.output:
444 improve %lex-param / %parse-param implementation by allowing for arrays to
445 be passed as parameters, e.g., "int regs[26]".
447 * test/calc.tab.c, test/calc.y:
448 test-cases and reference files for %lex-param / %parse-param
450 * makefile.in: add docs-rule, for html/pdf/txt form of manpage
454 * aclocal.m4: add CF_XOPEN_SOURCE, etc.
457 use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89
459 * test/ftp.tab.c, test/ftp.y, reader.c, symtab.c, verbose.c, lr0.c, main.c, mkpar.c, output.c, defs.h, closure.c:
460 fix warnings from clang --analyze
462 2010-06-08 Thomas E. Dickey <tom@invisible-island.net>
464 * output.c: fix to build with c89, etc.
466 * reader.c: gcc warning
468 * test/ftp.tab.c, test/ftp.y, test/calc.tab.c, test/code_calc.code.c, test/code_error.code.c, test/code_error.y, test/code_calc.y, test/calc.y, test/pure_error.tab.c, test/error.tab.c, test/error.y, test/pure_error.y, test/pure_calc.tab.c, test/pure_calc.y:
469 modified test-cases to allow them to compile, to validate pure-parser changes.
470 updated reference files to match.
473 move call for output_stype() earlier since it is used in pure-parser declarations
475 * test/grammar.tab.c, test/grammar.y:
476 modified test-cases to allow them to compile, to validate pure-parser changes.
477 updated reference files to match.
479 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
482 * yacc.1: document %lex-param and %parse-param
484 * test/run_lint.sh, test/run_make.sh: RCS_BASE
487 further modify to allow build-directory to be in a different location by
488 passing this directory's location as a parameter to the script.
491 add check_make and check_lint rules to help validate the generated files
492 in the test-directory
494 2010-06-07 Thomas E. Dickey <tom@invisible-island.net>
496 * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE
499 provide for testing -r and -P options by checking if the ".y" filename
500 begins with "code_" or "pure_", respectively.
502 * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h, test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h, test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h, test/code_calc.output, test/code_error.output:
505 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen
508 changes to support running "make check" in a separate build-tree
510 * main.c: add "-P" to usage message
512 * reader.c: use UCH() macro to hide casts.
514 2010-06-07 Andres.Mejia
516 * main.c, output.c, reader.c, defs.h, skeleton.c:
517 Fix the output order of the generated parse code file. This allows for
518 the use of YYPARSE_PARAM, by having the output that checks for
519 YYPARSE_PARAM to be defined come after the C code block in the
520 definitions section of a yacc file.
522 Implement support for YYLEX_PARAM, similar to bison. This is useful for
523 support for building reentrant lexers with flex.
525 Fix a compatibility issue with bison's pure-parser option. Bison
526 defines yylex as sending at least one parameter, &yylval, as the first
527 parameter and doesn't seem to have an easy way to remove that parameter.
528 This on the other hand is rather convenient to support saving to yylval
529 from flex when building reentrant lexers and parsers.
531 Add support for the %parse-param and %lex-param directives used in
532 bison. This change bears some similarity to NetBSD's changes to byacc
533 at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html
535 Bison allows for POSIX yacc emulation via a yacc directive in the yacc
536 file, and also via a command line switch. Implement this feature as a
537 no-op for byacc, since byacc is designed to be POSIX yacc compatible
538 anyway. This allows for better compatibility with yacc sources written
541 2010-06-07 Thomas E. Dickey <tom@invisible-island.net>
543 * VERSION: bump to 2010/06/07
545 2010-06-06 Thomas E. Dickey <tom@invisible-island.net>
547 * test/calc.tab.c, configure: regen
550 move #include's down into the generated code, to allow user-defined code
551 to override feature definitions, particularly with stdlib.h (request by
554 * lr0.c, error.c, reader.c, defs.h:
555 strict gcc 3.4.6 warnings on 64-bit platform
557 * aclocal.m4, configure.in: add check for lint
559 * makefile.in: add lint rule
561 * defs.h, closure.c, lr0.c, warshall.c, main.c:
562 fix gcc warnings, mostly for 64-bit platform
565 add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc
567 * makefile.in: add etags/TAGS if available
569 * configure.in: add configure check for actual ctags and etags programs
571 * package/debian/copyright: add copyright notices for non-PD files
573 * package/debian/changelog:
574 incorporated scripts in upstream to use for test-builds
576 * makefile.in: drop mkdirs.sh, just use "mkdir -p"
578 * AUTHORS: nicknames for some contributors (see CHANGES for details)
580 * package/byacc.spec: RPM file for byacc
582 * VERSION: bump to 2010/06/06
584 * aclocal.m4: add copyright notice, from "my-autoconf" macros
585 http://invisible-island.net/autoconf/autoconf.html
587 * package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS:
590 * aclocal.m4: resync with my-autoconf. summary of changes:
591 a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter
592 b) CF_DISABLE_ECHO, change indent-convention for substituted makefile
593 c) CF_GCC_VERSION, ignore stderr
594 d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc
596 2010-04-20 Thomas E. Dickey <tom@invisible-island.net>
598 * package/debian/changelog, package/debian/compat, package/debian/control, package/debian/copyright, package/debian/docs, package/debian/postinst, package/debian/prerm, package/debian/rules, package/debian/watch:
599 scripts from Debian package
601 2010-02-16 Thomas E. Dickey <tom@invisible-island.net>
603 * yacc.1: document -P and bison-extensions
605 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
608 * output.c: implement %pure-parser
611 implement %pure-parser, like bison. To help with this, changed the stack
612 variables, putting them into a struct.
614 * reader.c: implement %pure-parser
616 * defs.h: modified skeleton to support %pure-parser feature
618 * main.c: add -P option to set %pure-parser
621 make -r and -p options work together. The -r option splits the generated
622 parser into code/table files; for this case we cannot use static data.
623 Also, we have to repeat the #define's used for prefix (-p) as well as the
624 redeclaration of yyparse(). Finally, allow any of the prefixed names to
625 be overridden, e.g., by passing a -D option to the compiler. Make that
626 a little more readable by putting a blank line before each chunk.
628 * defs.h: add definitions for %pure-parser
631 put blank line before/after the redeclaration of yyparse()
633 * output.c: allow for other program redefining yylex()
636 split-off xdecls[] array, to move declaration of yyparse() after #define's
638 * defs.h: split-out xdecls[]
644 * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS
647 resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes.
649 2010-02-16 Ostap.Cherkashi
651 * skeleton.c: fix a memory leak in the generated skeleton
653 2010-01-01 Thomas E. Dickey <tom@invisible-island.net>
655 * package/debian/source/format: scripts from Debian package
657 2009-12-31 Thomas E. Dickey <tom@invisible-island.net>
659 * config.guess: 2009-12-30
661 * config.sub: 2009-12-31
663 2009-10-27 Thomas E. Dickey <tom@invisible-island.net>
667 * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c:
668 strict compiler warnings
670 2009-10-26 Thomas E. Dickey <tom@invisible-island.net>
672 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
675 * main.c, defs.h: introduce some typedefs for portability, etc.
678 don't remove "*.log" in mostlyclean rule since it interferes with regression
683 * aclocal.m4: resync with my-autoconf
685 2009-08-25 Thomas E. Dickey <tom@invisible-island.net>
687 * config.guess, config.sub: 2009-08-19
689 2009-02-21 Thomas E. Dickey <tom@invisible-island.net>
693 * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25
695 2008-12-26 Thomas E. Dickey <tom@invisible-island.net>
697 * configure: regen with autoconf-2.52 (patched)
699 2008-12-25 Thomas E. Dickey <tom@invisible-island.net>
701 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
704 2008-12-24 Thomas E. Dickey <tom@invisible-island.net>
709 remove ifdef-lint from goto yyerrlab, to quiet gcc warning
711 2008-11-26 Thomas E. Dickey <tom@invisible-island.net>
713 * verbose.c, main.c, defs.h, mkpar.c, reader.c:
714 completed implementation of "%expect" (report by Perry E. Metzger).
715 add "%expect-rr", which is (unlike bison) allowable in LALR parsers.
717 2008-11-24 Thomas E. Dickey <tom@invisible-island.net>
719 * 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:
720 change indent-style (request by Perry E. Metzger)
722 2008-08-27 Thomas E. Dickey <tom@invisible-island.net>
724 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
725 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
730 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
732 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c:
733 change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's.
737 * configure.in: add -Wwrite-strings to warnings
739 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
740 add YYPARSE_PARAM and YYPARSE_PARAM_TYPE
743 add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features.
745 * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c:
746 fixes for gcc -Wwrite-strings
748 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
749 generate the tables as static-const (this is an interface change)
751 * output.c: realign columns in start_table()
754 generate the tables as static-const (this is an interface change)
756 * output.c: reorder functions to eliminate forward-references
758 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
759 remove 'register' keywords
761 2008-08-26 Thomas E. Dickey <tom@invisible-island.net>
763 * 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:
764 remove 'register' keywords
766 2008-08-25 Thomas E. Dickey <tom@invisible-island.net>
768 * test/ftp.tab.c: regen'd
771 improve the left-curly fix by testing after blanks, to avoid having a
772 " {" at the beginning of a line.
774 * test/error.tab.c, test/grammar.tab.c: regen'd
777 move the remaining newline-counting into write_XXX functions.
779 * test/calc.tab.c: regen'd
782 simplify part of the output_file formatting using new functions, e.g.,
783 start_int_table(), output_newline().
786 modify copy_action() to indent the first character, it if is is left-curly
787 brace. That makes the output look more like the original, as well as makes
788 it simpler to edit (not confuse editors which look for a left-curly in the
789 first column as if it were the beginning of a function).
791 * skeleton.c: minor fixes to avoid gcc -Wconversion warnings
793 * output.c: align the #define's produced for "-p" option
795 * test/run_test.sh: use the "-p" option for better coverage.
797 * output.c: simplify output_prefix() with new define_prefixed()
799 * skeleton.c: include string.h, for memset()
800 change stack size to unsigned to fix gcc -Wconversion warnings.
802 * VERSION: bump to 2008/8/25
804 * makefile.in: add dependency on VERSION file.
806 2008-08-24 Thomas E. Dickey <tom@invisible-island.net>
810 * lalr.c: improved memory-leak checking by freeing data in includes[]
812 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
813 update to match skeleton-change
817 * skeleton.c: Add fix for stack discussed
818 http://undeadly.org/cgi?action=article&sid=20080708155228
820 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29
822 * aclocal.m4: resync with my-autoconf (no major changes)
824 2008-07-24 Thomas E. Dickey <tom@invisible-island.net>
826 * package/pkgsrc/Makefile, package/pkgsrc/distinfo:
827 scripts from NetBSD pkgsrc, for test-builds
829 2008-03-14 Thomas E. Dickey <tom@invisible-island.net>
831 * config.sub: update to 2008-03-08
833 * config.guess: update to 2008-03-12
835 2007-05-09 Thomas E. Dickey <tom@invisible-island.net>
837 * main.c: close graph, verbose files if opened, on exit.
840 audit memory leaks - valgrind reported some memory still in use on exit.
842 * lalr.c, output.c, reader.c, mkpar.c, lr0.c:
843 add hook for auditing memory leaks
845 * defs.h: add hooks for auditing memory leaks
850 use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind,
851 --with-dbmalloc and --with-dmalloc
853 * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND
855 * aclocal.m4: improve version-checking in CF_GCC_VERSION
856 rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro
860 * main.c: file_prefix did not always have a trailing null.
862 2007-03-25 Thomas E. Dickey <tom@invisible-island.net>
864 * mkdirs.sh: improved version for "make -j"
866 2006-12-22 Thomas E. Dickey <tom@invisible-island.net>
868 * config.guess: 2006/12/22
870 2006-12-08 Thomas E. Dickey <tom@invisible-island.net>
872 * config.sub: 2006/12/08
874 2005-08-13 Thomas E. Dickey <tom@invisible-island.net>
876 * main.c: add -V to usage message
878 * makefile.in: remove -t option from ctags
884 * main.c: Sylvain Schmitz:
885 modify the '-o' option to work like bison's, which sets the file-prefix.
887 2005-08-13 Matt.Kraai
890 Debian #322858 (don't close union_file, which contained data).
891 This feature is used in groff.
893 2005-08-13 Thomas E. Dickey <tom@invisible-island.net>
895 * configure: regenerated
897 * aclocal.m4: improve checks for Intel compiler warnings
899 2005-06-25 Thomas E. Dickey <tom@invisible-island.net>
901 * config.sub: 2005/6/2
903 * config.guess: 2005/5/27
905 2005-05-05 Thomas E. Dickey <tom@invisible-island.net>
907 * defs.h: add a fallback for GCC_UNUSED
909 2005-05-04 Thomas E. Dickey <tom@invisible-island.net>
911 * makefile.in: add "." to include-path to pickup config.h
914 apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617.
917 correct a limit check in pack_vector() - report/analysis by William Evans
920 exit after printing version. Otherwise "yacc -V" will exit with an erro
921 after printing the usage message.
923 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
924 regenerated after skeleton-changes
926 * skeleton.c: replace a few -1's with YYEMPTY
929 delete yynewerror (no one uses it any more, and it just makes compiler warnings)
931 * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD
934 filter out lines with YYPATCH, since that will change with each update
936 * yacc.1: add -V option
938 * main.c: add -V option to print the version.
939 simplify option-parsing by moving the duplicate logic for setting flags into
940 new function setflag().
943 move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers).
944 add YYPATCH here so it can be tested by applications.
947 add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and
950 * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c:
951 reduce externs by making static the procedures that are not referenced outside
952 the module in which they are defined.
955 the VERSION file holds the patch-date. Define YYPATCH, so this will be
956 compiled into the skeleton.
958 * VERSION: patch-level for byacc
961 add "-o" to usage message. It is too long for a single line; rewrite usage()
962 to show one option per line.
964 2005-05-03 Thomas E. Dickey <tom@invisible-island.net>
966 * main.c: add -o option, to work with scripts that assume bison.
967 simplify create_file_names() with a macro.
968 simplify done() with a macro.
969 adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by
970 onintr(), do not flush output via exit(), but use _exit() instead.
972 * defs.h: remove unnecessary externs for main.c
974 * yacc.1: add -o option
976 * graph.c: remove unused parameter
978 * mkpar.c, defs.h, reader.c:
979 add support for "%expect", a bison feature from FreeBSD sources
981 * 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:
984 * configure: regenerated for 2005/5/5
986 * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER)
990 * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1:
991 Sylvain Schmitz <schmitz@i3s.unice.fr>:
992 add graphical output of the LALR(1) automaton for graphviz,
993 associated with command-line option `-g'
995 2005-04-16 Thomas E. Dickey <tom@invisible-island.net>
997 * config.sub: 2005/2/10
999 * config.guess: 2005/3/24
1001 2005-04-13 Thomas E. Dickey <tom@invisible-island.net>
1003 * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds
1005 2005-03-21 Thomas E. Dickey <tom@invisible-island.net>
1007 * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds
1009 2004-03-28 Thomas E. Dickey <tom@invisible-island.net>
1011 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
1012 updates due to adding yyparse() prototype
1014 * configure: RCS_BASE
1017 add AC_ARG_PROGRAM to make --program-prefix, etc., work.
1019 * makefile.in: first cut of script to support --program-prefix
1022 reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52
1024 * makefile.in: modify so DESTDIR works
1026 * makefile.in: use EXEEXT and OBJEXT
1028 * configure.in: use CF_PROG_EXT
1031 * defs.h: make this use the generated config.h
1033 * skeleton.c: add a forward-reference for yyparse()
1035 * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT
1037 * yacc.1: remove the discussion of TMPDIR since it is obsolete
1039 * skeleton.c: fix a couple of minor compiler-warnings in the skeleton
1041 * defs.h: remove action_file_name, etc., since we use tmpfile() now.
1044 use tmpfile() for opening the working files. This quiets a warning
1045 advising the use of mkstemp().
1048 Do not close temporary-files here, since they are opened with tmpfile().
1049 Just rewind them, and they're ready to read back the data stored in them.
1051 * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE
1053 * makefile.in: turn on "make check" rule
1055 * test/calc.output, test/run_test.sh, test/calc.tab.h: RCS_BASE
1057 * test/ftp.tab.c: yyparse() is now yyparse(void)
1059 * test/calc.tab.c: RCS_BASE
1061 * test/error.tab.c: yyparse() is now yyparse(void)
1063 * test/README: RCS_BASE
1065 * yacc.1: various typography fixes prompted by Debian #100947
1067 * aclocal.m4, makefile.in, configure.in: RCS_BASE
1069 * README: updated to note that this is not the original
1071 2004-03-24 Thomas E. Dickey <tom@invisible-island.net>
1073 * test/grammar.y: RCS_BASE
1075 2004-02-23 Thomas E. Dickey <tom@invisible-island.net>
1077 * config.sub: RCS_BASE
1079 2004-02-17 Thomas E. Dickey <tom@invisible-island.net>
1081 * config.guess: RCS_BASE
1083 2003-11-29 Thomas E. Dickey <tom@invisible-island.net>
1085 * install-sh: improved quoting
1087 2002-06-29 Thomas E. Dickey <tom@invisible-island.net>
1090 don't use character range, since some locales don't work as expected
1092 2001-06-22 Thomas E. Dickey <tom@invisible-island.net>
1094 * install-sh: RCS_BASE
1096 2000-11-20 Thomas E. Dickey <tom@invisible-island.net>
1098 * test/calc.y: RCS_BASE
1100 * test/code_calc.y, test/pure_calc.y: copy of calc.y
1102 * vmsbuild.com: original version
1104 2000-02-23 Thomas E. Dickey <dickey@invisible-island.net>
1106 * test/RCS, RCS: PERMIT FILE
1108 2000-02-14 Thomas E. Dickey <tom@invisible-island.net>
1110 * main.c: fix for VMS port - making pathname for temp-file
1112 * descrip.mms: original version
1114 2000-02-13 Thomas E. Dickey <tom@invisible-island.net>
1116 * 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:
1119 1999-11-30 Thomas E. Dickey <tom@invisible-island.net>
1121 * mkdirs.sh: RCS_BASE
1123 1995-01-01 Thomas E. Dickey <tom@invisible-island.net>
1125 * config_h.in: RCS_BASE
1129 * README.DOS, main.c: MSDOS-port
1133 * reader.c, defs.h: MSDOS-port
1137 * README: original version
1141 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h, test/error.output, test/error.tab.c, test/error.tab.h:
1144 * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES:
1149 * yacc.1: original version
1153 * defs.h: original version
1157 * mkpar.c, verbose.c: original version
1161 * lr0.c, Makefile, Makefile.old: original version
1165 * NEW_FEATURES: original version
1169 * ACKNOWLEDGEMENTS: original version
1173 * symtab.c, lalr.c, error.c: original version
1175 1990-01-16 Thomas E. Dickey <tom@invisible-island.net>
1177 * test/code_error.y, test/pure_error.y: RCS_BASE
1181 * test/error.y: RCS_BASE
1185 * NO_WARRANTY: original version
1189 * test/ftp.y: RCS_BASE