Up to [cvs.NetBSD.org] / src / external / bsd / byacc / dist / test / yacc
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
merge conflicts between 20210109 and 20240109
Import byacc 20240109, previous was 20210109 Changes: 2024-01-09 Thomas E. Dickey <dickey@invisible-island.net> * yacc.1: minor cleanup * package/debian/copyright: bump * configure: regen * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-12-01 Thomas E. Dickey <dickey@invisible-island.net> * aclocal.m4: resync with my-autoconf: CF_CONST_X_STRING CF_MKSTEMP CF_WITH_MAN2HTML CF_XOPEN_SOURCE 2023-09-15 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2023-09-15 2023-08-22 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2023-08-22 2023-05-21 Thomas E. Dickey <dickey@invisible-island.net> * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * configure: regen * aclocal.m4: updates for CF_INSTALL_MAN from reflex, which needs the symbolic link feature * aclocal.m4: improve install-man by adding sed commands for --program-transform-name 2023-05-19 Thomas E. Dickey <dickey@invisible-island.net> * makefile.in: use CF_INSTALL_MAN * aclocal.m4: add CF_INSTALL_MAN, to begin refactoring install rule for manpage * configure: regen * configure.in: use CF_INSTALL_MAN 2023-05-18 Thomas E. Dickey <dickey@invisible-island.net> * error.c, defs.h, reader.c: allow @1 or $@ with a warning if no %locations was given 2023-05-17 Thomas E. Dickey <dickey@invisible-island.net> * reader.c: clear pointer in end_ainfo() after freeing it. 2023-05-16 Thomas E. Dickey <dickey@invisible-island.net> * reader.c: report errors in %define as "unexpected value" * reader.c: add/use macros begin_ainfo() and end_ainfo() to reduce clutter * defs.h, error.c: add function unexpected_value() * reader.c: recognize bison's "%define api.pure" as an alternative to "%pure-parser" * reader.c: 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: gcc-warnings 2023-05-15 Thomas E. Dickey <dickey@invisible-island.net> * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * reader.c: when copying parameters, check for a case where the last token is not a name, e.g., "foo [1]" would have "[1]". In this case, scan back to find the actual parameter name. * 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). 2023-05-11 Thomas E. Dickey <dickey@invisible-island.net> * 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() 2023-04-03 Thomas E. Dickey <dickey@invisible-island.net> * aclocal.m4: resync with my-autoconf: CF_GCC_VERSION CF_XOPEN_SOURCE 2023-02-26 Thomas E. Dickey <dickey@invisible-island.net> * mstring.c, reader.c: yak-indent 2023-02-26 mingodad * reader.c: patch for byacc #6: Segmentation fault when trying to parse bison-3.8.2 grammar 2023-02-26 Thomas E. Dickey <dickey@invisible-island.net> * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-02-20 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * aclocal.m4: resync with my-autoconf 2023-02-19 Thomas E. Dickey <dickey@invisible-island.net> * test/yacc/ok_syntax1.tab.h, test/yacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h, test/btyacc/ok_syntax1.tab.c: regen * test/ok_syntax1.y: modify test for %union to add tag for testing reader.c * reader.c: provide for a named union, e.g., "%union foo" by detecting the name and deferring the typedef in that case until the end of copying the union definition (report by Dag-Erling Smørgrav). * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-02-01 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * configure.in: initialize $ac_includes_default * VERSION, package/byacc.spec, package/debian/changelog, package/debian/copyright, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2023-01-05 Thomas E. Dickey <dickey@invisible-island.net> * aclocal.m4: resync with my-autoconf 2022-12-29 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * configure.in: correct help-message for --disable-btyacc option, and fix the reporting of the selected option value in the configure script's output (report by Daniel Weaver) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-12-02 Thomas E. Dickey <dickey@invisible-island.net> * aclocal.m4: resync with my-autconf 2022-11-06 Thomas E. Dickey <dickey@invisible-island.net> * 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 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-10-02 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * aclocal.m4: resync with my-autoconf 2022-08-01 Thomas E. Dickey <dickey@invisible-island.net> * config.guess, config.sub: 2022-08-01 2022-01-28 Thomas E. Dickey <dickey@invisible-island.net> * package/debian/copyright: update, fix typo * package/debian/rules, package/debian/control: adapt from current Debian package * configure: regen * configure.in: change default for the backtracking option to match the most-common usage of byacc * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: update packaging, renaming debian folder back to its original location to verify that the version-mangling used in the accepted Debian package will work with the continuous-integration system. 2022-01-18 Thomas E. Dickey <dickey@invisible-island.net> * package/debian/watch: adapt from current Debian package 2022-01-14 Thomas E. Dickey <dickey@invisible-island.net> * VERSION, package/byacc.spec, package/detest/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-01-09 Thomas E. Dickey <dickey@invisible-island.net> * package/detest/changelog: build-script * package/debian/changelog: update to use oldstable-compatible rules/config, for testing version upgrade * package/detest/watch: build-script * package/debian/watch: update to use oldstable-compatible rules/config, for testing version upgrade * package/detest/control: build-script * package/debian/control: update to use oldstable-compatible rules/config, for testing version upgrade * package/byacc.spec, package/mingw-byacc.spec: use rpmlint, etc., to "update" these to follow Redhat7 and later. due to incompatbilities in that route, this package will not build with #6. * reader.c, output.c: change a few malloc's to calloc's so clang analyzer can see initialized data * closure.c: 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) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-01-08 Thomas E. Dickey <dickey@invisible-island.net> * package/detest/copyright, package/detest/rules: build-script * package/debian/copyright, package/debian/rules: update to use oldstable-compatible rules/config, for testing version upgrade 2022-01-02 Thomas E. Dickey <dickey@invisible-island.net> * package/debian/control: minor fixes adapted from btyacc package * package/debian/byacc.docs: RCS_BASE * package/detest/byacc.docs: build-script * package/debian/byacc2.prerm: RCS_BASE * package/detest/byacc2.prerm: build-script * package/debian/byacc2.postinst: RCS_BASE * package/detest/byacc2.postinst: build-script * package/debian/byacc.postinst: RCS_BASE * package/detest/byacc.postinst: build-script * package/debian/byacc.prerm: RCS_BASE * package/detest/byacc.prerm: build-script * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2022-01-01 Thomas E. Dickey <dickey@invisible-island.net> * test/run_test.sh: adjust to ignore NetBSD's difference in getopt warnings. * package/pkgsrc/Makefile: resync with pkgsrc * test/yacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.c: regen * test/expr.oxout.y, test/expr.oxout.h: fix gcc warnings * test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h: regen * test/run_make.sh: workaround for compiling the expr.oxout.y files * test/expr.oxout.y: fix syntax error * test/btyacc/expr.oxout.tab.c: regen * test/expr.oxout.h: RCS_BASE * test/yacc/expr.oxout.tab.c: fix syntax error * test/btyacc/expr.oxout.tab.c: regen, s/expr.oxout/expr_oxout/g * test/btyacc/expr.oxout.tab.h: regen * test/run_test.sh: filter the default prefix to change "." to "_", so that the generated files will compile consistently with run_make.sh * package/debian/control, package/debian/prerm, package/debian/postinst: add "byacc2" as an alternative for "yacc" * package/byacc.spec, package/debian/control, package/debian/rules: rename "btyacc" to "byacc2" to co-exist with traditional "btyacc" package * package/debian/copyright, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-12-24 Thomas E. Dickey <dickey@invisible-island.net> * package/debian/rules: fixes from Debian package for lintian warnings * package/debian/control: updates for Debian standard * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * package/debian/byacc2.docs: RCS_BASE * package/detest/byacc2.docs: build-script * package/debian/docs, package/debian/copyright, package/debian/control: errata from Debian package * config.sub: 2021-12-24 From: Dmitry V. Levin <ldv@altlinux.org> config.sub: alias aarch64le to aarch64 Apparently, QNX reports aarch64 as aarch64le on little-endian machines. * config.sub (aarch64le-*): Set cpu to aarch64. (timestamp): Update. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data (aarch64le-qnx): New test. Reported-by: Elad Lahav <e2lahav@gmail.com> Link: https://lists.gnu.org/archive/html/config-patches/2021-12/msg00009.html 2021-12-16 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * aclocal.m4: resync with my-autoconf 2021-12-13 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-10-27 From: Dmitry V. Levin <ldv@altlinux.org> config.sub: fix typo in timestamp * config.sub: Fix timestamp. * doc/config.sub.1: Regenerate. Reported-by: Jordi Sanfeliu <jordi@fibranet.cat> Fixes: a013aac61edfa2a03727521508286480010e7bf3 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-11-30 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-11-30 From: Andreas F. Borchert <github@andreas-borchert.de> config.guess: x86_64-pc-solaris2.11 is not properly recognized config.guess guesses Solaris 11 to run on a 32-bit platform despite Solaris 11 no longer supporting any 32-bit platform. See the following code at lines 434 to 445: | SUN_ARCH=i386 | # If there is a compiler, see if it is configured for 64-bit objects. | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. | # This test works for both compilers. | if test "$CC_FOR_BUILD" != no_compiler_found; then | if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ | grep IS_64BIT_ARCH >/dev/null | then | SUN_ARCH=x86_64 | fi | fi If "cc" is installed, i.e. the Oracle Studio compiler, this one is chosen for $CC_FOR_BUILD. This compiler, the gcc provided by Oracle and also gcc bootstrapped from sources on that platform with a default configuration will by default generate 32-bit binaries -- even on a 64-bit platform. And __amd64 will not be defined for compilations targeting a 32-bit platform. This is different from the corresponding behaviour on GNU/Linux systems where the local platform is targeted by default. Thus, as long as you do not add "-m64" or if you have a custom-built gcc which defaults to 64 bit, you will get 32-bit binaries on Solaris despite living on a 64-bit platform. * config.guess (i86pc:SunOS:5.*:* || i86xen:SunOS:5.*:*): Adapt the test by adding the "-m64" flag. This will work properly for Solaris 10 as well (the last Solaris release that supported x86 32-bit platforms). * doc/config.guess.1: Regenerate. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-10-27 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-10-27 From: Jordi Sanfeliu <jordi@fibranet.cat> Recognize Fiwix $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (137 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (882 tests) PASS: config.sub idempotency checks (819 tests) PASS: config.sub canonicalise each config.guess testcase (137 tests) * config.guess (i*86:Fiwix:*:*): Recognize. * config.sub (fiwix*): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for Fiwix. * testsuite/config-sub.data (i386-fiwix): New test. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> * config.sub: 2021-20-27 From: Jordi Sanfeliu <jordi@fibranet.cat> Recognize Fiwix $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (137 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (882 tests) PASS: config.sub idempotency checks (819 tests) PASS: config.sub canonicalise each config.guess testcase (137 tests) * config.guess (i*86:Fiwix:*:*): Recognize. * config.sub (fiwix*): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for Fiwix. * testsuite/config-sub.data (i386-fiwix): New test. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-10-18 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-08-14 From: Kinshuk Dua <kinshukdua@gmail.com> config.sub: Fix typo in comment Fixes: 5e531d391852a54e7fab2d8ff55625fca514b305 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-08-14 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-08-14 From: Nick Bowler <nbowler@draconx.ca> config.sub: work around command assignment bug in some shells When combining variable assignments with a shell command, some older shells (notably heirloom-sh and presumably also Solaris 10 /bin/sh) have a bug which causes the assignment to alter the current execution environment whenever the command is a shell built-in. For example: % dash -c 'x=good; x=bad echo >/dev/null; echo $x' good % jsh -c 'x=good; x=bad echo >/dev/null; echo $x' bad The config.sub script contains a few commands of the form: IFS=- read ... which triggers this bug, causing the IFS assignment to persist for the remainder of the script. This can cause misbehaviour in certain cases, for example: % jsh config.sub i386-linux-gnu config.sub: test: unknown operator gnu % jsh config.sub i386-gnu/linux sed: can't read s|gnu/linux|gnu|: No such file or directory Invalid configuration `i386-gnu/linux': OS `' not recognized * config.sub: Save and restore IFS explicitly to avoid shell bugs. * doc/config.sub.1: Regenerate. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-08-08 Thomas E. Dickey <dickey@invisible-island.net> * reader.c: fix memory-leak when replacing $$'s in destructor code (report/testcase by Boris Kolpackov). * main.c: account for a memory-leak * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c, btyaccpar.c, yaccpar.c: regen * btyaccpar.skel, yaccpar.skel: revert change to initialization of yystate, which confuses gcc, making a different warning * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-08-04 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-08-04 From: Jeremy Soller <jackpot51@gmail.com> config.sub: add Linux Relibc Target $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (136 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (881 tests) PASS: config.sub idempotency checks (818 tests) PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.sub (relibc*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data (x86_64-linux-relibc): New test. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-08-02 Thomas E. Dickey <dickey@invisible-island.net> * main.c, yacc.1: add "-h" option * yacc.1: fix date * test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/btyacc/big_b.error, test/btyacc/big_l.error, test/btyacc/help.error, test/btyacc/nostdin.error, test/yacc/big_b.error, test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error, test/yacc/nostdin.error: regen * main.c: map any of bison's long-options which have a corresponding yacc option into the latter, without depending upon getopt_long(). * main.c: suggested patch: From: Boris Kolpackov <boris@codesynthesis.com> Subject: Re: [PATCH] support bison's --defines and --output options in byacc * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-08-01 Thomas E. Dickey <dickey@invisible-island.net> * test/btyacc/inherit2.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c: regen * output.c: fix a misplaced #line, which was after a generated line in the code-file * test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c: regen * output.c: add a state-machine to output_semantic_actions() to detect and replace the "#line" directives added by Roland Illig's change, making them show the actual line-numbers in the code-file. * test/btyacc/pure_calc.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c: regen * reader.c: adapt a patch by Roland Illig which added #line directives with dummy filename and line number, because the debug information was incorrect. The actual fix (see output_semantic_actions) is to emit #line directives which correspond to the code-file. * reader.c: simplify an ifdef so I can balance {/} * output.c: use new macro * defs.h: add fprintf_lineno macro * reader.c: make that a little simpler - but I see that this should be using the code-file's line-numbering rather than "" * reader.c: make that into a macro, and add a begin_case() to more/less match (the #line's are not together in some btyacc cases...) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-07-14 Thomas E. Dickey <dickey@invisible-island.net> * reader.c: From: Roland Illig <roland.illig@gmx.de> Subject: small patch for byacc ... this splits up "\nbreak;\n" output to put #line directives after first "\n" 2021-07-06 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-07-06 From: Stephanos Ioannidis <root@stephanos.io> config.sub: add Zephyr RTOS support This adds the Zephyr RTOS targets in preparation for implementing the Zephyr RTOS-specific toolchain support. $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (136 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (880 tests) PASS: config.sub idempotency checks (817 tests) PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.sub (zephyr*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add testcases for *-zephyr. Signed-off-by: Stephanos Ioannidis <root@stephanos.io> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-07-03 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-07-03 From: Ozkan Sezer <sezero@users.sourceforge.net> config.sub: disable shellcheck SC2006 / SC2268 warnings This is in line with the recent config.guess change in commit 12fcf67c9108f4c4b581eaa302088782f0ee40ea * config.sub (shellcheck disable): Add SC2006,SC2268. Suggested-by: Jacob Bachmeyer <jcb@gnu.org> Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> * config.sub: 2021-07-03 From: Ozkan Sezer <sezero@users.sourceforge.net> config.sub: normalize the quoting in the `echo FOO | sed ...` Some cases quote the argument to echo and some do not. At runtime it probably does not matter because the substituted values will never contain whitespace, but quoting them all would make shellcheck more useful. * config.sub: Consistently quote the argument of echo. * doc/config.sub.1: Regenerate. Suggested-by: Jacob Bachmeyer <jcb@gnu.org> Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-07-02 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-06-03 From: Ozkan Sezer <sezero@users.sourceforge.net> config.sub: replace POSIX $( ) with classic ` ` throughout This is in line with the recent config.guess change in commit d70c4fa934de164178054c3a60aaa0024ed07c91. The patch was generated using patch-6.gawk script introduced in that commit. * config.sub: Revert POSIX command substitutions to classic form. Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-06-19 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * aclocal.m4: resync with my-autoconf * test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/rename_debug.c, btyaccpar.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, yaccpar.c: regen * btyaccpar.skel, yaccpar.skel: cancel unused assignments * output.c: gcc warning * test/run_test.sh, test/run_lint.sh, test/run_make.sh: shellcheck-warnings 2021-06-19 jannick0 * test/run_test.sh: changes suggested at https://github.com/jannick0/byacc-snapshots/tree/YYINT-fix-20210520 2021-06-19 Thomas E. Dickey <dickey@invisible-island.net> * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-06-13 Thomas E. Dickey <dickey@invisible-island.net> * aclocal.m4: resync with my-autoconf 2021-06-04 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-06-03 From: Vineet Gupta <Vineet.Gupta1@synopsys.com> Recognize arc32 This is the 32-bit variant of ARCv3 ISA (which is not compatible with the 32-bit ARCv2 ISA) | make check | cd testsuite && bash config-guess.sh && rm uname | PASS: config.guess checks (136 tests) | cd testsuite && bash config-sub.sh | PASS: config.sub checks (864 tests) | PASS: config.sub idempotency checks (801 tests) | PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.guess (arc32:Linux:*:*): Recognize. * config.sub (arc32): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for arc32. * testsuite/config-sub.data (arc32, arc*-elf): Add test cases. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> * config.sub: 2021-06-03 (repaired) From: Vineet Gupta <Vineet.Gupta1@synopsys.com> Recognize arc32 This is the 32-bit variant of ARCv3 ISA (which is not compatible with the 32-bit ARCv2 ISA) | make check | cd testsuite && bash config-guess.sh && rm uname | PASS: config.guess checks (136 tests) | cd testsuite && bash config-sub.sh | PASS: config.sub checks (864 tests) | PASS: config.sub idempotency checks (801 tests) | PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.guess (arc32:Linux:*:*): Recognize. * config.sub (arc32): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for arc32. * testsuite/config-sub.data (arc32, arc*-elf): Add test cases. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-05-26 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-05-24 From: Jacob Bachmeyer <jcb@gnu.org> config.guess: manual fixups after previous automatic patch The tool could not handle command substitutions that span lines, but fortunately there were only two such substitutions in the script. The test for which universe is active on Pyramid is rewritten into a case block because it was the only use of a command substitution as an argument to the test command, which would require quoting. * config.guess: Rewrite "if" for Pyramid systems to "case". * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer <jcb@gnu.org> config.guess: replace POSIX $( ) with classic ` ` throughout The previous replacement of backticks with POSIX command substitutions was ill-considered and illogical: this script recognizes many archaic machine types that probably never had POSIX shells, therefore it needs to be able to run successfully under pre-POSIX shells. This patch was generated using the included GNU Awk program. * config.guess: Revert POSIX command substitutions to classic form. * patch-6.gawk: Store the tool that produced the automated patch. 2021-05-25 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer <jcb@gnu.org> config.guess: manual fixup after previous automated patches This patch provides the special handling for the GNU system. As these were two small and unique edits, they were not included in the scripts. This patch also cleans up other minor issues that must be addressed before reverting to classic command substitutions and updates "shellcheck" directives to account for changes in this script and the change in "shellcheck" towards reporting individual portability issues. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer <jcb@gnu.org> config.guess: automatic fixups after previous automated patch This patch was generated using the following command: sed -i config.guess \ -e '/="[^"]\+"\(-\|$\)/s/="\([^"([:space:])]\+\)"/=\1/' \ -e '/="[^"]\+"[[:alnum:]]/s/="\$\([^([:space:])]\+\)"/=${\1}/' \ -e \ '/\$(echo[^|]\+|/s/\([^[:space:]]\)[[:space:]]*|[[:space:]]*sed/\1 | sed/g' * config.guess: Remove unneeded quotes in other variable assignments, standardize spacing for "echo ... | sed" substitutions. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer <jcb@gnu.org> config.guess: remove unneeded quotes and factor command substitutions This is further cleanup and simplifies some constructs that can confuse Emacs' syntax highlighting while generally reducing required quoting. This patch was generated using the included GNU Awk program. * config.guess: Remove unneeded variable quotes and factor out command substitutions when setting GUESS. * patch-3.gawk: Store the tool that produced the automated patch. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer <jcb@gnu.org> config.guess: manual fixups after previous automatic patch * config.guess: Adjust a few "leftover" cases that the tool could not easily recognize and fixes comment indentation in a few other special cases. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer <jcb@gnu.org> config.guess: introduce intermediate variable with uname results This will allow quoting to be significantly simplified in another pass through the file. * config.guess: Introduce GUESS variable to hold results of uname analysis. * config.guess: 2021-05-24 (repaired) From: Jacob Bachmeyer <jcb@gnu.org> config.guess: use intermediate variable with uname results This will allow quoting to be significantly simplified in another pass through the file. This patch was generated using the included GNU Awk program. * config.guess: Use GUESS variable to hold results of uname analysis. * patch-1.gawk: Store the tool that produced the automated patch. 2021-05-24 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-05-24 (repaired) From: Dmitry V. Levin <ldv@altlinux.org> config.guess: fix shellcheck warning SC2154 While, according to Plan 9 documentation, the environment variable $cputype is set to the name of the kernel's CPU's architecture, shellcheck warns that cputype is referenced but not assigned. Be on the safe side and do not use cputype if it is not defined or empty. * config.guess (*:Plan9:*:*): Fix shellcheck warning SC2154. * config.guess: 2021-05-24 (repaired) From: Dmitry V. Levin <ldv@altlinux.org> config.guess: remove redundant quotes in case commands According to the GNU Autoconf Portable Shell Programming manual, the Bourne shell does not systematically split variables and back-quoted expressions, in particular on the right-hand side of assignments and in the argument of 'case'. The change is made automatically using the following command: $ sed -E -i 's/(\<case )"(\$[^"]+)"( in\>)/\1\2\3/' config.guess * config.guess: Simplify case commands by removing quotes around the argument. Suggested-by: Jacob Bachmeyer <jcb@gnu.org> * config.guess: 2021-05-24 (repaired) From: Dmitry V. Levin <ldv@altlinux.org> config.guess: simplify exit status workaround on alphaev67-dec-osf5.1 Commit 29865ea8a5622cdd80b7a69a0afa78004b4cd311 introduced an exit trap reset before exiting to avoid a spurious non-zero exit status on alphaev67-dec-osf5.1. Simplify that code a bit by moving the exit trap reset around. * config.guess (alpha:OSF1:*:*): Reset exit trap earlier. * doc/config.guess.1: Regenerate. 2021-05-20 Thomas E. Dickey <dickey@invisible-island.net> * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_calc.tab.c, test/btyacc/code_error.code.c, test/btyacc/code_error.tab.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.code.c, test/yacc/code_error.tab.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c: regen * mkpar.c, reader.c: change printf format to allow for long-YYINT * lalr.c, lr0.c: change type, fix gcc warnings * verbose.c: change type, fix gcc warnings also change printf format, to allow for long YYINT * output.c: change type, fix gcc warnings also change printf format, to allow for long-YYINT * package/debian/rules, package/byacc.spec: change max-table-size to correspond with switch of YYINT from short to int * defs.h: change default for MAXTABLE to INT_MAX, like the FreeBSD port. that requires changing some types to eliminate type-mismatches. * configure: regen * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-05-01 Thomas E. Dickey <dickey@invisible-island.net> * aclocal.m4: resync with my-autoconf 2021-04-30 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-04-30 (repaired) From: Maciej W. Rozycki <macro@orcam.me.uk> config.sub: Handle MIPS R3 and R5 ISA levels with CPU names Complement binutils commit ae52f4830604 ("Add MIPS r3 and r5 support.") and recognize MIPS CPU patterns for the R3 and R5 ISA levels, used by GAS to set defaults. * config.sub (mipsisa32r3, mipsisa32r3el, mipsisa32r5, mipsisa32r5el, mipsisa64r3, mipsisa64r3el, mipsisa64r5, mipsisa64r5el): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add test cases. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-04-21 Thomas E. Dickey <dickey@invisible-island.net> * config.guess, config.sub: 2021-04-21 (repaired) From: Vineet Gupta <Vineet.Gupta1@synopsys.com> Recognize arc64 This paves way for setting up arc64 software ecosystem. $ make check cd testsuite && bash config-guess.sh && rm uname PASS: config.guess checks (136 tests) cd testsuite && bash config-sub.sh PASS: config.sub checks (853 tests) PASS: config.sub idempotency checks (790 tests) PASS: config.sub canonicalise each config.guess testcase (136 tests) * config.guess (arc64:Linux:*:*): Recognize. * config.sub (arc64): Likewise. * doc/config.guess.1: Regenerate. * doc/config.sub.1: Likewise. * testsuite/config-guess.data: Add a test case for arc64. * testsuite/config-sub.data (arc64, arc*-elf): Add test cases. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-04-16 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-04-16 (repaired) From: Purple Rain <purplerain@secbsd.org> config.guess: add SecBSD support * config.guess (*:SecBSD:*:*): Recognize. * doc/config.guess.1: Regenerate. * testsuite/config-guess.data: Add a test case. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> * config.sub: 2021-04-16 (repaired) From: Purple Rain <purplerain@secbsd.org> config.sub: add SecBSD support * config.sub (secbsd*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add x86_64-secbsd. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-03-28 Thomas E. Dickey <dickey@invisible-island.net> * 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 * test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h, test/btyacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.h, test/btyacc/inherit1.tab.c, test/btyacc/inherit1.tab.h, test/btyacc/inherit2.tab.c, test/btyacc/inherit2.tab.h, test/btyacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit3.tab.h, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_demo.tab.h, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy1.tab.h, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy2.tab.h, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/btyacc_destroy3.tab.h, test/btyacc/calc1.tab.c, test/btyacc/calc1.tab.h, test/yacc/varsyntax_calc1.tab.c, test/yacc/varsyntax_calc1.tab.h, test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h, test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h, test/yacc/calc1.tab.c, test/yacc/calc1.tab.h: regen * reader.c: add union tag to YYSTYPE structure for compatibility with a feature which bison copied from Solaris yacc (request by Ella Stanforth) * configure: regen * config_h.in: update for _Noreturn feature * aclocal.m4: updated to work with autoheader * defs.h: apply syntax change needed for _Noreturn keyword * package/byacc.spec, package/debian/rules: use stdnoreturn * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-03-20 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * aclocal.m4: resync with my-autoconf (adds --enable-stdnoreturn option) 2021-03-10 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2021-03-10 (repaired) From: Idan Horo <idan.horowitz@gmail.com> config.sub: Add support for SerenityOS * config.sub (serenity*): Recognize. * doc/config.sub.1: Regenerate. * testsuite/config-sub.data: Add i386-serenity. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-01-25 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-01-25 (repaired) From: Kalamatee <kalamatee@gmail.com> config.guess: update AROS system detection * config.guess: Recognize *:AROS:*:*. * doc/config.guess.1: Regenerate. * testsuite/config-guess.data: Add test cases. Signed-off-by: Dmitry V. Levin <ldv@altlinux.org> 2021-01-19 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2021-01-19 (repaired) From: M. Levinson <mlevins@users.sourceforge.net> config.guess: fix shell variable quoting bug * config.guess (*:NetBSD:*:*): Spell out the full sysctl command twice instead of using a shell variable. * doc/config.guess.1: Regenerate. Fixes: 827c77253b396c07306927b2a4b794a3251c48eb Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2021-01-09 Thomas E. Dickey <dickey@invisible-island.net> * package/debian/copyright, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2021-01-05 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * aclocal.m4: resync with my-autoconf 2020-09-22 Thomas E. Dickey <dickey@invisible-island.net> * closure.c, warshall.c: fix undefined-behavior diagnosed with gcc -fsanitize=undefined (report by Alexander Richardson) 2020-09-10 Thomas E. Dickey <dickey@invisible-island.net> * LICENSE: RCS_BASE * reader.c, output.c: cppcheck -- reduce scope * defs.h: update to 2.0 * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/defines1.calc.c, test/yacc/defines2.calc.c, test/yacc/defines3.calc.c, test/yacc/empty.tab.c, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax27.tab.c, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c, test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c, test/yacc/varsyntax_calc1.tab.c: update to version 2.0 * reader.c: 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 * configure: regen * configure.in: 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 * package/debian/compat: quiet compatibility-warning * yacc.1: use "ASCII" for dashes which are part of proper names * configure: regen * configure.in: switch to --enable-warnings, for consistency * aclocal.m4: resync with my-autoconf, for compiler-warning fixes with macOS * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2020-08-16 Thomas E. Dickey <dickey@invisible-island.net> * config.guess, config.sub: 2020-08-17 2020-06-28 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2020/06/28 2020-06-14 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2020/04/26 2020-03-30 Thomas E. Dickey <dickey@invisible-island.net> * package/debian/copyright: bump * test/yacc/grammar.tab.c, test/btyacc/grammar.tab.c, test/grammar.y, reader.c: typo found with codespell * yacc.1: fixes noted in the original report, overlooked in followup 2020-03-30 Bjarni.Ingi.Gislason * yacc.1: typography/spelling fixes - Debian #955175 2020-03-30 Thomas E. Dickey <dickey@invisible-island.net> * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2020-03-10 Thomas E. Dickey <dickey@invisible-island.net> * configure: regen * aclocal.m4: resync with my-autoconf, mostly fixes for compiler-warnings * configure.in: use macro to suppress X-dependency from newer macros 2019-12-20 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2019-12-21 2019-11-25 Tom.Shields * main.c: fix an inconsistency between the getopt and non-getopt configuration. In the former, getopt always used "yacc", not the name of the executable. 2019-11-25 Thomas E. Dickey <dickey@invisible-island.net> * test/run_make.sh: suppress bison's -Wyacc warning, which is not useful. * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2019-11-19 Thomas E. Dickey <dickey@invisible-island.net> * yacc.1: new version of manpage * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * yacc.1: document %code * test/btyacc/calc_code_all.error, test/btyacc/calc_code_all.output, test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_all.tab.h, test/btyacc/calc_code_default.error, test/btyacc/calc_code_default.output, test/btyacc/calc_code_default.tab.c, test/btyacc/calc_code_default.tab.h, test/btyacc/calc_code_imports.error, test/btyacc/calc_code_imports.output, test/btyacc/calc_code_imports.tab.c, test/btyacc/calc_code_imports.tab.h, test/btyacc/calc_code_provides.error, test/btyacc/calc_code_provides.output, test/btyacc/calc_code_provides.tab.c, test/btyacc/calc_code_provides.tab.h, test/btyacc/calc_code_requires.error, test/btyacc/calc_code_requires.output, test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_requires.tab.h, test/btyacc/calc_code_top.error, test/btyacc/calc_code_top.output, test/btyacc/calc_code_top.tab.c, test/btyacc/calc_code_top.tab.h, test/yacc/calc_code_all.tab.c, test/yacc/calc_code_all.tab.h, test/yacc/calc_code_default.tab.c, test/yacc/calc_code_provides.tab.c, test/yacc/calc_code_provides.tab.h, test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_requires.tab.h, test/yacc/calc_code_top.tab.c: RCS_BASE * output.c: amend updates for 'outline' when processing "%code" in code-file * output.c: modify output_code_lines() to show begin/end block comments which were in reader.c, and to generate a #line for the code-file. * reader.c: modify copy_code() to allow for multiple %code directives for a given section, recording the input line-number for each directive as a #line in the resulting string. remove the block start/end comments, since those will be done for a whole section in output.c * mstring.c, defs.h: add msrenew() * test/yacc/calc_code_all.error, test/yacc/calc_code_all.output, test/yacc/calc_code_default.error, test/yacc/calc_code_default.output, test/yacc/calc_code_default.tab.h, test/yacc/calc_code_imports.error, test/yacc/calc_code_imports.output, test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_imports.tab.h, test/yacc/calc_code_provides.error, test/yacc/calc_code_provides.output, test/yacc/calc_code_requires.error, test/yacc/calc_code_requires.output, test/yacc/calc_code_top.error, test/yacc/calc_code_top.output, test/yacc/calc_code_top.tab.h: RCS_BASE 2019-11-18 Thomas E. Dickey <dickey@invisible-island.net> * test/calc_code_imports.y, test/calc_code_all.y, test/calc_code_default.y, test/calc_code_top.y, test/calc_code_provides.y, test/calc_code_requires.y: RCS_BASE 2019-11-04 Michael.Forney * defs.h: add missing "extern" for new variable "code_lines" 2019-11-03 Thomas E. Dickey <dickey@invisible-island.net> * main.c: build-fix for MinGW cross-compiling * output.c, reader.c: gcc-warnings * output.c: check validity of text_file before rewind remove redundant check of iflag * main.c: fix memory-leak reported by clang * mkpar.c: guard against a null-reference reported by clang (unlikely) * reader.c: fix two coverity warnings: a) resource leak on malloc-failure b) possible null-pointer dereference on parse-error * test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_demo.tab.h: regen * defs.h: use enum's to simplify recent change * mstring.c: enable mstring() in regular byacc, since Zoulas' change relies upon it 2019-11-03 Christos.Zoulas * defs.h, reader.c, output.c: add support for bison's "%code" feature also fix a small bug: declare YYLTYPE externally when producing locations 2019-11-03 Thomas E. Dickey <dickey@invisible-island.net> * test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error: regen * test/run_test.sh: there's no standard wording for the options-errors from getopt; filter that to "error message" in the test reference files. * main.c: provide for using getopt(), to accommodate a case where developers have relied upon non-POSIX behavior. * test/run_test.sh: getopt's messages do not print the full pathname of yacc in some cases; adjust the sed-script which changes those to "YACC" * configure: regen * config_h.in: regen, using autoheader-252 * configure.in: add configure check for getopt * configure: regen * aclocal.m4: resync with my-autoconf adds a fix which accommodates a difference in warning options between gcc/clang when --enable-warnings is not set. * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2019-09-11 Thomas E. Dickey <dickey@invisible-island.net> * config.guess, config.sub: 2019-09-10
Mostly merge changes from HEAD upto 20200411
file defines2.calc.c was added on branch phil-wifi on 2020-04-13 07:45:51 +0000
2019-06-17 Thomas E. Dickey <dickey@invisible-island.net> * test/btyacc/big_b.error, test/btyacc/big_l.error, test/btyacc/help.error, test/btyacc/no_b_opt.error, test/btyacc/no_output2.error, test/btyacc/no_p_opt.error, test/btyacc/nostdin.error, test/yacc/big_b.error, test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error, test/yacc/no_output2.error, test/yacc/no_p_opt.error, test/yacc/nostdin.error: regen * test/run_test.sh: test "-H" rather than "-D" 2019-06-16 Thomas E. Dickey <dickey@invisible-island.net> * main.c, yacc.1: change "-D" option to "-H" (discussion with Ethan Sommer) * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump * test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c: RCS_BASE * test/run_test.sh: in test_defines, save the ".c" file too * test/yacc/defines3.calc.c, test/yacc/defines2.calc.c, test/yacc/defines1.calc.c: RCS_BASE * test/run_test.sh: output of test_defines should be a header ".h", not ".c" * test/btyacc/defines1.calc.h, test/btyacc/defines1.error, test/btyacc/defines1.output, test/btyacc/defines2.calc.h, test/btyacc/defines2.error, test/btyacc/defines2.output, test/btyacc/defines3.calc.h, test/btyacc/defines3.error, test/btyacc/defines3.output: RCS_BASE * main.c: however, a subsequent -d cancels -D * test/yacc/defines1.calc.h, test/yacc/defines3.calc.h: RCS_BASE * main.c: -D option implies -d * test/yacc/defines1.error, test/yacc/defines1.output, test/yacc/defines2.calc.h, test/yacc/defines2.error, test/yacc/defines2.output, test/yacc/defines3.error, test/yacc/defines3.output: RCS_BASE * yacc.1: align macro definitions with my other manpages * test/run_test.sh: add test for -D after -d or -b options * test/btyacc/stdin1.calc.c, test/btyacc/stdin1.error, test/btyacc/stdin1.output, test/btyacc/stdin2.calc.c, test/btyacc/stdin2.error, test/btyacc/stdin2.output: RCS_BASE * test/btyacc/big_b.error, test/btyacc/big_b.output, test/btyacc/big_l.error, test/btyacc/big_l.output, test/btyacc/help.error, test/btyacc/help.output, test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output, test/btyacc/no_b_opt1.error, test/btyacc/no_b_opt1.output, test/btyacc/no_code_c.error, test/btyacc/no_code_c.output, test/btyacc/no_defines.error, test/btyacc/no_defines.output, test/btyacc/no_graph.error, test/btyacc/no_graph.output, test/btyacc/no_include.error, test/btyacc/no_include.output, test/btyacc/no_opts.error, test/btyacc/no_opts.output, test/btyacc/no_output.error, test/btyacc/no_output.output, test/btyacc/no_output1.error, test/btyacc/no_output1.output, test/btyacc/no_output2.error, test/btyacc/no_output2.output, test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output, test/btyacc/no_p_opt1.error, test/btyacc/no_p_opt1.output, test/btyacc/no_verbose.error, test/btyacc/no_verbose.output, test/btyacc/nostdin.error, test/btyacc/nostdin.output, test/yacc/big_b.error, test/yacc/big_b.output, test/yacc/big_l.error, test/yacc/big_l.output, test/yacc/help.error, test/yacc/help.output, test/yacc/no_b_opt.error, test/yacc/no_b_opt.output, test/yacc/no_b_opt1.error, test/yacc/no_b_opt1.output, test/yacc/no_code_c.error, test/yacc/no_code_c.output, test/yacc/no_defines.error, test/yacc/no_defines.output, test/yacc/no_graph.error, test/yacc/no_graph.output, test/yacc/no_include.error, test/yacc/no_include.output, test/yacc/no_opts.error, test/yacc/no_opts.output, test/yacc/no_output.error, test/yacc/no_output.output, test/yacc/no_output1.error, test/yacc/no_output1.output, test/yacc/no_output2.error, test/yacc/no_output2.output, test/yacc/no_p_opt.error, test/yacc/no_p_opt.output, test/yacc/no_p_opt1.error, test/yacc/no_p_opt1.output, test/yacc/no_verbose.error, test/yacc/no_verbose.output, test/yacc/nostdin.error, test/yacc/nostdin.output: regen * test/run_test.sh: add a test for stdin "-" vs end-options "--", and correct a redirection of stderr in test_flags * test/yacc/stdin2.output, test/yacc/stdin2.calc.c, test/yacc/stdin1.calc.c, test/yacc/stdin1.error, test/yacc/stdin1.output, test/yacc/stdin2.error: RCS_BASE * test/btyacc/big_b.output, test/btyacc/big_l.output, test/btyacc/help.output, test/btyacc/no_b_opt.output, test/btyacc/no_output2.output, test/btyacc/no_p_opt.output, test/btyacc/nostdin.output, test/yacc/big_b.output, test/yacc/big_l.output, test/yacc/help.output, test/yacc/no_b_opt.output, test/yacc/no_output2.output, test/yacc/no_p_opt.output, test/yacc/nostdin.output: regen * main.c: add -D option, to specify filename vs y.tab.h for -d * defs.h: add dflag2, for -D option * yacc.1: document -D option * config_h.in: updated with autoheader-252 * configure: regen * package/debian/copyright: bump * aclocal.m4: add CF_GETOPT_HEADER * aclocal.m4: Improved autoconf macros: + CF_CC_ENV_FLAGS putting preprocessor flags in CFLAGS also is a nuisance, which can be addressed in the same way. + CF_GCC_WARNINGS factor out workaround for XTSTRINGDEFINES as CF_CONST_X_STRING + CF_GNU_SOURCE The check for _DEFAULT_SOURCE should apply to "recent" Cygwin (since early 2016), and except for "NEWLIB" vs "GLIBC" in the test, acts the same if I pretend that "newlib" is the GNU C library. Without this, the check falls through to the _XOPEN_SOURCE test, which breaks the pseudoterminal checks for xterm. + CF_POSIX_C_SOURCE add/use CF_POSIX_VISIBLE + CF_TRY_XOPEN_SOURCE use CF_APPEND_TEXT + CF_WITH_MAN2HTML use sed to work around non-POSIX tail utility + CF_XOPEN_SOURCE use CF_APPEND_TEXT add/use CF_POSIX_VISIBLE * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: bump 2019-06-10 Thomas E. Dickey <dickey@invisible-island.net> * config.guess: 2019-06-10 2019-05-22 Thomas E. Dickey <dickey@invisible-island.net> * config.sub: 2019-05-22
Initial revision