1 2021-08-08 Thomas E. Dickey <dickey@invisible-island.net>
4 fix memory-leak when replacing $$'s in destructor code (report/testcase
7 * main.c: account for a memory-leak
9 * 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:
12 * btyaccpar.skel, yaccpar.skel:
13 revert change to initialization of yystate, which confuses gcc, making a
16 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
19 2021-08-02 Thomas E. Dickey <dickey@invisible-island.net>
21 * main.c, yacc.1: add "-h" option
23 * 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:
27 map any of bison's long-options which have a corresponding yacc option
28 into the latter, without depending upon getopt_long().
30 * main.c: suggested patch:
31 From: Boris Kolpackov <boris@codesynthesis.com>
32 Subject: Re: [PATCH] support bison's --defines and --output options in byacc
34 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
37 2021-08-01 Thomas E. Dickey <dickey@invisible-island.net>
39 * 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:
43 fix a misplaced #line, which was after a generated line in the code-file
45 * 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:
49 add a state-machine to output_semantic_actions() to detect and replace
50 the "#line" directives added by Roland Illig's change, making them show
51 the actual line-numbers in the code-file.
53 * 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:
57 adapt a patch by Roland Illig which added #line directives with dummy
58 filename and line number, because the debug information was incorrect.
59 The actual fix (see output_semantic_actions) is to emit #line directives
60 which correspond to the code-file.
62 * reader.c: simplify an ifdef so I can balance {/}
64 * output.c: use new macro
66 * defs.h: add fprintf_lineno macro
69 make that a little simpler - but I see that this should be using the
70 code-file's line-numbering rather than ""
73 make that into a macro, and add a begin_case() to more/less match (the
74 #line's are not together in some btyacc cases...)
76 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
79 2021-07-14 Thomas E. Dickey <dickey@invisible-island.net>
81 * reader.c: From: Roland Illig <roland.illig@gmx.de>
82 Subject: small patch for byacc
84 this splits up "\nbreak;\n" output to put #line directives after first "\n"
86 2021-07-03 Thomas E. Dickey <dickey@invisible-island.net>
88 * config.sub: 2021-07-03
89 From: Ozkan Sezer <sezero@users.sourceforge.net>
90 config.sub: disable shellcheck SC2006 / SC2268 warnings
92 This is in line with the recent config.guess change in commit
93 12fcf67c9108f4c4b581eaa302088782f0ee40ea
95 * config.sub (shellcheck disable): Add SC2006,SC2268.
97 Suggested-by: Jacob Bachmeyer <jcb@gnu.org>
98 Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net>
99 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
101 * config.sub: 2021-07-03
102 From: Ozkan Sezer <sezero@users.sourceforge.net>
103 config.sub: normalize the quoting in the `echo FOO | sed ...`
105 Some cases quote the argument to echo and some do not. At runtime
106 it probably does not matter because the substituted values will never
107 contain whitespace, but quoting them all would make shellcheck more
110 * config.sub: Consistently quote the argument of echo.
111 * doc/config.sub.1: Regenerate.
113 Suggested-by: Jacob Bachmeyer <jcb@gnu.org>
114 Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net>
115 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
117 2021-07-02 Thomas E. Dickey <dickey@invisible-island.net>
119 * config.sub: 2021-06-03
120 From: Ozkan Sezer <sezero@users.sourceforge.net>
121 config.sub: replace POSIX $( ) with classic ` ` throughout
123 This is in line with the recent config.guess change in commit
124 d70c4fa934de164178054c3a60aaa0024ed07c91.
126 The patch was generated using patch-6.gawk script introduced in that
129 * config.sub: Revert POSIX command substitutions to classic form.
131 Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net>
132 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
134 2021-06-19 Thomas E. Dickey <dickey@invisible-island.net>
138 * aclocal.m4: resync with my-autoconf
140 * 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:
143 * btyaccpar.skel, yaccpar.skel: cancel unused assignments
145 * output.c: gcc warning
147 * test/run_test.sh, test/run_lint.sh, test/run_make.sh:
152 * test/run_test.sh: changes suggested at
153 https://github.com/jannick0/byacc-snapshots/tree/YYINT-fix-20210520
155 2021-06-19 Thomas E. Dickey <dickey@invisible-island.net>
157 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
160 2021-06-13 Thomas E. Dickey <dickey@invisible-island.net>
162 * aclocal.m4: resync with my-autoconf
164 2021-06-04 Thomas E. Dickey <dickey@invisible-island.net>
166 * config.guess: 2021-06-03
167 From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
170 This is the 32-bit variant of ARCv3 ISA (which is not compatible with the
174 | cd testsuite && bash config-guess.sh && rm uname
175 | PASS: config.guess checks (136 tests)
176 | cd testsuite && bash config-sub.sh
177 | PASS: config.sub checks (864 tests)
178 | PASS: config.sub idempotency checks (801 tests)
179 | PASS: config.sub canonicalise each config.guess testcase (136 tests)
181 * config.guess (arc32:Linux:*:*): Recognize.
182 * config.sub (arc32): Likewise.
183 * doc/config.guess.1: Regenerate.
184 * doc/config.sub.1: Likewise.
185 * testsuite/config-guess.data: Add a test case for arc32.
186 * testsuite/config-sub.data (arc32, arc*-elf): Add test cases.
188 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
189 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
191 * config.sub: 2021-06-03 (repaired)
192 From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
195 This is the 32-bit variant of ARCv3 ISA (which is not compatible with the
199 | cd testsuite && bash config-guess.sh && rm uname
200 | PASS: config.guess checks (136 tests)
201 | cd testsuite && bash config-sub.sh
202 | PASS: config.sub checks (864 tests)
203 | PASS: config.sub idempotency checks (801 tests)
204 | PASS: config.sub canonicalise each config.guess testcase (136 tests)
206 * config.guess (arc32:Linux:*:*): Recognize.
207 * config.sub (arc32): Likewise.
208 * doc/config.guess.1: Regenerate.
209 * doc/config.sub.1: Likewise.
210 * testsuite/config-guess.data: Add a test case for arc32.
211 * testsuite/config-sub.data (arc32, arc*-elf): Add test cases.
213 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
214 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
216 2021-05-26 Thomas E. Dickey <dickey@invisible-island.net>
218 * config.guess: 2021-05-24
219 From: Jacob Bachmeyer <jcb@gnu.org>
220 config.guess: manual fixups after previous automatic patch
222 The tool could not handle command substitutions that span lines, but
223 fortunately there were only two such substitutions in the script.
225 The test for which universe is active on Pyramid is rewritten into a
226 case block because it was the only use of a command substitution as an
227 argument to the test command, which would require quoting.
229 * config.guess: Rewrite "if" for Pyramid systems to "case".
231 * config.guess: 2021-05-24 (repaired)
232 From: Jacob Bachmeyer <jcb@gnu.org>
233 config.guess: replace POSIX $( ) with classic ` ` throughout
235 The previous replacement of backticks with POSIX command substitutions
236 was ill-considered and illogical: this script recognizes many archaic
237 machine types that probably never had POSIX shells, therefore it needs
238 to be able to run successfully under pre-POSIX shells.
240 This patch was generated using the included GNU Awk program.
242 * config.guess: Revert POSIX command substitutions to classic form.
243 * patch-6.gawk: Store the tool that produced the automated patch.
245 2021-05-25 Thomas E. Dickey <dickey@invisible-island.net>
247 * config.guess: 2021-05-24 (repaired)
248 From: Jacob Bachmeyer <jcb@gnu.org>
249 config.guess: manual fixup after previous automated patches
251 This patch provides the special handling for the GNU system. As these
252 were two small and unique edits, they were not included in the scripts.
254 This patch also cleans up other minor issues that must be addressed
255 before reverting to classic command substitutions and updates
256 "shellcheck" directives to account for changes in this script and the
257 change in "shellcheck" towards reporting individual portability issues.
259 * config.guess: 2021-05-24 (repaired)
260 From: Jacob Bachmeyer <jcb@gnu.org>
261 config.guess: automatic fixups after previous automated patch
263 This patch was generated using the following command:
265 sed -i config.guess \
266 -e '/="[^"]\+"\(-\|$\)/s/="\([^"([:space:])]\+\)"/=\1/' \
267 -e '/="[^"]\+"[[:alnum:]]/s/="\$\([^([:space:])]\+\)"/=${\1}/' \
269 '/\$(echo[^|]\+|/s/\([^[:space:]]\)[[:space:]]*|[[:space:]]*sed/\1 | sed/g'
271 * config.guess: Remove unneeded quotes in other variable assignments,
272 standardize spacing for "echo ... | sed" substitutions.
274 * config.guess: 2021-05-24 (repaired)
275 From: Jacob Bachmeyer <jcb@gnu.org>
276 config.guess: remove unneeded quotes and factor command substitutions
278 This is further cleanup and simplifies some constructs that can confuse
279 Emacs' syntax highlighting while generally reducing required quoting.
281 This patch was generated using the included GNU Awk program.
283 * config.guess: Remove unneeded variable quotes and factor out command
284 substitutions when setting GUESS.
285 * patch-3.gawk: Store the tool that produced the automated patch.
287 * config.guess: 2021-05-24 (repaired)
288 From: Jacob Bachmeyer <jcb@gnu.org>
289 config.guess: manual fixups after previous automatic patch
291 * config.guess: Adjust a few "leftover" cases that the tool could not
292 easily recognize and fixes comment indentation in a few other special
295 * config.guess: 2021-05-24 (repaired)
296 From: Jacob Bachmeyer <jcb@gnu.org>
297 config.guess: introduce intermediate variable with uname results
299 This will allow quoting to be significantly simplified in another
300 pass through the file.
302 * config.guess: Introduce GUESS variable to hold results of uname analysis.
304 * config.guess: 2021-05-24 (repaired)
305 From: Jacob Bachmeyer <jcb@gnu.org>
306 config.guess: use intermediate variable with uname results
308 This will allow quoting to be significantly simplified in another
309 pass through the file.
311 This patch was generated using the included GNU Awk program.
313 * config.guess: Use GUESS variable to hold results of uname analysis.
314 * patch-1.gawk: Store the tool that produced the automated patch.
316 2021-05-24 Thomas E. Dickey <dickey@invisible-island.net>
318 * config.guess: 2021-05-24 (repaired)
319 From: Dmitry V. Levin <ldv@altlinux.org>
320 config.guess: fix shellcheck warning SC2154
322 While, according to Plan 9 documentation, the environment variable
323 $cputype is set to the name of the kernel's CPU's architecture,
324 shellcheck warns that cputype is referenced but not assigned.
325 Be on the safe side and do not use cputype if it is not defined
328 * config.guess (*:Plan9:*:*): Fix shellcheck warning SC2154.
330 * config.guess: 2021-05-24 (repaired)
331 From: Dmitry V. Levin <ldv@altlinux.org>
332 config.guess: remove redundant quotes in case commands
334 According to the GNU Autoconf Portable Shell Programming manual,
335 the Bourne shell does not systematically split variables and back-quoted
336 expressions, in particular on the right-hand side of assignments and in
337 the argument of 'case'.
339 The change is made automatically using the following command:
340 $ sed -E -i 's/(\<case )"(\$[^"]+)"( in\>)/\1\2\3/' config.guess
342 * config.guess: Simplify case commands by removing quotes around the
345 Suggested-by: Jacob Bachmeyer <jcb@gnu.org>
347 * config.guess: 2021-05-24 (repaired)
348 From: Dmitry V. Levin <ldv@altlinux.org>
349 config.guess: simplify exit status workaround on alphaev67-dec-osf5.1
351 Commit 29865ea8a5622cdd80b7a69a0afa78004b4cd311 introduced an exit trap
352 reset before exiting to avoid a spurious non-zero exit status on
353 alphaev67-dec-osf5.1. Simplify that code a bit by moving the exit trap
356 * config.guess (alpha:OSF1:*:*): Reset exit trap earlier.
357 * doc/config.guess.1: Regenerate.
359 2021-05-20 Thomas E. Dickey <dickey@invisible-island.net>
361 * 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:
364 * mkpar.c, reader.c: change printf format to allow for long-YYINT
366 * lalr.c, lr0.c: change type, fix gcc warnings
368 * verbose.c: change type, fix gcc warnings
369 also change printf format, to allow for long YYINT
371 * output.c: change type, fix gcc warnings
372 also change printf format, to allow for long-YYINT
374 * package/debian/rules, package/byacc.spec:
375 change max-table-size to correspond with switch of YYINT from short to int
378 change default for MAXTABLE to INT_MAX, like the FreeBSD port.
379 that requires changing some types to eliminate type-mismatches.
383 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
386 2021-05-01 Thomas E. Dickey <dickey@invisible-island.net>
388 * aclocal.m4: resync with my-autoconf
390 2021-04-30 Thomas E. Dickey <dickey@invisible-island.net>
392 * config.sub: 2021-04-30 (repaired)
393 From: Maciej W. Rozycki <macro@orcam.me.uk>
394 config.sub: Handle MIPS R3 and R5 ISA levels with CPU names
396 Complement binutils commit ae52f4830604 ("Add MIPS r3 and r5 support.")
397 and recognize MIPS CPU patterns for the R3 and R5 ISA levels, used by
400 * config.sub (mipsisa32r3, mipsisa32r3el, mipsisa32r5, mipsisa32r5el,
401 mipsisa64r3, mipsisa64r3el, mipsisa64r5, mipsisa64r5el): Recognize.
402 * doc/config.sub.1: Regenerate.
403 * testsuite/config-sub.data: Add test cases.
405 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
407 2021-04-21 Thomas E. Dickey <dickey@invisible-island.net>
409 * config.guess, config.sub: 2021-04-21 (repaired)
410 From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
413 This paves way for setting up arc64 software ecosystem.
416 cd testsuite && bash config-guess.sh && rm uname
417 PASS: config.guess checks (136 tests)
418 cd testsuite && bash config-sub.sh
419 PASS: config.sub checks (853 tests)
420 PASS: config.sub idempotency checks (790 tests)
421 PASS: config.sub canonicalise each config.guess testcase (136 tests)
423 * config.guess (arc64:Linux:*:*): Recognize.
424 * config.sub (arc64): Likewise.
425 * doc/config.guess.1: Regenerate.
426 * doc/config.sub.1: Likewise.
427 * testsuite/config-guess.data: Add a test case for arc64.
428 * testsuite/config-sub.data (arc64, arc*-elf): Add test cases.
430 Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
431 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
433 2021-04-16 Thomas E. Dickey <dickey@invisible-island.net>
435 * config.guess: 2021-04-16 (repaired)
436 From: Purple Rain <purplerain@secbsd.org>
437 config.guess: add SecBSD support
439 * config.guess (*:SecBSD:*:*): Recognize.
440 * doc/config.guess.1: Regenerate.
441 * testsuite/config-guess.data: Add a test case.
443 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
445 * config.sub: 2021-04-16 (repaired)
446 From: Purple Rain <purplerain@secbsd.org>
447 config.sub: add SecBSD support
449 * config.sub (secbsd*): Recognize.
450 * doc/config.sub.1: Regenerate.
451 * testsuite/config-sub.data: Add x86_64-secbsd.
453 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
455 2021-03-28 Thomas E. Dickey <dickey@invisible-island.net>
457 * reader.c: ignore bison's "%empty" extension
460 %debug was a trivial bison "extension", mark it as such
462 * yacc.1: use italics in a few places where bold was inappropriate
464 * 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:
468 add union tag to YYSTYPE structure for compatibility with a feature which
469 bison copied from Solaris yacc (request by Ella Stanforth)
473 * config_h.in: update for _Noreturn feature
475 * aclocal.m4: updated to work with autoheader
477 * defs.h: apply syntax change needed for _Noreturn keyword
479 * package/byacc.spec, package/debian/rules: use stdnoreturn
481 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
484 2021-03-20 Thomas E. Dickey <dickey@invisible-island.net>
489 resync with my-autoconf (adds --enable-stdnoreturn option)
491 2021-03-10 Thomas E. Dickey <dickey@invisible-island.net>
493 * config.sub: 2021-03-10 (repaired)
494 From: Idan Horo <idan.horowitz@gmail.com>
495 config.sub: Add support for SerenityOS
497 * config.sub (serenity*): Recognize.
498 * doc/config.sub.1: Regenerate.
499 * testsuite/config-sub.data: Add i386-serenity.
501 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
503 2021-01-25 Thomas E. Dickey <dickey@invisible-island.net>
505 * config.guess: 2021-01-25 (repaired)
506 From: Kalamatee <kalamatee@gmail.com>
507 config.guess: update AROS system detection
509 * config.guess: Recognize *:AROS:*:*.
510 * doc/config.guess.1: Regenerate.
511 * testsuite/config-guess.data: Add test cases.
513 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
515 2021-01-19 Thomas E. Dickey <dickey@invisible-island.net>
517 * config.guess: 2021-01-19 (repaired)
518 From: M. Levinson <mlevins@users.sourceforge.net>
519 config.guess: fix shell variable quoting bug
521 * config.guess (*:NetBSD:*:*): Spell out the full sysctl command twice
522 instead of using a shell variable.
523 * doc/config.guess.1: Regenerate.
525 Fixes: 827c77253b396c07306927b2a4b794a3251c48eb
526 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
528 2021-01-09 Thomas E. Dickey <dickey@invisible-island.net>
530 * package/debian/copyright, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
533 2021-01-07 Thomas E. Dickey <dickey@invisible-island.net>
535 * config.sub: 2021-01-08 (repaired)
536 From: Peixing Xin <peixing.xin@windriver.com>
537 config.sub: recognize four-part configuration name for VxWorks
541 armv7m-wrs-vxworks-eabihf
542 armv7-wrs-vxworks-eabihf
543 i686-wrs-vxworks-simlinux
544 i686-wrs-vxworks-simwindows
545 powerpc-wrs-vxworks-spe
546 x86_64-wrs-vxworks-simlinux
547 x86_64-wrs-vxworks-simwindows
549 * config.sub: Recognize four-part configuration name for VxWorks.
550 * doc/config.guess.1: Regenerate.
551 * testsuite/config-sub.data: Add test cases.
553 Co-authored-by: John Ericson <git@JohnEricson.me>
554 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
556 2021-01-06 Thomas E. Dickey <dickey@invisible-island.net>
558 * config.sub: 2021-01-07 (repaired)
559 From: Alan Modra <amodra@gmail.com>
560 config.sub: accept OS of eabi* and gnueabi*
562 Commit 5e531d391852 broke powerpc-eabivle:
564 $ ./config.sub powerpc-eabivle
565 Invalid configuration `powerpc-eabivle': OS `eabivle' not recognized
567 Also powerpc-eabisim and probably some arm configurations.
569 * config.sub: Accept OS of eabi* and gnueabi*.
570 * testsuite/config-sub.data: Add powerpc-eabisim and powerpc-eabivle.
572 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
574 2021-01-05 Thomas E. Dickey <dickey@invisible-island.net>
578 * aclocal.m4: resync with my-autoconf
580 2021-01-01 Thomas E. Dickey <dickey@invisible-island.net>
582 * config.guess, config.sub: 2021-01-01 (repaired)
583 From: Dmitry V. Levin <ldv@altlinux.org>
584 Update copyright years
586 * config.guess: Update copyright years.
587 * config.sub: Likewise.
588 * doc/config.guess.1: Regenerate.
589 * doc/config.sub.1: Likewise.
591 2020-12-31 Thomas E. Dickey <dickey@invisible-island.net>
593 * config.guess, config.sub: 2020-12-31 (repaired)
594 From: Kito Cheng <kito.cheng@sifive.com>
595 Recognize riscv32be and riscv64be
597 Recently RISC-V community got patches big-endian support for binutils,
598 and we'd like to accept that, however before accepting that I think it
599 would be better to upstream config.sub and config.guess change here :)
601 It's my check result on Ubuntu 18.04:
604 cd testsuite && bash config-guess.sh && rm uname
605 PASS: config.guess checks (131 tests)
606 cd testsuite && bash config-sub.sh
607 PASS: config.sub checks (830 tests)
608 PASS: config.sub idempotency checks (767 tests)
609 PASS: config.sub canonicalise each config.guess testcase (131 tests)
611 * config.guess (riscv32be:Linux:*:*, riscv64be:Linux:*:*): Recognize.
612 * config.sub (riscv32be, riscv64be): Likewise.
613 * doc/config.guess.1: Regenerate.
614 * doc/config.sub.1: Likewise.
615 * testsuite/config-guess.data: Add test cases for riscv32be, and riscv64be.
616 * testsuite/config-sub.data (riscv32be, riscv64be): Add test cases.
618 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
620 2020-12-03 Thomas E. Dickey <dickey@invisible-island.net>
622 * config.guess, config.sub: 2020-12-22 (repaired)
623 From: Xiaotian Wu <wuxiaotian@loongson.cn>
624 Recognize loongarch32, loongarch64, and loongarchx32
626 * config.guess (loongarch32:Linux:*:*, loongarch64:Linux:*:*,
627 loongarchx32:Linux:*:*): Recognize.
628 * config.sub (loongarch32, loongarch64, loongarchx32): Likewise.
629 * doc/config.guess.1: Regenerate.
630 * doc/config.sub.1: Likewise.
631 * testsuite/config-guess.data: Add test cases for loongarch32,
632 loongarch64, and loongarchx32.
633 * testsuite/config-sub.data (loongarch32, loongarch64, loongarchx32):
636 Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
638 2020-12-01 Thomas E. Dickey <dickey@invisible-island.net>
640 * config.sub: 2020-12-02 (repaired)
641 From: Dmitry V. Levin <ldv@altlinux.org>
642 config.sub: recognize thumbv7*
644 * config.sub (thumbv7*): Recognize.
645 * testsuite/config-sub.data (thumbv7): New test.
647 Reported-by: Karl Berry <karl@freefriends.org>
648 Link: https://lists.gnu.org/archive/html/config-patches/2020-12/msg00001.html
650 2020-11-19 Thomas E. Dickey <dickey@invisible-island.net>
652 * config.guess, config.sub: 2020-11-17 (repaired)
653 From: Dmitry V. Levin <ldv@altlinux.org>
654 .gitattributes: specify a custom git merge driver for the ChangeLog file
656 * config.guess, config.sub: 2020-11-19 (repaired)
657 From: Dmitry V. Levin <ldv@altlinux.org>
658 Update URLs of the latest version of config.guess and config.sub scripts
660 Prefer cgit URLs over gitweb as the former are usually served faster:
661 $ time -f %e wget -q 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess'
663 $ time -f %e wget -q 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess'
666 * config.guess: Prefer cgit URLs over gitweb.
668 * config.sub: Likewise.
669 * doc/config.guess.1: Regenerate.
670 * doc/config.sub.1: Likewise.
672 2020-11-06 Thomas E. Dickey <dickey@invisible-island.net>
674 * config.guess, config.sub: 2020-11-07 (repaired)
675 From: Ben Elliston <bje@gnu.org>
678 * config.sub: 2020-10-13 (repaired)
679 From: Ben Elliston <bje@gnu.org>
680 * config.sub, config.guess: Replace backtick `..` substitutions
681 with POSIX $(..) command substitutions throughout.
682 * Makefile (shellcheck): Don't exclude message SC2006.
684 * config.guess: 2020-10-22 (repaired)
685 From: Ben Elliston <bje@gnu.org>
686 * config.sub, config.guess: Replace backtick `..` substitutions
687 with POSIX $(..) command substitutions throughout.
688 * Makefile (shellcheck): Don't exclude message SC2006.
690 2020-10-21 Thomas E. Dickey <dickey@invisible-island.net>
692 * config.guess: 2020-10-22
693 From: Rin Okuyama <rin@netbsd.org>
694 * config.guess (*:NetBSD:*:*): Handle aarch64eb.
695 * testsuite/config-guess.data: Add test cases.
697 Signed-off-by: Ben Elliston <bje@gnu.org>
699 2020-10-14 Thomas E. Dickey <dickey@invisible-island.net>
701 * config.sub: 2020-10-13
702 From: Ben Elliston <bje@gnu.org>
703 Fix whitespace problem in config.sub.
705 2020-10-13 Thomas E. Dickey <dickey@invisible-island.net>
707 * config.sub: 2020-10-13
708 From: Ben Elliston <bje@gnu.org>
709 * config.sub (i*86-pc-os2-emx): Recognise correctly.
710 * testsuite/config-sub.data: Add OS/2 tests to avoid regressions.
712 2020-09-26 Thomas E. Dickey <dickey@invisible-island.net>
714 * config.sub: 2020-09-08
715 From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
716 * config.sub (uclinux-uclibc*): Fix detection.
717 * testsuite/config-sub.data: Add a test case to avoid regression.
719 Signed-off-by: Ben Elliston <bje@gnu.org>
721 2020-09-22 Thomas E. Dickey <dickey@invisible-island.net>
723 * closure.c, warshall.c:
724 fix undefined-behavior diagnosed with gcc -fsanitize=undefined (report by
725 Alexander Richardson)
727 2020-09-20 Thomas E. Dickey <dickey@invisible-island.net>
729 * config.guess: 2020-09-19
730 From: Bruno Haible <bruno@clisp.org>
731 * config.guess: Don't use 'ldd --version' to determine the presence of
732 musl libc, as this fails on Alpine Linux 3.10.
734 Signed-off-by: Ben Elliston <bje@gnu.org>
736 2020-09-10 Thomas E. Dickey <dickey@invisible-island.net>
740 * reader.c, output.c: cppcheck -- reduce scope
742 * defs.h: update to 2.0
744 * 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:
745 update to version 2.0
748 improve loop which skips backward through a (possibly nested) sequence of
751 * reader.c: simplify a check to quiet a bogus cppcheck-warning
755 * reader.c: add a note about a bogus cppcheck warning
760 always check for gcc attributes, to work around defect in clang's imitation
763 * reader.c: cppcheck -- scope reduction
764 cppcheck -- eliminate bogus returns after no-return functions
766 * verbose.c, output.c, mkpar.c, main.c, warshall.c, lr0.c, lalr.c, graph.c, closure.c:
767 cppcheck -- scope reduction
769 * package/debian/compat: quiet compatibility-warning
771 * yacc.1: use "ASCII" for dashes which are part of proper names
775 * configure.in: switch to --enable-warnings, for consistency
778 resync with my-autoconf, for compiler-warning fixes with macOS
780 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
783 2020-09-07 Thomas E. Dickey <dickey@invisible-island.net>
785 * config.sub: 2020-09-08
786 From: Elad Lahav <e2lahav@gmail.com>
787 * config.sub: Fix regression in QNX recognition.
788 * testsuite/config-sub.data: Add some test cases.
790 Signed-off-by: Ben Elliston <bje@gnu.org>
792 2020-08-16 Thomas E. Dickey <dickey@invisible-island.net>
794 * config.guess, config.sub: 2020-08-17
796 2020-06-28 Thomas E. Dickey <dickey@invisible-island.net>
798 * config.sub: 2020/06/28
800 2020-06-14 Thomas E. Dickey <dickey@invisible-island.net>
802 * config.guess: 2020/04/26
804 2020-03-30 Thomas E. Dickey <dickey@invisible-island.net>
806 * package/debian/copyright: bump
808 * test/yacc/grammar.tab.c, test/btyacc/grammar.tab.c, test/grammar.y, reader.c:
809 typo found with codespell
811 * yacc.1: fixes noted in the original report, overlooked in followup
813 2020-03-30 Bjarni.Ingi.Gislason
815 * yacc.1: typography/spelling fixes - Debian #955175
817 2020-03-30 Thomas E. Dickey <dickey@invisible-island.net>
819 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
822 2020-03-10 Thomas E. Dickey <dickey@invisible-island.net>
827 resync with my-autoconf, mostly fixes for compiler-warnings
829 * configure.in: use macro to suppress X-dependency from newer macros
831 2019-12-20 Thomas E. Dickey <dickey@invisible-island.net>
833 * config.guess: 2019-12-21
835 2019-11-25 Tom.Shields
838 fix an inconsistency between the getopt and non-getopt configuration.
839 In the former, getopt always used "yacc", not the name of the executable.
841 2019-11-25 Thomas E. Dickey <dickey@invisible-island.net>
844 suppress bison's -Wyacc warning, which is not useful.
846 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
849 2019-11-19 Thomas E. Dickey <dickey@invisible-island.net>
851 * yacc.1: new version of manpage
853 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
856 * yacc.1: document %code
858 * 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:
862 amend updates for 'outline' when processing "%code" in code-file
865 modify output_code_lines() to show begin/end block comments which were in
866 reader.c, and to generate a #line for the code-file.
869 modify copy_code() to allow for multiple %code directives for a given
870 section, recording the input line-number for each directive as a #line
871 in the resulting string. remove the block start/end comments, since those
872 will be done for a whole section in output.c
874 * mstring.c, defs.h: add msrenew()
876 * 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:
879 2019-11-18 Thomas E. Dickey <dickey@invisible-island.net>
881 * 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:
884 2019-11-04 Michael.Forney
886 * defs.h: add missing "extern" for new variable "code_lines"
888 2019-11-03 Thomas E. Dickey <dickey@invisible-island.net>
890 * main.c: build-fix for MinGW cross-compiling
892 * output.c, reader.c: gcc-warnings
894 * output.c: check validity of text_file before rewind
895 remove redundant check of iflag
897 * main.c: fix memory-leak reported by clang
899 * mkpar.c: guard against a null-reference reported by clang (unlikely)
901 * reader.c: fix two coverity warnings:
902 a) resource leak on malloc-failure
903 b) possible null-pointer dereference on parse-error
905 * test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_demo.tab.h: regen
907 * defs.h: use enum's to simplify recent change
910 enable mstring() in regular byacc, since Zoulas' change relies upon it
912 2019-11-03 Christos.Zoulas
914 * defs.h, reader.c, output.c: add support for bison's "%code" feature
915 also fix a small bug: declare YYLTYPE externally when producing locations
917 2019-11-03 Thomas E. Dickey <dickey@invisible-island.net>
919 * 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:
923 there's no standard wording for the options-errors from getopt;
924 filter that to "error message" in the test reference files.
927 provide for using getopt(), to accommodate a case where developers have
928 relied upon non-POSIX behavior.
931 getopt's messages do not print the full pathname of yacc in some cases;
932 adjust the sed-script which changes those to "YACC"
936 * config_h.in: regen, using autoheader-252
938 * configure.in: add configure check for getopt
943 resync with my-autoconf adds a fix which accommodates a difference in
944 warning options between gcc/clang when --enable-warnings is not set.
946 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
949 2019-09-11 Thomas E. Dickey <dickey@invisible-island.net>
951 * config.guess, config.sub: 2019-09-10
953 2019-06-17 Thomas E. Dickey <dickey@invisible-island.net>
955 * 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:
958 * test/run_test.sh: test "-H" rather than "-D"
960 2019-06-16 Thomas E. Dickey <dickey@invisible-island.net>
963 change "-D" option to "-H" (discussion with Ethan Sommer)
965 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
968 * test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c:
971 * test/run_test.sh: in test_defines, save the ".c" file too
973 * test/yacc/defines3.calc.c, test/yacc/defines2.calc.c, test/yacc/defines1.calc.c:
977 output of test_defines should be a header ".h", not ".c"
979 * 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:
982 * main.c: however, a subsequent -d cancels -D
984 * test/yacc/defines1.calc.h, test/yacc/defines3.calc.h: RCS_BASE
986 * main.c: -D option implies -d
988 * 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:
991 * yacc.1: align macro definitions with my other manpages
993 * test/run_test.sh: add test for -D after -d or -b options
995 * 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:
998 * 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:
1002 add a test for stdin "-" vs end-options "--", and correct a redirection
1003 of stderr in test_flags
1005 * 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:
1008 * 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:
1011 * main.c: add -D option, to specify filename vs y.tab.h for -d
1013 * defs.h: add dflag2, for -D option
1015 * yacc.1: document -D option
1017 * config_h.in: updated with autoheader-252
1021 * package/debian/copyright: bump
1023 * aclocal.m4: add CF_GETOPT_HEADER
1025 * aclocal.m4: Improved autoconf macros:
1027 putting preprocessor flags in CFLAGS also is a nuisance, which can be
1028 addressed in the same way.
1030 factor out workaround for XTSTRINGDEFINES as CF_CONST_X_STRING
1032 The check for _DEFAULT_SOURCE should apply to "recent" Cygwin (since early 2016),
1033 and except for "NEWLIB" vs "GLIBC" in the test, acts the same if I pretend
1034 that "newlib" is the GNU C library. Without this, the check falls through
1035 to the _XOPEN_SOURCE test, which breaks the pseudoterminal checks for xterm.
1037 add/use CF_POSIX_VISIBLE
1038 + CF_TRY_XOPEN_SOURCE
1041 use sed to work around non-POSIX tail utility
1044 add/use CF_POSIX_VISIBLE
1046 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1049 2019-06-10 Thomas E. Dickey <dickey@invisible-island.net>
1051 * config.guess: 2019-06-10
1053 2019-05-22 Thomas E. Dickey <dickey@invisible-island.net>
1055 * config.sub: 2019-05-22
1057 2018-06-09 Thomas E. Dickey <dickey@invisible-island.net>
1059 * yacc.1: minor typographical fixes
1061 * 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/varsyntax_calc1.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/code_calc.code.c, test/btyacc/code_error.code.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/rename_debug.c, btyaccpar.c:
1064 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1067 2018-06-09 Tom.Shields
1070 add casts to fix g++ (clang++) compile errors in the backtracking skeleton
1071 due to assignment of ‘void *’ to another pointer type.
1073 2018-05-25 Thomas E. Dickey <dickey@invisible-island.net>
1076 check if this is bison 3+ before adding options to suppress warnings
1078 * package/byacc.spec: build-fix for Mageia 6
1080 * package/byacc.spec: add btyacc package
1082 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1085 * package/debian/control: add a package for btyacc
1087 * package/debian/rules: generate a package for btyacc
1089 2018-05-24 Thomas E. Dickey <dickey@invisible-island.net>
1091 * 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/varsyntax_calc1.tab.c, test/btyacc/code_error.code.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, btyaccpar.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/code_calc.code.c, test/btyacc/rename_debug.c:
1094 * btyaccpar.skel: fix typo
1096 2018-05-21 Thomas E. Dickey <dickey@invisible-island.net>
1099 ignore case for "%" directives to skip with old-yacc, and add %token-table
1102 * btyaccpar.c: regen
1104 2018-05-21 Christos.Zoulas
1107 improve compatibility with bison by changing the YYLLOC_DEFAULT macro to use
1108 YYRHSLOC() macro, and adjusting the array indices of yyerror_loc_range[] for
1111 2018-05-10 Thomas E. Dickey <dickey@invisible-island.net>
1114 add a fallback definition for YYDEBUG to the -i externs file.
1116 * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
1118 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1121 2018-05-09 Thomas E. Dickey <dickey@invisible-island.net>
1125 * aclocal.m4: resync with my-autoconf
1127 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1130 * test/btyacc/rename_debug.i, btyaccpar.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/code_calc.code.c, test/btyacc/code_error.code.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/varsyntax_calc1.tab.c:
1133 * btyaccpar.skel: apply Guy Harris' changes here as well
1135 * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
1137 * output.c: correct/improve fallback prototype for yylex()
1139 * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
1141 2018-05-08 Thomas E. Dickey <dickey@invisible-island.net>
1143 * test/btyacc/grammar.tab.c, test/yacc/grammar.tab.c: regen
1146 quiet some warnings from gcc 7 when doing "make check_make"
1148 * package/debian/watch, package/pkgsrc/Makefile: update ftp-url
1150 * test/btyacc/ok_syntax1.tab.h, test/btyacc/btyacc_calc1.tab.h: regen
1153 provide yylex() declaration for simple case (request by "Mutiny")
1155 * 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/ok_syntax1.tab.h, 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/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/code_calc.code.c, test/yacc/code_error.code.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/rename_debug.c, test/yacc/rename_debug.i, yaccpar.c:
1158 * VERSION, package/byacc.spec, package/debian/changelog, package/debian/copyright, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1161 2018-05-06 Guy.Harris
1163 * yaccpar.skel: two fixes:
1164 1) define yydebug only if YYDEBUG is defined and
1165 2) make yynerrs a parser-local variable if the parser is reentrant.
1167 2018-02-24 Guy.Harris
1169 * output.c: do not emit "extern YYSTYPE yylval;" for pure parsers
1171 2018-02-05 Thomas E. Dickey <dickey@invisible-island.net>
1173 * config.sub: 2018-01-15
1175 * config.guess: 2018-01-26
1177 2017-12-04 erik.b.andersen
1179 * main.c: A proper path for temporary files is needed by byacc under
1180 Windows commandline, otherwise there's a risk of empty files.
1181 The TEMP environment variable is always defined in Windows.
1183 * defs.h: The noreturn attribute needs to be specified before function
1184 to be portable among compilers (gcc, clang, msvc).
1186 2017-12-04 Thomas E. Dickey <dickey@invisible-island.net>
1188 * reader.c: adapted fix by Erik B:
1189 a) increase the length of name[] to account for a trailing null
1190 b) note that calling syntax_error() from get_number() does not return
1192 2017-09-14 Tom.Shields
1196 2017-07-09 Thomas E. Dickey <dickey@invisible-island.net>
1198 * package/byacc.spec, package/mingw-byacc.spec:
1199 use predefined "configure"
1201 * reader.c: remove unused assignment
1203 * package/debian/rules: use dpkg-buildflags
1207 * aclocal.m4: resync with my-autoconf
1209 * reader.c, output.c, defs.h:
1210 add/use IS_NAME1() and IS_NAME2() to reduce clutter
1212 * reader.c, output.c, defs.h:
1213 guard against sign-extension in ctype-macros
1215 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1218 * reader.c: check for numeric overflow in get_number()
1221 correct limit-checks for input filename and line-number, in case no valid
1222 filename and/or number was found.
1224 2017-04-30 Thomas E. Dickey <dickey@invisible-island.net>
1226 * test/btyacc/quote_calc-s.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/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.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/code_calc.code.c, test/btyacc/code_error.code.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, btyaccpar.skel:
1227 fix another uninitialized variable warning in "make check_make" for btyacc
1229 * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/calc3.tab.c, btyaccpar.c, btyaccpar.skel, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/calc3.tab.c, yaccpar.c, defs.h, yaccpar.skel, output.c:
1230 fix some compiler warnings for "make check_make" by adding section init_vars,
1231 which initializes the body_vars for pure-parser configuration.
1233 2017-04-30 Tom.Shields
1236 use YY_NO_LEAKS set in configure --with-no-leaks, in the generated code
1238 2017-04-30 Julien.Ramseier
1240 * main.c, test/yacc/big_l.output:
1241 fix typo in unsupported-flag warning message
1243 2017-04-30 Thomas E. Dickey <dickey@invisible-island.net>
1245 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1248 2017-04-29 Thomas E. Dickey <dickey@invisible-island.net>
1250 * config.sub: 2017-04-02
1252 2017-03-18 Thomas E. Dickey <dickey@invisible-island.net>
1254 * config.sub: 2017-02-07
1256 * config.guess: 2017-03-05
1258 2017-02-01 Thomas E. Dickey <dickey@invisible-island.net>
1260 * test/btyacc/expr.oxout.error, test/btyacc/expr.oxout.output, test/btyacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.h, test/yacc/expr.oxout.error, test/yacc/expr.oxout.output, test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h:
1263 * package/debian/copyright: update copyright
1265 * reader.c, defs.h, main.c:
1266 avoid using regex.h since some low-end platforms do not have this
1268 * test/expr.oxout.y: RCS_BASE
1272 * aclocal.m4: quiet a strict gcc warning in CF_MKSTEMP
1274 2017-02-01 Tom.Shields
1276 * main.c, reader.c, defs.h:
1277 process #line directives, like bison and flex
1279 2017-02-01 Thomas E. Dickey <dickey@invisible-island.net>
1281 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1284 2016-12-31 Thomas E. Dickey <dickey@invisible-island.net>
1286 * config.guess, config.sub: 2017-01-01
1288 2016-12-02 Thomas E. Dickey <dickey@invisible-island.net>
1290 * test/btyacc/quote_calc4-s.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/error.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.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.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/rename_debug.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, btyaccpar.c:
1293 * btyaccpar.skel: changes from NetBSD
1294 + use YYINT rather than short in btyaccpar.skel
1295 (some of this had already been done by Tom Shields)
1296 + remove some casts of malloc/realloc
1298 * yaccpar.c, yaccpar.skel, output.c: changes from NetBSD
1299 - Add some more bison stuff to make the mesa/gallium parser work:
1300 %initial-action (add missing source struct member in location)
1301 %debug (unimplemented)
1302 %error-verbose (unimplemented)
1304 This changes some existing code:
1305 + yylloc is now a pointer, so
1306 + the first parameter to YYERROR_DECL() is a pointer
1307 + struct YYLTYPE now has a "source" field
1309 * test/btyacc/btyacc_demo.tab.h, test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c, test/btyacc/err_inherit4.tab.h:
1312 * btyaccpar.c, btyaccpar.skel, reader.c: changes from NetBSD
1313 - Add some more bison stuff to make the mesa/gallium parser work:
1314 %initial-action (add missing source struct member in location)
1315 %debug (unimplemented)
1316 %error-verbose (unimplemented)
1318 This changes some existing code:
1319 + yylloc is now a pointer, so
1320 + the first parameter to YYERROR_DECL() is a pointer
1321 + struct YYLTYPE now has a "source" field
1324 fix from NetBSD: correct off-by-one when adding a null in copy_param()
1326 * reader.c: adapted from NetBSD
1327 - Convert *most* error fingerprints to:
1328 -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr)
1329 +unterminated_arglist(const struct ainfo *a)
1330 - Cast new <ctype.h> args to unsigned char
1332 * defs.h: changes from NetBSD
1333 - Add some more bison stuff to make the mesa/gallium parser work:
1334 %initial-action (add missing source struct member in location)
1335 %debug (unimplemented)
1336 %error-verbose (unimplemented)
1338 This changes some existing code:
1339 + yylloc is now a pointer, so
1340 + the first parameter to YYERROR_DECL() is a pointer
1341 + struct YYLTYPE now has a "source" field
1343 * defs.h: adapted from NetBSD
1344 - Convert *most* error fingerprints to:
1345 -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr)
1346 +unterminated_arglist(const struct ainfo *a)
1347 - Cast new <ctype.h> args to unsigned char
1349 * main.c: changes from NetBSD
1350 - Add some more bison stuff to make the mesa/gallium parser work:
1351 %initial-action (add missing source struct member in location)
1352 %debug (unimplemented)
1353 %error-verbose (unimplemented)
1355 This changes some existing code:
1356 + yylloc is now a pointer, so
1357 + the first parameter to YYERROR_DECL() is a pointer
1358 + struct YYLTYPE now has a "source" field
1360 * error.c: adapted from NetBSD
1361 - Convert *most* error fingerprints to:
1362 -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr)
1363 +unterminated_arglist(const struct ainfo *a)
1364 - Cast new <ctype.h> args to unsigned char
1366 * mstring.c: adapted change from NetBSD to add casts for ctype macros
1368 * test/btyacc/btyacc_demo.tab.h, test/btyacc/err_inherit4.tab.h: regen
1370 * output.c: reorder to eliminate a forward-reference
1372 2016-12-02 Tom.Shields
1375 modify output to enable compilation of a lexer generated by flex (using
1376 "%option bison-bridge" and "%option bison-locations") to be used with a parser
1377 generated by b(t)yacc (using directives "%locations" and "%pure-parser").
1379 2016-12-02 Thomas E. Dickey <dickey@invisible-island.net>
1383 * aclocal.m4: Improved autoconf macros
1385 + improve split between compiler and options, prompted by report where user
1386 had "ccache" before the compiler
1387 + leave non-preprocessor options in "$CC" (but still copy them to "$CFLAGS"
1388 since that's where they should be)
1390 + recent glibc (Debian 2.23-4 for example) has misordered ifdef/checks for new
1391 symbol _DEFAULT_SOURCE, producing warning messages when only _GNU_SOURCE is
1392 defined. Add a followup check to define _DEFAULT_SOURCE.
1394 + add "uclinux" to list of Linux's (patch by Yann E. Morin)
1395 + use _GNU_SOURCE for cygwin headers
1396 + build-fixes for OS/2
1398 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1401 2016-11-20 Thomas E. Dickey <dickey@invisible-island.net>
1403 * config.sub: 2016-11-19
1405 * config.guess: 2016-10-02
1407 2016-06-06 Thomas E. Dickey <dickey@invisible-island.net>
1411 * aclocal.m4: improved autoconf macros:
1412 CF_CC_ENV_FLAGS - don't limit the check to -I, -U and -D options, since the
1413 added options can include various compiler options before and after
1414 preprocessor options.
1415 CF_PROG_LINT - add cpplint to programs to use; drop ad hoc tdlint and alint.
1417 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1422 * btyaccpar.c: regen
1425 adjust whitespace so that generated skeleton will follow the same format
1428 * mkpar.c, verbose.c, lr0.c, reader.c, error.c, output.c: indented
1430 * reader.c: fix two compiler warnings
1432 * 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/varsyntax_calc1.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/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.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/code_calc.code.c, test/btyacc/code_error.code.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/rename_debug.c, btyaccpar.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_syntax20.tab.c, test/yacc/error.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/code_calc.code.c, test/yacc/code_error.code.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/rename_debug.c, yaccpar.c:
1435 2016-06-06 Tom.Shields
1437 * btyaccpar.skel, yaccpar.skel:
1438 small fix for an edge case of initialized data in Chris Dodd's btyacc changes:
1439 "Avoid crash when input pops up an Action error at the first token"
1441 2016-06-01 Thomas E. Dickey <dickey@invisible-island.net>
1443 * test/yacc/quote_calc2-s.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/err_syntax24.error, test/yacc/error.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.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_calc.tab.h, test/yacc/code_error.code.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/rename_debug.c, yaccpar.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_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.error, 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/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.output, 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/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.error, test/btyacc/btyacc_demo.output, 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/code_calc.code.c, test/btyacc/code_calc.tab.c, test/btyacc/code_calc.tab.h, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.output, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.output, 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/rename_debug.c, btyaccpar.c:
1446 2016-06-01 Tom.Shields
1448 * btyaccpar.skel, defs.h, error.c, output.c, reader.c, test/code_calc.y, test/err_inherit4.y, test/run_make.sh, yaccpar.skel:
1449 fixes for issues in btyacc (report by Francis Andre):
1451 + correction to the placement of the #line directive for a %union specification
1453 + recovery of a set of casts originally added into btyaccpar.c rather than into
1454 btyaccpar.skel, and so are lost whenever building from scratch
1456 + Chris Dodd's btyacc improved handling of inherited attributes to eliminate
1457 implicit empty copy rules that are not necessary, and thereby avoiding the
1458 introduction of extra parsing ambiguity
1460 + Chris Dodd's added support for @-N syntax to reference inherited position
1463 + correction to bad interaction between %token-table and YYDEBUG, where YYDEBUG
1464 was required to be defined in order to compile the generated code
1466 + correction to yyname[] access in code included with YYDEBUG defined for
1467 single character symbols not recognized (e.g., input containing '&' character
1468 where grammar doesn't define that as a symbol) - map to existing
1469 "illegal-symbol" entry in byname[]
1471 + fixes to test/run_make.sh: skip test-err_* files; in the bison test phase
1472 skip additional files that contain features not supported by bison and
1473 inhibit new bison warning messages
1475 + minor changes to btyaccpar.skel & yaccpar.skel so they are more similar in
1476 their commonality; makes it easier to maintain the pair of files using
1479 + changes to a couple of test cases for coverage of #3, #4 and #5 above
1481 2016-06-01 Thomas E. Dickey <dickey@invisible-island.net>
1483 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1486 2016-03-24 Thomas E. Dickey <dickey@invisible-island.net>
1488 * reader.c: unused variable
1490 * package/pkgsrc/Makefile, package/debian/copyright: bump
1492 2016-03-24 Jung-uk.Kim
1495 correct logic for finding output suffix in the "-o" option, which matched
1496 the first occurrence of ".c" in the name in 2005-08-13 changes rather than
1497 at the end of the filename (patch by Jung-uk Kim)
1499 2016-03-24 Thomas E. Dickey <dickey@invisible-island.net>
1502 update CF_WITH_MAN2HTML to use configured shell rather than /bin/sh
1504 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1507 2016-01-25 Thomas E. Dickey <dickey@invisible-island.net>
1509 * config.guess, config.sub: 2016-01-01
1511 2015-07-10 Thomas E. Dickey <dickey@invisible-island.net>
1513 * lr0.c: fix a duplicate-free in the leak-checking
1515 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1519 make cache-size clearer (prompted by discussion with Pedro Giffuni,
1523 make relationship with format/size clearer (prompted by discussion
1524 with Pedro Giffuni, Oliver Pinter)
1526 2015-07-05 Thomas E. Dickey <dickey@invisible-island.net>
1530 * package/pkgsrc/Makefile, package/mingw-byacc.spec, package/debian/copyright, package/debian/changelog, package/byacc.spec, VERSION:
1533 * aclocal.m4: resync with my-autoconf
1534 add configure option --with-man2html
1536 * makefile.in: add configure options --with-man2html
1538 * configure.in: add configure option --with-man2html
1540 2015-05-02 Thomas E. Dickey <dickey@invisible-island.net>
1542 * config.guess: 2015-03-04
1544 * config.sub: 2015-03-08
1546 2014-11-28 Thomas E. Dickey <dickey@invisible-island.net>
1548 * lr0.c: coverity #39181: memory leak
1550 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1553 2014-11-13 Jouk.Jansen
1556 I sucessfully compiled byacc on my OpenVMS systems. However, I had to update
1557 the descrip.mms to include some extra c-source files and some dependenxcies
1558 so that it also works when the distribution is located on an ODS5 disk.
1560 The patched descrip.mms file can be found at:
1561 http://nchrem.tnw.tudelft.nl/openvms/software2.html#BYACC
1563 Please feel free to insert the file in your distribution.
1568 2014-10-06 Thomas E. Dickey <dickey@invisible-island.net>
1570 * package/debian/source/format:
1571 change to native format to work around regression in Debian packaging.
1573 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1579 correct parameter for umask - for very old mkstemp's - and use type mode_t
1580 to quiet compiler warning
1582 * configure.in: add configure check for mode_t
1585 better fix for get_line, by ensuring there is enough space to null-terminate
1586 its result (prompted by discussion with Craig Rodrigues).
1588 2014-10-05 Thomas E. Dickey <dickey@invisible-island.net>
1591 make change to umask before calling mkstemp, as suggested in Coverity #56902
1594 adjust logic in copy_action to avoid potential null-pointer dereference
1598 adjust logic to avoid potential null-pointer dereference in compile_args
1601 * reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408)
1603 * yacc.1: document changes made with respect to %parse-param
1606 add parameters from %parse-param to destructor. The order of the parameters
1607 is intentionally inconsistent with yyparse/yyerror, for "compatibility" with
1610 * test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c:
1614 use puts_param_types/puts_param_names to output lex_param data.
1616 * test/btyacc/ok_syntax1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.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/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.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/rename_debug.c:
1619 * btyaccpar.c: add casts, change types to fix strict compiler warnings
1621 * test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.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/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.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:
1624 * output.c: gcc-warning
1626 * test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c: regen
1628 * output.c: fix limit when merging real/workaround tables
1631 for btyacc, it is possible to have no conflicts - but in that case, the
1632 "ctable" was not generated at all, while the skeleton uses the table.
1633 The most straightforward (workaround) is generating a dummy table which
1636 * test/btyacc_destroy3.y, test/btyacc_destroy2.y, test/btyacc_destroy1.y:
1637 fix "make check_make"
1639 * test/yacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/calc2.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c:
1643 trim blanks from interim value in copy_param() to handle special case when
1644 a space precedes a comma.
1647 use two new functions, puts_param_types and puts_param_names, to improve
1648 format of the parse_param list (by trimming space after "*") as well as
1649 correcting the output of the comma-separated names (only the last name
1652 * test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c:
1656 modify copy_param() to handle resulting comma-separated list. Before, it
1657 only expected a single parameter.
1659 2014-10-04 Thomas E. Dickey <dickey@invisible-island.net>
1661 * reader.c: split-out save_param() from copy_param()
1663 * reader.c: trim_blanks() did not always convert spaces - fix.
1665 * reader.c: fix some minor regressions with error-reporting
1667 * aclocal.m4: update CF_XOPEN_SOURCE for Unixware change from lynx
1669 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1673 modify copy_param() to accept multiple parameters, each in curly braces like
1674 recent bison, as well as honoring bison's undocumented feature to accept the
1675 parameters as a comma-separated list.
1677 * test/btyacc/btyacc_destroy3.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.error, test/btyacc/btyacc_destroy3.output, test/btyacc/btyacc_destroy3.tab.h, test/btyacc/btyacc_destroy2.error, test/btyacc/btyacc_destroy2.output, test/btyacc/btyacc_destroy2.tab.h:
1680 2014-10-03 Thomas E. Dickey <dickey@invisible-island.net>
1682 * test/btyacc/btyacc_demo2.error, test/btyacc/btyacc_demo2.output, test/btyacc/btyacc_demo2.tab.c, test/btyacc/btyacc_demo2.tab.h, test/btyacc/btyacc_destroy1.error, test/btyacc/btyacc_destroy1.output, test/btyacc/btyacc_destroy1.tab.h, test/btyacc_destroy3.y, test/btyacc_destroy1.y, test/btyacc_destroy2.y:
1685 2014-10-02 Thomas E. Dickey <dickey@invisible-island.net>
1687 * main.c, reader.c, defs.h:
1688 use calloc in get_line() when allocating line to ensure it is fully initialized,
1689 fixes a later uninitialized value in copy_param() (FreeBSD #193499).
1691 2014-09-17 Thomas E. Dickey <dickey@invisible-island.net>
1693 * closure.c, lalr.c, output.c, defs.h:
1694 rephrase odd addressing to fix Coverity #48848, #38950, #38860, not actually
1697 2014-09-01 Thomas E. Dickey <dickey@invisible-island.net>
1699 * config.sub: update to 2014-07-28
1701 2014-07-27 Thomas E. Dickey <dickey@invisible-island.net>
1705 * aclocal.m4: modified to support port to Minix3.2
1707 * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec:
1710 2014-07-15 Thomas E. Dickey <dickey@invisible-island.net>
1712 * aclocal.m4: resync with my-autoconf (no change to configure script)
1714 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1718 make top-level "make check" work again, by adding another step to filtering
1721 2014-07-14 Thomas E. Dickey <dickey@invisible-island.net>
1723 * test/run_test.sh: changes from Garrett Cooper's patch:
1724 a) ensure that the script returns an error-code if there are differences
1725 b) escape "." character in left side of sed expression for $YACC
1726 c) ensure that $ifBTYACC has a value
1728 * 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:
1729 regen (reminder by Garrett Cooper)
1731 2014-07-14 Garrett.Cooper
1733 * test/btyacc/err_inherit1.error, test/btyacc/err_inherit2.error, test/btyacc/err_inherit3.error, test/btyacc/err_inherit4.error, test/btyacc/err_inherit5.error, test/btyacc/err_syntax1.error, test/btyacc/err_syntax10.error, test/btyacc/err_syntax11.error, test/btyacc/err_syntax12.error, test/btyacc/err_syntax13.error, test/btyacc/err_syntax14.error, test/btyacc/err_syntax15.error, test/btyacc/err_syntax16.error, test/btyacc/err_syntax17.error, test/btyacc/err_syntax18.error, test/btyacc/err_syntax19.error, test/btyacc/err_syntax2.error, test/btyacc/err_syntax21.error, test/btyacc/err_syntax22.error, test/btyacc/err_syntax23.error, test/btyacc/err_syntax24.error, test/btyacc/err_syntax25.error, test/btyacc/err_syntax26.error, test/btyacc/err_syntax27.error, test/btyacc/err_syntax3.error, test/btyacc/err_syntax4.error, test/btyacc/err_syntax5.error, test/btyacc/err_syntax6.error, test/btyacc/err_syntax7.error, test/btyacc/err_syntax7a.error, test/btyacc/err_syntax7b.error, test/btyacc/err_syntax8.error, test/btyacc/err_syntax8a.error, test/btyacc/err_syntax9.error, test/yacc/err_syntax1.error, test/yacc/err_syntax10.error, test/yacc/err_syntax11.error, test/yacc/err_syntax12.error, test/yacc/err_syntax13.error, test/yacc/err_syntax14.error, test/yacc/err_syntax15.error, test/yacc/err_syntax16.error, test/yacc/err_syntax17.error, test/yacc/err_syntax18.error, test/yacc/err_syntax19.error, test/yacc/err_syntax2.error, test/yacc/err_syntax21.error, test/yacc/err_syntax22.error, test/yacc/err_syntax23.error, test/yacc/err_syntax24.error, test/yacc/err_syntax25.error, test/yacc/err_syntax26.error, test/yacc/err_syntax27.error, test/yacc/err_syntax3.error, test/yacc/err_syntax4.error, test/yacc/err_syntax5.error, test/yacc/err_syntax6.error, test/yacc/err_syntax7.error, test/yacc/err_syntax7a.error, test/yacc/err_syntax7b.error, test/yacc/err_syntax8.error, test/yacc/err_syntax8a.error, test/yacc/err_syntax9.error:
1736 2014-05-27 Tom.Shields
1738 * main.c: remove obsolete -D option from usage message
1740 2014-05-27 Thomas E. Dickey <dickey@invisible-island.net>
1742 * VERSION, package/byacc.spec, package/debian/changelog, 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:
1745 2014-04-22 Thomas E. Dickey <dickey@invisible-island.net>
1748 use vsnprintf() to ensure that msprintf's buffer is large enough.
1750 * main.c, defs.h: add mstring_leaks()
1754 * output.c: fix a complementary warning
1756 * mstring.c: introduce vsnprintf
1758 * configure.in, config_h.in: add check for vsnprintf
1760 * output.c: quiet a type-conversion warning
1762 * mstring.c: fix a potential memory leak on ENOMEM
1763 quiet a couple of type-conversion warnings
1765 * defs.h: add/use GCC_PRINTFLIKE for msprintf()
1767 2014-04-22 Tom.Shields
1770 drop "NOTES-btyacc-Changes" and "NOTES-btyacc-Disposition", merging relevant
1771 content into README.BTYACC
1773 2014-04-22 Thomas E. Dickey <dickey@invisible-island.net>
1775 * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec:
1778 2014-04-19 Thomas E. Dickey <dickey@invisible-island.net>
1780 * config.sub: 2014-04-03
1782 * config.guess: 2014-03-23
1784 2014-04-09 Rick.Spates
1786 * main.c, defs.h: patch to allow DEBUG build with WIN32 system
1788 2014-04-09 Thomas E. Dickey <dickey@invisible-island.net>
1790 * output.c, reader.c: gcc warnings
1792 * reader.c: fix const-cast warnings
1794 * test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.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_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/code_error.tab.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/error.tab.c, test/btyacc/rename_debug.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.tab.c, output.c:
1795 fix a few clang --analyze warnings; one was a case where output_ctable emitted
1796 an empty table (which should be an error).
1798 * reader.c: appease clang --analyze
1800 * defs.h: mark two functions as no-return.
1802 * package/debian/changelog: reason for release
1804 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile:
1807 * makefile.in: use $LINT_OPTS from environment via configure script
1809 * test/btyacc/ok_syntax1.output, test/btyacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.c, test/ok_syntax1.y, test/yacc/ok_syntax1.output:
1810 tweaks to make generated files from ok_syntax1.y compile with check_make rule
1812 * test/btyacc/rename_debug.c, test/btyacc/rename_debug.error, test/btyacc/rename_debug.h, test/btyacc/rename_debug.i, test/btyacc/rename_debug.output, test/yacc/rename_debug.c:
1813 reference output for testing
1816 retain the renaming done for code_debug.y so that check_make will work.
1818 * test/yacc/rename_debug.error, test/yacc/rename_debug.h, test/yacc/rename_debug.i, test/yacc/rename_debug.output:
1819 reference output for testing
1821 * test/btyacc/ok_syntax1.error: RCS_BASE
1823 * test/yacc/quote_calc4-s.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/code_error.code.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/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.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, yaccpar.c:
1827 clarify relationship of btyacc features to default configuration.
1829 2014-04-08 Thomas E. Dickey <dickey@invisible-island.net>
1831 * test/yacc/ok_syntax1.output, test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h, test/btyacc/ok_syntax1.output, test/btyacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h:
1832 reference output for testing
1834 * test/ok_syntax1.y: RCS_BASE
1836 * test/yacc/ok_syntax1.error: reference output for testing
1838 * test/yacc/big_b.error, test/yacc/big_b.output, test/yacc/big_l.error, test/yacc/big_l.output, test/btyacc/big_b.error, test/btyacc/big_b.output, test/btyacc/big_l.error, test/btyacc/big_l.output, test/run_test.sh:
1839 exercise -L/-B options
1841 * test/yacc/code_debug.c, test/btyacc/code_debug.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/grammar.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/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/code_calc.code.c, test/yacc/code_error.code.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/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/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/code_error.code.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/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/btyacc_calc1.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/run_test.sh, test/yacc/no_b_opt1.output:
1842 use a better renaming of the YYPATCH definition (none of the test-cases rely
1843 upon it, but redefinition in the "make check_make" rule is a problem).
1845 * test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax2.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/varsyntax_calc1.tab.c:
1846 undid temporary reordering in reader() by Tom Shields to align with byacc outputs
1848 * test/run_test.sh: remove a repeated test-case
1850 * mstring.c: minor reformatting to make coverage analysis simpler
1852 2014-04-07 Thomas E. Dickey <dickey@invisible-island.net>
1854 * test/run_test.sh: tidy
1856 * 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, test/yacc/test-no_b_opt1.output:
1857 reference output for testing
1860 add special checks for flags which depend on writable/existing files
1862 * test/btyacc/no_b_opt1.output, test/btyacc/no_p_opt1.output, test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output, test/btyacc/no_b_opt1.error, test/btyacc/no_code_c.output, test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output, test/btyacc/no_p_opt1.error, test/btyacc/no_output2.output, test/btyacc/no_code_c.error, test/btyacc/no_output2.error, test/btyacc/no_include.error, test/btyacc/no_include.output, test/btyacc/no_defines.output, test/btyacc/no_defines.error, test/btyacc/no_verbose.output, test/btyacc/no_graph.output, test/btyacc/no_graph.error, test/btyacc/no_opts.error, test/btyacc/no_opts.output, test/btyacc/no_verbose.error, test/btyacc/nostdin.error, test/btyacc/nostdin.output, test/btyacc/no_output.error, test/btyacc/no_output.output, test/btyacc/no_output1.error, test/btyacc/no_output1.output:
1863 reference output for testing
1866 change CREATE_FILE_NAMES() to use local function rather than inline code,
1867 to simplify coverage analysis.
1869 * test/btyacc/err_syntax27.error, test/btyacc/err_syntax27.output, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax27.tab.h, test/btyacc/help.error, test/btyacc/help.output, test/yacc/err_syntax27.error, test/yacc/err_syntax27.output, test/yacc/err_syntax27.tab.c, test/yacc/err_syntax27.tab.h:
1870 reference output for testing
1872 * test/err_syntax27.y: testcase for missing_brace()
1874 * error.c: ifdef'd non-btyacc function
1876 * lr0.c: ifdef'd debug-code
1878 * yaccpar.skel: use YYINT's to replace short's as in btyaccpar.skel
1880 * test/btyacc/code_debug.c, test/btyacc/err_syntax12.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_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/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.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/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.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_syntax10.tab.c, test/btyacc/err_syntax11.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/grammar.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/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/code_calc.code.c, test/yacc/code_debug.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, output.c, test/yacc/err_syntax1.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_syntax19.tab.c, test/yacc/err_syntax2.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_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/run_test.sh:
1881 2010/11/26 simplification of output.c using putc_code() and putl_code()
1882 omitted an adjustment of the #line value used for code-file. Fix that.
1883 Also, amend 2005/05/04 change to run_test.sh to retain a dummy line for
1884 YYPATCH #define's to make test-outputs easier to compare #line's (report
1887 2014-04-06 Thomas E. Dickey <dickey@invisible-island.net>
1889 * reader.c: fix for valgrind
1890 (the calloc's are intentional - valgrind reported use of uninitialized memory)
1892 * lr0.c, output.c: fix for valgrind
1894 * test/btyacc/code_debug.c, test/btyacc/code_debug.error, test/btyacc/code_debug.h, test/btyacc/code_debug.i, test/btyacc/code_debug.output:
1897 * test/yacc/code_debug.c, test/yacc/code_debug.h:
1898 exercise the -i option
1900 * test/yacc/code_debug.i: reference output for testing
1902 * test/run_test.sh: exercise the -i option
1904 * test/yacc/code_debug.c: reference output for testing
1906 * test/run_test.sh: exercise the "-o" option
1908 * test/yacc/code_debug.error, test/yacc/code_debug.h, test/yacc/code_debug.output:
1909 reference output for testing
1911 * output.c: don't call exit() without giving a chance to cleanup.
1913 * mstring.c: ifdef'd functions not used in byacc
1915 * btyaccpar.c: generated from btyaccpar.skel
1917 * yaccpar.c: generated from yaccpar.skel
1920 change the generated-by comment to show which version of this script (and
1921 which version of the given skeleton file) were used to produce the C-file.
1926 add rules to generate byacc and btyacc parser skeleton files independently
1928 * aclocal.m4: CF_PROG_AWK - add to byacc's configure script
1930 cleanup the -no-gcc option which was leftover from testing - prcs does
1931 not build with this option.
1933 protect $2 from substitution, for luit's "$(manext)"
1935 for Solaris (tested with gcc/g++ 3.4.3 on Solaris 10 and gcc/g++ 4.5.2
1936 on Solaris 11), suppress the followup check for defining _XOPEN_SOURCE
1937 because it is not needed, as well as because g++ 4.7.3 (no package,
1938 used in Sage for Solaris 10) has some unspecified header breakage which
1939 is triggered by the duplicate definition.
1942 modify so skeleton-source is determined by configure options rather than by
1943 having developer rename yaccpar.skel.old to yaccpar.skel
1945 * descrip.mms: rename skeleton
1948 fwiw, renamed the skeleton for consistency with makefile
1950 * skel2c, skeleton.c: resync skeleton and its generating files
1953 renamed yaccpar.skel.old to yaccpar.skel, to allow using makefile suffix rules
1955 * yaccpar.skel.old: resync skeleton and its generating files
1957 * test/run_make.sh: improve cleanup after error recovery
1959 * test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.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/grammar.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/varsyntax_calc1.tab.c, output.c, skeleton.c, defs.h:
1960 use improvement from Tom Shield's btyacc changes, getting rid of special cases for generating two yyerror calls in skeleton
1962 * output.c: simplify output_yyerror_decl()
1964 * 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/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/code_calc.tab.c, test/yacc/code_error.tab.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/grammar.tab.c, test/yacc/pure_calc.tab.c, output.c:
1965 add second "const" to string-table declarations, from Tom Shield's btyacc changes
1967 * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.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/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.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:
1968 discard unnecessary call on write_code_lineno() from Tom Shield's changes
1970 * test/yacc/error.tab.c, test/yacc/grammar.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/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/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.code.c, test/yacc/code_error.tab.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, output.c:
1971 use YYINT typedef from Tom Shield's btyacc changes to replace explicit "short"
1973 * test/yacc/code_calc.code.c, test/yacc/code_error.code.c, output.c:
1974 use fix from Tom Shield's btyacc changes: remove redundant extern-declaration for YYPARSE_DECL()
1976 * test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.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/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.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:
1977 discard unnecessary call on write_code_lineno() from Tom Shield's changes
1979 * output.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.tab.c:
1980 use fix from Tom Shield's btyacc changes: prefix-definitions went to the
1981 output (.tab.c) file in a case where they should have gone to the code
1982 (.code.c) file. Remove now-redundant call to output_prefix().
1984 * main.c: do the same for help-message
1986 * main.c: use OUTPUT_SUFFIX symbol in an overlooked case
1989 modify to avoid use of VPATH, which has no standard implementation
1991 2014-04-05 Thomas E. Dickey <dickey@invisible-island.net>
1993 * test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.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/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.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:
1994 discard a change which merged CountLines() with explicit comparisons against
1995 code_file because that adds extra to the #line values
1997 * 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/calc.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/error.tab.c, output.c:
1998 add Tom Shield's change to allow definition of YYSTYPE_IS_DECLARED symbol to
1999 override fallback typedef for YYSTYPE when that symbol is undefined
2001 * test/btyacc/error.tab.c, test/btyacc/inherit0.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/calc.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c:
2002 minor tweak to coding style - use parenthesis for "defined" operator's parameter
2004 * 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/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.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/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c:
2005 regen to make YYMAXTOKEN and YYUNDFTOKEN adjacent
2007 * test/yacc/err_syntax20.tab.c, test/yacc/grammar.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/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.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/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c:
2008 regen after adding the YYUNDFTOKEN symbol
2011 integrate Tom Shield's btyacc changes which introduce the YYUNDFTOKEN symbol
2012 (I changed order of output to keep this adjacent to YYMAXTOKEN)
2015 merge all but one small change from Tom Shield's btyacc changes - that
2016 changes the order of code-file in the tests.
2018 * test/btyacc/btyacc_demo.tab.c: regen
2020 * test/btyacc_demo.y: fix prototypes
2022 2014-04-04 Thomas E. Dickey <dickey@invisible-island.net>
2024 * reader.c, defs.h, main.c:
2025 more merging of Tom Shield's btyacc changes. In the merge, I moved the
2026 symbol_pval inside the btyacc ifdef's and added some more btyacc ifdefs
2028 2014-04-03 Thomas E. Dickey <dickey@invisible-island.net>
2031 merge-in 3/4 of btyacc's changes, deferring those which change test-outputs.
2032 Tom Shield's changes split-out copy_string() and copy_comment() functions
2033 to simplify some logic, as well as adding btyacc-only chunks
2035 * makefile.in: build mstring.o, needed for changes in reader.c
2038 merge-in all of btyacc's changes which do not change byacc's test-output.
2039 Some of the merge uses ifdef-changes which I applied to ongoing resync,
2040 e.g., the introduction of PER_STATE.
2042 2014-04-02 Thomas E. Dickey <dickey@invisible-island.net>
2044 * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c: regen
2046 * output.c: fix typo
2048 * output.c, reader.c:
2049 merge in some chunks of reader and output files which do not affect byacc tests
2051 * test/yacc/calc2.tab.c, test/yacc/calc3.tab.c: regen
2053 * 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/grammar.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/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/code_calc.code.c, test/yacc/code_error.code.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_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, skeleton.c:
2054 incorporate YYENOMEM and YYEOF symbols from btyacc
2056 * output.c: merge chunk from btyacc changes for header-guards
2058 * btyaccpar.skel: RCS_BASE
2060 * yaccpar.skel: comment-out yysccsid[], for FreeBSD build-issues
2061 remove GCC_UNUSED to reduce name-pollution as well as being simpler
2064 move a btyacc symbol outside ifdef to work around current state of merge
2067 add USE_HEADER_GUARDS to defer whether to modify byacc's header-output
2070 do not try to compile files used for testing syntax-errors, since they are
2071 likely to be incomplete
2073 2014-04-02 Tom.Shields
2075 * main.c: changes for btyacc
2077 2014-04-01 Thomas E. Dickey <dickey@invisible-island.net>
2080 integrate change by Tom Shields to use bsearch rather than successive
2083 * defs.h: typedef __compar_fn_t is unnecessary
2085 * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.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/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.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:
2086 omit the GCC_UNUSED, as noted by Tom Shields not really essential
2088 2014-04-01 Tom.Shields
2090 * verbose.c: changes for btyacc, ifdef'd
2092 2014-04-01 Thomas E. Dickey <dickey@invisible-island.net>
2094 * mkpar.c: eliminate most of the ifdef's using macros
2096 2014-04-01 Tom.Shields
2098 * mkpar.c: merge btyacc changes (ifdef'd - no change to byacc)
2101 new functions used for reporting errors from the btyacc configuration
2102 (I reordered some, and ifdef'd the new ones -TD)
2104 2014-03-31 Thomas E. Dickey <dickey@invisible-island.net>
2106 * test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c:
2107 omit the GCC_UNUSED, as noted by Tom Shields not really essential
2109 * 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_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.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_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:
2112 2014-03-29 Thomas E. Dickey <dickey@invisible-island.net>
2114 * 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_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/grammar.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/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/code_calc.code.c, test/yacc/code_error.code.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, skeleton.c:
2115 comment-out yysccsid in the banner because it produces unnecessary compiler
2116 warnings. The suggested alternative (using #pragma ident) in the preceding
2117 comment is also obsolete; remove that comment (request by Gleb Smirnoff).
2120 for yacc, ignore the inherit testcases, since they are btyacc-specific
2122 2014-03-28 Thomas E. Dickey <dickey@invisible-island.net>
2124 * test/yacc/varsyntax_calc1.error, test/yacc/varsyntax_calc1.output, test/yacc/varsyntax_calc1.tab.c, test/yacc/varsyntax_calc1.tab.h, test/yacc/err_inherit3.error, test/yacc/err_inherit3.output, test/yacc/err_inherit3.tab.c, test/yacc/err_inherit3.tab.h, test/yacc/err_inherit4.error, test/yacc/err_inherit4.output, test/yacc/err_inherit4.tab.c, test/yacc/err_inherit4.tab.h, test/yacc/err_inherit5.error, test/yacc/err_inherit5.output, test/yacc/err_inherit5.tab.c, test/yacc/err_inherit5.tab.h, test/yacc/inherit0.error, test/yacc/inherit0.output, test/yacc/inherit0.tab.c, test/yacc/inherit0.tab.h, test/yacc/inherit1.error, test/yacc/inherit1.output, test/yacc/inherit1.tab.c, test/yacc/inherit1.tab.h, test/yacc/inherit2.error, test/yacc/inherit2.output, test/yacc/inherit2.tab.c, test/yacc/inherit2.tab.h, test/yacc/empty.error, test/yacc/empty.output, test/yacc/empty.tab.c, test/yacc/empty.tab.h, test/yacc/err_inherit1.error, test/yacc/err_inherit1.output, test/yacc/err_inherit1.tab.c, test/yacc/err_inherit1.tab.h, test/yacc/err_inherit2.error, test/yacc/err_inherit2.output, test/yacc/err_inherit2.tab.c, test/yacc/err_inherit2.tab.h:
2125 reference output for testing
2127 * test/run_lint.sh, test/run_make.sh, test/run_test.sh:
2128 moving #define's out of makefile broke check for yacc vs btyacc (fix)
2130 2014-03-28 Tom.Shields
2132 * test/btyacc/btyacc_demo.tab.c, test/btyacc/err_inherit3.error, test/btyacc/err_inherit3.output, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit3.tab.h, test/btyacc/err_inherit2.error, test/btyacc/err_inherit2.output, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit2.tab.h, test/btyacc/err_inherit4.error, test/btyacc/err_inherit4.output, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit4.tab.h, test/btyacc/err_inherit5.error, test/btyacc/err_inherit5.output, test/btyacc/err_inherit5.tab.c, test/btyacc/err_inherit5.tab.h, test/btyacc/inherit0.error, test/btyacc/inherit0.output, test/btyacc/inherit0.tab.c, test/btyacc/inherit0.tab.h, test/btyacc/inherit1.error, test/btyacc/inherit1.output, test/btyacc/inherit1.tab.c, test/btyacc/inherit1.tab.h, test/btyacc/inherit2.error, test/btyacc/inherit2.output, test/btyacc/inherit2.tab.c, test/btyacc/inherit2.tab.h, test/btyacc/calc.error, test/btyacc/err_inherit1.error, test/btyacc/err_inherit1.output, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit1.tab.h:
2133 reference output for testing
2135 * defs.h: new functions/variables for btyacc
2136 (I reordered and ifdef'd -TD)
2138 * test/inherit0.y, test/inherit1.y: testcase for btyacc
2140 2014-03-27 Tom.Shields
2142 * test/err_inherit5.y, test/err_inherit4.y, test/err_inherit3.y, test/err_inherit2.y, test/err_inherit1.y, test/inherit2.y:
2145 2014-03-25 Tom.Shields
2147 * symtab.c: extra initialization needed for btyacc
2150 * yacc.1: document -L/-B features from btyacc
2152 2014-03-25 Thomas E. Dickey <dickey@invisible-island.net>
2159 modified new options to act like those in my other configure-scripts, e.g.,
2160 showing what option is being tested, and the resulting value. Put the
2161 definitions in config.h rather than in the makefile.
2163 2014-03-25 Tom.Shields
2165 * makefile.in: add/use LINTFLAGS variable
2166 make all of the objects (not just skeleton) rebuild if makefile changes
2167 modify check-rule to reflect updates to run_test.sh vs subdirectory
2169 * mstring.c: byacc-btyacc-20140323
2171 2014-03-25 Thomas E. Dickey <dickey@invisible-island.net>
2173 * test/btyacc/RCS, test/yacc/RCS: PERMIT FILE
2175 * config_h.in: updated with autoheader-252
2177 2014-03-25 Tom.Shields
2179 * README.BTYACC: byacc-btyacc-20140323
2181 2014-03-24 Tom.Shields
2183 * test/btyacc/err_syntax1.output, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax1.tab.h, test/btyacc/err_syntax10.error, test/btyacc/err_syntax10.output, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax10.tab.h, test/btyacc/err_syntax11.error, test/btyacc/err_syntax11.output, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax11.tab.h, test/btyacc/err_syntax12.error, test/btyacc/err_syntax12.output, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax12.tab.h, test/btyacc/err_syntax13.error, test/btyacc/err_syntax13.output, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax13.tab.h, test/btyacc/err_syntax14.error, test/btyacc/err_syntax14.output, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax14.tab.h, test/btyacc/err_syntax15.error, test/btyacc/err_syntax15.output, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax15.tab.h, test/btyacc/err_syntax16.error, test/btyacc/err_syntax16.output, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax16.tab.h, test/btyacc/err_syntax17.error, test/btyacc/err_syntax17.output, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax17.tab.h, test/btyacc/err_syntax18.error, test/btyacc/err_syntax18.output, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax18.tab.h, test/btyacc/err_syntax19.error, test/btyacc/err_syntax19.output, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax19.tab.h, test/btyacc/err_syntax2.output, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax2.tab.h, test/btyacc/err_syntax20.error, test/btyacc/err_syntax20.output, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax20.tab.h, test/btyacc/err_syntax21.error, test/btyacc/err_syntax21.output, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax21.tab.h, test/btyacc/err_syntax22.error, test/btyacc/err_syntax22.output, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax22.tab.h, test/btyacc/err_syntax23.error, test/btyacc/err_syntax23.output, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax23.tab.h, test/btyacc/err_syntax24.error, test/btyacc/err_syntax24.output, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax24.tab.h, test/btyacc/err_syntax25.error, test/btyacc/err_syntax25.output, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax25.tab.h, test/btyacc/err_syntax26.error, test/btyacc/err_syntax26.output, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax26.tab.h, test/btyacc/err_syntax3.output, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax3.tab.h, test/btyacc/err_syntax4.output, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax4.tab.h, test/btyacc/err_syntax5.output, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax5.tab.h, test/btyacc/err_syntax6.output, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax6.tab.h, test/btyacc/err_syntax7.output, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7.tab.h, test/btyacc/err_syntax7a.output, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7a.tab.h, test/btyacc/err_syntax7b.output, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax7b.tab.h, test/btyacc/err_syntax8.output, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8.tab.h, test/btyacc/err_syntax8a.output, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax8a.tab.h, test/btyacc/err_syntax9.output, test/btyacc/err_syntax9.tab.c, test/btyacc/err_syntax9.tab.h:
2184 reference output for testing
2186 2014-03-24 Thomas E. Dickey <dickey@invisible-island.net>
2188 * defs.h: fix compiler warnings due to mputc()
2190 2014-03-23 Tom.Shields
2192 * test/btyacc_demo.y: testcase for btyacc
2194 * test/btyacc/varsyntax_calc1.error, test/btyacc/varsyntax_calc1.output, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h:
2195 reference output for testing
2197 * test/varsyntax_calc1.y, test/btyacc_calc1.y: testcase for btyacc
2199 2014-03-23 Thomas E. Dickey <dickey@invisible-island.net>
2201 * test/err_syntax26.error, test/err_syntax26.output, test/err_syntax26.tab.c, test/err_syntax26.tab.h, test/yacc/err_syntax26.error, test/yacc/err_syntax26.output, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax26.tab.h:
2202 reference output for testing
2204 * test/err_syntax26.y: testcase for missing_brace()
2206 * test/err_syntax25.error, test/err_syntax25.output, test/err_syntax25.tab.c, test/err_syntax25.tab.h, test/yacc/err_syntax25.error, test/yacc/err_syntax25.output, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax25.tab.h:
2207 reference output for testing
2209 * test/err_syntax25.y: testcase for over_unionized()
2211 * test/err_syntax24.error, test/err_syntax24.output, test/err_syntax24.tab.c, test/err_syntax24.tab.h, test/yacc/err_syntax24.error, test/yacc/err_syntax24.output, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax24.tab.h:
2212 reference output for testing
2214 * test/err_syntax24.y: testcase for default_action_warning()
2216 2014-03-23 Tom.Shields
2218 * test/btyacc/quote_calc3-s.error, test/btyacc/quote_calc4-s.error, test/btyacc/quote_calc4.error, test/btyacc/grammar.dot, test/btyacc/grammar.error, test/btyacc/pure_calc.error, test/btyacc/pure_error.error, test/btyacc/quote_calc-s.error, test/btyacc/quote_calc.error, test/btyacc/quote_calc2-s.error, test/btyacc/quote_calc2.error, test/btyacc/quote_calc3.error, test/btyacc/err_syntax2.error, test/btyacc/err_syntax3.error, test/btyacc/err_syntax4.error, test/btyacc/err_syntax5.error, test/btyacc/err_syntax6.error, test/btyacc/err_syntax7.error, test/btyacc/err_syntax7a.error, test/btyacc/err_syntax7b.error, test/btyacc/err_syntax8.error, test/btyacc/err_syntax8a.error, test/btyacc/err_syntax9.error, test/btyacc/error.error, test/btyacc/calc1.error, test/btyacc/calc2.error, test/btyacc/calc3.error, test/btyacc/code_calc.error, test/btyacc/code_error.error, test/btyacc/empty.error, test/btyacc/err_syntax1.error, test/btyacc/btyacc_calc1.error, test/btyacc/btyacc_demo.error:
2219 reference output for testing
2221 2014-03-23 Thomas E. Dickey <dickey@invisible-island.net>
2223 * test/err_syntax23.error, test/err_syntax23.output, test/err_syntax23.tab.c, test/err_syntax23.tab.h, test/yacc/err_syntax23.error, test/yacc/err_syntax23.output, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax23.tab.h:
2224 reference output for testing
2226 * test/err_syntax23.y: testcase for untyped_lhs()
2228 2014-03-23 Tom.Shields
2231 move test-outputs into subdirectories to keep btyacc/yacc results separate
2233 2014-03-23 Thomas E. Dickey <dickey@invisible-island.net>
2235 * test/err_syntax22.error, test/err_syntax22.output, test/err_syntax22.tab.c, test/err_syntax22.tab.h, test/yacc/err_syntax22.error, test/yacc/err_syntax22.output, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax22.tab.h:
2236 reference output for testing
2238 * test/err_syntax22.y: testcase for untyped_rhs()
2240 * test/err_syntax21.error, test/err_syntax21.output, test/err_syntax21.tab.c, test/err_syntax21.tab.h, test/yacc/err_syntax21.error, test/yacc/err_syntax21.output, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax21.tab.h, test/err_syntax20.error, test/err_syntax20.output, test/err_syntax20.tab.c, test/err_syntax20.tab.h, test/yacc/err_syntax20.error, test/yacc/err_syntax20.output, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax20.tab.h:
2241 reference output for testing
2243 * test/err_syntax20.y: testcase for undefined_symbol_warning()
2245 * test/err_syntax21.y: testcase for unknown_rhs()
2247 * test/err_syntax19.error, test/err_syntax19.output, test/err_syntax19.tab.c, test/err_syntax19.tab.h, test/yacc/err_syntax19.error, test/yacc/err_syntax19.output, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax19.tab.h:
2248 reference output for testing
2250 * test/err_syntax19.y: testcase for dollar_error()
2252 * test/err_syntax18.error, test/err_syntax18.output, test/err_syntax18.tab.c, test/err_syntax18.tab.h, test/yacc/err_syntax18.error, test/yacc/err_syntax18.output, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax18.tab.h:
2253 reference output for testing
2255 * test/err_syntax18.y: testcase for dollar_warning()
2257 * test/err_syntax17.error, test/err_syntax17.output, test/err_syntax17.tab.c, test/err_syntax17.tab.h, test/yacc/err_syntax17.error, test/yacc/err_syntax17.output, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax17.tab.h:
2258 reference output for testing
2260 * test/err_syntax17.y: testcase for unterminated_action()
2262 2014-03-22 Thomas E. Dickey <dickey@invisible-island.net>
2264 * test/err_syntax16.error, test/err_syntax16.output, test/err_syntax16.tab.c, test/err_syntax16.tab.h, test/yacc/err_syntax16.error, test/yacc/err_syntax16.output, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax16.tab.h:
2265 reference output for testing
2267 * test/err_syntax16.y: testcase for terminal_lhs()
2269 * test/err_syntax15.error, test/err_syntax15.output, test/err_syntax15.tab.c, test/err_syntax15.tab.h, test/yacc/err_syntax15.error, test/yacc/err_syntax15.output, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax15.tab.h:
2270 reference output for testing
2272 * test/err_syntax15.y: testcase for no_grammar()
2274 * test/err_syntax14.error, test/err_syntax14.output, test/err_syntax14.tab.c, test/err_syntax14.tab.h, test/yacc/err_syntax14.error, test/yacc/err_syntax14.output, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax14.tab.h:
2275 reference output for testing
2277 * test/err_syntax14.y:
2278 testcase for restarted_warning() and undefined_goal()
2280 * test/err_syntax13.error, test/err_syntax13.output, test/err_syntax13.tab.c, test/err_syntax13.tab.h, test/yacc/err_syntax13.error, test/yacc/err_syntax13.output, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax13.tab.h:
2281 reference output for testing
2283 * test/err_syntax13.y: testcase for terminal_start()
2285 * test/err_syntax12.error, test/err_syntax12.output, test/err_syntax12.tab.c, test/err_syntax12.tab.h, test/yacc/err_syntax12.error, test/yacc/err_syntax12.output, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax12.tab.h:
2286 reference output for testing
2288 * test/err_syntax12.y: testcase for revalued_warning()
2290 * test/err_syntax11.error, test/err_syntax11.output, test/err_syntax11.tab.c, test/err_syntax11.tab.h, test/yacc/err_syntax11.error, test/yacc/err_syntax11.output, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax11.tab.h:
2291 reference output for testing
2293 * test/err_syntax11.y: testcase for reprec_warning()
2295 * test/err_syntax10.error, test/err_syntax10.output, test/err_syntax10.tab.c, test/err_syntax10.tab.h, test/yacc/err_syntax10.error, test/yacc/err_syntax10.output, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax10.tab.h:
2296 reference output for testing
2298 * test/err_syntax10.y: testcase for retyped_warning()
2300 2014-03-21 Thomas E. Dickey <dickey@invisible-island.net>
2302 * test/err_syntax9.error, test/err_syntax9.output, test/err_syntax9.tab.c, test/err_syntax9.tab.h, test/yacc/err_syntax9.error, test/yacc/err_syntax9.output, test/yacc/err_syntax9.tab.c, test/yacc/err_syntax9.tab.h:
2303 reference output for testing
2305 * test/err_syntax9.y: testcase for tokenized_start()
2307 * test/err_syntax8.error, test/err_syntax8.output, test/err_syntax8.tab.c, test/err_syntax8.tab.h, test/err_syntax8a.error, test/err_syntax8a.output, test/err_syntax8a.tab.c, test/err_syntax8a.tab.h, test/yacc/err_syntax8.error, test/yacc/err_syntax8.output, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8.tab.h, test/yacc/err_syntax8a.error, test/yacc/err_syntax8a.output, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax8a.tab.h:
2308 reference output for testing
2310 * test/err_syntax8a.y, test/err_syntax8.y: testcase for used_reserved()
2312 * test/err_syntax7.error, test/err_syntax7.output, test/err_syntax7.tab.c, test/err_syntax7.tab.h, test/err_syntax7a.error, test/err_syntax7a.output, test/err_syntax7a.tab.c, test/err_syntax7a.tab.h, test/err_syntax7b.error, test/err_syntax7b.output, test/err_syntax7b.tab.c, test/err_syntax7b.tab.h, test/yacc/err_syntax7.error, test/yacc/err_syntax7.output, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7.tab.h, test/yacc/err_syntax7a.error, test/yacc/err_syntax7a.output, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7a.tab.h, test/yacc/err_syntax7b.error, test/yacc/err_syntax7b.output, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax7b.tab.h:
2313 reference output for testing
2315 * test/err_syntax7b.y, test/err_syntax7a.y, test/err_syntax7.y:
2316 testcase for illegal_character()
2318 * test/err_syntax6.error, test/err_syntax6.output, test/err_syntax6.tab.c, test/err_syntax6.tab.h, test/yacc/err_syntax6.error, test/yacc/err_syntax6.output, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax6.tab.h:
2319 reference output for testing
2321 * test/err_syntax6.y: testcase for illegal_tag()
2323 * test/err_syntax5.error, test/err_syntax5.output, test/err_syntax5.tab.c, test/err_syntax5.tab.h, test/yacc/err_syntax5.error, test/yacc/err_syntax5.output, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax5.tab.h:
2324 reference output for testing
2326 * test/err_syntax5.y: testcase for unterminated_union()
2328 * test/err_syntax4.error, test/err_syntax4.output, test/err_syntax4.tab.c, test/err_syntax4.tab.h, test/yacc/err_syntax4.error, test/yacc/err_syntax4.output, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax4.tab.h:
2329 reference output for testing
2331 * test/err_syntax4.y: testcase for unterminated_text()
2333 * test/err_syntax3.error, test/err_syntax3.output, test/err_syntax3.tab.c, test/err_syntax3.tab.h, test/yacc/err_syntax3.error, test/yacc/err_syntax3.output, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax3.tab.h:
2334 reference output for testing
2336 * test/err_syntax3.y: testcase for unterminated_string()
2338 * test/err_syntax2.error, test/err_syntax2.output, test/err_syntax2.tab.c, test/err_syntax2.tab.h, test/yacc/err_syntax2.error, test/yacc/err_syntax2.output, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax2.tab.h:
2339 reference output for testing
2341 * test/err_syntax2.y: testcase for unterminated_comment()
2343 * test/err_syntax1.error, test/yacc/err_syntax1.error:
2344 reference output for testing
2346 * test/err_syntax1.y:
2347 test-case with syntax error (and nonprinting character)
2349 * test/calc.error, test/calc1.error, test/calc2.error, test/calc3.error, test/code_calc.error, test/code_error.error, test/err_syntax1.error, test/error.error, test/grammar.error, test/pure_calc.error, test/pure_error.error, test/quote_calc-s.error, test/quote_calc.error, test/quote_calc2-s.error, test/quote_calc2.error, test/quote_calc3-s.error, test/quote_calc3.error, test/quote_calc4-s.error, test/quote_calc4.error, test/yacc/calc.error, test/yacc/calc1.error, test/yacc/calc2.error, test/yacc/calc3.error, test/yacc/code_calc.error, test/yacc/code_error.error, test/yacc/error.error, test/yacc/grammar.error, test/yacc/pure_calc.error, test/yacc/pure_error.error, test/yacc/quote_calc-s.error, test/yacc/quote_calc.error, test/yacc/quote_calc2-s.error, test/yacc/quote_calc2.error, test/yacc/quote_calc3-s.error, test/yacc/quote_calc3.error, test/yacc/quote_calc4-s.error, test/yacc/quote_calc4.error:
2350 reference output for testing
2353 save stderr to reference files, to capture shift/reduce messages as well
2354 as syntax-error messages
2356 * test/err_syntax1.output, test/err_syntax1.tab.c, test/err_syntax1.tab.h, test/yacc/err_syntax1.output, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax1.tab.h:
2357 reference output for testing
2359 * test/run_test.sh: generate a ".dot" file for the grammar file
2361 * test/grammar.dot: RCS_BASE
2363 * test/yacc/grammar.dot: reference output for testing
2365 2014-03-19 Tom.Shields
2367 * output.c: rename MAXSHORT to MAXYYINT
2369 2014-03-18 Tom.Shields
2371 * yaccpar.skel: skeleton with btyacc additions
2373 * NOTES-btyacc-Changes: byacc-btyacc-20140323
2375 * test/btyacc/btyacc_calc1.output, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h:
2376 reference output for testing
2379 move test-outputs into subdirectories to keep btyacc/yacc results separate
2381 * test/btyacc/pure_calc.tab.c, test/btyacc/pure_calc.tab.h, test/btyacc/pure_error.output, test/btyacc/pure_error.tab.c, test/btyacc/pure_error.tab.h, test/btyacc/quote_calc-s.output, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc-s.tab.h, test/btyacc/quote_calc.output, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc.tab.h, test/btyacc/quote_calc2-s.output, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2-s.tab.h, test/btyacc/quote_calc2.output, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc2.tab.h, test/btyacc/quote_calc3-s.output, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3-s.tab.h, test/btyacc/quote_calc3.output, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc3.tab.h, test/btyacc/quote_calc4-s.output, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4-s.tab.h, test/btyacc/quote_calc4.output, test/btyacc/quote_calc4.tab.c, test/btyacc/quote_calc4.tab.h, test/btyacc/calc1.output, test/btyacc/calc1.tab.c, test/btyacc/calc1.tab.h, test/btyacc/calc2.output, test/btyacc/calc2.tab.c, test/btyacc/calc2.tab.h, test/btyacc/calc3.output, test/btyacc/calc3.tab.c, test/btyacc/calc3.tab.h, test/btyacc/code_calc.code.c, test/btyacc/code_calc.output, test/btyacc/code_calc.tab.c, test/btyacc/code_calc.tab.h, test/btyacc/code_error.code.c, test/btyacc/code_error.output, test/btyacc/code_error.tab.c, test/btyacc/code_error.tab.h, test/btyacc/empty.output, test/btyacc/empty.tab.c, test/btyacc/empty.tab.h, test/btyacc/error.output, test/btyacc/error.tab.c, test/btyacc/error.tab.h, test/btyacc/grammar.output, test/btyacc/grammar.tab.c, test/btyacc/grammar.tab.h, test/btyacc/pure_calc.output, test/btyacc/btyacc_demo.output, test/btyacc/btyacc_demo.tab.h, test/btyacc/calc.output, test/btyacc/calc.tab.c, test/btyacc/calc.tab.h:
2382 reference output for testing
2385 several changes to help decouple the use of 'short' as the type of value
2386 used in yacc parsers.
2388 * NOTES-btyacc-Disposition: byacc-btyacc-20140323
2390 2014-03-17 Tom.Shields
2392 * skel2c, yaccpar.skel, yaccpar.skel.old: RCS_BASE
2395 move test-outputs into subdirectories to keep btyacc/yacc results separate
2397 * configure.in: add --with-max-table-size and --enable-btyacc options
2399 2014-03-16 Tom.Shields
2401 * main.c: use Value_t rather than short
2403 2014-03-11 Tom.Shields
2405 * test/empty.y: testcase for btyacc
2407 2014-03-10 Tom.Shields
2409 * test/calc3.y, test/calc2.y: fix unused-variable warning
2411 2014-02-18 Tom.Shields
2413 * lr0.c, graph.c: use Value_t rather than short
2415 * closure.c: use Value_t rather than short
2416 ifdef'd forward-reference prototypes to match ifdef'ing of the actual functions
2418 * lalr.c: rename MAXSHORT to MAXYYINT
2420 2014-01-01 Thomas E. Dickey <dickey@invisible-island.net>
2422 * yacc.1: document %token-table, improve presentation of double-quotes
2424 * VERSION, package/byacc.spec, package/debian/changelog: bump
2426 * test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.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/error.tab.c, test/yacc/grammar.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:
2427 reference output for testing
2429 * test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_calc.tab.c, test/code_error.code.c, test/code_error.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc2.tab.c, test/quote_calc3-s.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c:
2432 * output.c, skeleton.c:
2433 amend the last change so that yytname is #define'd as needed rather than
2434 permanent - to avoid breaking cproto for instance.
2436 2014-01-01 Christos.Zoulas
2438 * output.c, defs.h, main.c, reader.c, skeleton.c:
2439 changes to build ntpd using byacc:
2440 - rename yyname[] to yytname[]
2441 - add YYTRANSLATE() macro
2442 - recognize bison's %token-table declaration
2444 2014-01-01 Thomas E. Dickey <dickey@invisible-island.net>
2448 * yacc.1: s/EE/XE/ to work around groff bug on Debian 6
2450 * makefile.in: use CF_MAKE_DOCS
2452 * aclocal.m4: add CF_MAKE_DOCS
2454 * configure.in: use CF_MAKE_DOCS
2456 2013-12-26 Thomas E. Dickey <dickey@invisible-island.net>
2458 * config.guess: 2013-11-29
2460 2013-11-19 Thomas E. Dickey <dickey@invisible-island.net>
2462 * aclocal.m4: resync with my-autoconf (fixes for clang and mingw)
2464 2013-10-25 Thomas E. Dickey <dickey@invisible-island.net>
2466 * config.sub: 2013-10-01
2468 2013-09-25 Thomas E. Dickey <dickey@invisible-island.net>
2470 * reader.c: fix two loop-limits found by clang 3.3 --analyze
2475 tweaks to CF_MIXEDCASE_FILENAMES and CF_XOPEN_SOURCE for msys from ncurses
2477 * package/mingw-byacc.spec: RCS_BASE
2479 * 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, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc2.tab.c, test/quote_calc3-s.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c:
2483 Increase default stack-size to match FreeBSD version noted as from
2484 "BSD 4.4 Lite Usr.bin Sources". See
2486 http://svnweb.freebsd.org/base/vendor/CSRG/dist/usr.bin/yacc/
2487 http://svnweb.freebsd.org/base/head/usr.bin/yacc/
2488 http://svnweb.freebsd.org/base/vendor/byacc/
2490 The original 1.9 sources (on which I based development) used 500 for
2491 stacksize; the BSD Lite sources (a year or two later) used 10000.
2493 This is a change to default values; the YYMAXDEPTH and YYSTACKSIZE
2494 symbols have "always" been overridable by applications, but rarely
2495 needed to do this. RedHat began using the FreeBSD source in 2000,
2496 and switched to this source in 2007 using the 20050813 snapshot.
2498 RedHat #743343 misattributed the change in default stacksize to
2499 a regression in byacc, but did not report the issue upstream.
2501 * package/debian/changelog, VERSION, package/byacc.spec: bump
2503 2013-09-07 Thomas E. Dickey <dickey@invisible-island.net>
2505 * config.sub: update to 2013-09-15
2507 * config.guess: update to 2013-06-10
2509 2013-03-04 Thomas E. Dickey <dickey@invisible-island.net>
2511 * package/debian/changelog, VERSION, package/byacc.spec: bump
2514 adapt tweak from Dave Beckett to work around long-ago breakage in "new" autoconf.
2517 fix bogus #include if "-i" is given but not "-d" (report by Richard Mitton).
2518 also while testing that, found a case where the union_file is unused; added
2519 a check for address that.
2521 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: regen
2523 * test/ftp.y: fix most compiler warnings for "make check_make"
2525 * test/calc1.tab.c: regen
2527 * test/calc1.y: fix most compiler warnings for "make check_make"
2529 * 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, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc2.tab.c, test/quote_calc3-s.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c:
2532 * skeleton.c: quiet a gcc conversion-warning in yygrowstack()
2537 another fix for CF_GCC_VERSION to handle Debian's modification of gcc message.
2539 2013-02-10 Thomas E. Dickey <dickey@invisible-island.net>
2541 * config.sub, config.guess: update to 2013-02-04
2543 2012-10-03 Thomas E. Dickey <dickey@invisible-island.net>
2545 * package/debian/changelog, package/byacc.spec, VERSION: bump
2549 * configure.in: moved AC_PROG_CC_STDC call into CF_PROG_CC
2552 moved AC_PROG_CC_STDC call into CF_PROG_CC and (for other uses than byacc)
2553 the CF_PROG_CC macro provides the CF_ANSI_CC_REQD for the 2.13 flavor.
2555 * aclocal.m4, configure.in:
2556 Arian's change dropped my check for misused $CC variable - restore that with
2557 alternate macro CF_PROG_CC.
2559 2012-10-03 Adrian.Bunk
2562 suggested patch: drop CF_ANSI_CC_REQD, CF_ANSI_CC_CHECK, CF_PROG_EXT since
2563 they are not needed.
2565 2012-10-03 Thomas E. Dickey <dickey@invisible-island.net>
2568 split-out CF_CC_ENV_FLAGS from CF_ANSI_CC_CHECK to avoid losing it in
2569 Adrian's suggested changes.
2572 CF_CLANG_COMPILER - check if the given compiler is really clang.
2575 add check for clang to CF_GCC_WARNINGS. modify CF_GCC_WARNINGS to work around
2576 old gcc warning: ncurses change to (try to) use gnatgcc exposed gnatgcc 2.8.1
2577 on my Sarge system (versus 3.3.5 for the normal gcc). The 2.8.1's
2578 pointer-arithmetic checks fell afoul of gcc's misuse of void* in string.h; work
2579 around by excluding that check for pre-3.x compilers.
2582 modify CF_GCC_ATTRIBUTES so that autoheader is able to see the definitions
2583 provided by this macro. use AC_DEFINE_UNQUOTED() in CF_GCC_ATTRIBUTES rather
2584 than appending to confdefs.h, since long-ago concern about the ability to
2585 pass-through parameterized macros appears to be not a problem, testing with
2588 2012-10-03 Adrian.Bunk
2591 add parameter to AC_DEFINE_UNQUOTED() to allow it to be recognized by
2592 autoheader, updated macros:
2596 CF_MIXEDCASE_FILENAMES
2599 2012-10-03 Thomas E. Dickey <dickey@invisible-island.net>
2602 move existence-check for mkstemp out of the AC_TRY_RUN, to help with
2605 2012-10-02 Thomas E. Dickey <dickey@invisible-island.net>
2608 Adrian Bunk request - replace this with the output from autoheader
2610 2012-09-29 Adrian.Bunk
2613 suggested change: replace CF_ANSI_CC_REQD by AC_PROG_CC_STDC (since no
2614 check is needed anymore for standard C compilers), drop AC_CONST (same
2615 reason), modify AC_OUTPUT to rely upon template generated by autoheader.
2616 bump requirement to autoconf 2.52.20011201 and drop check for CF_PROG_EXT
2617 as being obsolete with autoconf 2.52x
2619 * configure.in, main.c: drop check for atexit, because it is standard C
2621 * makefile.in: add assignment for datarootdir variable.
2623 2012-05-26 Thomas E. Dickey <dickey@invisible-island.net>
2625 * package/debian/changelog, package/byacc.spec, VERSION: bump
2628 some versions of gcc may warn that bp is not set in mark_symbol, e.g.,
2629 if GCC_NORETURN is not handled; appease the compiler.
2632 use the declared types Assoc_t and Value_t in some places where compiler only
2633 cared about char versus short.
2636 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
2640 add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD
2641 packagers to build without configure script. Also remove duplicate declaration
2642 of pure_parser variable (prompted by patch by Baptiste Daroussin).
2644 Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and
2648 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
2651 2012-05-25 Thomas E. Dickey <dickey@invisible-island.net>
2653 * output.c, main.c, verbose.c, mkpar.c, lr0.c:
2654 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
2657 2012-01-15 Thomas E. Dickey <dickey@invisible-island.net>
2659 * package/debian/copyright: bump
2661 * test/run_make.sh: workaround for breakage due to GNU make 3.82
2664 tested with Solaris 10 (bison 1.875) and added scripting to exercise
2665 the /usr/ccs/bin/yacc executable
2667 * test/grammar.tab.c: regen
2669 * test/grammar.y: modify to also build with Solaris yacc
2671 * VERSION, package/debian/changelog, package/byacc.spec: bump
2673 * test/yacc/calc1.output: reference output for testing
2675 * test/calc1.output, test/calc1.tab.c: regen
2678 undo the change made to appease bison, since it was only a warning.
2680 * test/pure_calc.tab.c, test/pure_error.tab.c: regen
2682 * test/run_make.sh: another fix for running from top-level directory
2685 ensure that check_make rule depends on having byacc built.
2687 * test/run_make.sh: fixes for building from parent directory
2689 * test/pure_error.y, test/pure_calc.y: bison-fixes
2691 * 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:
2694 * test/code_debug.y: RCS_BASE
2696 * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y:
2697 byacc already declares yyerror
2699 * test/pure_error.y, test/pure_calc.y:
2700 modified to help make the files build with bison
2703 supply a "%pure-parser" directive when bison needs it.
2705 * test/code_calc.code.c: regen
2707 * test/code_calc.y: modified to help make the files build with bison
2710 in testing, found that %expect did not work as documented for bison.
2711 do not recommend it for portable code.
2713 * test/run_make.sh: workaround breakage in bison's %expect directive
2715 * test/grammar.y: modified to help make the files build with bison
2717 * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen
2719 * test/calc1.y: quiet a spurious warning from bison 2.3
2721 * test/calc1.tab.c: regen
2723 * test/calc1.y: modified to help make the files build with bison
2725 * yacc.1: comment on "-y" and "-P" options.
2727 * yacc.1: comment on portability
2729 * 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:
2732 * test/ftp.y: modified to help make the files build with bison
2733 (bison's "-y" option is of no use in providing "yacc" compatibility)
2735 * test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c:
2738 * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y:
2739 modified to help make the files build with bison
2741 * test/calc.tab.c: regen
2743 * test/calc.y: modified to help make the files build with bison
2745 * test/error.tab.c: regen
2747 * test/error.y: modified to help make the files build with bison
2749 * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen
2752 check for older bisons which (2.3 for instance) do not support pure parsers
2754 * test/code_error.y, test/calc3.y, test/calc2.y:
2755 modified to help make the files build with bison
2757 * test/run_test.sh: use $opt2 in filenames of the generated files
2759 * 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:
2762 2012-01-14 Thomas E. Dickey <dickey@invisible-island.net>
2764 * 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:
2767 * output.c: Several changes:
2768 a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex.
2769 b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL,
2770 using YYLEX_PARAM_TYPE and YYLEX_PARAM.
2771 c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL,
2772 to help with redefinitions.
2774 * test/pure_calc.tab.c:
2775 modified to help make the files build with bison
2778 start work on followup, to check if the generated files build with bison.
2780 * test/pure_calc.y, test/pure_error.tab.c:
2781 modified to help make the files build with bison
2783 * test/calc3.tab.c: regen
2785 * 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:
2788 * test/yacc/quote_calc-s.output, test/yacc/quote_calc-s.tab.h, test/yacc/quote_calc2-s.output, test/yacc/quote_calc2-s.tab.h, test/yacc/quote_calc3-s.output, test/yacc/quote_calc3-s.tab.h, test/yacc/quote_calc4-s.output, test/yacc/quote_calc4-s.tab.h:
2789 reference output for testing
2791 * test/run_test.sh: generate/test with "-s" option applied.
2793 2012-01-13 Thomas E. Dickey <dickey@invisible-island.net>
2795 * package/debian/changelog, package/byacc.spec, VERSION: bump
2797 * yacc.1: improve documentation of -s option
2799 * yacc.1: note that yacc ignores -y
2801 * main.c: add -s option to usage message.
2803 * test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h:
2806 * test/yacc/quote_calc3.output, test/yacc/quote_calc4.output, test/yacc/quote_calc4.tab.h:
2807 reference output for testing
2809 * test/quote_calc3.y, test/quote_calc.tab.h: RCS_BASE
2811 * test/yacc/quote_calc.tab.h: reference output for testing
2813 * 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:
2816 * test/yacc/quote_calc.output, test/yacc/quote_calc2.output, test/yacc/quote_calc2.tab.h, test/yacc/quote_calc3.tab.h:
2817 reference output for testing
2819 * test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y: RCS_BASE
2823 * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE
2825 2011-12-19 Thomas E. Dickey <dickey@invisible-island.net>
2827 * package/debian/changelog, package/byacc.spec, VERSION: bump
2829 * yacc.1, output.c, main.c, defs.h:
2830 add "-s" option to suppress generating #define's based on string contents
2831 in a %token statement. For instance
2832 %token EQLS "Equals"
2836 Simply suppressing the second #define makes the behavior closer to yacc.
2837 (report by Paulo Andrade).
2839 2011-09-08 Thomas E. Dickey <dickey@invisible-island.net>
2841 * package/debian/changelog, package/byacc.spec, VERSION: bump
2844 fix some more interaction between -i and -d flags to ensure YYERRCODE
2845 and YYSTYPE are declared, tested with cproto.
2847 2011-09-07 Thomas E. Dickey <dickey@invisible-island.net>
2849 * yacc.1: document "-i" option.
2851 * package/debian/changelog, package/byacc.spec, VERSION: bump
2853 * output.c: fix an interaction between -i and -d
2855 * 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:
2856 regen - changes for "-i" option move the global/impure variables near the
2857 macros that may add a prefix, etc.
2859 * skeleton.c, output.c, defs.h: changes to support "-i" option.
2861 2011-09-06 Thomas E. Dickey <dickey@invisible-island.net>
2863 * reader.c: pass explicit file-pointer to write_section()
2866 add "-i" option, to generate interface-file (suggested by Denis M. Wilson)
2868 2011-09-05 Thomas E. Dickey <dickey@invisible-island.net>
2873 resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC)
2874 and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks)
2876 * defs.h, error.c, reader.c:
2877 add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson)
2879 2011-04-01 Thomas E. Dickey <dickey@invisible-island.net>
2881 * config.sub: update to 2011-04-01
2883 2011-02-02 Thomas E. Dickey <dickey@invisible-island.net>
2885 * config.guess: update to 2011-01-01
2887 2010-12-29 Thomas E. Dickey <dickey@invisible-island.net>
2889 * defs.h, skeleton.c:
2890 add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas)
2893 mark all of the error-functions as non-returning (report by Christos Zoulas)
2895 * 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:
2899 use only realloc() rather than realloc+malloc, agree that systems needing this
2900 are very rare (prompted by NetBSD change).
2902 * test/ftp.tab.c: regen
2904 2010-12-29 Christos.Zoulas
2907 improve example, which was stuck in 19XX and assumed file sizes were longs.
2909 2010-12-29 Thomas E. Dickey <dickey@invisible-island.net>
2911 * 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:
2914 * 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:
2915 use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror
2918 remove explicit prototype for yylex() via YYLEX_DECL() macro, since that
2919 would prevent declaring yylex() static (request by Christos Zoulas).
2921 * test/calc2.tab.c, test/calc3.tab.c: regen
2923 2010-12-29 Christos.Zoulas
2925 * output.c: correct definition for YYERROR_DECL()
2927 2010-12-29 Thomas E. Dickey <dickey@invisible-island.net>
2929 * package/debian/changelog, package/byacc.spec, VERSION: bump
2931 2010-12-26 Thomas E. Dickey <dickey@invisible-island.net>
2934 change return-type of allocate() to avoid warnings of alignment problems
2936 * main.c: Solaris declares chmod() in <sys/stat.h>
2940 * main.c: ifdef'd use of fcntl.h
2942 * configure.in: add configure checks for fcntl.h, atexit and mkstemp
2944 * main.c: for cases where mkstemp() is not available, use tempnam/open
2946 * aclocal.m4: add CF_MKSTEMP
2949 improve quoting, deprecate ${name-value} in favor of standard ${name:-value}
2951 2010-12-25 Thomas E. Dickey <dickey@invisible-island.net>
2954 start revising use of tmpfile(), to make this work with MinGW. Start by
2955 implementing a mkstemp() alternative - noting that mkstemp() also is broken
2958 * package/debian/changelog, package/byacc.spec, VERSION: bump
2960 2010-11-27 Thomas E. Dickey <dickey@invisible-island.net>
2962 * package/byacc.spec, package/debian/changelog, VERSION: bump
2964 * test/calc2.tab.c, test/calc3.tab.c: regen
2967 corrected use of %parse-param value in yyerror(); it doesn't use &yylval
2968 (report by Clifford Yapp)
2970 2010-11-26 Thomas E. Dickey <dickey@invisible-island.net>
2975 correct line-numbering when "-r" option is used; the 'outline' variable
2976 should only be incremented when writing to the code-file.
2978 * test/code_calc.code.c, test/code_error.code.c: regen
2982 * yacc.1: comment on -b option vs -r
2984 * 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:
2988 improve on YYERROR_DECL(), adding dummy params which can be used for the
2989 actual function declaration. Also add YYERROR_CALL(). The two macros
2990 simplify maintaining sets of grammars which may/may not be pure.
2992 * 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:
2995 * output.c: generate yyerror() calls in output.c
2996 This is for compatibility with bison, which passes the yylval to yyerror
2997 when the %parse-param feature is used.
2999 * skeleton.c, defs.h: generate yyerror() calls in output.c
3001 * output.c: simplified a little, using putc_code() and putl_code()
3003 * test/yacc/calc1.tab.h: reference output for testing
3005 * test/calc1.tab.h: regen
3008 improve ifdef for YYSTYPE union declaration (report by Clifford Yapp)
3011 accept underscore as a replacement for dash in command names, e.g.,
3012 "%pure_parser" vs "%pure-parser".
3014 * test/calc1.tab.c: regen
3016 * output.c, reader.c:
3017 also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp)
3019 * package/debian/changelog, package/byacc.spec, VERSION: bump
3021 2010-11-24 Thomas E. Dickey <dickey@invisible-island.net>
3023 * main.c, defs.h, symtab.c, error.c: reduce global variables
3025 * package/debian/changelog, package/byacc.spec, VERSION: bump
3028 amend fix for Redhat #112617 to still call default_action_warning() for
3029 empty rules (report by Bruce Cran).
3031 2010-11-22 Thomas E. Dickey <dickey@invisible-island.net>
3034 add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp).
3036 * test/calc1.tab.c: regen
3038 * test/calc1.y: cleanup compiler warnings
3040 * test/grammar.y: add "%expect"
3042 * test/calc1.tab.h: regen
3044 * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE
3046 * test/calc2.tab.c, test/calc3.tab.c: regen
3049 advanced example from Steve Johnson's paper, uses unions
3051 * test/calc3.y, test/calc2.y: init 'base', so examples can run
3053 * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++
3055 * output.c: compensate for fix in reader.c
3058 add/use putc_both() and puts_both(), incidentally fixing a place where
3059 a union copied to the union_file may be missing the end of the last line.
3061 * package/debian/changelog, package/byacc.spec, VERSION: bump
3063 2010-09-28 Thomas E. Dickey <dickey@invisible-island.net>
3065 * config.guess: update to 2010-09-24
3067 2010-09-10 Thomas E. Dickey <dickey@invisible-island.net>
3069 * config.sub: update to 2010-09-11
3071 2010-06-10 Thomas E. Dickey <dickey@invisible-island.net>
3073 * yacc.1, package/debian/changelog, package/byacc.spec, VERSION:
3076 2010-06-09 Thomas E. Dickey <dickey@invisible-island.net>
3078 * reader.c: free declarations in leak-testing code.
3080 * main.c: close code_file if -r option used, for leak-testing
3083 improve %lex-param / %parse-param implementation by allowing for arrays to
3084 be passed as parameters, e.g., "int regs[26]".
3086 * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h:
3089 * test/yacc/calc3.output, test/yacc/calc3.tab.h:
3090 reference output for testing
3092 * test/calc2.tab.c, test/calc2.y, test/calc2.tab.h: RCS_BASE
3094 * test/yacc/calc2.tab.h: reference output for testing
3096 * test/calc2.output: RCS_BASE
3098 * test/yacc/calc2.output: reference output for testing
3101 improve %lex-param / %parse-param implementation by allowing for arrays to
3102 be passed as parameters, e.g., "int regs[26]".
3104 * test/calc.tab.c, test/calc.y:
3105 test-cases and reference files for %lex-param / %parse-param
3107 * makefile.in: add docs-rule, for html/pdf/txt form of manpage
3111 * aclocal.m4: add CF_XOPEN_SOURCE, etc.
3114 use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89
3116 * 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:
3117 fix warnings from clang --analyze
3119 2010-06-08 Thomas E. Dickey <dickey@invisible-island.net>
3121 * output.c: fix to build with c89, etc.
3123 * reader.c: gcc warning
3125 * 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:
3126 modified test-cases to allow them to compile, to validate pure-parser changes.
3127 updated reference files to match.
3130 move call for output_stype() earlier since it is used in pure-parser declarations
3132 * test/grammar.tab.c, test/grammar.y:
3133 modified test-cases to allow them to compile, to validate pure-parser changes.
3134 updated reference files to match.
3136 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
3139 * yacc.1: document %lex-param and %parse-param
3141 * test/run_lint.sh, test/run_make.sh: RCS_BASE
3144 further modify to allow build-directory to be in a different location by
3145 passing this directory's location as a parameter to the script.
3148 add check_make and check_lint rules to help validate the generated files
3149 in the test-directory
3151 2010-06-07 Thomas E. Dickey <dickey@invisible-island.net>
3153 * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE
3156 provide for testing -r and -P options by checking if the ".y" filename
3157 begins with "code_" or "pure_", respectively.
3159 * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h:
3162 * test/yacc/code_error.tab.h: reference output for testing
3164 * test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h:
3167 * test/yacc/code_calc.tab.h: reference output for testing
3169 * test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h:
3172 * test/yacc/pure_calc.output, test/yacc/pure_calc.tab.h, test/yacc/pure_error.output, test/yacc/pure_error.tab.h:
3173 reference output for testing
3175 * test/code_calc.output, test/code_error.output: RCS_BASE
3177 * test/yacc/code_calc.output, test/yacc/code_error.output:
3178 reference output for testing
3180 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen
3183 changes to support running "make check" in a separate build-tree
3185 * main.c: add "-P" to usage message
3187 * reader.c: use UCH() macro to hide casts.
3189 2010-06-07 Andres.Mejia
3191 * main.c, output.c, reader.c, defs.h, skeleton.c:
3192 Fix the output order of the generated parse code file. This allows for
3193 the use of YYPARSE_PARAM, by having the output that checks for
3194 YYPARSE_PARAM to be defined come after the C code block in the
3195 definitions section of a yacc file.
3197 Implement support for YYLEX_PARAM, similar to bison. This is useful for
3198 support for building reentrant lexers with flex.
3200 Fix a compatibility issue with bison's pure-parser option. Bison
3201 defines yylex as sending at least one parameter, &yylval, as the first
3202 parameter and doesn't seem to have an easy way to remove that parameter.
3203 This on the other hand is rather convenient to support saving to yylval
3204 from flex when building reentrant lexers and parsers.
3206 Add support for the %parse-param and %lex-param directives used in
3207 bison. This change bears some similarity to NetBSD's changes to byacc
3208 at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html
3210 Bison allows for POSIX yacc emulation via a yacc directive in the yacc
3211 file, and also via a command line switch. Implement this feature as a
3212 no-op for byacc, since byacc is designed to be POSIX yacc compatible
3213 anyway. This allows for better compatibility with yacc sources written
3216 2010-06-07 Thomas E. Dickey <dickey@invisible-island.net>
3218 * VERSION: bump to 2010/06/07
3220 2010-06-06 Thomas E. Dickey <dickey@invisible-island.net>
3222 * test/calc.tab.c, configure: regen
3225 move #include's down into the generated code, to allow user-defined code
3226 to override feature definitions, particularly with stdlib.h (request by
3229 * lr0.c, error.c, reader.c, defs.h:
3230 strict gcc 3.4.6 warnings on 64-bit platform
3232 * aclocal.m4, configure.in: add check for lint
3234 * makefile.in: add lint rule
3236 * defs.h, closure.c, lr0.c, warshall.c, main.c:
3237 fix gcc warnings, mostly for 64-bit platform
3240 add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc
3242 * makefile.in: add etags/TAGS if available
3244 * configure.in: add configure check for actual ctags and etags programs
3246 * package/debian/copyright: add copyright notices for non-PD files
3248 * package/debian/changelog:
3249 incorporated scripts in upstream to use for test-builds
3251 * makefile.in: drop mkdirs.sh, just use "mkdir -p"
3253 * AUTHORS: nicknames for some contributors (see CHANGES for details)
3255 * package/byacc.spec: RPM file for byacc
3257 * VERSION: bump to 2010/06/06
3259 * aclocal.m4: add copyright notice, from "my-autoconf" macros
3260 http://invisible-island.net/autoconf/autoconf.html
3262 * package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS:
3265 * aclocal.m4: resync with my-autoconf. summary of changes:
3266 a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter
3267 b) CF_DISABLE_ECHO, change indent-convention for substituted makefile
3268 c) CF_GCC_VERSION, ignore stderr
3269 d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc
3271 2010-04-20 Thomas E. Dickey <dickey@invisible-island.net>
3273 * 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:
3274 scripts from Debian package
3276 2010-02-16 Thomas E. Dickey <dickey@invisible-island.net>
3278 * yacc.1: document -P and bison-extensions
3280 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
3283 * output.c: implement %pure-parser
3286 implement %pure-parser, like bison. To help with this, changed the stack
3287 variables, putting them into a struct.
3289 * reader.c: implement %pure-parser
3291 * defs.h: modified skeleton to support %pure-parser feature
3293 * main.c: add -P option to set %pure-parser
3296 make -r and -p options work together. The -r option splits the generated
3297 parser into code/table files; for this case we cannot use static data.
3298 Also, we have to repeat the #define's used for prefix (-p) as well as the
3299 redeclaration of yyparse(). Finally, allow any of the prefixed names to
3300 be overridden, e.g., by passing a -D option to the compiler. Make that
3301 a little more readable by putting a blank line before each chunk.
3303 * defs.h: add definitions for %pure-parser
3306 put blank line before/after the redeclaration of yyparse()
3308 * output.c: allow for other program redefining yylex()
3311 split-off xdecls[] array, to move declaration of yyparse() after #define's
3313 * defs.h: split-out xdecls[]
3319 * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS
3322 resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes.
3324 2010-02-16 Ostap.Cherkashi
3326 * skeleton.c: fix a memory leak in the generated skeleton
3328 2010-01-01 Thomas E. Dickey <dickey@invisible-island.net>
3330 * package/debian/source/format: scripts from Debian package
3332 2009-12-31 Thomas E. Dickey <dickey@invisible-island.net>
3334 * config.guess: update to 2009-12-30
3336 * config.sub: update to 2009-12-31
3338 2009-10-27 Thomas E. Dickey <dickey@invisible-island.net>
3342 * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c:
3343 strict compiler warnings
3345 2009-10-26 Thomas E. Dickey <dickey@invisible-island.net>
3347 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
3350 * main.c, defs.h: introduce some typedefs for portability, etc.
3353 don't remove "*.log" in mostlyclean rule since it interferes with regression
3358 * aclocal.m4: resync with my-autoconf
3360 2009-08-25 Thomas E. Dickey <dickey@invisible-island.net>
3362 * config.guess, config.sub: update to 2009-08-19
3364 2009-02-21 Thomas E. Dickey <dickey@invisible-island.net>
3368 * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25
3370 2008-12-26 Thomas E. Dickey <dickey@invisible-island.net>
3372 * configure: regen with autoconf-2.52 (patched)
3374 2008-12-25 Thomas E. Dickey <dickey@invisible-island.net>
3376 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
3379 2008-12-24 Thomas E. Dickey <dickey@invisible-island.net>
3384 remove ifdef-lint from goto yyerrlab, to quiet gcc warning
3386 2008-11-26 Thomas E. Dickey <dickey@invisible-island.net>
3388 * verbose.c, main.c, defs.h, mkpar.c, reader.c:
3389 completed implementation of "%expect" (report by Perry E. Metzger).
3390 add "%expect-rr", which is (unlike bison) allowable in LALR parsers.
3392 2008-11-24 Thomas E. Dickey <dickey@invisible-island.net>
3394 * 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:
3395 change indent-style (request by Perry E. Metzger)
3397 2008-08-27 Thomas E. Dickey <dickey@invisible-island.net>
3399 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
3400 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
3405 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
3407 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c:
3408 change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's.
3410 * configure: regen'd
3412 * configure.in: add -Wwrite-strings to warnings
3414 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
3415 add YYPARSE_PARAM and YYPARSE_PARAM_TYPE
3418 add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features.
3420 * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c:
3421 fixes for gcc -Wwrite-strings
3423 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
3424 generate the tables as static-const (this is an interface change)
3426 * output.c: realign columns in start_table()
3429 generate the tables as static-const (this is an interface change)
3431 * output.c: reorder functions to eliminate forward-references
3433 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
3434 remove 'register' keywords
3436 2008-08-26 Thomas E. Dickey <dickey@invisible-island.net>
3438 * 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:
3439 remove 'register' keywords
3441 2008-08-25 Thomas E. Dickey <dickey@invisible-island.net>
3443 * test/ftp.tab.c: regen'd
3446 improve the left-curly fix by testing after blanks, to avoid having a
3447 " {" at the beginning of a line.
3449 * test/error.tab.c, test/grammar.tab.c: regen'd
3452 move the remaining newline-counting into write_XXX functions.
3454 * test/calc.tab.c: regen'd
3457 simplify part of the output_file formatting using new functions, e.g.,
3458 start_int_table(), output_newline().
3461 modify copy_action() to indent the first character, it if is is left-curly
3462 brace. That makes the output look more like the original, as well as makes
3463 it simpler to edit (not confuse editors which look for a left-curly in the
3464 first column as if it were the beginning of a function).
3466 * skeleton.c: minor fixes to avoid gcc -Wconversion warnings
3468 * output.c: align the #define's produced for "-p" option
3470 * test/run_test.sh: use the "-p" option for better coverage.
3472 * output.c: simplify output_prefix() with new define_prefixed()
3474 * skeleton.c: include string.h, for memset()
3475 change stack size to unsigned to fix gcc -Wconversion warnings.
3477 * VERSION: bump to 2008/8/25
3479 * makefile.in: add dependency on VERSION file.
3481 2008-08-24 Thomas E. Dickey <dickey@invisible-island.net>
3485 * lalr.c: improved memory-leak checking by freeing data in includes[]
3487 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
3488 update to match skeleton-change
3490 * configure: regen'd
3492 * skeleton.c: Add fix for stack discussed
3493 http://undeadly.org/cgi?action=article&sid=20080708155228
3495 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29
3497 * aclocal.m4: resync with my-autoconf (no major changes)
3499 2008-07-24 Thomas E. Dickey <dickey@invisible-island.net>
3501 * package/pkgsrc/Makefile, package/pkgsrc/distinfo:
3502 scripts from NetBSD pkgsrc, for test-builds
3504 2008-03-14 Thomas E. Dickey <dickey@invisible-island.net>
3506 * config.sub: update to 2008-03-08
3508 * config.guess: update to 2008-03-12
3510 2007-05-09 Thomas E. Dickey <dickey@invisible-island.net>
3512 * main.c: close graph, verbose files if opened, on exit.
3515 audit memory leaks - valgrind reported some memory still in use on exit.
3517 * lalr.c, output.c, reader.c, mkpar.c, lr0.c:
3518 add hook for auditing memory leaks
3520 * defs.h: add hooks for auditing memory leaks
3522 * configure: regen'd
3525 use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind,
3526 --with-dbmalloc and --with-dmalloc
3528 * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND
3530 * aclocal.m4: improve version-checking in CF_GCC_VERSION
3531 rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro
3535 * main.c: file_prefix did not always have a trailing null.
3537 2007-03-25 Thomas E. Dickey <dickey@invisible-island.net>
3539 * mkdirs.sh: improved version for "make -j"
3541 2006-12-22 Thomas E. Dickey <dickey@invisible-island.net>
3543 * config.guess: update to 2006/12/22
3545 2006-12-08 Thomas E. Dickey <dickey@invisible-island.net>
3547 * config.sub: update to 2006/12/08
3549 2005-08-13 Thomas E. Dickey <dickey@invisible-island.net>
3551 * main.c: add -V to usage message
3553 * makefile.in: remove -t option from ctags
3555 * VERSION: 2005/8/13
3559 * main.c: Sylvain Schmitz:
3560 modify the '-o' option to work like bison's, which sets the file-prefix.
3562 2005-08-13 Matt.Kraai
3565 Debian #322858 (don't close union_file, which contained data).
3566 This feature is used in groff.
3568 2005-08-13 Thomas E. Dickey <dickey@invisible-island.net>
3570 * configure: regenerated
3572 * aclocal.m4: improve checks for Intel compiler warnings
3574 2005-06-25 Thomas E. Dickey <dickey@invisible-island.net>
3576 * config.sub: update to 2005/6/2
3578 * config.guess: update to 2005/5/27
3580 2005-05-05 Thomas E. Dickey <dickey@invisible-island.net>
3582 * defs.h: add a fallback for GCC_UNUSED
3584 2005-05-04 Thomas E. Dickey <dickey@invisible-island.net>
3586 * makefile.in: add "." to include-path to pickup config.h
3589 apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617.
3592 correct a limit check in pack_vector() - report/analysis by William Evans
3595 exit after printing version. Otherwise "yacc -V" will exit with an erro
3596 after printing the usage message.
3598 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
3599 regenerated after skeleton-changes
3601 * skeleton.c: replace a few -1's with YYEMPTY
3604 delete yynewerror (no one uses it any more, and it just makes compiler warnings)
3606 * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD
3609 filter out lines with YYPATCH, since that will change with each update
3611 * yacc.1: add -V option
3613 * main.c: add -V option to print the version.
3614 simplify option-parsing by moving the duplicate logic for setting flags into
3615 new function setflag().
3618 move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers).
3619 add YYPATCH here so it can be tested by applications.
3622 add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and
3625 * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c:
3626 reduce externs by making static the procedures that are not referenced outside
3627 the module in which they are defined.
3630 the VERSION file holds the patch-date. Define YYPATCH, so this will be
3631 compiled into the skeleton.
3633 * VERSION: patch-level for byacc
3636 add "-o" to usage message. It is too long for a single line; rewrite usage()
3637 to show one option per line.
3639 2005-05-03 Thomas E. Dickey <dickey@invisible-island.net>
3641 * main.c: add -o option, to work with scripts that assume bison.
3642 simplify create_file_names() with a macro.
3643 simplify done() with a macro.
3644 adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by
3645 onintr(), do not flush output via exit(), but use _exit() instead.
3647 * defs.h: remove unnecessary externs for main.c
3649 * yacc.1: add -o option
3651 * graph.c: remove unused parameter
3653 * mkpar.c, defs.h, reader.c:
3654 add support for "%expect", a bison feature from FreeBSD sources
3656 * 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:
3659 * configure: regenerated for 2005/5/5
3661 * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER)
3665 * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1:
3666 Sylvain Schmitz <schmitz@i3s.unice.fr>:
3667 add graphical output of the LALR(1) automaton for graphviz,
3668 associated with command-line option `-g'
3670 2005-04-16 Thomas E. Dickey <dickey@invisible-island.net>
3672 * config.sub: update to 2005/2/10
3674 * config.guess: update to 2005/3/24
3676 2005-04-13 Thomas E. Dickey <dickey@invisible-island.net>
3678 * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds
3680 2005-03-21 Thomas E. Dickey <dickey@invisible-island.net>
3682 * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds
3684 2004-03-28 Thomas E. Dickey <dickey@invisible-island.net>
3686 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
3687 updates due to adding yyparse() prototype
3689 * configure: RCS_BASE
3692 add AC_ARG_PROGRAM to make --program-prefix, etc., work.
3694 * makefile.in: first cut of script to support --program-prefix
3697 reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52
3699 * makefile.in: modify so DESTDIR works
3701 * makefile.in: use EXEEXT and OBJEXT
3703 * configure.in: use CF_PROG_EXT
3706 * defs.h: make this use the generated config.h
3708 * skeleton.c: add a forward-reference for yyparse()
3710 * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT
3712 * yacc.1: remove the discussion of TMPDIR since it is obsolete
3714 * skeleton.c: fix a couple of minor compiler-warnings in the skeleton
3716 * defs.h: remove action_file_name, etc., since we use tmpfile() now.
3719 use tmpfile() for opening the working files. This quiets a warning
3720 advising the use of mkstemp().
3723 Do not close temporary-files here, since they are opened with tmpfile().
3724 Just rewind them, and they're ready to read back the data stored in them.
3726 * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE
3728 * test/yacc/grammar.output, test/yacc/grammar.tab.h:
3729 reference output for testing
3731 * makefile.in: turn on "make check" rule
3733 * test/calc.output: RCS_BASE
3735 * test/yacc/calc.output: reference output for testing
3737 * test/run_test.sh, test/calc.tab.h: RCS_BASE
3739 * test/yacc/calc.tab.h: reference output for testing
3741 * test/ftp.tab.c: yyparse() is now yyparse(void)
3743 * test/calc.tab.c: RCS_BASE
3745 * test/error.tab.c: yyparse() is now yyparse(void)
3747 * test/README: RCS_BASE
3749 * yacc.1: various typography fixes prompted by Debian #100947
3751 * aclocal.m4, makefile.in, configure.in: RCS_BASE
3753 * README: updated to note that this is not the original
3755 2004-03-24 Thomas E. Dickey <dickey@invisible-island.net>
3757 * test/grammar.y: RCS_BASE
3759 2004-02-23 Thomas E. Dickey <dickey@invisible-island.net>
3761 * config.sub: RCS_BASE
3763 2004-02-17 Thomas E. Dickey <dickey@invisible-island.net>
3765 * config.guess: RCS_BASE
3767 2003-11-29 Thomas E. Dickey <dickey@invisible-island.net>
3769 * install-sh: improved quoting
3771 2002-06-29 Thomas E. Dickey <dickey@invisible-island.net>
3774 don't use character range, since some locales don't work as expected
3776 2001-06-22 Thomas E. Dickey <dickey@clark.net>
3778 * install-sh: RCS_BASE
3780 2000-11-20 Thomas E. Dickey <dickey@clark.net>
3782 * test/calc.y: RCS_BASE
3784 * test/code_calc.y, test/pure_calc.y: copy of calc.y
3786 * vmsbuild.com: original version
3788 2000-02-23 Thomas E. Dickey <dickey@clark.net>
3790 * test/RCS, RCS: PERMIT FILE
3792 2000-02-14 Thomas E. Dickey <dickey@clark.net>
3794 * main.c: fix for VMS port - making pathname for temp-file
3796 * descrip.mms: original version
3798 2000-02-13 Thomas E. Dickey <dickey@clark.net>
3800 * 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:
3803 1999-11-30 Thomas E. Dickey <dickey@clark.net>
3805 * mkdirs.sh: RCS_BASE
3807 1995-01-01 Thomas E. Dickey <dickey@clark.net>
3809 * config_h.in: RCS_BASE
3813 * README.DOS, main.c: MSDOS-port
3817 * reader.c, defs.h: MSDOS-port
3821 * README: original version
3825 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE
3827 1993-02-22 dickey@software.org
3829 * test/yacc/error.output, test/yacc/error.tab.h:
3830 reference output for testing
3834 * test/error.output, test/error.tab.c, test/error.tab.h: RCS_BASE
3836 * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES:
3841 * yacc.1: original version
3845 * defs.h: original version
3849 * mkpar.c, verbose.c: original version
3853 * lr0.c, Makefile, Makefile.old: original version
3857 * NEW_FEATURES: original version
3861 * ACKNOWLEDGEMENTS: original version
3865 * symtab.c, lalr.c, error.c: original version
3867 1990-01-16 dickey@software.org
3869 * test/code_error.y, test/pure_error.y: RCS_BASE
3873 * test/error.y: RCS_BASE
3877 * NO_WARRANTY: original version
3881 * test/ftp.y: RCS_BASE