- update to 20230521:
* error.c, defs.h, reader.c:
allow @1 or $@ with a warning if no %locations was given
* reader.c: clear pointer in end_ainfo() after freeing it.
* reader.c: report errors in %define as "unexpected value"
add/use macros begin_ainfo() and end_ainfo() to reduce clutter
* defs.h, error.c: add function unexpected_value()
* add %nterm as an alias for %type, since bison made that confusion.
* reader.c:
ensure that filler_buf and prefix_buf are initialized for the special case
where they are empty (report by Martin Jansa, cf: 20230219)
* output.c:
make test-differences smaller when compiling with YY_NO_LEAKS by replacing
a blank line with the generated #define rather than adding 3 lines.
* reader.c:
correct a use-after-free in more_curly, which could occur if a %lex-param
or %parse-param was multi-line (Redhat #2183006).
* main.c: rename no_space() to on_error()
* error.c: rename no_space() to no_error(), handling any errno
* defs.h: rename no_space() to on_error()
OBS-URL: https://build.opensuse.org/request/show/1090570
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=52
- update to 20221106:
* test/run_test.sh: use context diff, to work with AIX
* defs.h:
fprintf_lineno might be passed a null, when reading from stdin - show "(null)"
* makefile.in, test/run_make.sh, test/run_test.sh, test/run_lint.sh:
fgrep-fixes
* yacc.1: mention use of stderr/stdout for usage/debugging
* yacc.1: document %empty
* yacc.1: document %debug
* yacc.1: minor fixes with check-manpage
OBS-URL: https://build.opensuse.org/request/show/1039858
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=44
* change a few malloc's to calloc's so clang analyzer can see initialized data
* modify address computation in closure.c to avoid undefined behavior on
machines which do not support large offsets (analysis/patch by Jessica Clarke,
cf: 2014-09-17)
* testsuite and autotools/build script fixes
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=42
- update to 20210328:
* reader.c: ignore bison's "%empty" extension
* reader.c, defs.h:
%debug was a trivial bison "extension", mark it as such
* yacc.1: use italics in a few places where bold was inappropriate
* reader.c:
add union tag to YYSTYPE structure for compatibility with a feature which
bison copied from Solaris yacc (request by Ella Stanforth)
* closure.c, warshall.c:
fix undefined-behavior diagnosed with gcc -fsanitize=undefined (report by
Alexander Richardson)
OBS-URL: https://build.opensuse.org/request/show/891593
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=38
- update to 20200910:
* LICENSE: RCS_BASE
* reader.c, output.c: cppcheck -- reduce scope
update to version 2.0
improve loop which skips backward through a (possibly nested) sequence of
square-brackets.
* reader.c: simplify a check to quiet a bogus cppcheck-warning
* yacc.1: bump date
* reader.c: add a note about a bogus cppcheck warning
always check for gcc attributes, to work around defect in clang's imitation
of this feature
* reader.c: cppcheck -- scope reduction
cppcheck -- eliminate bogus returns after no-return functions
* verbose.c, output.c, mkpar.c, main.c, warshall.c, lr0.c, lalr.c, graph.c, closure.c:
cppcheck -- scope reduction
OBS-URL: https://build.opensuse.org/request/show/835688
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=36
- package/debian/source/format: change to native format to work
around regression in Debian packaging.
- main.c: correct parameter for umask - for very old mkstemp's -
and use type mode_t to quiet compiler warning
- configure.in: add configure check for mode_t
- reader.c: better fix for get_line, by ensuring there is enough
space to null-terminate its result (prompted by discussion with
Craig Rodrigues).
- main.c: make change to umask before calling mkstemp, as
suggested in Coverity #56902
- reader.c: adjust logic in copy_action to avoid potential
null-pointer dereference (Coverity #56901)
- reader.c: adjust logic to avoid potential null-pointer
dereference in compile_args (Coverity #63407)
- reader.c: eliminate strcpy into fixed-size buffer (Coverity
#63408)
- yacc.1: document changes made with respect to %parse-param
- output.c: add parameters from %parse-param to destructor. The
order of the parameters is intentionally inconsistent with
yyparse/yyerror, for "compatibility" with bison.
- output.c: use puts_param_types/puts_param_names to output
lex_param data.
- btyaccpar.c: add casts, change types to fix strict compiler
warnings
- output.c: gcc-warning
- output.c: fix limit when merging real/workaround tables
- output.c: for btyacc, it is possible to have no conflicts - but
in that case, the "ctable" was not generated at all, while the
skeleton uses the table. The most straightforward (workaround)
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=13
* reader.c: fix two loop-limits found by clang 3.3 --analyze
* configure: regen
* aclocal.m4: tweaks to CF_MIXEDCASE_FILENAMES and
CF_XOPEN_SOURCE for msys from ncurses
* package/mingw-byacc.spec: RCS_BASE
* regenerate various test files
* skeleton.c: Increase default stack-size to match FreeBSD
version noted as from "BSD 4.4 Lite Usr.bin Sources".
* config.sub: update to 2013-09-15
* config.guess: update to 2013-06-10
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/byacc?expand=0&rev=7