Imported Upstream version 20220109
[platform/upstream/byacc.git] / CHANGES
1 2022-01-09  Thomas E. Dickey  <dickey@invisible-island.net>
2
3         * package/debian/changelog, package/debian/watch, package/debian/control:
4         update to use oldstable-compatible rules/config, for testing version upgrade
5
6         * package/byacc.spec, package/mingw-byacc.spec:
7         use rpmlint, etc., to "update" these to follow Redhat7 and later.
8         due to incompatbilities in that route, this package will not build with #6.
9
10         * reader.c, output.c:
11         change a few malloc's to calloc's so clang analyzer can see initialized data
12
13         * closure.c:
14         modify address computation in closure.c to avoid undefined behavior on
15         machines which do not support large offsets (analysis/patch by Jessica Clarke,
16         cf: 2014-09-17)
17
18         * VERSION, package/byacc.spec, package/debian/changelog,
19           package/pkgsrc/Makefile:
20         bump
21
22 2022-01-08  Thomas E. Dickey  <dickey@invisible-island.net>
23
24         * package/debian/copyright, package/debian/rules:
25         update to use oldstable-compatible rules/config, for testing version upgrade
26
27 2022-01-02  Thomas E. Dickey  <dickey@invisible-island.net>
28
29         * package/debian/control: minor fixes adapted from btyacc package
30
31         * package/debian/byacc.docs, package/debian/byacc2.prerm,
32           package/debian/byacc2.postinst, package/debian/byacc.postinst,
33           package/debian/byacc.prerm:
34         RCS_BASE
35
36         * VERSION, package/byacc.spec, package/debian/changelog,
37           package/pkgsrc/Makefile:
38         bump
39
40 2022-01-01  Thomas E. Dickey  <dickey@invisible-island.net>
41
42         * test/run_test.sh:
43         adjust to ignore NetBSD's difference in getopt warnings.
44
45         * package/pkgsrc/Makefile: resync with pkgsrc
46
47         * test/yacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.c: regen
48
49         * test/expr.oxout.y, test/expr.oxout.h: fix gcc warnings
50
51         * test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h: regen
52
53         * test/run_make.sh: workaround for compiling the expr.oxout.y files
54
55         * test/expr.oxout.y: fix syntax error
56
57         * test/btyacc/expr.oxout.tab.c: regen
58
59         * test/expr.oxout.h: RCS_BASE
60
61         * test/yacc/expr.oxout.tab.c: fix syntax error
62
63         * test/btyacc/expr.oxout.tab.c: regen, s/expr.oxout/expr_oxout/g
64
65         * test/btyacc/expr.oxout.tab.h: regen
66
67         * test/run_test.sh:
68         filter the default prefix to change "." to "_", so that the generated
69         files will compile consistently with run_make.sh
70
71         * package/debian/control, package/debian/prerm, package/debian/postinst:
72         add "byacc2" as an alternative for "yacc"
73
74         * package/byacc.spec, package/debian/control, package/debian/rules:
75         rename "btyacc" to "byacc2" to co-exist with traditional "btyacc" package
76
77         * package/debian/copyright, VERSION, package/byacc.spec,
78           package/debian/changelog, package/mingw-byacc.spec,
79           package/pkgsrc/Makefile:
80         bump
81
82 2021-12-24  Thomas E. Dickey  <dickey@invisible-island.net>
83
84         * package/debian/rules: fixes from Debian package for lintian warnings
85
86         * package/debian/control: updates for Debian standard
87
88         * VERSION, package/byacc.spec, package/debian/changelog,
89           package/pkgsrc/Makefile:
90         bump
91
92         * package/debian/byacc2.docs: RCS_BASE
93
94         * package/debian/docs, package/debian/copyright, package/debian/control:
95         errata from Debian package
96
97         * config.sub: 2021-12-24
98             From: Dmitry V. Levin <ldv@altlinux.org>
99             config.sub: alias aarch64le to aarch64
100
101             Apparently, QNX reports aarch64 as aarch64le on little-endian machines.
102
103             * config.sub (aarch64le-*): Set cpu to aarch64.
104             (timestamp): Update.
105             * doc/config.sub.1: Regenerate.
106             * testsuite/config-sub.data (aarch64le-qnx): New test.
107
108             Reported-by: Elad Lahav <e2lahav@gmail.com>
109             Link: https://lists.gnu.org/archive/html/config-patches/2021-12/msg00009.html
110
111 2021-12-16  Thomas E. Dickey  <dickey@invisible-island.net>
112
113         * configure: regen
114
115         * aclocal.m4: resync with my-autoconf
116
117 2021-12-13  Thomas E. Dickey  <dickey@invisible-island.net>
118
119         * config.sub: 2021-10-27
120             From: Dmitry V. Levin <ldv@altlinux.org>
121             config.sub: fix typo in timestamp
122
123             * config.sub: Fix timestamp.
124             * doc/config.sub.1: Regenerate.
125
126             Reported-by: Jordi Sanfeliu <jordi@fibranet.cat>
127             Fixes: a013aac61edfa2a03727521508286480010e7bf3
128             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
129
130 2021-11-30  Thomas E. Dickey  <dickey@invisible-island.net>
131
132         * config.guess: 2021-11-30
133             From: Andreas F. Borchert <github@andreas-borchert.de>
134             config.guess: x86_64-pc-solaris2.11 is not properly recognized
135
136             config.guess guesses Solaris 11 to run on a 32-bit platform
137             despite Solaris 11 no longer supporting any 32-bit platform.
138
139             See the following code at lines 434 to 445:
140
141             | SUN_ARCH=i386
142             | # If there is a compiler, see if it is configured for 64-bit objects.
143             | # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
144             | # This test works for both compilers.
145             | if test "$CC_FOR_BUILD" != no_compiler_found; then
146             |     if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
147             |         (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
148             |         grep IS_64BIT_ARCH >/dev/null
149             |     then
150             |         SUN_ARCH=x86_64
151             |     fi
152             | fi
153
154             If "cc" is installed, i.e. the Oracle Studio compiler, this one is
155             chosen for $CC_FOR_BUILD.  This compiler, the gcc provided by Oracle
156             and also gcc bootstrapped from sources on that platform with a default
157             configuration will by default generate 32-bit binaries -- even on
158             a 64-bit platform.  And __amd64 will not be defined for compilations
159             targeting a 32-bit platform.  This is different from the corresponding
160             behaviour on GNU/Linux systems where the local platform is targeted by
161             default.
162
163             Thus, as long as you do not add "-m64" or if you have a custom-built
164             gcc which defaults to 64 bit, you will get 32-bit binaries on Solaris
165             despite living on a 64-bit platform.
166
167             * config.guess (i86pc:SunOS:5.*:* || i86xen:SunOS:5.*:*): Adapt the
168             test by adding the "-m64" flag.  This will work properly for Solaris
169             10 as well (the last Solaris release that supported x86 32-bit
170             platforms).
171             * doc/config.guess.1: Regenerate.
172
173             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
174
175 2021-10-27  Thomas E. Dickey  <dickey@invisible-island.net>
176
177         * config.guess: 2021-10-27
178             From: Jordi Sanfeliu <jordi@fibranet.cat>
179             Recognize Fiwix
180
181             $ make check
182             cd testsuite && bash config-guess.sh && rm uname
183             PASS: config.guess checks (137 tests)
184             cd testsuite && bash config-sub.sh
185             PASS: config.sub checks (882 tests)
186             PASS: config.sub idempotency checks (819 tests)
187             PASS: config.sub canonicalise each config.guess testcase (137 tests)
188
189             * config.guess (i*86:Fiwix:*:*): Recognize.
190             * config.sub (fiwix*): Likewise.
191             * doc/config.guess.1: Regenerate.
192             * doc/config.sub.1: Likewise.
193             * testsuite/config-guess.data: Add a test case for Fiwix.
194             * testsuite/config-sub.data (i386-fiwix): New test.
195
196             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
197
198         * config.sub: 2021-20-27
199             From: Jordi Sanfeliu <jordi@fibranet.cat>
200             Recognize Fiwix
201
202             $ make check
203             cd testsuite && bash config-guess.sh && rm uname
204             PASS: config.guess checks (137 tests)
205             cd testsuite && bash config-sub.sh
206             PASS: config.sub checks (882 tests)
207             PASS: config.sub idempotency checks (819 tests)
208             PASS: config.sub canonicalise each config.guess testcase (137 tests)
209
210             * config.guess (i*86:Fiwix:*:*): Recognize.
211             * config.sub (fiwix*): Likewise.
212             * doc/config.guess.1: Regenerate.
213             * doc/config.sub.1: Likewise.
214             * testsuite/config-guess.data: Add a test case for Fiwix.
215             * testsuite/config-sub.data (i386-fiwix): New test.
216
217             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
218
219 2021-10-18  Thomas E. Dickey  <dickey@invisible-island.net>
220
221         * config.sub: 2021-08-14
222             From: Kinshuk Dua <kinshukdua@gmail.com>
223             config.sub: Fix typo in comment
224
225             Fixes: 5e531d391852a54e7fab2d8ff55625fca514b305
226             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
227
228 2021-08-14  Thomas E. Dickey  <dickey@invisible-island.net>
229
230         * config.sub: 2021-08-14
231             From: Nick Bowler <nbowler@draconx.ca>
232             config.sub: work around command assignment bug in some shells
233
234             When combining variable assignments with a shell command, some older
235             shells (notably heirloom-sh and presumably also Solaris 10 /bin/sh)
236             have a bug which causes the assignment to alter the current execution
237             environment whenever the command is a shell built-in.  For example:
238
239               % dash -c 'x=good; x=bad echo >/dev/null; echo $x'
240               good
241
242               % jsh -c 'x=good; x=bad echo >/dev/null; echo $x'
243               bad
244
245             The config.sub script contains a few commands of the form:
246
247               IFS=- read ...
248
249             which triggers this bug, causing the IFS assignment to persist for the
250             remainder of the script.  This can cause misbehaviour in certain cases,
251             for example:
252
253               % jsh config.sub i386-linux-gnu
254               config.sub: test: unknown operator gnu
255
256               % jsh config.sub i386-gnu/linux
257               sed: can't read s|gnu/linux|gnu|: No such file or directory
258               Invalid configuration `i386-gnu/linux': OS `' not recognized
259
260             * config.sub: Save and restore IFS explicitly to avoid shell bugs.
261             * doc/config.sub.1: Regenerate.
262
263             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
264
265 2021-08-08  Thomas E. Dickey  <dickey@invisible-island.net>
266
267         * reader.c:
268         fix memory-leak when replacing $$'s in destructor code (report/testcase
269         by Boris Kolpackov).
270
271         * main.c: account for a memory-leak
272
273         * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
274           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
275           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
276           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
277           test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c,
278           test/btyacc/calc_code_default.tab.c,
279           test/btyacc/calc_code_imports.tab.c,
280           test/btyacc/calc_code_provides.tab.c,
281           test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c,
282           test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c,
283           test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c,
284           test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c,
285           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
286           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
287           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c,
288           test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c,
289           test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c,
290           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
291           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
292           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
293           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
294           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
295           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
296           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
297           test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c,
298           test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c,
299           test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
300           test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c,
301           test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c,
302           test/yacc/calc_code_provides.tab.c,
303           test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c,
304           test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
305           test/yacc/defines1.calc.c, test/yacc/defines2.calc.c,
306           test/yacc/defines3.calc.c, test/yacc/empty.tab.c,
307           test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c,
308           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
309           test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
310           test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c,
311           test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c,
312           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
313           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
314           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
315           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
316           test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c,
317           test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c,
318           yaccpar.c:
319         regen
320
321         * btyaccpar.skel, yaccpar.skel:
322         revert change to initialization of yystate, which confuses gcc, making a
323         different warning
324
325         * VERSION, package/byacc.spec, package/debian/changelog,
326           package/pkgsrc/Makefile:
327         bump
328
329 2021-08-04  Thomas E. Dickey  <dickey@invisible-island.net>
330
331         * config.sub: 2021-08-04
332             From: Jeremy Soller <jackpot51@gmail.com>
333             config.sub: add Linux Relibc Target
334
335             $ make check
336             cd testsuite && bash config-guess.sh && rm uname
337             PASS: config.guess checks (136 tests)
338             cd testsuite && bash config-sub.sh
339             PASS: config.sub checks (881 tests)
340             PASS: config.sub idempotency checks (818 tests)
341             PASS: config.sub canonicalise each config.guess testcase (136 tests)
342
343             * config.sub (relibc*): Recognize.
344             * doc/config.sub.1: Regenerate.
345             * testsuite/config-sub.data (x86_64-linux-relibc): New test.
346
347             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
348
349 2021-08-02  Thomas E. Dickey  <dickey@invisible-island.net>
350
351         * main.c, yacc.1: add "-h" option
352
353         * test/btyacc/no_b_opt.error, test/btyacc/no_output2.error,
354           test/btyacc/no_p_opt.error, test/btyacc/big_b.error,
355           test/btyacc/big_l.error, test/btyacc/help.error,
356           test/btyacc/nostdin.error, test/yacc/big_b.error,
357           test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error,
358           test/yacc/no_output2.error, test/yacc/no_p_opt.error,
359           test/yacc/nostdin.error:
360         regen
361
362         * main.c:
363         map any of bison's long-options which have a corresponding yacc option
364         into the latter, without depending upon getopt_long().
365
366         * main.c: suggested patch:
367         From: Boris Kolpackov <boris@codesynthesis.com>
368         Subject: Re: [PATCH] support bison's --defines and --output options in byacc
369
370         * VERSION, package/byacc.spec, package/debian/changelog,
371           package/pkgsrc/Makefile:
372         bump
373
374 2021-08-01  Thomas E. Dickey  <dickey@invisible-island.net>
375
376         * test/btyacc/inherit2.tab.c, test/btyacc/btyacc_destroy2.tab.c,
377           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/err_inherit3.tab.c,
378           test/btyacc/err_inherit4.tab.c, test/btyacc/btyacc_demo.tab.c,
379           test/btyacc/btyacc_destroy1.tab.c:
380         regen
381
382         * output.c:
383         fix a misplaced #line, which was after a generated line in the code-file
384
385         * test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c,
386           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
387           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
388           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
389           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
390           test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax18.tab.c,
391           test/yacc/err_syntax20.tab.c, test/yacc/expr.oxout.tab.c,
392           test/yacc/grammar.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c,
393           test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
394           test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c,
395           test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c,
396           test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c,
397           test/yacc/code_calc.code.c, test/yacc/defines1.calc.c,
398           test/yacc/defines2.calc.c, test/yacc/defines3.calc.c,
399           test/yacc/stdin2.calc.c:
400         regen
401
402         * output.c:
403         add a state-machine to output_semantic_actions() to detect and replace
404         the "#line" directives added by Roland Illig's change, making them show
405         the actual line-numbers in the code-file.
406
407         * test/btyacc/pure_calc.tab.c, test/btyacc/quote_calc-s.tab.c,
408           test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c,
409           test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c,
410           test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c,
411           test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c,
412           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c,
413           test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c,
414           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
415           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
416           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
417           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
418           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
419           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
420           test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c,
421           test/btyacc/calc_code_default.tab.c,
422           test/btyacc/calc_code_imports.tab.c,
423           test/btyacc/calc_code_provides.tab.c,
424           test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c,
425           test/btyacc/code_calc.code.c, test/btyacc/defines1.calc.c,
426           test/btyacc/defines2.calc.c, test/btyacc/defines3.calc.c,
427           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
428           test/btyacc/stdin2.calc.c:
429         regen
430
431         * reader.c:
432         adapt a patch by Roland Illig which added #line directives with dummy
433         filename and line number, because the debug information was incorrect.
434         The actual fix (see output_semantic_actions) is to emit #line directives
435         which correspond to the code-file.
436
437         * reader.c: simplify an ifdef so I can balance {/}
438
439         * output.c: use new macro
440
441         * defs.h: add fprintf_lineno macro
442
443         * reader.c:
444         make that a little simpler - but I see that this should be using the
445         code-file's line-numbering rather than ""
446
447         * reader.c:
448         make that into a macro, and add a begin_case() to more/less match (the
449         #line's are not together in some btyacc cases...)
450
451         * VERSION, package/byacc.spec, package/debian/changelog,
452           package/pkgsrc/Makefile:
453         bump
454
455 2021-07-14  Thomas E. Dickey  <dickey@invisible-island.net>
456
457         * reader.c: From: Roland Illig <roland.illig@gmx.de>
458         Subject: small patch for byacc
459         ...
460         this splits up "\nbreak;\n" output to put #line directives after first "\n"
461
462 2021-07-06  Thomas E. Dickey  <dickey@invisible-island.net>
463
464         * config.sub: 2021-07-06
465             From: Stephanos Ioannidis <root@stephanos.io>
466             config.sub: add Zephyr RTOS support
467
468             This adds the Zephyr RTOS targets in preparation for implementing the
469             Zephyr RTOS-specific toolchain support.
470
471             $ make check
472             cd testsuite && bash config-guess.sh && rm uname
473             PASS: config.guess checks (136 tests)
474             cd testsuite && bash config-sub.sh
475             PASS: config.sub checks (880 tests)
476             PASS: config.sub idempotency checks (817 tests)
477             PASS: config.sub canonicalise each config.guess testcase (136 tests)
478
479             * config.sub (zephyr*): Recognize.
480             * doc/config.sub.1: Regenerate.
481             * testsuite/config-sub.data: Add testcases for *-zephyr.
482
483             Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
484             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
485
486 2021-07-03  Thomas E. Dickey  <dickey@invisible-island.net>
487
488         * config.sub: 2021-07-03
489             From: Ozkan Sezer <sezero@users.sourceforge.net>
490             config.sub: disable shellcheck SC2006 / SC2268 warnings
491
492             This is in line with the recent config.guess change in commit
493             12fcf67c9108f4c4b581eaa302088782f0ee40ea
494
495             * config.sub (shellcheck disable): Add SC2006,SC2268.
496
497             Suggested-by: Jacob Bachmeyer <jcb@gnu.org>
498             Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net>
499             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
500
501         * config.sub: 2021-07-03
502             From: Ozkan Sezer <sezero@users.sourceforge.net>
503             config.sub: normalize the quoting in the `echo FOO | sed ...`
504
505             Some cases quote the argument to echo and some do not.  At runtime
506             it probably does not matter because the substituted values will never
507             contain whitespace, but quoting them all would make shellcheck more
508             useful.
509
510             * config.sub: Consistently quote the argument of echo.
511             * doc/config.sub.1: Regenerate.
512
513             Suggested-by: Jacob Bachmeyer <jcb@gnu.org>
514             Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net>
515             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
516
517 2021-07-02  Thomas E. Dickey  <dickey@invisible-island.net>
518
519         * config.sub: 2021-06-03
520             From: Ozkan Sezer <sezero@users.sourceforge.net>
521             config.sub: replace POSIX $( ) with classic ` ` throughout
522
523             This is in line with the recent config.guess change in commit
524             d70c4fa934de164178054c3a60aaa0024ed07c91.
525
526             The patch was generated using patch-6.gawk script introduced in that
527             commit.
528
529             * config.sub: Revert POSIX command substitutions to classic form.
530
531             Signed-off-by: Ozkan Sezer <sezero@users.sourceforge.net>
532             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
533
534 2021-06-19  Thomas E. Dickey  <dickey@invisible-island.net>
535
536         * configure: regen
537
538         * aclocal.m4: resync with my-autoconf
539
540         * test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
541           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
542           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax18.tab.c,
543           test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c,
544           test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c,
545           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
546           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
547           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
548           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
549           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
550           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
551           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
552           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
553           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
554           test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c,
555           test/btyacc/calc_code_default.tab.c,
556           test/btyacc/calc_code_imports.tab.c,
557           test/btyacc/calc_code_provides.tab.c,
558           test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c,
559           test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c,
560           test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c,
561           test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c,
562           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
563           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
564           test/btyacc/err_syntax12.tab.c, test/btyacc/rename_debug.c,
565           btyaccpar.c, test/btyacc/stdin1.calc.c, test/btyacc/stdin2.calc.c,
566           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
567           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
568           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
569           test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax11.tab.c,
570           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
571           test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
572           test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c,
573           test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c,
574           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
575           test/yacc/quote_calc.tab.c, test/yacc/calc.tab.c,
576           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
577           test/yacc/calc_code_all.tab.c, test/yacc/calc_code_default.tab.c,
578           test/yacc/calc_code_imports.tab.c, test/yacc/calc_code_provides.tab.c,
579           test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c,
580           test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
581           test/yacc/defines1.calc.c, test/yacc/defines2.calc.c,
582           test/yacc/defines3.calc.c, test/yacc/empty.tab.c,
583           test/yacc/err_syntax10.tab.c, test/yacc/rename_debug.c,
584           yaccpar.c:
585         regen
586
587         * btyaccpar.skel, yaccpar.skel: cancel unused assignments
588
589         * output.c: gcc warning
590
591         * test/run_test.sh, test/run_lint.sh, test/run_make.sh:
592         shellcheck-warnings
593
594 2021-06-19  jannick0
595
596         * test/run_test.sh: changes suggested at
597                 https://github.com/jannick0/byacc-snapshots/tree/YYINT-fix-20210520
598
599 2021-06-19  Thomas E. Dickey  <dickey@invisible-island.net>
600
601         * VERSION, package/byacc.spec, package/debian/changelog,
602           package/pkgsrc/Makefile:
603         bump
604
605 2021-06-13  Thomas E. Dickey  <dickey@invisible-island.net>
606
607         * aclocal.m4: resync with my-autoconf
608
609 2021-06-04  Thomas E. Dickey  <dickey@invisible-island.net>
610
611         * config.guess: 2021-06-03
612             From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
613             Recognize arc32
614
615             This is the 32-bit variant of ARCv3 ISA (which is not compatible with the
616             32-bit ARCv2 ISA)
617
618             | make check
619             | cd testsuite && bash config-guess.sh && rm uname
620             | PASS: config.guess checks (136 tests)
621             | cd testsuite && bash config-sub.sh
622             | PASS: config.sub checks (864 tests)
623             | PASS: config.sub idempotency checks (801 tests)
624             | PASS: config.sub canonicalise each config.guess testcase (136 tests)
625
626             * config.guess (arc32:Linux:*:*): Recognize.
627             * config.sub (arc32): Likewise.
628             * doc/config.guess.1: Regenerate.
629             * doc/config.sub.1: Likewise.
630             * testsuite/config-guess.data: Add a test case for arc32.
631             * testsuite/config-sub.data (arc32, arc*-elf): Add test cases.
632
633             Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
634             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
635
636         * config.sub: 2021-06-03 (repaired)
637             From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
638             Recognize arc32
639
640             This is the 32-bit variant of ARCv3 ISA (which is not compatible with the
641             32-bit ARCv2 ISA)
642
643             | make check
644             | cd testsuite && bash config-guess.sh && rm uname
645             | PASS: config.guess checks (136 tests)
646             | cd testsuite && bash config-sub.sh
647             | PASS: config.sub checks (864 tests)
648             | PASS: config.sub idempotency checks (801 tests)
649             | PASS: config.sub canonicalise each config.guess testcase (136 tests)
650
651             * config.guess (arc32:Linux:*:*): Recognize.
652             * config.sub (arc32): Likewise.
653             * doc/config.guess.1: Regenerate.
654             * doc/config.sub.1: Likewise.
655             * testsuite/config-guess.data: Add a test case for arc32.
656             * testsuite/config-sub.data (arc32, arc*-elf): Add test cases.
657
658             Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
659             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
660
661 2021-05-26  Thomas E. Dickey  <dickey@invisible-island.net>
662
663         * config.guess: 2021-05-24
664             From: Jacob Bachmeyer <jcb@gnu.org>
665             config.guess: manual fixups after previous automatic patch
666
667             The tool could not handle command substitutions that span lines, but
668             fortunately there were only two such substitutions in the script.
669
670             The test for which universe is active on Pyramid is rewritten into a
671             case block because it was the only use of a command substitution as an
672             argument to the test command, which would require quoting.
673
674             * config.guess: Rewrite "if" for Pyramid systems to "case".
675
676         * config.guess: 2021-05-24 (repaired)
677             From: Jacob Bachmeyer <jcb@gnu.org>
678             config.guess: replace POSIX $( ) with classic ` ` throughout
679
680             The previous replacement of backticks with POSIX command substitutions
681             was ill-considered and illogical: this script recognizes many archaic
682             machine types that probably never had POSIX shells, therefore it needs
683             to be able to run successfully under pre-POSIX shells.
684
685             This patch was generated using the included GNU Awk program.
686
687             * config.guess: Revert POSIX command substitutions to classic form.
688             * patch-6.gawk: Store the tool that produced the automated patch.
689
690 2021-05-25  Thomas E. Dickey  <dickey@invisible-island.net>
691
692         * config.guess: 2021-05-24 (repaired)
693             From: Jacob Bachmeyer <jcb@gnu.org>
694             config.guess: manual fixup after previous automated patches
695
696             This patch provides the special handling for the GNU system.  As these
697             were two small and unique edits, they were not included in the scripts.
698
699             This patch also cleans up other minor issues that must be addressed
700             before reverting to classic command substitutions and updates
701             "shellcheck" directives to account for changes in this script and the
702             change in "shellcheck" towards reporting individual portability issues.
703
704         * config.guess: 2021-05-24 (repaired)
705             From: Jacob Bachmeyer <jcb@gnu.org>
706             config.guess: automatic fixups after previous automated patch
707
708             This patch was generated using the following command:
709
710               sed -i config.guess \
711                   -e '/="[^"]\+"\(-\|$\)/s/="\([^"([:space:])]\+\)"/=\1/' \
712                   -e '/="[^"]\+"[[:alnum:]]/s/="\$\([^([:space:])]\+\)"/=${\1}/' \
713                   -e \
714             '/\$(echo[^|]\+|/s/\([^[:space:]]\)[[:space:]]*|[[:space:]]*sed/\1 | sed/g'
715
716             * config.guess: Remove unneeded quotes in other variable assignments,
717             standardize spacing for "echo ... | sed" substitutions.
718
719         * config.guess: 2021-05-24 (repaired)
720             From: Jacob Bachmeyer <jcb@gnu.org>
721             config.guess: remove unneeded quotes and factor command substitutions
722
723             This is further cleanup and simplifies some constructs that can confuse
724             Emacs' syntax highlighting while generally reducing required quoting.
725
726             This patch was generated using the included GNU Awk program.
727
728             * config.guess: Remove unneeded variable quotes and factor out command
729             substitutions when setting GUESS.
730             * patch-3.gawk: Store the tool that produced the automated patch.
731
732         * config.guess: 2021-05-24 (repaired)
733             From: Jacob Bachmeyer <jcb@gnu.org>
734             config.guess: manual fixups after previous automatic patch
735
736             * config.guess: Adjust a few "leftover" cases that the tool could not
737             easily recognize and fixes comment indentation in a few other special
738             cases.
739
740         * config.guess: 2021-05-24 (repaired)
741             From: Jacob Bachmeyer <jcb@gnu.org>
742             config.guess: introduce intermediate variable with uname results
743
744             This will allow quoting to be significantly simplified in another
745             pass through the file.
746
747             * config.guess: Introduce GUESS variable to hold results of uname analysis.
748
749         * config.guess: 2021-05-24 (repaired)
750             From: Jacob Bachmeyer <jcb@gnu.org>
751             config.guess: use intermediate variable with uname results
752
753             This will allow quoting to be significantly simplified in another
754             pass through the file.
755
756             This patch was generated using the included GNU Awk program.
757
758             * config.guess: Use GUESS variable to hold results of uname analysis.
759             * patch-1.gawk: Store the tool that produced the automated patch.
760
761 2021-05-24  Thomas E. Dickey  <dickey@invisible-island.net>
762
763         * config.guess: 2021-05-24 (repaired)
764             From: Dmitry V. Levin <ldv@altlinux.org>
765             config.guess: fix shellcheck warning SC2154
766
767             While, according to Plan 9 documentation, the environment variable
768             $cputype is set to the name of the kernel's CPU's architecture,
769             shellcheck warns that cputype is referenced but not assigned.
770             Be on the safe side and do not use cputype if it is not defined
771             or empty.
772
773             * config.guess (*:Plan9:*:*): Fix shellcheck warning SC2154.
774
775         * config.guess: 2021-05-24 (repaired)
776             From: Dmitry V. Levin <ldv@altlinux.org>
777             config.guess: remove redundant quotes in case commands
778
779             According to the GNU Autoconf Portable Shell Programming manual,
780             the Bourne shell does not systematically split variables and back-quoted
781             expressions, in particular on the right-hand side of assignments and in
782             the argument of 'case'.
783
784             The change is made automatically using the following command:
785             $ sed -E -i 's/(\<case )"(\$[^"]+)"( in\>)/\1\2\3/' config.guess
786
787             * config.guess: Simplify case commands by removing quotes around the
788             argument.
789
790             Suggested-by: Jacob Bachmeyer <jcb@gnu.org>
791
792         * config.guess: 2021-05-24 (repaired)
793             From: Dmitry V. Levin <ldv@altlinux.org>
794             config.guess: simplify exit status workaround on alphaev67-dec-osf5.1
795
796             Commit 29865ea8a5622cdd80b7a69a0afa78004b4cd311 introduced an exit trap
797             reset before exiting to avoid a spurious non-zero exit status on
798             alphaev67-dec-osf5.1.  Simplify that code a bit by moving the exit trap
799             reset around.
800
801             * config.guess (alpha:OSF1:*:*): Reset exit trap earlier.
802             * doc/config.guess.1: Regenerate.
803
804 2021-05-20  Thomas E. Dickey  <dickey@invisible-island.net>
805
806         * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
807           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
808           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
809           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
810           test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c,
811           test/btyacc/calc_code_default.tab.c,
812           test/btyacc/calc_code_imports.tab.c,
813           test/btyacc/calc_code_provides.tab.c,
814           test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c,
815           test/btyacc/code_calc.code.c, test/btyacc/code_calc.tab.c,
816           test/btyacc/code_error.code.c, test/btyacc/code_error.tab.c,
817           test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c,
818           test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c,
819           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
820           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
821           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c,
822           test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c,
823           test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c,
824           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
825           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
826           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
827           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
828           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
829           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
830           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
831           test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c,
832           test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c,
833           test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
834           test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c,
835           test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c,
836           test/yacc/calc_code_provides.tab.c,
837           test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c,
838           test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c,
839           test/yacc/code_error.code.c, test/yacc/code_error.tab.c,
840           test/yacc/defines1.calc.c, test/yacc/defines2.calc.c,
841           test/yacc/defines3.calc.c, test/yacc/empty.tab.c,
842           test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c,
843           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
844           test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
845           test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c,
846           test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c,
847           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
848           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
849           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
850           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
851           test/yacc/quote_calc4.tab.c, test/yacc/rename_debug.c,
852           test/yacc/stdin1.calc.c, test/yacc/stdin2.calc.c,
853           test/yacc/varsyntax_calc1.tab.c:
854         regen
855
856         * mkpar.c, reader.c: change printf format to allow for long-YYINT
857
858         * lalr.c, lr0.c: change type, fix gcc warnings
859
860         * verbose.c: change type, fix gcc warnings
861         also change printf format, to allow for long YYINT
862
863         * output.c: change type, fix gcc warnings
864         also change printf format, to allow for long-YYINT
865
866         * package/debian/rules, package/byacc.spec:
867         change max-table-size to correspond with switch of YYINT from short to int
868
869         * defs.h:
870         change default for MAXTABLE to INT_MAX, like the FreeBSD port.
871         that requires changing some types to eliminate type-mismatches.
872
873         * configure: regen
874
875         * VERSION, package/byacc.spec, package/debian/changelog,
876           package/pkgsrc/Makefile:
877         bump
878
879 2021-05-01  Thomas E. Dickey  <dickey@invisible-island.net>
880
881         * aclocal.m4: resync with my-autoconf
882
883 2021-04-30  Thomas E. Dickey  <dickey@invisible-island.net>
884
885         * config.sub: 2021-04-30 (repaired)
886             From: Maciej W. Rozycki <macro@orcam.me.uk>
887             config.sub: Handle MIPS R3 and R5 ISA levels with CPU names
888
889             Complement binutils commit ae52f4830604 ("Add MIPS r3 and r5 support.")
890             and recognize MIPS CPU patterns for the R3 and R5 ISA levels, used by
891             GAS to set defaults.
892
893             * config.sub (mipsisa32r3, mipsisa32r3el, mipsisa32r5, mipsisa32r5el,
894             mipsisa64r3, mipsisa64r3el, mipsisa64r5, mipsisa64r5el): Recognize.
895             * doc/config.sub.1: Regenerate.
896             * testsuite/config-sub.data: Add test cases.
897
898             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
899
900 2021-04-21  Thomas E. Dickey  <dickey@invisible-island.net>
901
902         * config.guess, config.sub: 2021-04-21 (repaired)
903             From: Vineet Gupta <Vineet.Gupta1@synopsys.com>
904             Recognize arc64
905
906             This paves way for setting up arc64 software ecosystem.
907
908             $ make check
909             cd testsuite && bash config-guess.sh && rm uname
910             PASS: config.guess checks (136 tests)
911             cd testsuite && bash config-sub.sh
912             PASS: config.sub checks (853 tests)
913             PASS: config.sub idempotency checks (790 tests)
914             PASS: config.sub canonicalise each config.guess testcase (136 tests)
915
916             * config.guess (arc64:Linux:*:*): Recognize.
917             * config.sub (arc64): Likewise.
918             * doc/config.guess.1: Regenerate.
919             * doc/config.sub.1: Likewise.
920             * testsuite/config-guess.data: Add a test case for arc64.
921             * testsuite/config-sub.data (arc64, arc*-elf): Add test cases.
922
923             Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
924             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
925
926 2021-04-16  Thomas E. Dickey  <dickey@invisible-island.net>
927
928         * config.guess: 2021-04-16 (repaired)
929             From: Purple Rain <purplerain@secbsd.org>
930             config.guess: add SecBSD support
931
932             * config.guess (*:SecBSD:*:*): Recognize.
933             * doc/config.guess.1: Regenerate.
934             * testsuite/config-guess.data: Add a test case.
935
936             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
937
938         * config.sub: 2021-04-16 (repaired)
939             From: Purple Rain <purplerain@secbsd.org>
940             config.sub: add SecBSD support
941
942             * config.sub (secbsd*): Recognize.
943             * doc/config.sub.1: Regenerate.
944             * testsuite/config-sub.data: Add x86_64-secbsd.
945
946             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
947
948 2021-03-28  Thomas E. Dickey  <dickey@invisible-island.net>
949
950         * reader.c: ignore bison's "%empty" extension
951
952         * reader.c, defs.h:
953         %debug was a trivial bison "extension", mark it as such
954
955         * yacc.1: use italics in a few places where bold was inappropriate
956
957         * test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h,
958           test/btyacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.h,
959           test/btyacc/inherit1.tab.c, test/btyacc/inherit1.tab.h,
960           test/btyacc/inherit2.tab.c, test/btyacc/inherit2.tab.h,
961           test/btyacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h,
962           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit3.tab.h,
963           test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit4.tab.h,
964           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h,
965           test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_demo.tab.h,
966           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy1.tab.h,
967           test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy2.tab.h,
968           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/btyacc_destroy3.tab.h,
969           test/btyacc/calc1.tab.c, test/btyacc/calc1.tab.h,
970           test/yacc/varsyntax_calc1.tab.c, test/yacc/varsyntax_calc1.tab.h,
971           test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h,
972           test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h,
973           test/yacc/calc1.tab.h:
974         regen
975
976         * reader.c:
977         add union tag to YYSTYPE structure for compatibility with a feature which
978         bison copied from Solaris yacc (request by Ella Stanforth)
979
980         * configure: regen
981
982         * config_h.in: update for _Noreturn feature
983
984         * aclocal.m4: updated to work with autoheader
985
986         * defs.h: apply syntax change needed for _Noreturn keyword
987
988         * package/byacc.spec, package/debian/rules: use stdnoreturn
989
990         * VERSION, package/byacc.spec, package/debian/changelog,
991           package/pkgsrc/Makefile:
992         bump
993
994 2021-03-20  Thomas E. Dickey  <dickey@invisible-island.net>
995
996         * configure: regen
997
998         * aclocal.m4:
999         resync with my-autoconf (adds --enable-stdnoreturn option)
1000
1001 2021-03-10  Thomas E. Dickey  <dickey@invisible-island.net>
1002
1003         * config.sub: 2021-03-10 (repaired)
1004             From: Idan Horo <idan.horowitz@gmail.com>
1005             config.sub: Add support for SerenityOS
1006
1007             * config.sub (serenity*): Recognize.
1008             * doc/config.sub.1: Regenerate.
1009             * testsuite/config-sub.data: Add i386-serenity.
1010
1011             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
1012
1013 2021-01-25  Thomas E. Dickey  <dickey@invisible-island.net>
1014
1015         * config.guess: 2021-01-25 (repaired)
1016             From: Kalamatee <kalamatee@gmail.com>
1017             config.guess: update AROS system detection
1018
1019             * config.guess: Recognize *:AROS:*:*.
1020             * doc/config.guess.1: Regenerate.
1021             * testsuite/config-guess.data: Add test cases.
1022
1023             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
1024
1025 2021-01-19  Thomas E. Dickey  <dickey@invisible-island.net>
1026
1027         * config.guess: 2021-01-19 (repaired)
1028             From: M. Levinson <mlevins@users.sourceforge.net>
1029             config.guess: fix shell variable quoting bug
1030
1031             * config.guess (*:NetBSD:*:*): Spell out the full sysctl command twice
1032             instead of using a shell variable.
1033             * doc/config.guess.1: Regenerate.
1034
1035             Fixes: 827c77253b396c07306927b2a4b794a3251c48eb
1036             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
1037
1038 2021-01-09  Thomas E. Dickey  <dickey@invisible-island.net>
1039
1040         * package/debian/copyright, VERSION, package/byacc.spec,
1041           package/debian/changelog, package/mingw-byacc.spec,
1042           package/pkgsrc/Makefile:
1043         bump
1044
1045 2021-01-07  Thomas E. Dickey  <dickey@invisible-island.net>
1046
1047         * config.sub: 2021-01-08 (repaired)
1048             From: Peixing Xin <peixing.xin@windriver.com>
1049             config.sub: recognize four-part configuration name for VxWorks
1050
1051             For example:
1052
1053               armv7m-wrs-vxworks-eabihf
1054               armv7-wrs-vxworks-eabihf
1055               i686-wrs-vxworks-simlinux
1056               i686-wrs-vxworks-simwindows
1057               powerpc-wrs-vxworks-spe
1058               x86_64-wrs-vxworks-simlinux
1059               x86_64-wrs-vxworks-simwindows
1060
1061             * config.sub: Recognize four-part configuration name for VxWorks.
1062             * doc/config.guess.1: Regenerate.
1063             * testsuite/config-sub.data: Add test cases.
1064
1065             Co-authored-by: John Ericson <git@JohnEricson.me>
1066             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
1067
1068 2021-01-06  Thomas E. Dickey  <dickey@invisible-island.net>
1069
1070         * config.sub: 2021-01-07 (repaired)
1071             From: Alan Modra <amodra@gmail.com>
1072             config.sub: accept OS of eabi* and gnueabi*
1073
1074             Commit 5e531d391852 broke powerpc-eabivle:
1075
1076             $ ./config.sub powerpc-eabivle
1077             Invalid configuration `powerpc-eabivle': OS `eabivle' not recognized
1078
1079             Also powerpc-eabisim and probably some arm configurations.
1080
1081             * config.sub: Accept OS of eabi* and gnueabi*.
1082             * testsuite/config-sub.data: Add powerpc-eabisim and powerpc-eabivle.
1083
1084             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
1085
1086 2021-01-05  Thomas E. Dickey  <dickey@invisible-island.net>
1087
1088         * configure: regen
1089
1090         * aclocal.m4: resync with my-autoconf
1091
1092 2021-01-01  Thomas E. Dickey  <dickey@invisible-island.net>
1093
1094         * config.guess, config.sub: 2021-01-01 (repaired)
1095             From: Dmitry V. Levin <ldv@altlinux.org>
1096             Update copyright years
1097
1098             * config.guess: Update copyright years.
1099             * config.sub: Likewise.
1100             * doc/config.guess.1: Regenerate.
1101             * doc/config.sub.1: Likewise.
1102
1103 2020-12-31  Thomas E. Dickey  <dickey@invisible-island.net>
1104
1105         * config.guess, config.sub: 2020-12-31 (repaired)
1106             From: Kito Cheng <kito.cheng@sifive.com>
1107             Recognize riscv32be and riscv64be
1108
1109             Recently RISC-V community got patches big-endian support for binutils,
1110             and we'd like to accept that, however before accepting that I think it
1111             would be better to upstream config.sub and config.guess change here :)
1112
1113             It's my check result on Ubuntu 18.04:
1114
1115              $ make check
1116              cd testsuite && bash config-guess.sh && rm uname
1117              PASS: config.guess checks (131 tests)
1118              cd testsuite && bash config-sub.sh
1119              PASS: config.sub checks (830 tests)
1120              PASS: config.sub idempotency checks (767 tests)
1121              PASS: config.sub canonicalise each config.guess testcase (131 tests)
1122
1123             * config.guess (riscv32be:Linux:*:*, riscv64be:Linux:*:*): Recognize.
1124             * config.sub (riscv32be, riscv64be): Likewise.
1125             * doc/config.guess.1: Regenerate.
1126             * doc/config.sub.1: Likewise.
1127             * testsuite/config-guess.data: Add test cases for riscv32be, and riscv64be.
1128             * testsuite/config-sub.data (riscv32be, riscv64be): Add test cases.
1129
1130             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
1131
1132 2020-12-03  Thomas E. Dickey  <dickey@invisible-island.net>
1133
1134         * config.guess, config.sub: 2020-12-22 (repaired)
1135             From: Xiaotian Wu <wuxiaotian@loongson.cn>
1136             Recognize loongarch32, loongarch64, and loongarchx32
1137
1138             * config.guess (loongarch32:Linux:*:*, loongarch64:Linux:*:*,
1139             loongarchx32:Linux:*:*): Recognize.
1140             * config.sub (loongarch32, loongarch64, loongarchx32): Likewise.
1141             * doc/config.guess.1: Regenerate.
1142             * doc/config.sub.1: Likewise.
1143             * testsuite/config-guess.data: Add test cases for loongarch32,
1144             loongarch64, and loongarchx32.
1145             * testsuite/config-sub.data (loongarch32, loongarch64, loongarchx32):
1146             Add test cases.
1147
1148             Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
1149
1150 2020-12-01  Thomas E. Dickey  <dickey@invisible-island.net>
1151
1152         * config.sub: 2020-12-02 (repaired)
1153             From: Dmitry V. Levin <ldv@altlinux.org>
1154             config.sub: recognize thumbv7*
1155
1156             * config.sub (thumbv7*): Recognize.
1157             * testsuite/config-sub.data (thumbv7): New test.
1158
1159             Reported-by: Karl Berry <karl@freefriends.org>
1160             Link: https://lists.gnu.org/archive/html/config-patches/2020-12/msg00001.html
1161
1162 2020-11-19  Thomas E. Dickey  <dickey@invisible-island.net>
1163
1164         * config.guess, config.sub: 2020-11-17 (repaired)
1165             From: Dmitry V. Levin <ldv@altlinux.org>
1166             .gitattributes: specify a custom git merge driver for the ChangeLog file
1167
1168         * config.guess, config.sub: 2020-11-19 (repaired)
1169             From: Dmitry V. Levin <ldv@altlinux.org>
1170             Update URLs of the latest version of config.guess and config.sub scripts
1171
1172             Prefer cgit URLs over gitweb as the former are usually served faster:
1173             $ time -f %e wget -q 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess'
1174             1.06
1175             $ time -f %e wget -q 'https://git.savannah.gnu.org/cgit/config.git/plain/config.guess'
1176             0.73
1177
1178             * config.guess: Prefer cgit URLs over gitweb.
1179             (timestamp): Update.
1180             * config.sub: Likewise.
1181             * doc/config.guess.1: Regenerate.
1182             * doc/config.sub.1: Likewise.
1183
1184 2020-11-06  Thomas E. Dickey  <dickey@invisible-island.net>
1185
1186         * config.guess, config.sub: 2020-11-07 (repaired)
1187             From: Ben Elliston <bje@gnu.org>
1188             Update timestamps.
1189
1190         * config.sub: 2020-10-13 (repaired)
1191             From: Ben Elliston <bje@gnu.org>
1192                     * config.sub, config.guess: Replace backtick `..` substitutions
1193                     with POSIX $(..) command substitutions throughout.
1194                     * Makefile (shellcheck): Don't exclude message SC2006.
1195
1196         * config.guess: 2020-10-22 (repaired)
1197             From: Ben Elliston <bje@gnu.org>
1198                     * config.sub, config.guess: Replace backtick `..` substitutions
1199                     with POSIX $(..) command substitutions throughout.
1200                     * Makefile (shellcheck): Don't exclude message SC2006.
1201
1202 2020-10-21  Thomas E. Dickey  <dickey@invisible-island.net>
1203
1204         * config.guess: 2020-10-22
1205             From: Rin Okuyama <rin@netbsd.org>
1206                     * config.guess (*:NetBSD:*:*): Handle aarch64eb.
1207                     * testsuite/config-guess.data: Add test cases.
1208
1209             Signed-off-by: Ben Elliston <bje@gnu.org>
1210
1211 2020-10-14  Thomas E. Dickey  <dickey@invisible-island.net>
1212
1213         * config.sub: 2020-10-13
1214             From: Ben Elliston <bje@gnu.org>
1215             Fix whitespace problem in config.sub.
1216
1217 2020-10-13  Thomas E. Dickey  <dickey@invisible-island.net>
1218
1219         * config.sub: 2020-10-13
1220             From: Ben Elliston <bje@gnu.org>
1221                     * config.sub (i*86-pc-os2-emx): Recognise correctly.
1222                     * testsuite/config-sub.data: Add OS/2 tests to avoid regressions.
1223
1224 2020-09-26  Thomas E. Dickey  <dickey@invisible-island.net>
1225
1226         * config.sub: 2020-09-08
1227             From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
1228                     * config.sub (uclinux-uclibc*): Fix detection.
1229                     * testsuite/config-sub.data: Add a test case to avoid regression.
1230
1231             Signed-off-by: Ben Elliston <bje@gnu.org>
1232
1233 2020-09-22  Thomas E. Dickey  <dickey@invisible-island.net>
1234
1235         * closure.c, warshall.c:
1236         fix undefined-behavior diagnosed with gcc -fsanitize=undefined (report by
1237         Alexander Richardson)
1238
1239 2020-09-20  Thomas E. Dickey  <dickey@invisible-island.net>
1240
1241         * config.guess: 2020-09-19
1242             From: Bruno Haible <bruno@clisp.org>
1243                     * config.guess: Don't use 'ldd --version' to determine the presence of
1244                     musl libc, as this fails on Alpine Linux 3.10.
1245
1246             Signed-off-by: Ben Elliston <bje@gnu.org>
1247
1248 2020-09-10  Thomas E. Dickey  <dickey@invisible-island.net>
1249
1250         * LICENSE: RCS_BASE
1251
1252         * reader.c, output.c: cppcheck -- reduce scope
1253
1254         * defs.h: update to 2.0
1255
1256         * test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
1257           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
1258           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
1259           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
1260           test/btyacc/calc3.tab.c, test/btyacc/calc_code_all.tab.c,
1261           test/btyacc/calc_code_default.tab.c,
1262           test/btyacc/calc_code_imports.tab.c,
1263           test/btyacc/calc_code_provides.tab.c,
1264           test/btyacc/calc_code_requires.tab.c, test/btyacc/calc_code_top.tab.c,
1265           test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c,
1266           test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c,
1267           test/btyacc/defines3.calc.c, test/btyacc/empty.tab.c,
1268           test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c,
1269           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
1270           test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c,
1271           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
1272           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax13.tab.c,
1273           test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c,
1274           test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c,
1275           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c,
1276           test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c,
1277           test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c,
1278           test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c,
1279           test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c,
1280           test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c,
1281           test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c,
1282           test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c,
1283           test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c,
1284           test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c,
1285           test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c,
1286           test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c,
1287           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
1288           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
1289           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
1290           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
1291           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
1292           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
1293           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
1294           test/btyacc/rename_debug.c, test/btyacc/stdin1.calc.c,
1295           test/btyacc/stdin2.calc.c, test/btyacc/varsyntax_calc1.tab.c,
1296           test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
1297           test/yacc/calc3.tab.c, test/yacc/calc_code_all.tab.c,
1298           test/yacc/calc_code_default.tab.c, test/yacc/calc_code_imports.tab.c,
1299           test/yacc/calc_code_provides.tab.c,
1300           test/yacc/calc_code_requires.tab.c, test/yacc/calc_code_top.tab.c,
1301           test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
1302           test/yacc/defines1.calc.c, test/yacc/defines2.calc.c,
1303           test/yacc/defines3.calc.c, test/yacc/empty.tab.c,
1304           test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c,
1305           test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c,
1306           test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c,
1307           test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c,
1308           test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c,
1309           test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c,
1310           test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c,
1311           test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c,
1312           test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c,
1313           test/yacc/err_syntax26.tab.c, test/yacc/err_syntax27.tab.c,
1314           test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c,
1315           test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c,
1316           test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c,
1317           test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c,
1318           test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c,
1319           test/yacc/error.tab.c, test/yacc/expr.oxout.tab.c,
1320           test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c,
1321           test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c,
1322           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
1323           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
1324           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
1325           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
1326           test/yacc/rename_debug.c, test/yacc/stdin1.calc.c,
1327           test/yacc/varsyntax_calc1.tab.c:
1328         update to version 2.0
1329
1330         * reader.c:
1331         improve loop which skips backward through a (possibly nested) sequence of
1332         square-brackets.
1333
1334         * reader.c: simplify a check to quiet a bogus cppcheck-warning
1335
1336         * yacc.1: bump date
1337
1338         * reader.c: add a note about a bogus cppcheck warning
1339
1340         * configure: regen
1341
1342         * configure.in:
1343         always check for gcc attributes, to work around defect in clang's imitation
1344         of this feature
1345
1346         * reader.c: cppcheck -- scope reduction
1347         cppcheck -- eliminate bogus returns after no-return functions
1348
1349         * verbose.c, output.c, mkpar.c, main.c, warshall.c, lr0.c, lalr.c,
1350           closure.c:
1351         cppcheck -- scope reduction
1352
1353         * package/debian/compat: quiet compatibility-warning
1354
1355         * yacc.1: use "ASCII" for dashes which are part of proper names
1356
1357         * configure: regen
1358
1359         * configure.in: switch to --enable-warnings, for consistency
1360
1361         * aclocal.m4:
1362         resync with my-autoconf, for compiler-warning fixes with macOS
1363
1364         * VERSION, package/byacc.spec, package/debian/changelog,
1365           package/pkgsrc/Makefile:
1366         bump
1367
1368 2020-09-07  Thomas E. Dickey  <dickey@invisible-island.net>
1369
1370         * config.sub: 2020-09-08
1371             From: Elad Lahav <e2lahav@gmail.com>
1372                     * config.sub: Fix regression in QNX recognition.
1373                     * testsuite/config-sub.data: Add some test cases.
1374
1375             Signed-off-by: Ben Elliston <bje@gnu.org>
1376
1377 2020-08-16  Thomas E. Dickey  <dickey@invisible-island.net>
1378
1379         * config.guess, config.sub: 2020-08-17
1380
1381 2020-06-28  Thomas E. Dickey  <dickey@invisible-island.net>
1382
1383         * config.sub: 2020/06/28
1384
1385 2020-06-14  Thomas E. Dickey  <dickey@invisible-island.net>
1386
1387         * config.guess: 2020/04/26
1388
1389 2020-03-30  Thomas E. Dickey  <dickey@invisible-island.net>
1390
1391         * package/debian/copyright: bump
1392
1393         * test/yacc/grammar.tab.c, test/btyacc/grammar.tab.c, test/grammar.y,
1394           reader.c:
1395         typo found with codespell
1396
1397         * yacc.1: fixes noted in the original report, overlooked in followup
1398
1399 2020-03-30  Bjarni.Ingi.Gislason
1400
1401         * yacc.1: typography/spelling fixes - Debian #955175
1402
1403 2020-03-30  Thomas E. Dickey  <dickey@invisible-island.net>
1404
1405         * VERSION, package/byacc.spec, package/debian/changelog,
1406           package/pkgsrc/Makefile:
1407         bump
1408
1409 2020-03-10  Thomas E. Dickey  <dickey@invisible-island.net>
1410
1411         * configure: regen
1412
1413         * aclocal.m4:
1414         resync with my-autoconf, mostly fixes for compiler-warnings
1415
1416         * configure.in: use macro to suppress X-dependency from newer macros
1417
1418 2019-12-20  Thomas E. Dickey  <dickey@invisible-island.net>
1419
1420         * config.guess: 2019-12-21
1421
1422 2019-11-25  Tom.Shields
1423
1424         * main.c:
1425         fix an inconsistency between the getopt and non-getopt configuration.
1426         In the former, getopt always used "yacc", not the name of the executable.
1427
1428 2019-11-25  Thomas E. Dickey  <dickey@invisible-island.net>
1429
1430         * test/run_make.sh:
1431         suppress bison's -Wyacc warning, which is not useful.
1432
1433         * VERSION, package/byacc.spec, package/debian/changelog,
1434           package/pkgsrc/Makefile:
1435         bump
1436
1437 2019-11-19  Thomas E. Dickey  <dickey@invisible-island.net>
1438
1439         * yacc.1: new version of manpage
1440
1441         * VERSION, package/byacc.spec, package/debian/changelog,
1442           package/pkgsrc/Makefile:
1443         bump
1444
1445         * yacc.1: document %code
1446
1447         * test/btyacc/calc_code_all.error, test/btyacc/calc_code_all.output,
1448           test/btyacc/calc_code_all.tab.c, test/btyacc/calc_code_all.tab.h,
1449           test/btyacc/calc_code_default.error,
1450           test/btyacc/calc_code_default.output,
1451           test/btyacc/calc_code_default.tab.c,
1452           test/btyacc/calc_code_default.tab.h,
1453           test/btyacc/calc_code_imports.error,
1454           test/btyacc/calc_code_imports.output,
1455           test/btyacc/calc_code_imports.tab.c,
1456           test/btyacc/calc_code_imports.tab.h,
1457           test/btyacc/calc_code_provides.error,
1458           test/btyacc/calc_code_provides.output,
1459           test/btyacc/calc_code_provides.tab.c,
1460           test/btyacc/calc_code_provides.tab.h,
1461           test/btyacc/calc_code_requires.error,
1462           test/btyacc/calc_code_requires.output,
1463           test/btyacc/calc_code_requires.tab.c,
1464           test/btyacc/calc_code_requires.tab.h, test/btyacc/calc_code_top.error,
1465           test/btyacc/calc_code_top.output, test/btyacc/calc_code_top.tab.c,
1466           test/btyacc/calc_code_top.tab.h, test/yacc/calc_code_all.tab.c,
1467           test/yacc/calc_code_all.tab.h, test/yacc/calc_code_default.tab.c,
1468           test/yacc/calc_code_provides.tab.c,
1469           test/yacc/calc_code_provides.tab.h, test/yacc/calc_code_requires.tab.c,
1470           test/yacc/calc_code_top.tab.c:
1471         RCS_BASE
1472
1473         * output.c:
1474         amend updates for 'outline' when processing "%code" in code-file
1475
1476         * output.c:
1477         modify output_code_lines() to show begin/end block comments which were in
1478         reader.c, and to generate a #line for the code-file.
1479
1480         * reader.c:
1481         modify copy_code() to allow for multiple %code directives for a given
1482         section, recording the input line-number for each directive as a #line
1483         in the resulting string.  remove the block start/end comments, since those
1484         will be done for a whole section in output.c
1485
1486         * mstring.c, defs.h: add msrenew()
1487
1488         * test/yacc/calc_code_all.error, test/yacc/calc_code_all.output,
1489           test/yacc/calc_code_default.error, test/yacc/calc_code_default.output,
1490           test/yacc/calc_code_default.tab.h, test/yacc/calc_code_imports.error,
1491           test/yacc/calc_code_imports.output, test/yacc/calc_code_imports.tab.c,
1492           test/yacc/calc_code_imports.tab.h, test/yacc/calc_code_provides.error,
1493           test/yacc/calc_code_provides.output,
1494           test/yacc/calc_code_requires.error,
1495           test/yacc/calc_code_requires.output, test/yacc/calc_code_top.error,
1496           test/yacc/calc_code_top.tab.h:
1497         RCS_BASE
1498
1499 2019-11-18  Thomas E. Dickey  <dickey@invisible-island.net>
1500
1501         * test/calc_code_imports.y, test/calc_code_all.y,
1502           test/calc_code_default.y, test/calc_code_top.y,
1503           test/calc_code_requires.y:
1504         RCS_BASE
1505
1506 2019-11-04  Michael.Forney
1507
1508         * defs.h: add missing "extern" for new variable "code_lines"
1509
1510 2019-11-03  Thomas E. Dickey  <dickey@invisible-island.net>
1511
1512         * main.c: build-fix for MinGW cross-compiling
1513
1514         * output.c, reader.c: gcc-warnings
1515
1516         * output.c: check validity of text_file before rewind
1517         remove redundant check of iflag
1518
1519         * main.c: fix memory-leak reported by clang
1520
1521         * mkpar.c: guard against a null-reference reported by clang (unlikely)
1522
1523         * reader.c: fix two coverity warnings:
1524         a) resource leak on malloc-failure
1525         b) possible null-pointer dereference on parse-error
1526
1527         * test/btyacc/err_inherit4.tab.h, test/btyacc/btyacc_demo.tab.h: regen
1528
1529         * defs.h: use enum's to simplify recent change
1530
1531         * mstring.c:
1532         enable mstring() in regular byacc, since Zoulas' change relies upon it
1533
1534 2019-11-03  Christos.Zoulas
1535
1536         * defs.h, reader.c, output.c: add support for bison's "%code" feature
1537         also fix a small bug: declare YYLTYPE externally when producing locations
1538
1539 2019-11-03  Thomas E. Dickey  <dickey@invisible-island.net>
1540
1541         * test/btyacc/help.error, test/btyacc/no_b_opt.error,
1542           test/btyacc/no_output2.error, test/btyacc/no_p_opt.error,
1543           test/yacc/help.error, test/yacc/no_b_opt.error,
1544           test/yacc/no_p_opt.error:
1545         regen
1546
1547         * test/run_test.sh:
1548         there's no standard wording for the options-errors from getopt;
1549         filter that to "error message" in the test reference files.
1550
1551         * main.c:
1552         provide for using getopt(), to accommodate a case where developers have
1553         relied upon non-POSIX behavior.
1554
1555         * test/run_test.sh:
1556         getopt's messages do not print the full pathname of yacc in some cases;
1557         adjust the sed-script which changes those to "YACC"
1558
1559         * configure: regen
1560
1561         * config_h.in: regen, using autoheader-252
1562
1563         * configure.in: add configure check for getopt
1564
1565         * configure: regen
1566
1567         * aclocal.m4:
1568         resync with my-autoconf adds a fix which accommodates a difference in
1569         warning options between gcc/clang when --enable-warnings is not set.
1570
1571         * VERSION, package/byacc.spec, package/debian/changelog,
1572           package/pkgsrc/Makefile:
1573         bump
1574
1575 2019-09-11  Thomas E. Dickey  <dickey@invisible-island.net>
1576
1577         * config.guess, config.sub: 2019-09-10
1578
1579 2019-06-17  Thomas E. Dickey  <dickey@invisible-island.net>
1580
1581         * test/btyacc/big_b.error, test/btyacc/big_l.error,
1582           test/btyacc/help.error, test/btyacc/no_b_opt.error,
1583           test/btyacc/no_output2.error, test/btyacc/no_p_opt.error,
1584           test/btyacc/nostdin.error, test/yacc/big_b.error,
1585           test/yacc/big_l.error, test/yacc/help.error, test/yacc/no_b_opt.error,
1586           test/yacc/no_output2.error, test/yacc/no_p_opt.error,
1587           test/yacc/nostdin.error:
1588         regen
1589
1590         * test/run_test.sh: test "-H" rather than "-D"
1591
1592 2019-06-16  Thomas E. Dickey  <dickey@invisible-island.net>
1593
1594         * main.c, yacc.1:
1595         change "-D" option to "-H" (discussion with Ethan Sommer)
1596
1597         * VERSION, package/byacc.spec, package/debian/changelog,
1598           package/pkgsrc/Makefile:
1599         bump
1600
1601         * test/btyacc/defines1.calc.c, test/btyacc/defines2.calc.c,
1602           test/btyacc/defines3.calc.c:
1603         RCS_BASE
1604
1605         * test/run_test.sh: in test_defines, save the ".c" file too
1606
1607         * test/yacc/defines3.calc.c, test/yacc/defines2.calc.c,
1608           test/yacc/defines1.calc.c:
1609         RCS_BASE
1610
1611         * test/run_test.sh:
1612         output of test_defines should be a header ".h", not ".c"
1613
1614         * test/btyacc/defines1.calc.h, test/btyacc/defines1.error,
1615           test/btyacc/defines1.output, test/btyacc/defines2.calc.h,
1616           test/btyacc/defines2.error, test/btyacc/defines2.output,
1617           test/btyacc/defines3.calc.h, test/btyacc/defines3.error,
1618           test/btyacc/defines3.output:
1619         RCS_BASE
1620
1621         * main.c: however, a subsequent -d cancels -D
1622
1623         * test/yacc/defines1.calc.h, test/yacc/defines3.calc.h: RCS_BASE
1624
1625         * main.c: -D option implies -d
1626
1627         * test/yacc/defines1.error, test/yacc/defines1.output,
1628           test/yacc/defines2.calc.h, test/yacc/defines2.error,
1629           test/yacc/defines2.output, test/yacc/defines3.error,
1630           test/yacc/defines3.output:
1631         RCS_BASE
1632
1633         * yacc.1: align macro definitions with my other manpages
1634
1635         * test/run_test.sh: add test for -D after -d or -b options
1636
1637         * test/btyacc/stdin1.calc.c, test/btyacc/stdin1.error,
1638           test/btyacc/stdin1.output, test/btyacc/stdin2.calc.c,
1639           test/btyacc/stdin2.output:
1640         RCS_BASE
1641
1642         * test/btyacc/big_b.error, test/btyacc/big_b.output,
1643           test/btyacc/big_l.error, test/btyacc/big_l.output,
1644           test/btyacc/help.error, test/btyacc/help.output,
1645           test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output,
1646           test/btyacc/no_b_opt1.error, test/btyacc/no_b_opt1.output,
1647           test/btyacc/no_code_c.error, test/btyacc/no_code_c.output,
1648           test/btyacc/no_defines.error, test/btyacc/no_defines.output,
1649           test/btyacc/no_graph.error, test/btyacc/no_graph.output,
1650           test/btyacc/no_include.error, test/btyacc/no_include.output,
1651           test/btyacc/no_opts.error, test/btyacc/no_opts.output,
1652           test/btyacc/no_output.error, test/btyacc/no_output.output,
1653           test/btyacc/no_output1.error, test/btyacc/no_output1.output,
1654           test/btyacc/no_output2.error, test/btyacc/no_output2.output,
1655           test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output,
1656           test/btyacc/no_p_opt1.error, test/btyacc/no_p_opt1.output,
1657           test/btyacc/no_verbose.error, test/btyacc/no_verbose.output,
1658           test/btyacc/nostdin.error, test/btyacc/nostdin.output,
1659           test/yacc/big_b.error, test/yacc/big_b.output, test/yacc/big_l.error,
1660           test/yacc/big_l.output, test/yacc/help.error, test/yacc/help.output,
1661           test/yacc/no_b_opt.error, test/yacc/no_b_opt.output,
1662           test/yacc/no_b_opt1.error, test/yacc/no_b_opt1.output,
1663           test/yacc/no_code_c.error, test/yacc/no_code_c.output,
1664           test/yacc/no_defines.error, test/yacc/no_defines.output,
1665           test/yacc/no_graph.error, test/yacc/no_graph.output,
1666           test/yacc/no_include.error, test/yacc/no_include.output,
1667           test/yacc/no_opts.error, test/yacc/no_opts.output,
1668           test/yacc/no_output.error, test/yacc/no_output.output,
1669           test/yacc/no_output1.error, test/yacc/no_output1.output,
1670           test/yacc/no_output2.error, test/yacc/no_output2.output,
1671           test/yacc/no_p_opt.error, test/yacc/no_p_opt.output,
1672           test/yacc/no_p_opt1.error, test/yacc/no_p_opt1.output,
1673           test/yacc/no_verbose.error, test/yacc/no_verbose.output,
1674           test/yacc/nostdin.output:
1675         regen
1676
1677         * test/run_test.sh:
1678         add a test for stdin "-" vs end-options "--", and correct a redirection
1679         of stderr in test_flags
1680
1681         * test/yacc/stdin2.output, test/yacc/stdin2.calc.c,
1682           test/yacc/stdin1.calc.c, test/yacc/stdin1.error,
1683           test/yacc/stdin2.error:
1684         RCS_BASE
1685
1686         * test/btyacc/big_b.output, test/btyacc/big_l.output,
1687           test/btyacc/help.output, test/btyacc/no_b_opt.output,
1688           test/btyacc/no_output2.output, test/btyacc/no_p_opt.output,
1689           test/btyacc/nostdin.output, test/yacc/big_b.output,
1690           test/yacc/big_l.output, test/yacc/help.output,
1691           test/yacc/no_b_opt.output, test/yacc/no_output2.output,
1692           test/yacc/nostdin.output:
1693         regen
1694
1695         * main.c: add -D option, to specify filename vs y.tab.h for -d
1696
1697         * defs.h: add dflag2, for -D option
1698
1699         * yacc.1: document -D option
1700
1701         * config_h.in: updated with autoheader-252
1702
1703         * configure: regen
1704
1705         * package/debian/copyright: bump
1706
1707         * aclocal.m4: add CF_GETOPT_HEADER
1708
1709         * aclocal.m4: Improved autoconf macros:
1710         + CF_CC_ENV_FLAGS
1711                 putting preprocessor flags in CFLAGS also is a nuisance, which can be
1712                 addressed in the same way.
1713         + CF_GCC_WARNINGS
1714                 factor out workaround for XTSTRINGDEFINES as CF_CONST_X_STRING
1715         + CF_GNU_SOURCE
1716                 The check for _DEFAULT_SOURCE should apply to "recent" Cygwin (since early 2016),
1717                 and except for "NEWLIB" vs "GLIBC" in the test, acts the same if I pretend
1718                 that "newlib" is the GNU C library.  Without this, the check falls through
1719                 to the _XOPEN_SOURCE test, which breaks the pseudoterminal checks for xterm.
1720         + CF_POSIX_C_SOURCE
1721                 add/use CF_POSIX_VISIBLE
1722         + CF_TRY_XOPEN_SOURCE
1723                 use CF_APPEND_TEXT
1724         + CF_WITH_MAN2HTML
1725                 use sed to work around non-POSIX tail utility
1726         + CF_XOPEN_SOURCE
1727                 use CF_APPEND_TEXT
1728                 add/use CF_POSIX_VISIBLE
1729
1730         * VERSION, package/byacc.spec, package/debian/changelog,
1731           package/pkgsrc/Makefile:
1732         bump
1733
1734 2019-06-10  Thomas E. Dickey  <dickey@invisible-island.net>
1735
1736         * config.guess: 2019-06-10
1737
1738 2019-05-22  Thomas E. Dickey  <dickey@invisible-island.net>
1739
1740         * config.sub: 2019-05-22
1741
1742 2018-06-09  Thomas E. Dickey  <dickey@invisible-island.net>
1743
1744         * yacc.1: minor typographical fixes
1745
1746         * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c,
1747           test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c,
1748           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
1749           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
1750           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
1751           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
1752           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
1753           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
1754           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
1755           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c,
1756           test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c,
1757           test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c,
1758           test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c,
1759           test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c,
1760           test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c,
1761           test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c,
1762           test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c,
1763           test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c,
1764           btyaccpar.c:
1765         regen
1766
1767         * VERSION, package/byacc.spec, package/debian/changelog,
1768           package/pkgsrc/Makefile:
1769         bump
1770
1771 2018-06-09  Tom.Shields
1772
1773         * btyaccpar.skel:
1774         add casts to fix g++ (clang++) compile errors in the backtracking skeleton
1775         due to assignment of â€˜void *’ to another pointer type.
1776
1777 2018-05-25  Thomas E. Dickey  <dickey@invisible-island.net>
1778
1779         * test/run_make.sh:
1780         check if this is bison 3+ before adding options to suppress warnings
1781
1782         * package/byacc.spec: build-fix for Mageia 6
1783
1784         * package/byacc.spec: add btyacc package
1785
1786         * VERSION, package/byacc.spec, package/debian/changelog,
1787           package/pkgsrc/Makefile:
1788         bump
1789
1790         * package/debian/control: add a package for btyacc
1791
1792         * package/debian/rules: generate a package for btyacc
1793
1794 2018-05-24  Thomas E. Dickey  <dickey@invisible-island.net>
1795
1796         * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
1797           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
1798           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
1799           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
1800           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
1801           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/code_error.code.c,
1802           test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c,
1803           test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c,
1804           test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c,
1805           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c,
1806           test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c,
1807           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
1808           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
1809           test/btyacc/ok_syntax1.tab.c, btyaccpar.c,
1810           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
1811           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
1812           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
1813           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
1814           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
1815           test/btyacc/rename_debug.c:
1816         regen
1817
1818         * btyaccpar.skel: fix typo
1819
1820 2018-05-21  Thomas E. Dickey  <dickey@invisible-island.net>
1821
1822         * test/run_make.sh:
1823         ignore case for "%" directives to skip with old-yacc, and add %token-table
1824         to the list
1825
1826         * btyaccpar.c: regen
1827
1828 2018-05-21  Christos.Zoulas
1829
1830         * btyaccpar.skel:
1831         improve compatibility with bison by changing the YYLLOC_DEFAULT macro to use
1832         YYRHSLOC() macro, and adjusting the array indices of yyerror_loc_range[] for
1833         consistency.
1834
1835 2018-05-10  Thomas E. Dickey  <dickey@invisible-island.net>
1836
1837         * output.c:
1838         add a fallback definition for YYDEBUG to the -i externs file.
1839
1840         * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
1841
1842         * VERSION, package/byacc.spec, package/debian/changelog,
1843           package/pkgsrc/Makefile:
1844         bump
1845
1846 2018-05-09  Thomas E. Dickey  <dickey@invisible-island.net>
1847
1848         * configure: regen
1849
1850         * aclocal.m4: resync with my-autoconf
1851
1852         * VERSION, package/byacc.spec, package/debian/changelog,
1853           package/pkgsrc/Makefile:
1854         bump
1855
1856         * test/btyacc/rename_debug.i, btyaccpar.c,
1857           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
1858           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
1859           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
1860           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
1861           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
1862           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
1863           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
1864           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
1865           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c,
1866           test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c,
1867           test/btyacc/expr.oxout.tab.c, test/btyacc/grammar.tab.c,
1868           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
1869           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
1870           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
1871           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
1872           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
1873           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
1874           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
1875           test/btyacc/varsyntax_calc1.tab.c:
1876         regen
1877
1878         * btyaccpar.skel: apply Guy Harris' changes here as well
1879
1880         * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
1881
1882         * output.c: correct/improve fallback prototype for yylex()
1883
1884         * test/btyacc/rename_debug.i, test/yacc/rename_debug.i: regen
1885
1886 2018-05-08  Thomas E. Dickey  <dickey@invisible-island.net>
1887
1888         * test/btyacc/grammar.tab.c, test/yacc/grammar.tab.c: regen
1889
1890         * test/grammar.y:
1891         quiet some warnings from gcc 7 when doing "make check_make"
1892
1893         * package/debian/watch, package/pkgsrc/Makefile: update ftp-url
1894
1895         * test/btyacc/ok_syntax1.tab.h, test/btyacc/btyacc_calc1.tab.h: regen
1896
1897         * output.c:
1898         provide yylex() declaration for simple case (request by "Mutiny")
1899
1900         * test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
1901           test/yacc/expr.oxout.tab.c, test/yacc/grammar.tab.c,
1902           test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h,
1903           test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c,
1904           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
1905           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
1906           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
1907           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
1908           test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c,
1909           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
1910           test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
1911           test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c,
1912           test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c,
1913           test/yacc/err_syntax18.tab.c, test/yacc/rename_debug.c,
1914           yaccpar.c:
1915         regen
1916
1917         * VERSION, package/byacc.spec, package/debian/changelog,
1918           package/debian/copyright, package/mingw-byacc.spec,
1919           package/pkgsrc/Makefile:
1920         bump
1921
1922 2018-05-06  Guy.Harris
1923
1924         * yaccpar.skel: two fixes:
1925         1) define yydebug only if YYDEBUG is defined and
1926         2) make yynerrs a parser-local variable if the parser is reentrant.
1927
1928 2018-02-24  Guy.Harris
1929
1930         * output.c: do not emit "extern YYSTYPE yylval;" for pure parsers
1931
1932 2018-02-05  Thomas E. Dickey  <dickey@invisible-island.net>
1933
1934         * config.sub: 2018-01-15
1935
1936         * config.guess: 2018-01-26
1937
1938 2017-12-04  erik.b.andersen
1939
1940         * main.c: A proper path for temporary files is needed by byacc under
1941         Windows commandline, otherwise there's a risk of empty files.
1942         The TEMP environment variable is always defined in Windows.
1943
1944         * defs.h: The noreturn attribute needs to be specified before function
1945         to be portable among compilers (gcc, clang, msvc).
1946
1947 2017-12-04  Thomas E. Dickey  <dickey@invisible-island.net>
1948
1949         * reader.c: adapted fix by Erik B:
1950          a) increase the length of name[] to account for a trailing null
1951          b) note that calling syntax_error() from get_number() does not return
1952
1953 2017-09-14  Tom.Shields
1954
1955         * yacc.1: fix typo
1956
1957 2017-07-09  Thomas E. Dickey  <dickey@invisible-island.net>
1958
1959         * package/byacc.spec, package/mingw-byacc.spec:
1960         use predefined "configure"
1961
1962         * reader.c: remove unused assignment
1963
1964         * package/debian/rules: use dpkg-buildflags
1965
1966         * configure: regen
1967
1968         * aclocal.m4: resync with my-autoconf
1969
1970         * reader.c, output.c, defs.h:
1971         add/use IS_NAME1() and IS_NAME2() to reduce clutter
1972
1973         * reader.c, output.c, defs.h:
1974         guard against sign-extension in ctype-macros
1975
1976         * VERSION, package/byacc.spec, package/debian/changelog,
1977           package/pkgsrc/Makefile:
1978         bump
1979
1980         * reader.c: check for numeric overflow in get_number()
1981
1982         * reader.c:
1983         correct limit-checks for input filename and line-number, in case no valid
1984         filename and/or number was found.
1985
1986 2017-04-30  Thomas E. Dickey  <dickey@invisible-island.net>
1987
1988         * test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc2-s.tab.c,
1989           test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c,
1990           test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c,
1991           test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c,
1992           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c,
1993           test/btyacc/error.tab.c, test/btyacc/expr.oxout.tab.c,
1994           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
1995           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
1996           test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c,
1997           test/btyacc/pure_error.tab.c, test/btyacc/quote_calc.tab.c,
1998           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
1999           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
2000           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
2001           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
2002           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
2003           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
2004           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
2005           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
2006           test/btyacc/err_syntax12.tab.c, test/btyacc/rename_debug.c,
2007           btyaccpar.skel:
2008         fix another uninitialized variable warning in "make check_make" for btyacc
2009
2010         * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
2011           test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_calc1.tab.c,
2012           test/btyacc/calc3.tab.c, btyaccpar.c, btyaccpar.skel,
2013           test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c,
2014           test/yacc/pure_error.tab.c, test/yacc/calc3.tab.c, yaccpar.c, defs.h,
2015           output.c:
2016         fix some compiler warnings for "make check_make" by adding section init_vars,
2017         which initializes the body_vars for pure-parser configuration.
2018
2019 2017-04-30  Tom.Shields
2020
2021         * output.c:
2022         use YY_NO_LEAKS set in configure --with-no-leaks, in the generated code
2023
2024 2017-04-30  Julien.Ramseier
2025
2026         * main.c, test/yacc/big_l.output:
2027         fix typo in unsupported-flag warning message
2028
2029 2017-04-30  Thomas E. Dickey  <dickey@invisible-island.net>
2030
2031         * VERSION, package/byacc.spec, package/debian/changelog,
2032           package/pkgsrc/Makefile:
2033         bump
2034
2035 2017-04-29  Thomas E. Dickey  <dickey@invisible-island.net>
2036
2037         * config.sub: 2017-04-02
2038
2039 2017-03-18  Thomas E. Dickey  <dickey@invisible-island.net>
2040
2041         * config.sub: 2017-02-07
2042
2043         * config.guess: 2017-03-05
2044
2045 2017-02-01  Thomas E. Dickey  <dickey@invisible-island.net>
2046
2047         * test/btyacc/expr.oxout.error, test/btyacc/expr.oxout.output,
2048           test/btyacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.h,
2049           test/yacc/expr.oxout.error, test/yacc/expr.oxout.output,
2050           test/yacc/expr.oxout.tab.h:
2051         RCS_BASE
2052
2053         * package/debian/copyright: update copyright
2054
2055         * reader.c, defs.h, main.c:
2056         avoid using regex.h since some low-end platforms do not have this
2057
2058         * test/expr.oxout.y: RCS_BASE
2059
2060         * configure: regen
2061
2062         * aclocal.m4: quiet a strict gcc warning in CF_MKSTEMP
2063
2064 2017-02-01  Tom.Shields
2065
2066         * main.c, reader.c, defs.h:
2067         process #line directives, like bison and flex
2068
2069 2017-02-01  Thomas E. Dickey  <dickey@invisible-island.net>
2070
2071         * VERSION, package/byacc.spec, package/debian/changelog,
2072           package/pkgsrc/Makefile:
2073         bump
2074
2075 2016-12-31  Thomas E. Dickey  <dickey@invisible-island.net>
2076
2077         * config.guess, config.sub: 2017-01-01
2078
2079 2016-12-02  Thomas E. Dickey  <dickey@invisible-island.net>
2080
2081         * test/btyacc/quote_calc4-s.tab.c, test/btyacc/varsyntax_calc1.tab.c,
2082           test/btyacc/error.tab.c, test/btyacc/grammar.tab.c,
2083           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
2084           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
2085           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
2086           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
2087           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
2088           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
2089           test/btyacc/quote_calc4.tab.c, test/btyacc/calc.tab.c,
2090           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
2091           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
2092           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
2093           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
2094           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
2095           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c,
2096           test/btyacc/err_syntax20.tab.c, test/btyacc/rename_debug.c,
2097           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
2098           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
2099           btyaccpar.c:
2100         regen
2101
2102         * btyaccpar.skel: changes from NetBSD
2103         + use YYINT rather than short in btyaccpar.skel
2104           (some of this had already been done by Tom Shields)
2105         + remove some casts of malloc/realloc
2106
2107         * yaccpar.c, yaccpar.skel, output.c: changes from NetBSD
2108         - Add some more bison stuff to make the mesa/gallium parser work:
2109             %initial-action (add missing source struct member in location)
2110             %debug (unimplemented)
2111             %error-verbose (unimplemented)
2112
2113         This changes some existing code:
2114         + yylloc is now a pointer, so
2115         + the first parameter to YYERROR_DECL() is a pointer
2116         + struct YYLTYPE now has a "source" field
2117
2118         * test/btyacc/btyacc_demo.tab.h, test/btyacc/code_calc.tab.c,
2119           test/btyacc/err_inherit4.tab.h:
2120         regen
2121
2122         * btyaccpar.c, btyaccpar.skel, reader.c: changes from NetBSD
2123         - Add some more bison stuff to make the mesa/gallium parser work:
2124             %initial-action (add missing source struct member in location)
2125             %debug (unimplemented)
2126             %error-verbose (unimplemented)
2127
2128         This changes some existing code:
2129         + yylloc is now a pointer, so
2130         + the first parameter to YYERROR_DECL() is a pointer
2131         + struct YYLTYPE now has a "source" field
2132
2133         * reader.c:
2134         fix from NetBSD: correct off-by-one when adding a null in copy_param()
2135
2136         * reader.c: adapted from NetBSD
2137         - Convert *most* error fingerprints to:
2138             -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr)
2139             +unterminated_arglist(const struct ainfo *a)
2140         - Cast new <ctype.h> args to unsigned char
2141
2142         * defs.h: changes from NetBSD
2143         - Add some more bison stuff to make the mesa/gallium parser work:
2144             %initial-action (add missing source struct member in location)
2145             %debug (unimplemented)
2146             %error-verbose (unimplemented)
2147
2148         This changes some existing code:
2149         + yylloc is now a pointer, so
2150         + the first parameter to YYERROR_DECL() is a pointer
2151         + struct YYLTYPE now has a "source" field
2152
2153         * defs.h: adapted from NetBSD
2154         - Convert *most* error fingerprints to:
2155             -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr)
2156             +unterminated_arglist(const struct ainfo *a)
2157         - Cast new <ctype.h> args to unsigned char
2158
2159         * main.c: changes from NetBSD
2160         - Add some more bison stuff to make the mesa/gallium parser work:
2161             %initial-action (add missing source struct member in location)
2162             %debug (unimplemented)
2163             %error-verbose (unimplemented)
2164
2165         This changes some existing code:
2166         + yylloc is now a pointer, so
2167         + the first parameter to YYERROR_DECL() is a pointer
2168         + struct YYLTYPE now has a "source" field
2169
2170         * error.c: adapted from NetBSD
2171         - Convert *most* error fingerprints to:
2172             -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr)
2173             +unterminated_arglist(const struct ainfo *a)
2174         - Cast new <ctype.h> args to unsigned char
2175
2176         * mstring.c: adapted change from NetBSD to add casts for ctype macros
2177
2178         * test/btyacc/btyacc_demo.tab.h, test/btyacc/err_inherit4.tab.h: regen
2179
2180         * output.c: reorder to eliminate a forward-reference
2181
2182 2016-12-02  Tom.Shields
2183
2184         * output.c:
2185         modify output to enable compilation of a lexer generated by flex (using
2186         "%option bison-bridge" and "%option bison-locations") to be used with a parser
2187         generated by b(t)yacc (using directives "%locations" and "%pure-parser").
2188
2189 2016-12-02  Thomas E. Dickey  <dickey@invisible-island.net>
2190
2191         * configure: regen
2192
2193         * aclocal.m4: Improved autoconf macros
2194         CF_CC_ENV_FLAGS
2195         + improve split between compiler and options, prompted by report where user
2196           had "ccache" before the compiler
2197         + leave non-preprocessor options in "$CC" (but still copy them to "$CFLAGS"
2198           since that's where they should be)
2199         CF_GNU_SOURCE,v
2200         + recent glibc (Debian 2.23-4 for example) has misordered ifdef/checks for new
2201           symbol _DEFAULT_SOURCE, producing warning messages when only _GNU_SOURCE is
2202           defined.  Add a followup check to define _DEFAULT_SOURCE.
2203         CF_XOPEN_SOURCE
2204         + add "uclinux" to list of Linux's (patch by Yann E.  Morin)
2205         + use _GNU_SOURCE for cygwin headers
2206         + build-fixes for OS/2
2207
2208         * VERSION, package/byacc.spec, package/debian/changelog,
2209           package/pkgsrc/Makefile:
2210         bump
2211
2212 2016-11-20  Thomas E. Dickey  <dickey@invisible-island.net>
2213
2214         * config.sub: 2016-11-19
2215
2216         * config.guess: 2016-10-02
2217
2218 2016-06-06  Thomas E. Dickey  <dickey@invisible-island.net>
2219
2220         * configure: regen
2221
2222         * aclocal.m4: improved autoconf macros:
2223         CF_CC_ENV_FLAGS - don't limit the check to -I, -U and -D options, since the
2224                 added options can include various compiler options before and after
2225                 preprocessor options.
2226         CF_PROG_LINT - add cpplint to programs to use; drop ad hoc tdlint and alint.
2227
2228         * VERSION, package/byacc.spec, package/debian/changelog,
2229           package/pkgsrc/Makefile:
2230         bump
2231
2232         * lalr.c: indented
2233
2234         * btyaccpar.c: regen
2235
2236         * skel2c:
2237         adjust whitespace so that generated skeleton will follow the same format
2238         as other code
2239
2240         * mkpar.c, verbose.c, lr0.c, reader.c, error.c, output.c: indented
2241
2242         * reader.c: fix two compiler warnings
2243
2244         * test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
2245           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
2246           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
2247           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
2248           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
2249           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
2250           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax12.tab.c,
2251           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c,
2252           test/btyacc/error.tab.c, test/btyacc/grammar.tab.c,
2253           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
2254           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
2255           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
2256           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
2257           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
2258           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
2259           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
2260           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
2261           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
2262           test/btyacc/rename_debug.c, btyaccpar.c,
2263           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
2264           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
2265           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
2266           test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax20.tab.c,
2267           test/yacc/error.tab.c, test/yacc/grammar.tab.c,
2268           test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c,
2269           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
2270           test/yacc/quote_calc.tab.c, test/yacc/calc.tab.c,
2271           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
2272           test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
2273           test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c,
2274           test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c,
2275           yaccpar.c:
2276         regen
2277
2278 2016-06-06  Tom.Shields
2279
2280         * btyaccpar.skel, yaccpar.skel:
2281         small fix for an edge case of initialized data in Chris Dodd's btyacc changes:
2282         "Avoid crash when input pops up an Action error at the first token"
2283
2284 2016-06-01  Thomas E. Dickey  <dickey@invisible-island.net>
2285
2286         * test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc3-s.tab.c,
2287           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
2288           test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c,
2289           test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c,
2290           test/yacc/err_syntax24.error, test/yacc/error.tab.c,
2291           test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c,
2292           test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c,
2293           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
2294           test/yacc/quote_calc2.tab.c, test/yacc/calc.tab.c,
2295           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
2296           test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c,
2297           test/yacc/code_calc.tab.h, test/yacc/code_error.code.c,
2298           test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c,
2299           test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c,
2300           test/yacc/rename_debug.c, yaccpar.c, test/btyacc/quote_calc-s.tab.c,
2301           test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c,
2302           test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c,
2303           test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c,
2304           test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c,
2305           test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c,
2306           test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c,
2307           test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c,
2308           test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c,
2309           test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c,
2310           test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c,
2311           test/btyacc/err_syntax24.error, test/btyacc/err_syntax24.tab.c,
2312           test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c,
2313           test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c,
2314           test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c,
2315           test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c,
2316           test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c,
2317           test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c,
2318           test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c,
2319           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
2320           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.output,
2321           test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c,
2322           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
2323           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.error,
2324           test/btyacc/btyacc_demo.output, test/btyacc/btyacc_demo.tab.c,
2325           test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
2326           test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c,
2327           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
2328           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
2329           test/btyacc/code_calc.tab.c, test/btyacc/code_calc.tab.h,
2330           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
2331           test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c,
2332           test/btyacc/err_inherit3.output, test/btyacc/err_inherit3.tab.c,
2333           test/btyacc/err_inherit4.output, test/btyacc/err_inherit4.tab.c,
2334           test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c,
2335           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
2336           btyaccpar.c:
2337         regen
2338
2339 2016-06-01  Tom.Shields
2340
2341         * btyaccpar.skel, defs.h, error.c, output.c, reader.c, test/code_calc.y,
2342           yaccpar.skel:
2343         fixes for issues in btyacc (report by Francis Andre):
2344
2345         + correction to the placement of the #line directive for a %union specification
2346
2347         + recovery of a set of casts originally added into btyaccpar.c rather than into
2348           btyaccpar.skel, and so are lost whenever building from scratch
2349
2350         + Chris Dodd's btyacc improved handling of inherited attributes to eliminate
2351           implicit empty copy rules that are not necessary, and thereby avoiding the
2352           introduction of extra parsing ambiguity
2353
2354         + Chris Dodd's added support for @-N syntax to reference inherited position
2355           information
2356
2357         + correction to bad interaction between %token-table and YYDEBUG, where YYDEBUG
2358           was required to be defined in order to compile the generated code
2359
2360         + correction to yyname[] access in code included with YYDEBUG defined for
2361           single character symbols not recognized (e.g., input containing '&' character
2362           where grammar doesn't define that as a symbol) - map to existing
2363           "illegal-symbol" entry in byname[]
2364
2365         + fixes to test/run_make.sh:  skip test-err_* files; in the bison test phase
2366           skip additional files that contain features not supported by bison and
2367           inhibit new bison warning messages
2368
2369         + minor changes to btyaccpar.skel & yaccpar.skel so they are more similar in
2370           their commonality; makes it easier to maintain the pair of files using
2371           vimdiff
2372
2373         + changes to a couple of test cases for coverage of #3, #4 and #5 above
2374
2375 2016-06-01  Thomas E. Dickey  <dickey@invisible-island.net>
2376
2377         * VERSION, package/byacc.spec, package/debian/changelog,
2378           package/pkgsrc/Makefile:
2379         bump
2380
2381 2016-03-24  Thomas E. Dickey  <dickey@invisible-island.net>
2382
2383         * reader.c: unused variable
2384
2385         * package/pkgsrc/Makefile, package/debian/copyright: bump
2386
2387 2016-03-24  Jung-uk.Kim
2388
2389         * main.c:
2390         correct logic for finding output suffix in the "-o" option, which matched
2391         the first occurrence of ".c" in the name in 2005-08-13 changes rather than
2392         at the end of the filename (patch by Jung-uk Kim)
2393
2394 2016-03-24  Thomas E. Dickey  <dickey@invisible-island.net>
2395
2396         * aclocal.m4:
2397         update CF_WITH_MAN2HTML to use configured shell rather than /bin/sh
2398
2399         * VERSION, package/byacc.spec, package/debian/changelog,
2400           package/pkgsrc/Makefile:
2401         bump
2402
2403 2016-01-25  Thomas E. Dickey  <dickey@invisible-island.net>
2404
2405         * config.guess, config.sub: 2016-01-01
2406
2407 2015-07-10  Thomas E. Dickey  <dickey@invisible-island.net>
2408
2409         * lr0.c: fix a duplicate-free in the leak-checking
2410
2411         * VERSION, package/byacc.spec, package/debian/changelog,
2412           package/pkgsrc/Makefile:
2413         bump
2414
2415         * reader.c:
2416         make cache-size clearer (prompted by discussion with Pedro Giffuni,
2417         Oliver Pinter)
2418
2419         * main.c:
2420         make relationship with format/size clearer (prompted by discussion
2421         with Pedro Giffuni, Oliver Pinter)
2422
2423 2015-07-05  Thomas E. Dickey  <dickey@invisible-island.net>
2424
2425         * configure: regen
2426
2427         * package/pkgsrc/Makefile, package/mingw-byacc.spec,
2428           package/debian/copyright, package/debian/changelog,
2429           package/byacc.spec, VERSION:
2430         bump
2431
2432         * aclocal.m4: resync with my-autoconf
2433         add configure option --with-man2html
2434
2435         * makefile.in: add configure options --with-man2html
2436
2437         * configure.in: add configure option --with-man2html
2438
2439 2015-05-02  Thomas E. Dickey  <dickey@invisible-island.net>
2440
2441         * config.guess: 2015-03-04
2442
2443         * config.sub: 2015-03-08
2444
2445 2014-11-28  Thomas E. Dickey  <dickey@invisible-island.net>
2446
2447         * lr0.c: coverity #39181: memory leak
2448
2449         * VERSION, package/byacc.spec, package/debian/changelog,
2450           package/pkgsrc/Makefile:
2451         bump
2452
2453 2014-11-13  Jouk.Jansen
2454
2455         * descrip.mms:
2456         I sucessfully compiled byacc on my OpenVMS systems. However, I had to update
2457         the descrip.mms to include some extra c-source files and some dependenxcies
2458         so that it also works when the distribution is located on an ODS5 disk.
2459
2460         The patched descrip.mms file can be found at:
2461           http://nchrem.tnw.tudelft.nl/openvms/software2.html#BYACC
2462
2463         Please feel free to insert the file in your distribution.
2464
2465                      Regards
2466                          Jouk.
2467
2468 2014-10-06  Thomas E. Dickey  <dickey@invisible-island.net>
2469
2470         * package/debian/source/format:
2471         change to native format to work around regression in Debian packaging.
2472
2473         * VERSION, package/byacc.spec, package/debian/changelog,
2474           package/pkgsrc/Makefile:
2475         bump
2476
2477         * configure: regen
2478
2479         * main.c:
2480         correct parameter for umask - for very old mkstemp's - and use type mode_t
2481         to quiet compiler warning
2482
2483         * configure.in: add configure check for mode_t
2484
2485         * reader.c:
2486         better fix for get_line, by ensuring there is enough space to null-terminate
2487         its result (prompted by discussion with Craig Rodrigues).
2488
2489 2014-10-05  Thomas E. Dickey  <dickey@invisible-island.net>
2490
2491         * main.c:
2492         make change to umask before calling mkstemp, as suggested in Coverity #56902
2493
2494         * reader.c:
2495         adjust logic in copy_action to avoid potential null-pointer dereference
2496         (Coverity #56901)
2497
2498         * reader.c:
2499         adjust logic to avoid potential null-pointer dereference in compile_args
2500         (Coverity #63407)
2501
2502         * reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408)
2503
2504         * yacc.1: document changes made with respect to %parse-param
2505
2506         * output.c:
2507         add parameters from %parse-param to destructor.  The order of the parameters
2508         is intentionally inconsistent with yyparse/yyerror, for "compatibility" with
2509         bison.
2510
2511         * test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c,
2512           test/btyacc/btyacc_destroy3.tab.c:
2513         regen
2514
2515         * output.c:
2516         use puts_param_types/puts_param_names to output lex_param data.
2517
2518         * test/btyacc/ok_syntax1.tab.c, test/btyacc/calc2.tab.c,
2519           test/btyacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c,
2520           test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/btyacc/error.tab.c,
2521           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
2522           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
2523           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
2524           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
2525           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
2526           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
2527           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
2528           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c,
2529           test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c,
2530           test/btyacc/calc1.tab.c, test/btyacc/code_calc.code.c,
2531           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
2532           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
2533           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
2534           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c,
2535           test/btyacc/rename_debug.c:
2536         regen
2537
2538         * btyaccpar.c: add casts, change types to fix strict compiler warnings
2539
2540         * test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax19.tab.c,
2541           test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax21.tab.c,
2542           test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c,
2543           test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c,
2544           test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c,
2545           test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c,
2546           test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c,
2547           test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c,
2548           test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c,
2549           test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c,
2550           test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c,
2551           test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c,
2552           test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c,
2553           test/btyacc/err_syntax16.tab.c:
2554         regen
2555
2556         * output.c: gcc-warning
2557
2558         * test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c: regen
2559
2560         * output.c: fix limit when merging real/workaround tables
2561
2562         * output.c:
2563         for btyacc, it is possible to have no conflicts - but in that case, the
2564         "ctable" was not generated at all, while the skeleton uses the table.
2565         The most straightforward (workaround) is generating a dummy table which
2566         rejects any state.
2567
2568         * test/btyacc_destroy3.y, test/btyacc_destroy2.y, test/btyacc_destroy1.y:
2569         fix "make check_make"
2570
2571         * test/yacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c,
2572           test/yacc/calc2.tab.c, test/btyacc/btyacc_destroy1.tab.c,
2573           test/btyacc/btyacc_destroy2.tab.c:
2574         regen
2575
2576         * reader.c:
2577         trim blanks from interim value in copy_param() to handle special case when
2578         a space precedes a comma.
2579
2580         * output.c:
2581         use two new functions, puts_param_types and puts_param_names, to improve
2582         format of the parse_param list (by trimming space after "*") as well as
2583         correcting the output of the comma-separated names (only the last name
2584         was output).
2585
2586         * test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_destroy3.tab.c,
2587           test/btyacc/calc3.tab.c:
2588         regen
2589
2590         * reader.c:
2591         modify copy_param() to handle resulting comma-separated list.  Before, it
2592         only expected a single parameter.
2593
2594 2014-10-04  Thomas E. Dickey  <dickey@invisible-island.net>
2595
2596         * reader.c: split-out save_param() from copy_param()
2597
2598         * reader.c: trim_blanks() did not always convert spaces - fix.
2599
2600         * reader.c: fix some minor regressions with error-reporting
2601
2602         * aclocal.m4: update CF_XOPEN_SOURCE for Unixware change from lynx
2603
2604         * VERSION, package/byacc.spec, package/debian/changelog,
2605           package/pkgsrc/Makefile:
2606         bump
2607
2608         * reader.c:
2609         modify copy_param() to accept multiple parameters, each in curly braces like
2610         recent bison, as well as honoring bison's undocumented feature to accept the
2611         parameters as a comma-separated list.
2612
2613         * test/btyacc/btyacc_destroy3.tab.c, test/btyacc/btyacc_destroy1.tab.c,
2614           test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.error,
2615           test/btyacc/btyacc_destroy3.output, test/btyacc/btyacc_destroy3.tab.h,
2616           test/btyacc/btyacc_destroy2.error, test/btyacc/btyacc_destroy2.output,
2617           test/btyacc/btyacc_destroy2.tab.h:
2618         RCS_BASE
2619
2620 2014-10-03  Thomas E. Dickey  <dickey@invisible-island.net>
2621
2622         * test/btyacc/btyacc_demo2.error, test/btyacc/btyacc_demo2.output,
2623           test/btyacc/btyacc_demo2.tab.c, test/btyacc/btyacc_demo2.tab.h,
2624           test/btyacc/btyacc_destroy1.error, test/btyacc/btyacc_destroy1.output,
2625           test/btyacc/btyacc_destroy1.tab.h, test/btyacc_destroy3.y,
2626           test/btyacc_destroy2.y:
2627         RCS_BASE
2628
2629 2014-10-02  Thomas E. Dickey  <dickey@invisible-island.net>
2630
2631         * main.c, reader.c, defs.h:
2632         use calloc in get_line() when allocating line to ensure it is fully initialized,
2633         fixes a later uninitialized value in copy_param() (FreeBSD #193499).
2634
2635 2014-09-17  Thomas E. Dickey  <dickey@invisible-island.net>
2636
2637         * closure.c, lalr.c, output.c, defs.h:
2638         rephrase odd addressing to fix Coverity #48848, #38950, #38860, not actually
2639         a bug.
2640
2641 2014-09-01  Thomas E. Dickey  <dickey@invisible-island.net>
2642
2643         * config.sub: update to 2014-07-28
2644
2645 2014-07-27  Thomas E. Dickey  <dickey@invisible-island.net>
2646
2647         * configure: regen
2648
2649         * aclocal.m4: modified to support port to Minix3.2
2650
2651         * package/pkgsrc/Makefile, VERSION, package/byacc.spec,
2652           package/mingw-byacc.spec:
2653         bump
2654
2655 2014-07-15  Thomas E. Dickey  <dickey@invisible-island.net>
2656
2657         * aclocal.m4: resync with my-autoconf (no change to configure script)
2658
2659         * VERSION, package/byacc.spec, package/debian/changelog,
2660           package/pkgsrc/Makefile:
2661         bump
2662
2663         * test/run_test.sh:
2664         make top-level "make check" work again, by adding another step to filtering
2665         the test results.
2666
2667 2014-07-14  Thomas E. Dickey  <dickey@invisible-island.net>
2668
2669         * test/run_test.sh: changes from Garrett Cooper's patch:
2670                 a) ensure that the script returns an error-code if there are differences
2671                 b) escape "." character in left side of sed expression for $YACC
2672                 c) ensure that $ifBTYACC has a value
2673
2674         * test/btyacc/big_b.output, test/btyacc/big_l.output,
2675           test/btyacc/help.output, test/btyacc/no_b_opt.output,
2676           test/btyacc/no_output2.output, test/btyacc/no_p_opt.output,
2677           test/btyacc/nostdin.output:
2678         regen (reminder by Garrett Cooper)
2679
2680 2014-07-14  Garrett.Cooper
2681
2682         * test/btyacc/err_inherit1.error, test/btyacc/err_inherit2.error,
2683           test/btyacc/err_inherit3.error, test/btyacc/err_inherit4.error,
2684           test/btyacc/err_inherit5.error, test/btyacc/err_syntax1.error,
2685           test/btyacc/err_syntax10.error, test/btyacc/err_syntax11.error,
2686           test/btyacc/err_syntax12.error, test/btyacc/err_syntax13.error,
2687           test/btyacc/err_syntax14.error, test/btyacc/err_syntax15.error,
2688           test/btyacc/err_syntax16.error, test/btyacc/err_syntax17.error,
2689           test/btyacc/err_syntax18.error, test/btyacc/err_syntax19.error,
2690           test/btyacc/err_syntax2.error, test/btyacc/err_syntax21.error,
2691           test/btyacc/err_syntax22.error, test/btyacc/err_syntax23.error,
2692           test/btyacc/err_syntax24.error, test/btyacc/err_syntax25.error,
2693           test/btyacc/err_syntax26.error, test/btyacc/err_syntax27.error,
2694           test/btyacc/err_syntax3.error, test/btyacc/err_syntax4.error,
2695           test/btyacc/err_syntax5.error, test/btyacc/err_syntax6.error,
2696           test/btyacc/err_syntax7.error, test/btyacc/err_syntax7a.error,
2697           test/btyacc/err_syntax7b.error, test/btyacc/err_syntax8.error,
2698           test/btyacc/err_syntax8a.error, test/btyacc/err_syntax9.error,
2699           test/yacc/err_syntax1.error, test/yacc/err_syntax10.error,
2700           test/yacc/err_syntax11.error, test/yacc/err_syntax12.error,
2701           test/yacc/err_syntax13.error, test/yacc/err_syntax14.error,
2702           test/yacc/err_syntax15.error, test/yacc/err_syntax16.error,
2703           test/yacc/err_syntax17.error, test/yacc/err_syntax18.error,
2704           test/yacc/err_syntax19.error, test/yacc/err_syntax2.error,
2705           test/yacc/err_syntax21.error, test/yacc/err_syntax22.error,
2706           test/yacc/err_syntax23.error, test/yacc/err_syntax24.error,
2707           test/yacc/err_syntax25.error, test/yacc/err_syntax26.error,
2708           test/yacc/err_syntax27.error, test/yacc/err_syntax3.error,
2709           test/yacc/err_syntax4.error, test/yacc/err_syntax5.error,
2710           test/yacc/err_syntax6.error, test/yacc/err_syntax7.error,
2711           test/yacc/err_syntax7a.error, test/yacc/err_syntax7b.error,
2712           test/yacc/err_syntax8.error, test/yacc/err_syntax8a.error,
2713           test/yacc/err_syntax9.error:
2714         regen
2715
2716 2014-05-27  Tom.Shields
2717
2718         * main.c: remove obsolete -D option from usage message
2719
2720 2014-05-27  Thomas E. Dickey  <dickey@invisible-island.net>
2721
2722         * VERSION, package/byacc.spec, package/debian/changelog,
2723           test/yacc/big_b.output, test/yacc/big_l.output, test/yacc/help.output,
2724           test/yacc/no_b_opt.output, test/yacc/no_output2.output,
2725           test/yacc/nostdin.output:
2726         bump
2727
2728 2014-04-22  Thomas E. Dickey  <dickey@invisible-island.net>
2729
2730         * mstring.c:
2731         use vsnprintf() to ensure that msprintf's buffer is large enough.
2732
2733         * main.c, defs.h: add mstring_leaks()
2734
2735         * configure: regen
2736
2737         * output.c: fix a complementary warning
2738
2739         * mstring.c: introduce vsnprintf
2740
2741         * configure.in, config_h.in: add check for vsnprintf
2742
2743         * output.c: quiet a type-conversion warning
2744
2745         * mstring.c: fix a potential memory leak on ENOMEM
2746         quiet a couple of type-conversion warnings
2747
2748         * defs.h: add/use GCC_PRINTFLIKE for msprintf()
2749
2750 2014-04-22  Tom.Shields
2751
2752         * README.BTYACC:
2753         drop "NOTES-btyacc-Changes" and "NOTES-btyacc-Disposition", merging relevant
2754         content into README.BTYACC
2755
2756 2014-04-22  Thomas E. Dickey  <dickey@invisible-island.net>
2757
2758         * package/pkgsrc/Makefile, VERSION, package/byacc.spec,
2759           package/mingw-byacc.spec:
2760         bump
2761
2762 2014-04-19  Thomas E. Dickey  <dickey@invisible-island.net>
2763
2764         * config.sub: 2014-04-03
2765
2766         * config.guess: 2014-03-23
2767
2768 2014-04-09  Rick.Spates
2769
2770         * main.c, defs.h: patch to allow DEBUG build with WIN32 system
2771
2772 2014-04-09  Thomas E. Dickey  <dickey@invisible-island.net>
2773
2774         * output.c, reader.c: gcc warnings
2775
2776         * reader.c: fix const-cast warnings
2777
2778         * test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
2779           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc4-s.tab.c,
2780           test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c,
2781           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
2782           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
2783           test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c,
2784           test/btyacc/pure_error.tab.c, test/btyacc/quote_calc2-s.tab.c,
2785           test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3.tab.c,
2786           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c,
2787           test/btyacc/code_error.tab.c, test/btyacc/empty.tab.c,
2788           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
2789           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
2790           test/btyacc/err_syntax12.tab.c, test/btyacc/error.tab.c,
2791           test/btyacc/rename_debug.c, test/btyacc/calc.tab.c,
2792           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
2793           output.c:
2794         fix a few clang --analyze warnings; one was a case where output_ctable emitted
2795         an empty table (which should be an error).
2796
2797         * reader.c: appease clang --analyze
2798
2799         * defs.h: mark two functions as no-return.
2800
2801         * package/debian/changelog: reason for release
2802
2803         * VERSION, package/byacc.spec, package/debian/changelog,
2804           package/pkgsrc/Makefile:
2805         bump
2806
2807         * makefile.in: use $LINT_OPTS from environment via configure script
2808
2809         * test/btyacc/ok_syntax1.output, test/btyacc/ok_syntax1.tab.c,
2810           test/yacc/ok_syntax1.tab.c, test/ok_syntax1.y,
2811           test/yacc/ok_syntax1.output:
2812         tweaks to make generated files from ok_syntax1.y compile with check_make rule
2813
2814         * test/btyacc/rename_debug.c, test/btyacc/rename_debug.error,
2815           test/btyacc/rename_debug.h, test/btyacc/rename_debug.i,
2816           test/yacc/rename_debug.c:
2817         reference output for testing
2818
2819         * test/run_test.sh:
2820         retain the renaming done for code_debug.y so that check_make will work.
2821
2822         * test/yacc/rename_debug.error, test/yacc/rename_debug.h,
2823           test/yacc/rename_debug.output:
2824         reference output for testing
2825
2826         * test/btyacc/ok_syntax1.error: RCS_BASE
2827
2828         * test/yacc/quote_calc4-s.tab.c, test/yacc/varsyntax_calc1.tab.c,
2829           test/yacc/code_error.code.c, test/yacc/empty.tab.c,
2830           test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c,
2831           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
2832           test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
2833           test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c,
2834           test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c,
2835           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
2836           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
2837           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
2838           test/yacc/quote_calc4.tab.c, test/yacc/calc.tab.c,
2839           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
2840           yaccpar.c:
2841         regen
2842
2843         * yacc.1:
2844         clarify relationship of btyacc features to default configuration.
2845
2846 2014-04-08  Thomas E. Dickey  <dickey@invisible-island.net>
2847
2848         * test/yacc/ok_syntax1.output, test/yacc/ok_syntax1.tab.c,
2849           test/yacc/ok_syntax1.tab.h, test/btyacc/ok_syntax1.output,
2850           test/btyacc/ok_syntax1.tab.h:
2851         reference output for testing
2852
2853         * test/ok_syntax1.y: RCS_BASE
2854
2855         * test/yacc/ok_syntax1.error: reference output for testing
2856
2857         * test/yacc/big_b.error, test/yacc/big_b.output, test/yacc/big_l.error,
2858           test/yacc/big_l.output, test/btyacc/big_b.error,
2859           test/btyacc/big_b.output, test/btyacc/big_l.error,
2860           test/run_test.sh:
2861         exercise -L/-B options
2862
2863         * test/yacc/code_debug.c, test/btyacc/code_debug.c,
2864           test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c,
2865           test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c,
2866           test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c,
2867           test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c,
2868           test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c,
2869           test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c,
2870           test/yacc/err_syntax26.tab.c, test/yacc/err_syntax27.tab.c,
2871           test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c,
2872           test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c,
2873           test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c,
2874           test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c,
2875           test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c,
2876           test/yacc/error.tab.c, test/yacc/grammar.tab.c,
2877           test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c,
2878           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
2879           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
2880           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
2881           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
2882           test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c,
2883           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
2884           test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
2885           test/yacc/empty.tab.c, test/yacc/err_syntax1.tab.c,
2886           test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c,
2887           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax13.tab.c,
2888           test/yacc/err_syntax14.tab.c, test/btyacc/err_syntax13.tab.c,
2889           test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c,
2890           test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c,
2891           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c,
2892           test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c,
2893           test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c,
2894           test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c,
2895           test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c,
2896           test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c,
2897           test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c,
2898           test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c,
2899           test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c,
2900           test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c,
2901           test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c,
2902           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
2903           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
2904           test/btyacc/pure_error.tab.c, test/btyacc/btyacc_demo.tab.c,
2905           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
2906           test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c,
2907           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
2908           test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c,
2909           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
2910           test/btyacc/err_syntax12.tab.c, test/btyacc/pure_calc.tab.c,
2911           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
2912           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
2913           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
2914           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
2915           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c,
2916           test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c,
2917           test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c,
2918           test/btyacc/code_calc.code.c, test/run_test.sh,
2919           test/yacc/no_b_opt1.output:
2920         use a better renaming of the YYPATCH definition (none of the test-cases rely
2921         upon it, but redefinition in the "make check_make" rule is a problem).
2922
2923         * test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax13.tab.c,
2924           test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax25.tab.c,
2925           test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c,
2926           test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c,
2927           test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c,
2928           test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c,
2929           test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c,
2930           test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c,
2931           test/btyacc/varsyntax_calc1.tab.c:
2932         undid temporary reordering in reader() by Tom Shields to align with byacc outputs
2933
2934         * test/run_test.sh: remove a repeated test-case
2935
2936         * mstring.c: minor reformatting to make coverage analysis simpler
2937
2938 2014-04-07  Thomas E. Dickey  <dickey@invisible-island.net>
2939
2940         * test/run_test.sh: tidy
2941
2942         * test/yacc/help.error, test/yacc/help.output, test/yacc/no_b_opt.error,
2943           test/yacc/no_b_opt.output, test/yacc/no_b_opt1.error,
2944           test/yacc/no_b_opt1.output, test/yacc/no_code_c.error,
2945           test/yacc/no_code_c.output, test/yacc/no_defines.error,
2946           test/yacc/no_defines.output, test/yacc/no_graph.error,
2947           test/yacc/no_graph.output, test/yacc/no_include.error,
2948           test/yacc/no_include.output, test/yacc/no_opts.error,
2949           test/yacc/no_opts.output, test/yacc/no_output.error,
2950           test/yacc/no_output.output, test/yacc/no_output1.error,
2951           test/yacc/no_output1.output, test/yacc/no_output2.error,
2952           test/yacc/no_output2.output, test/yacc/no_p_opt.error,
2953           test/yacc/no_p_opt.output, test/yacc/no_p_opt1.error,
2954           test/yacc/no_p_opt1.output, test/yacc/no_verbose.error,
2955           test/yacc/no_verbose.output, test/yacc/nostdin.error,
2956           test/yacc/test-no_b_opt1.output:
2957         reference output for testing
2958
2959         * test/run_test.sh:
2960         add special checks for flags which depend on writable/existing files
2961
2962         * test/btyacc/no_b_opt1.output, test/btyacc/no_p_opt1.output,
2963           test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output,
2964           test/btyacc/no_b_opt1.error, test/btyacc/no_code_c.output,
2965           test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output,
2966           test/btyacc/no_p_opt1.error, test/btyacc/no_output2.output,
2967           test/btyacc/no_code_c.error, test/btyacc/no_output2.error,
2968           test/btyacc/no_include.error, test/btyacc/no_include.output,
2969           test/btyacc/no_defines.output, test/btyacc/no_defines.error,
2970           test/btyacc/no_verbose.output, test/btyacc/no_graph.output,
2971           test/btyacc/no_graph.error, test/btyacc/no_opts.error,
2972           test/btyacc/no_opts.output, test/btyacc/no_verbose.error,
2973           test/btyacc/nostdin.error, test/btyacc/nostdin.output,
2974           test/btyacc/no_output.error, test/btyacc/no_output.output,
2975           test/btyacc/no_output1.output:
2976         reference output for testing
2977
2978         * main.c:
2979         change CREATE_FILE_NAMES() to use local function rather than inline code,
2980         to simplify coverage analysis.
2981
2982         * test/btyacc/err_syntax27.error, test/btyacc/err_syntax27.output,
2983           test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax27.tab.h,
2984           test/btyacc/help.error, test/btyacc/help.output,
2985           test/yacc/err_syntax27.error, test/yacc/err_syntax27.output,
2986           test/yacc/err_syntax27.tab.h:
2987         reference output for testing
2988
2989         * test/err_syntax27.y: testcase for missing_brace()
2990
2991         * error.c: ifdef'd non-btyacc function
2992
2993         * lr0.c: ifdef'd debug-code
2994
2995         * yaccpar.skel: use YYINT's to replace short's as in btyaccpar.skel
2996
2997         * test/btyacc/code_debug.c, test/btyacc/err_syntax12.tab.c,
2998           test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c,
2999           test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c,
3000           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c,
3001           test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c,
3002           test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c,
3003           test/btyacc/err_syntax24.tab.c, test/btyacc/error.tab.c,
3004           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
3005           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
3006           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
3007           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
3008           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
3009           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
3010           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
3011           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c,
3012           test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c,
3013           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
3014           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
3015           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
3016           test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c,
3017           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
3018           test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax10.tab.c,
3019           test/btyacc/err_syntax11.tab.c, test/yacc/err_syntax11.tab.c,
3020           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
3021           test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
3022           test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c,
3023           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
3024           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
3025           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
3026           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
3027           test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c,
3028           test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
3029           test/yacc/calc3.tab.c, test/yacc/code_calc.code.c,
3030           test/yacc/code_debug.c, test/yacc/code_error.code.c,
3031           test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, output.c,
3032           test/yacc/err_syntax1.tab.c, test/yacc/err_syntax13.tab.c,
3033           test/yacc/err_syntax14.tab.c, test/yacc/err_syntax15.tab.c,
3034           test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c,
3035           test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c,
3036           test/yacc/err_syntax21.tab.c, test/yacc/err_syntax22.tab.c,
3037           test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c,
3038           test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c,
3039           test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c,
3040           test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c,
3041           test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c,
3042           test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c,
3043           test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c,
3044           test/run_test.sh:
3045         2010/11/26 simplification of output.c using putc_code() and putl_code()
3046         omitted an adjustment of the #line value used for code-file.  Fix that.
3047         Also, amend 2005/05/04 change to run_test.sh to retain a dummy line for
3048         YYPATCH #define's to make test-outputs easier to compare #line's (report
3049         by Tom Shields)
3050
3051 2014-04-06  Thomas E. Dickey  <dickey@invisible-island.net>
3052
3053         * reader.c: fix for valgrind
3054         (the calloc's are intentional - valgrind reported use of uninitialized memory)
3055
3056         * lr0.c, output.c: fix for valgrind
3057
3058         * test/btyacc/code_debug.c, test/btyacc/code_debug.error,
3059           test/btyacc/code_debug.h, test/btyacc/code_debug.i,
3060           test/btyacc/code_debug.output:
3061         RCS_BASE
3062
3063         * test/yacc/code_debug.c, test/yacc/code_debug.h:
3064         exercise the -i option
3065
3066         * test/yacc/code_debug.i: reference output for testing
3067
3068         * test/run_test.sh: exercise the -i option
3069
3070         * test/yacc/code_debug.c: reference output for testing
3071
3072         * test/run_test.sh: exercise the "-o" option
3073
3074         * test/yacc/code_debug.error, test/yacc/code_debug.h,
3075           test/yacc/code_debug.output:
3076         reference output for testing
3077
3078         * output.c: don't call exit() without giving a chance to cleanup.
3079
3080         * mstring.c: ifdef'd functions not used in byacc
3081
3082         * btyaccpar.c: generated from btyaccpar.skel
3083
3084         * yaccpar.c: generated from yaccpar.skel
3085
3086         * skel2c:
3087         change the generated-by comment to show which version of this script (and
3088         which version of the given skeleton file) were used to produce the C-file.
3089
3090         * configure: regen
3091
3092         * makefile.in:
3093         add rules to generate byacc and btyacc parser skeleton files independently
3094
3095         * aclocal.m4: CF_PROG_AWK - add to byacc's configure script
3096         CF_INTEL_COMPILER
3097                 cleanup the -no-gcc option which was leftover from testing - prcs does
3098                 not build with this option.
3099         CF_MAKE_DOCS
3100                 protect $2 from substitution, for luit's "$(manext)"
3101         CF_XOPEN_SOURCE
3102                 for Solaris (tested with gcc/g++ 3.4.3 on Solaris 10 and gcc/g++ 4.5.2
3103                 on Solaris 11), suppress the followup check for defining _XOPEN_SOURCE
3104                 because it is not needed, as well as because g++ 4.7.3 (no package,
3105                 used in Sage for Solaris 10) has some unspecified header breakage which
3106                 is triggered by the duplicate definition.
3107
3108         * configure.in:
3109         modify so skeleton-source is determined by configure options rather than by
3110         having developer rename yaccpar.skel.old to yaccpar.skel
3111
3112         * descrip.mms: rename skeleton
3113
3114         * vmsbuild.com:
3115         fwiw, renamed the skeleton for consistency with makefile
3116
3117         * skel2c, skeleton.c: resync skeleton and its generating files
3118
3119         * yaccpar.skel:
3120         renamed yaccpar.skel.old to yaccpar.skel, to allow using makefile suffix rules
3121
3122         * yaccpar.skel.old: resync skeleton and its generating files
3123
3124         * test/run_make.sh: improve cleanup after error recovery
3125
3126         * test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
3127           test/yacc/calc3.tab.c, test/yacc/code_calc.code.c,
3128           test/yacc/code_error.code.c, test/yacc/empty.tab.c,
3129           test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c,
3130           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
3131           test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
3132           test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c,
3133           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
3134           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
3135           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
3136           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
3137           test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c,
3138           defs.h:
3139         use improvement from Tom Shield's btyacc changes, getting rid of special cases for generating two yyerror calls in skeleton
3140
3141         * output.c: simplify output_yyerror_decl()
3142
3143         * test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
3144           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
3145           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
3146           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
3147           test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c,
3148           test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
3149           test/yacc/calc3.tab.c, test/yacc/code_calc.tab.c,
3150           test/yacc/code_error.tab.c, test/yacc/empty.tab.c,
3151           test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c,
3152           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
3153           test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c,
3154           output.c:
3155         add second "const" to string-table declarations, from Tom Shield's btyacc changes
3156
3157         * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c,
3158           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
3159           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
3160           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
3161           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
3162           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
3163           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
3164           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
3165           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c,
3166           test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c,
3167           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
3168           test/btyacc/calc3.tab.c, test/btyacc/empty.tab.c,
3169           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
3170           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
3171           test/btyacc/err_syntax18.tab.c:
3172         discard unnecessary call on write_code_lineno() from Tom Shield's changes
3173
3174         * test/yacc/error.tab.c, test/yacc/grammar.tab.c,
3175           test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c,
3176           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
3177           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
3178           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
3179           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
3180           test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c,
3181           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
3182           test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c,
3183           test/yacc/code_error.code.c, test/yacc/code_error.tab.c,
3184           test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c,
3185           test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c,
3186           output.c:
3187         use YYINT typedef from Tom Shield's btyacc changes to replace explicit "short"
3188
3189         * test/yacc/code_calc.code.c, test/yacc/code_error.code.c, output.c:
3190         use fix from Tom Shield's btyacc changes: remove redundant extern-declaration for YYPARSE_DECL()
3191
3192         * test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c,
3193           test/btyacc/error.tab.c, test/btyacc/grammar.tab.c,
3194           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
3195           test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c,
3196           test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c,
3197           test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c,
3198           test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c,
3199           test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c,
3200           test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c,
3201           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
3202           test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c,
3203           test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c,
3204           test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c,
3205           test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c,
3206           test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c,
3207           test/btyacc/err_syntax12.tab.c:
3208         discard unnecessary call on write_code_lineno() from Tom Shield's changes
3209
3210         * output.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
3211           test/yacc/code_error.tab.c:
3212         use fix from Tom Shield's btyacc changes: prefix-definitions went to the
3213         output (.tab.c) file in a case where they should have gone to the code
3214         (.code.c) file.  Remove now-redundant call to output_prefix().
3215
3216         * main.c: do the same for help-message
3217
3218         * main.c: use OUTPUT_SUFFIX symbol in an overlooked case
3219
3220         * test/run_make.sh:
3221         modify to avoid use of VPATH, which has no standard implementation
3222
3223 2014-04-05  Thomas E. Dickey  <dickey@invisible-island.net>
3224
3225         * test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
3226           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
3227           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
3228           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
3229           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
3230           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
3231           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
3232           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c,
3233           test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c,
3234           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
3235           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
3236           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
3237           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
3238           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
3239           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c,
3240           test/btyacc/error.tab.c:
3241         discard a change which merged CountLines() with explicit comparisons against
3242         code_file because that adds extra to the #line values
3243
3244         * test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c,
3245           test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c,
3246           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
3247           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
3248           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
3249           test/yacc/calc.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
3250           test/yacc/code_calc.code.c, test/yacc/code_error.code.c,
3251           test/yacc/empty.tab.c, test/yacc/err_syntax11.tab.c,
3252           test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c,
3253           output.c:
3254         add Tom Shield's change to allow definition of YYSTYPE_IS_DECLARED symbol to
3255         override fallback typedef for YYSTYPE when that symbol is undefined
3256
3257         * test/btyacc/error.tab.c, test/btyacc/inherit0.tab.c,
3258           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
3259           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
3260           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
3261           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
3262           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
3263           test/btyacc/calc.tab.c, test/btyacc/calc2.tab.c,
3264           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
3265           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
3266           test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c,
3267           test/btyacc/err_syntax18.tab.c:
3268         minor tweak to coding style - use parenthesis for "defined" operator's parameter
3269
3270         * test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c,
3271           test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c,
3272           test/btyacc/error.tab.c, test/btyacc/grammar.tab.c,
3273           test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c,
3274           test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c,
3275           test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c,
3276           test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c,
3277           test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c,
3278           test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c,
3279           test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c,
3280           test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c,
3281           test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c,
3282           test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c,
3283           test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c,
3284           test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c,
3285           test/btyacc/err_syntax10.tab.c:
3286         regen to make YYMAXTOKEN and YYUNDFTOKEN adjacent
3287
3288         * test/yacc/err_syntax20.tab.c, test/yacc/grammar.tab.c,
3289           test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c,
3290           test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c,
3291           test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c,
3292           test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c,
3293           test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c,
3294           test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c,
3295           test/yacc/code_error.code.c, test/yacc/code_error.tab.c,
3296           test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c,
3297           test/yacc/err_syntax12.tab.c:
3298         regen after adding the YYUNDFTOKEN symbol
3299
3300         * output.c:
3301         integrate Tom Shield's btyacc changes which introduce the YYUNDFTOKEN symbol
3302         (I changed order of output to keep this adjacent to YYMAXTOKEN)
3303
3304         * reader.c:
3305         merge all but one small change from Tom Shield's btyacc changes - that
3306         changes the order of code-file in the tests.
3307
3308         * test/btyacc/btyacc_demo.tab.c: regen
3309
3310         * test/btyacc_demo.y: fix prototypes
3311
3312 2014-04-04  Thomas E. Dickey  <dickey@invisible-island.net>
3313
3314         * reader.c, defs.h, main.c:
3315         more merging of Tom Shield's btyacc changes.  In the merge, I moved the
3316         symbol_pval inside the btyacc ifdef's and added some more btyacc ifdefs
3317
3318 2014-04-03  Thomas E. Dickey  <dickey@invisible-island.net>
3319
3320         * reader.c:
3321         merge-in 3/4 of btyacc's changes, deferring those which change test-outputs.
3322         Tom Shield's changes split-out copy_string() and copy_comment() functions
3323         to simplify some logic, as well as adding btyacc-only chunks
3324
3325         * makefile.in: build mstring.o, needed for changes in reader.c
3326
3327         * output.c:
3328         merge-in all of btyacc's changes which do not change byacc's test-output.
3329         Some of the merge uses ifdef-changes which I applied to ongoing resync,
3330         e.g., the introduction of PER_STATE.
3331
3332 2014-04-02  Thomas E. Dickey  <dickey@invisible-island.net>
3333
3334         * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c: regen
3335
3336         * output.c: fix typo
3337
3338         * output.c, reader.c:
3339         merge in some chunks of reader and output files which do not affect byacc tests
3340
3341         * test/yacc/calc2.tab.c, test/yacc/calc3.tab.c: regen
3342
3343         * test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c,
3344           test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c,
3345           test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c,
3346           test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c,
3347           test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c,
3348           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
3349           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
3350           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
3351           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
3352           test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c,
3353           test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
3354           test/yacc/calc3.tab.c, test/yacc/code_calc.code.c,
3355           test/yacc/code_error.code.c, test/yacc/empty.tab.c,
3356           test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c,
3357           test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c,
3358           test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c,
3359           test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c,
3360           test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c,
3361           test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c,
3362           test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c,
3363           test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c,
3364           test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c,
3365           test/yacc/err_syntax26.tab.c, test/yacc/err_syntax3.tab.c,
3366           skeleton.c:
3367         incorporate YYENOMEM and YYEOF symbols from btyacc
3368
3369         * output.c: merge chunk from btyacc changes for header-guards
3370
3371         * btyaccpar.skel: RCS_BASE
3372
3373         * yaccpar.skel: comment-out yysccsid[], for FreeBSD build-issues
3374         remove GCC_UNUSED to reduce name-pollution as well as being simpler
3375
3376         * main.c:
3377         move a btyacc symbol outside ifdef to work around current state of merge
3378
3379         * defs.h:
3380         add USE_HEADER_GUARDS to defer whether to modify byacc's header-output
3381
3382         * test/run_make.sh:
3383         do not try to compile files used for testing syntax-errors, since they are
3384         likely to be incomplete
3385
3386 2014-04-02  Tom.Shields
3387
3388         * main.c: changes for btyacc
3389
3390 2014-04-01  Thomas E. Dickey  <dickey@invisible-island.net>
3391
3392         * reader.c:
3393         integrate change by Tom Shields to use bsearch rather than successive
3394         calls to matchec()
3395
3396         * defs.h: typedef __compar_fn_t is unnecessary
3397
3398         * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c,
3399           test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c,
3400           test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c,
3401           test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c,
3402           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c,
3403           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c,
3404           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c,
3405           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c,
3406           test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c,
3407           test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c,
3408           test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c,
3409           test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c,
3410           test/btyacc/code_error.code.c, test/btyacc/empty.tab.c,
3411           test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c,
3412           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
3413           test/btyacc/err_syntax18.tab.c:
3414         omit the GCC_UNUSED, as noted by Tom Shields not really essential
3415
3416 2014-04-01  Tom.Shields
3417
3418         * verbose.c: changes for btyacc, ifdef'd
3419
3420 2014-04-01  Thomas E. Dickey  <dickey@invisible-island.net>
3421
3422         * mkpar.c: eliminate most of the ifdef's using macros
3423
3424 2014-04-01  Tom.Shields
3425
3426         * mkpar.c: merge btyacc changes (ifdef'd - no change to byacc)
3427
3428         * error.c:
3429         new functions used for reporting errors from the btyacc configuration
3430         (I reordered some, and ifdef'd the new ones -TD)
3431
3432 2014-03-31  Thomas E. Dickey  <dickey@invisible-island.net>
3433
3434         * test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c:
3435         omit the GCC_UNUSED, as noted by Tom Shields not really essential
3436
3437         * test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c,
3438           test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.tab.c,
3439           test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c,
3440           test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c,
3441           test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax14.tab.c,
3442           test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c,
3443           test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c,
3444           test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax20.tab.c,
3445           test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c,
3446           test/btyacc/err_syntax24.tab.c:
3447         regen
3448
3449 2014-03-29  Thomas E. Dickey  <dickey@invisible-island.net>
3450
3451         * test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c,
3452           test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c,
3453           test/yacc/err_syntax26.tab.c, test/yacc/err_syntax3.tab.c,
3454           test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c,
3455           test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c,
3456           test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c,
3457           test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c,
3458           test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c,
3459           test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c,
3460           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
3461           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
3462           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
3463           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
3464           test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c,
3465           test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
3466           test/yacc/calc3.tab.c, test/yacc/code_calc.code.c,
3467           test/yacc/code_error.code.c, test/yacc/empty.tab.c,
3468           test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c,
3469           test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c,
3470           test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c,
3471           test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c,
3472           test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c,
3473           test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c,
3474           skeleton.c:
3475         comment-out yysccsid in the banner because it produces unnecessary compiler
3476         warnings.  The suggested alternative (using #pragma ident) in the preceding
3477         comment is also obsolete; remove that comment (request by Gleb Smirnoff).
3478
3479         * test/run_test.sh:
3480         for yacc, ignore the inherit testcases, since they are btyacc-specific
3481
3482 2014-03-28  Thomas E. Dickey  <dickey@invisible-island.net>
3483
3484         * test/yacc/varsyntax_calc1.error, test/yacc/varsyntax_calc1.output,
3485           test/yacc/varsyntax_calc1.tab.c, test/yacc/varsyntax_calc1.tab.h,
3486           test/yacc/err_inherit3.error, test/yacc/err_inherit3.output,
3487           test/yacc/err_inherit3.tab.c, test/yacc/err_inherit3.tab.h,
3488           test/yacc/err_inherit4.error, test/yacc/err_inherit4.output,
3489           test/yacc/err_inherit4.tab.c, test/yacc/err_inherit4.tab.h,
3490           test/yacc/err_inherit5.error, test/yacc/err_inherit5.output,
3491           test/yacc/err_inherit5.tab.c, test/yacc/err_inherit5.tab.h,
3492           test/yacc/inherit0.error, test/yacc/inherit0.output,
3493           test/yacc/inherit0.tab.c, test/yacc/inherit0.tab.h,
3494           test/yacc/inherit1.error, test/yacc/inherit1.output,
3495           test/yacc/inherit1.tab.c, test/yacc/inherit1.tab.h,
3496           test/yacc/inherit2.error, test/yacc/inherit2.output,
3497           test/yacc/inherit2.tab.c, test/yacc/inherit2.tab.h,
3498           test/yacc/empty.error, test/yacc/empty.output, test/yacc/empty.tab.c,
3499           test/yacc/empty.tab.h, test/yacc/err_inherit1.error,
3500           test/yacc/err_inherit1.output, test/yacc/err_inherit1.tab.c,
3501           test/yacc/err_inherit1.tab.h, test/yacc/err_inherit2.error,
3502           test/yacc/err_inherit2.output, test/yacc/err_inherit2.tab.c,
3503           test/yacc/err_inherit2.tab.h:
3504         reference output for testing
3505
3506         * test/run_lint.sh, test/run_make.sh, test/run_test.sh:
3507         moving #define's out of makefile broke check for yacc vs btyacc (fix)
3508
3509 2014-03-28  Tom.Shields
3510
3511         * test/btyacc/btyacc_demo.tab.c, test/btyacc/err_inherit3.error,
3512           test/btyacc/err_inherit3.output, test/btyacc/err_inherit3.tab.c,
3513           test/btyacc/err_inherit3.tab.h, test/btyacc/err_inherit2.error,
3514           test/btyacc/err_inherit2.output, test/btyacc/err_inherit2.tab.c,
3515           test/btyacc/err_inherit2.tab.h, test/btyacc/err_inherit4.error,
3516           test/btyacc/err_inherit4.output, test/btyacc/err_inherit4.tab.c,
3517           test/btyacc/err_inherit4.tab.h, test/btyacc/err_inherit5.error,
3518           test/btyacc/err_inherit5.output, test/btyacc/err_inherit5.tab.c,
3519           test/btyacc/err_inherit5.tab.h, test/btyacc/inherit0.error,
3520           test/btyacc/inherit0.output, test/btyacc/inherit0.tab.c,
3521           test/btyacc/inherit0.tab.h, test/btyacc/inherit1.error,
3522           test/btyacc/inherit1.output, test/btyacc/inherit1.tab.c,
3523           test/btyacc/inherit1.tab.h, test/btyacc/inherit2.error,
3524           test/btyacc/inherit2.output, test/btyacc/inherit2.tab.c,
3525           test/btyacc/inherit2.tab.h, test/btyacc/calc.error,
3526           test/btyacc/err_inherit1.error, test/btyacc/err_inherit1.output,
3527           test/btyacc/err_inherit1.tab.h:
3528         reference output for testing
3529
3530         * defs.h: new functions/variables for btyacc
3531         (I reordered and ifdef'd -TD)
3532
3533         * test/inherit0.y, test/inherit1.y: testcase for btyacc
3534
3535 2014-03-27  Tom.Shields
3536
3537         * test/err_inherit5.y, test/err_inherit4.y, test/err_inherit3.y,
3538           test/inherit2.y:
3539         testcase for btyacc
3540
3541 2014-03-25  Tom.Shields
3542
3543         * symtab.c: extra initialization needed for btyacc
3544         (I ifdef'd -TD)
3545
3546         * yacc.1: document -L/-B features from btyacc
3547
3548 2014-03-25  Thomas E. Dickey  <dickey@invisible-island.net>
3549
3550         * yacc.1: typo
3551
3552         * configure: regen
3553
3554         * configure.in:
3555         modified new options to act like those in my other configure-scripts, e.g.,
3556         showing what option is being tested, and the resulting value.  Put the
3557         definitions in config.h rather than in the makefile.
3558
3559 2014-03-25  Tom.Shields
3560
3561         * makefile.in: add/use LINTFLAGS variable
3562         make all of the objects (not just skeleton) rebuild if makefile changes
3563         modify check-rule to reflect updates to run_test.sh vs subdirectory
3564
3565         * mstring.c: byacc-btyacc-20140323
3566
3567 2014-03-25  Thomas E. Dickey  <dickey@invisible-island.net>
3568
3569         * config_h.in: updated with autoheader-252
3570
3571 2014-03-25  Tom.Shields
3572
3573         * README.BTYACC: byacc-btyacc-20140323
3574
3575 2014-03-24  Tom.Shields
3576
3577         * test/btyacc/err_syntax1.output, test/btyacc/err_syntax1.tab.c,
3578           test/btyacc/err_syntax1.tab.h, test/btyacc/err_syntax10.error,
3579           test/btyacc/err_syntax10.output, test/btyacc/err_syntax10.tab.c,
3580           test/btyacc/err_syntax10.tab.h, test/btyacc/err_syntax11.error,
3581           test/btyacc/err_syntax11.output, test/btyacc/err_syntax11.tab.c,
3582           test/btyacc/err_syntax11.tab.h, test/btyacc/err_syntax12.error,
3583           test/btyacc/err_syntax12.output, test/btyacc/err_syntax12.tab.c,
3584           test/btyacc/err_syntax12.tab.h, test/btyacc/err_syntax13.error,
3585           test/btyacc/err_syntax13.output, test/btyacc/err_syntax13.tab.c,
3586           test/btyacc/err_syntax13.tab.h, test/btyacc/err_syntax14.error,
3587           test/btyacc/err_syntax14.output, test/btyacc/err_syntax14.tab.c,
3588           test/btyacc/err_syntax14.tab.h, test/btyacc/err_syntax15.error,
3589           test/btyacc/err_syntax15.output, test/btyacc/err_syntax15.tab.c,
3590           test/btyacc/err_syntax15.tab.h, test/btyacc/err_syntax16.error,
3591           test/btyacc/err_syntax16.output, test/btyacc/err_syntax16.tab.c,
3592           test/btyacc/err_syntax16.tab.h, test/btyacc/err_syntax17.error,
3593           test/btyacc/err_syntax17.output, test/btyacc/err_syntax17.tab.c,
3594           test/btyacc/err_syntax17.tab.h, test/btyacc/err_syntax18.error,
3595           test/btyacc/err_syntax18.output, test/btyacc/err_syntax18.tab.c,
3596           test/btyacc/err_syntax18.tab.h, test/btyacc/err_syntax19.error,
3597           test/btyacc/err_syntax19.output, test/btyacc/err_syntax19.tab.c,
3598           test/btyacc/err_syntax19.tab.h, test/btyacc/err_syntax2.output,
3599           test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax2.tab.h,
3600           test/btyacc/err_syntax20.error, test/btyacc/err_syntax20.output,
3601           test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax20.tab.h,
3602           test/btyacc/err_syntax21.error, test/btyacc/err_syntax21.output,
3603           test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax21.tab.h,
3604           test/btyacc/err_syntax22.error, test/btyacc/err_syntax22.output,
3605           test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax22.tab.h,
3606           test/btyacc/err_syntax23.error, test/btyacc/err_syntax23.output,
3607           test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax23.tab.h,
3608           test/btyacc/err_syntax24.error, test/btyacc/err_syntax24.output,
3609           test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax24.tab.h,
3610           test/btyacc/err_syntax25.error, test/btyacc/err_syntax25.output,
3611           test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax25.tab.h,
3612           test/btyacc/err_syntax26.error, test/btyacc/err_syntax26.output,
3613           test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax26.tab.h,
3614           test/btyacc/err_syntax3.output, test/btyacc/err_syntax3.tab.c,
3615           test/btyacc/err_syntax3.tab.h, test/btyacc/err_syntax4.output,
3616           test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax4.tab.h,
3617           test/btyacc/err_syntax5.output, test/btyacc/err_syntax5.tab.c,
3618           test/btyacc/err_syntax5.tab.h, test/btyacc/err_syntax6.output,
3619           test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax6.tab.h,
3620           test/btyacc/err_syntax7.output, test/btyacc/err_syntax7.tab.c,
3621           test/btyacc/err_syntax7.tab.h, test/btyacc/err_syntax7a.output,
3622           test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7a.tab.h,
3623           test/btyacc/err_syntax7b.output, test/btyacc/err_syntax7b.tab.c,
3624           test/btyacc/err_syntax7b.tab.h, test/btyacc/err_syntax8.output,
3625           test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8.tab.h,
3626           test/btyacc/err_syntax8a.output, test/btyacc/err_syntax8a.tab.c,
3627           test/btyacc/err_syntax8a.tab.h, test/btyacc/err_syntax9.output,
3628           test/btyacc/err_syntax9.tab.h:
3629         reference output for testing
3630
3631 2014-03-24  Thomas E. Dickey  <dickey@invisible-island.net>
3632
3633         * defs.h: fix compiler warnings due to mputc()
3634
3635 2014-03-23  Tom.Shields
3636
3637         * test/btyacc_demo.y: testcase for btyacc
3638
3639         * test/btyacc/varsyntax_calc1.error, test/btyacc/varsyntax_calc1.output,
3640           test/btyacc/varsyntax_calc1.tab.h:
3641         reference output for testing
3642
3643         * test/varsyntax_calc1.y, test/btyacc_calc1.y: testcase for btyacc
3644
3645 2014-03-23  Thomas E. Dickey  <dickey@invisible-island.net>
3646
3647         * test/err_syntax26.error, test/err_syntax26.output,
3648           test/err_syntax26.tab.c, test/err_syntax26.tab.h,
3649           test/yacc/err_syntax26.error, test/yacc/err_syntax26.output,
3650           test/yacc/err_syntax26.tab.h:
3651         reference output for testing
3652
3653         * test/err_syntax26.y: testcase for missing_brace()
3654
3655         * test/err_syntax25.error, test/err_syntax25.output,
3656           test/err_syntax25.tab.c, test/err_syntax25.tab.h,
3657           test/yacc/err_syntax25.error, test/yacc/err_syntax25.output,
3658           test/yacc/err_syntax25.tab.h:
3659         reference output for testing
3660
3661         * test/err_syntax25.y: testcase for over_unionized()
3662
3663         * test/err_syntax24.error, test/err_syntax24.output,
3664           test/err_syntax24.tab.c, test/err_syntax24.tab.h,
3665           test/yacc/err_syntax24.error, test/yacc/err_syntax24.output,
3666           test/yacc/err_syntax24.tab.h:
3667         reference output for testing
3668
3669         * test/err_syntax24.y: testcase for default_action_warning()
3670
3671 2014-03-23  Tom.Shields
3672
3673         * test/btyacc/quote_calc3-s.error, test/btyacc/quote_calc4-s.error,
3674           test/btyacc/quote_calc4.error, test/btyacc/grammar.dot,
3675           test/btyacc/grammar.error, test/btyacc/pure_calc.error,
3676           test/btyacc/pure_error.error, test/btyacc/quote_calc-s.error,
3677           test/btyacc/quote_calc.error, test/btyacc/quote_calc2-s.error,
3678           test/btyacc/quote_calc2.error, test/btyacc/quote_calc3.error,
3679           test/btyacc/err_syntax2.error, test/btyacc/err_syntax3.error,
3680           test/btyacc/err_syntax4.error, test/btyacc/err_syntax5.error,
3681           test/btyacc/err_syntax6.error, test/btyacc/err_syntax7.error,
3682           test/btyacc/err_syntax7a.error, test/btyacc/err_syntax7b.error,
3683           test/btyacc/err_syntax8.error, test/btyacc/err_syntax8a.error,
3684           test/btyacc/err_syntax9.error, test/btyacc/error.error,
3685           test/btyacc/calc1.error, test/btyacc/calc2.error,
3686           test/btyacc/calc3.error, test/btyacc/code_calc.error,
3687           test/btyacc/code_error.error, test/btyacc/empty.error,
3688           test/btyacc/err_syntax1.error, test/btyacc/btyacc_calc1.error,
3689           test/btyacc/btyacc_demo.error:
3690         reference output for testing
3691
3692 2014-03-23  Thomas E. Dickey  <dickey@invisible-island.net>
3693
3694         * test/err_syntax23.error, test/err_syntax23.output,
3695           test/err_syntax23.tab.c, test/err_syntax23.tab.h,
3696           test/yacc/err_syntax23.error, test/yacc/err_syntax23.output,
3697           test/yacc/err_syntax23.tab.h:
3698         reference output for testing
3699
3700         * test/err_syntax23.y: testcase for untyped_lhs()
3701
3702 2014-03-23  Tom.Shields
3703
3704         * test/run_test.sh:
3705         move test-outputs into subdirectories to keep btyacc/yacc results separate
3706
3707 2014-03-23  Thomas E. Dickey  <dickey@invisible-island.net>
3708
3709         * test/err_syntax22.error, test/err_syntax22.output,
3710           test/err_syntax22.tab.c, test/err_syntax22.tab.h,
3711           test/yacc/err_syntax22.error, test/yacc/err_syntax22.output,
3712           test/yacc/err_syntax22.tab.h:
3713         reference output for testing
3714
3715         * test/err_syntax22.y: testcase for untyped_rhs()
3716
3717         * test/err_syntax21.error, test/err_syntax21.output,
3718           test/err_syntax21.tab.c, test/err_syntax21.tab.h,
3719           test/yacc/err_syntax21.error, test/yacc/err_syntax21.output,
3720           test/yacc/err_syntax21.tab.c, test/yacc/err_syntax21.tab.h,
3721           test/err_syntax20.error, test/err_syntax20.output,
3722           test/err_syntax20.tab.c, test/err_syntax20.tab.h,
3723           test/yacc/err_syntax20.error, test/yacc/err_syntax20.output,
3724           test/yacc/err_syntax20.tab.h:
3725         reference output for testing
3726
3727         * test/err_syntax20.y: testcase for undefined_symbol_warning()
3728
3729         * test/err_syntax21.y: testcase for unknown_rhs()
3730
3731         * test/err_syntax19.error, test/err_syntax19.output,
3732           test/err_syntax19.tab.c, test/err_syntax19.tab.h,
3733           test/yacc/err_syntax19.error, test/yacc/err_syntax19.output,
3734           test/yacc/err_syntax19.tab.h:
3735         reference output for testing
3736
3737         * test/err_syntax19.y: testcase for dollar_error()
3738
3739         * test/err_syntax18.error, test/err_syntax18.output,
3740           test/err_syntax18.tab.c, test/err_syntax18.tab.h,
3741           test/yacc/err_syntax18.error, test/yacc/err_syntax18.output,
3742           test/yacc/err_syntax18.tab.h:
3743         reference output for testing
3744
3745         * test/err_syntax18.y: testcase for dollar_warning()
3746
3747         * test/err_syntax17.error, test/err_syntax17.output,
3748           test/err_syntax17.tab.c, test/err_syntax17.tab.h,
3749           test/yacc/err_syntax17.error, test/yacc/err_syntax17.output,
3750           test/yacc/err_syntax17.tab.h:
3751         reference output for testing
3752
3753         * test/err_syntax17.y: testcase for unterminated_action()
3754
3755 2014-03-22  Thomas E. Dickey  <dickey@invisible-island.net>
3756
3757         * test/err_syntax16.error, test/err_syntax16.output,
3758           test/err_syntax16.tab.c, test/err_syntax16.tab.h,
3759           test/yacc/err_syntax16.error, test/yacc/err_syntax16.output,
3760           test/yacc/err_syntax16.tab.h:
3761         reference output for testing
3762
3763         * test/err_syntax16.y: testcase for terminal_lhs()
3764
3765         * test/err_syntax15.error, test/err_syntax15.output,
3766           test/err_syntax15.tab.c, test/err_syntax15.tab.h,
3767           test/yacc/err_syntax15.error, test/yacc/err_syntax15.output,
3768           test/yacc/err_syntax15.tab.h:
3769         reference output for testing
3770
3771         * test/err_syntax15.y: testcase for no_grammar()
3772
3773         * test/err_syntax14.error, test/err_syntax14.output,
3774           test/err_syntax14.tab.c, test/err_syntax14.tab.h,
3775           test/yacc/err_syntax14.error, test/yacc/err_syntax14.output,
3776           test/yacc/err_syntax14.tab.h:
3777         reference output for testing
3778
3779         * test/err_syntax14.y:
3780         testcase for restarted_warning() and undefined_goal()
3781
3782         * test/err_syntax13.error, test/err_syntax13.output,
3783           test/err_syntax13.tab.c, test/err_syntax13.tab.h,
3784           test/yacc/err_syntax13.error, test/yacc/err_syntax13.output,
3785           test/yacc/err_syntax13.tab.h:
3786         reference output for testing
3787
3788         * test/err_syntax13.y: testcase for terminal_start()
3789
3790         * test/err_syntax12.error, test/err_syntax12.output,
3791           test/err_syntax12.tab.c, test/err_syntax12.tab.h,
3792           test/yacc/err_syntax12.error, test/yacc/err_syntax12.output,
3793           test/yacc/err_syntax12.tab.h:
3794         reference output for testing
3795
3796         * test/err_syntax12.y: testcase for revalued_warning()
3797
3798         * test/err_syntax11.error, test/err_syntax11.output,
3799           test/err_syntax11.tab.c, test/err_syntax11.tab.h,
3800           test/yacc/err_syntax11.error, test/yacc/err_syntax11.output,
3801           test/yacc/err_syntax11.tab.h:
3802         reference output for testing
3803
3804         * test/err_syntax11.y: testcase for reprec_warning()
3805
3806         * test/err_syntax10.error, test/err_syntax10.output,
3807           test/err_syntax10.tab.c, test/err_syntax10.tab.h,
3808           test/yacc/err_syntax10.error, test/yacc/err_syntax10.output,
3809           test/yacc/err_syntax10.tab.h:
3810         reference output for testing
3811
3812         * test/err_syntax10.y: testcase for retyped_warning()
3813
3814 2014-03-21  Thomas E. Dickey  <dickey@invisible-island.net>
3815
3816         * test/err_syntax9.error, test/err_syntax9.output,
3817           test/err_syntax9.tab.c, test/err_syntax9.tab.h,
3818           test/yacc/err_syntax9.error, test/yacc/err_syntax9.output,
3819           test/yacc/err_syntax9.tab.h:
3820         reference output for testing
3821
3822         * test/err_syntax9.y: testcase for tokenized_start()
3823
3824         * test/err_syntax8.error, test/err_syntax8.output,
3825           test/err_syntax8.tab.c, test/err_syntax8.tab.h,
3826           test/err_syntax8a.error, test/err_syntax8a.output,
3827           test/err_syntax8a.tab.c, test/err_syntax8a.tab.h,
3828           test/yacc/err_syntax8.error, test/yacc/err_syntax8.output,
3829           test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8.tab.h,
3830           test/yacc/err_syntax8a.error, test/yacc/err_syntax8a.output,
3831           test/yacc/err_syntax8a.tab.h:
3832         reference output for testing
3833
3834         * test/err_syntax8a.y, test/err_syntax8.y: testcase for used_reserved()
3835
3836         * test/err_syntax7.error, test/err_syntax7.output,
3837           test/err_syntax7.tab.c, test/err_syntax7.tab.h,
3838           test/err_syntax7a.error, test/err_syntax7a.output,
3839           test/err_syntax7a.tab.c, test/err_syntax7a.tab.h,
3840           test/err_syntax7b.error, test/err_syntax7b.output,
3841           test/err_syntax7b.tab.c, test/err_syntax7b.tab.h,
3842           test/yacc/err_syntax7.error, test/yacc/err_syntax7.output,
3843           test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7.tab.h,
3844           test/yacc/err_syntax7a.error, test/yacc/err_syntax7a.output,
3845           test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7a.tab.h,
3846           test/yacc/err_syntax7b.error, test/yacc/err_syntax7b.output,
3847           test/yacc/err_syntax7b.tab.h:
3848         reference output for testing
3849
3850         * test/err_syntax7b.y, test/err_syntax7a.y, test/err_syntax7.y:
3851         testcase for illegal_character()
3852
3853         * test/err_syntax6.error, test/err_syntax6.output,
3854           test/err_syntax6.tab.c, test/err_syntax6.tab.h,
3855           test/yacc/err_syntax6.error, test/yacc/err_syntax6.output,
3856           test/yacc/err_syntax6.tab.h:
3857         reference output for testing
3858
3859         * test/err_syntax6.y: testcase for illegal_tag()
3860
3861         * test/err_syntax5.error, test/err_syntax5.output,
3862           test/err_syntax5.tab.c, test/err_syntax5.tab.h,
3863           test/yacc/err_syntax5.error, test/yacc/err_syntax5.output,
3864           test/yacc/err_syntax5.tab.h:
3865         reference output for testing
3866
3867         * test/err_syntax5.y: testcase for unterminated_union()
3868
3869         * test/err_syntax4.error, test/err_syntax4.output,
3870           test/err_syntax4.tab.c, test/err_syntax4.tab.h,
3871           test/yacc/err_syntax4.error, test/yacc/err_syntax4.output,
3872           test/yacc/err_syntax4.tab.h:
3873         reference output for testing
3874
3875         * test/err_syntax4.y: testcase for unterminated_text()
3876
3877         * test/err_syntax3.error, test/err_syntax3.output,
3878           test/err_syntax3.tab.c, test/err_syntax3.tab.h,
3879           test/yacc/err_syntax3.error, test/yacc/err_syntax3.output,
3880           test/yacc/err_syntax3.tab.h:
3881         reference output for testing
3882
3883         * test/err_syntax3.y: testcase for unterminated_string()
3884
3885         * test/err_syntax2.error, test/err_syntax2.output,
3886           test/err_syntax2.tab.c, test/err_syntax2.tab.h,
3887           test/yacc/err_syntax2.error, test/yacc/err_syntax2.output,
3888           test/yacc/err_syntax2.tab.h:
3889         reference output for testing
3890
3891         * test/err_syntax2.y: testcase for unterminated_comment()
3892
3893         * test/err_syntax1.error, test/yacc/err_syntax1.error:
3894         reference output for testing
3895
3896         * test/err_syntax1.y:
3897         test-case with syntax error (and nonprinting character)
3898
3899         * test/calc.error, test/calc1.error, test/calc2.error, test/calc3.error,
3900           test/code_calc.error, test/code_error.error, test/err_syntax1.error,
3901           test/error.error, test/grammar.error, test/pure_calc.error,
3902           test/pure_error.error, test/quote_calc-s.error, test/quote_calc.error,
3903           test/quote_calc2-s.error, test/quote_calc2.error,
3904           test/quote_calc3-s.error, test/quote_calc3.error,
3905           test/quote_calc4-s.error, test/quote_calc4.error,
3906           test/yacc/calc.error, test/yacc/calc1.error, test/yacc/calc2.error,
3907           test/yacc/calc3.error, test/yacc/code_calc.error,
3908           test/yacc/code_error.error, test/yacc/error.error,
3909           test/yacc/grammar.error, test/yacc/pure_calc.error,
3910           test/yacc/pure_error.error, test/yacc/quote_calc-s.error,
3911           test/yacc/quote_calc.error, test/yacc/quote_calc2-s.error,
3912           test/yacc/quote_calc2.error, test/yacc/quote_calc3-s.error,
3913           test/yacc/quote_calc3.error, test/yacc/quote_calc4-s.error,
3914           test/yacc/quote_calc4.error:
3915         reference output for testing
3916
3917         * test/run_test.sh:
3918         save stderr to reference files, to capture shift/reduce messages as well
3919         as syntax-error messages
3920
3921         * test/err_syntax1.output, test/err_syntax1.tab.c,
3922           test/err_syntax1.tab.h, test/yacc/err_syntax1.output,
3923           test/yacc/err_syntax1.tab.h:
3924         reference output for testing
3925
3926         * test/run_test.sh: generate a ".dot" file for the grammar file
3927
3928         * test/grammar.dot: RCS_BASE
3929
3930         * test/yacc/grammar.dot: reference output for testing
3931
3932 2014-03-19  Tom.Shields
3933
3934         * output.c: rename MAXSHORT to MAXYYINT
3935
3936 2014-03-18  Tom.Shields
3937
3938         * yaccpar.skel: skeleton with btyacc additions
3939
3940         * NOTES-btyacc-Changes: byacc-btyacc-20140323
3941
3942         * test/btyacc/btyacc_calc1.output, test/btyacc/btyacc_calc1.tab.c,
3943           test/btyacc/btyacc_calc1.tab.h:
3944         reference output for testing
3945
3946         * test/run_make.sh:
3947         move test-outputs into subdirectories to keep btyacc/yacc results separate
3948
3949         * test/btyacc/pure_calc.tab.c, test/btyacc/pure_calc.tab.h,
3950           test/btyacc/pure_error.output, test/btyacc/pure_error.tab.c,
3951           test/btyacc/pure_error.tab.h, test/btyacc/quote_calc-s.output,
3952           test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc-s.tab.h,
3953           test/btyacc/quote_calc.output, test/btyacc/quote_calc.tab.c,
3954           test/btyacc/quote_calc.tab.h, test/btyacc/quote_calc2-s.output,
3955           test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2-s.tab.h,
3956           test/btyacc/quote_calc2.output, test/btyacc/quote_calc2.tab.c,
3957           test/btyacc/quote_calc2.tab.h, test/btyacc/quote_calc3-s.output,
3958           test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3-s.tab.h,
3959           test/btyacc/quote_calc3.output, test/btyacc/quote_calc3.tab.c,
3960           test/btyacc/quote_calc3.tab.h, test/btyacc/quote_calc4-s.output,
3961           test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4-s.tab.h,
3962           test/btyacc/quote_calc4.output, test/btyacc/quote_calc4.tab.c,
3963           test/btyacc/quote_calc4.tab.h, test/btyacc/calc1.output,
3964           test/btyacc/calc1.tab.c, test/btyacc/calc1.tab.h,
3965           test/btyacc/calc2.output, test/btyacc/calc2.tab.c,
3966           test/btyacc/calc2.tab.h, test/btyacc/calc3.output,
3967           test/btyacc/calc3.tab.c, test/btyacc/calc3.tab.h,
3968           test/btyacc/code_calc.code.c, test/btyacc/code_calc.output,
3969           test/btyacc/code_calc.tab.c, test/btyacc/code_calc.tab.h,
3970           test/btyacc/code_error.code.c, test/btyacc/code_error.output,
3971           test/btyacc/code_error.tab.c, test/btyacc/code_error.tab.h,
3972           test/btyacc/empty.output, test/btyacc/empty.tab.c,
3973           test/btyacc/empty.tab.h, test/btyacc/error.output,
3974           test/btyacc/error.tab.c, test/btyacc/error.tab.h,
3975           test/btyacc/grammar.output, test/btyacc/grammar.tab.c,
3976           test/btyacc/grammar.tab.h, test/btyacc/pure_calc.output,
3977           test/btyacc/btyacc_demo.output, test/btyacc/btyacc_demo.tab.h,
3978           test/btyacc/calc.tab.h:
3979         reference output for testing
3980
3981         * defs.h:
3982         several changes to help decouple the use of 'short' as the type of value
3983         used in yacc parsers.
3984
3985         * NOTES-btyacc-Disposition: byacc-btyacc-20140323
3986
3987 2014-03-17  Tom.Shields
3988
3989         * skel2c, yaccpar.skel, yaccpar.skel.old: RCS_BASE
3990
3991         * test/run_lint.sh:
3992         move test-outputs into subdirectories to keep btyacc/yacc results separate
3993
3994         * configure.in: add --with-max-table-size and --enable-btyacc options
3995
3996 2014-03-16  Tom.Shields
3997
3998         * main.c: use Value_t rather than short
3999
4000 2014-03-11  Tom.Shields
4001
4002         * test/empty.y: testcase for btyacc
4003
4004 2014-03-10  Tom.Shields
4005
4006         * test/calc3.y, test/calc2.y: fix unused-variable warning
4007
4008 2014-02-18  Tom.Shields
4009
4010         * lr0.c, graph.c: use Value_t rather than short
4011
4012         * closure.c: use Value_t rather than short
4013         ifdef'd forward-reference prototypes to match ifdef'ing of the actual functions
4014
4015         * lalr.c: rename MAXSHORT to MAXYYINT
4016
4017 2014-01-01  Thomas E. Dickey  <dickey@invisible-island.net>
4018
4019         * yacc.1: document %token-table, improve presentation of double-quotes
4020
4021         * VERSION, package/byacc.spec, package/debian/changelog: bump
4022
4023         * test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c,
4024           test/yacc/calc3.tab.c, test/yacc/code_calc.code.c,
4025           test/yacc/code_calc.tab.c, test/yacc/code_error.code.c,
4026           test/yacc/code_error.tab.c, test/yacc/error.tab.c,
4027           test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c,
4028           test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c,
4029           test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c,
4030           test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c,
4031           test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c,
4032           test/yacc/quote_calc4.tab.c:
4033         reference output for testing
4034
4035         * test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c,
4036           test/code_calc.code.c, test/code_calc.tab.c, test/code_error.code.c,
4037           test/code_error.tab.c, test/error.tab.c, test/ftp.tab.c,
4038           test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c,
4039           test/quote_calc-s.tab.c, test/quote_calc.tab.c,
4040           test/quote_calc2-s.tab.c, test/quote_calc2.tab.c,
4041           test/quote_calc3-s.tab.c, test/quote_calc3.tab.c,
4042           test/quote_calc4.tab.c:
4043         regen
4044
4045         * output.c, skeleton.c:
4046         amend the last change so that yytname is #define'd as needed rather than
4047         permanent - to avoid breaking cproto for instance.
4048
4049 2014-01-01  Christos.Zoulas
4050
4051         * output.c, defs.h, main.c, reader.c, skeleton.c:
4052         changes to build ntpd using byacc:
4053         - rename yyname[] to yytname[]
4054         - add YYTRANSLATE() macro
4055         - recognize bison's %token-table declaration
4056
4057 2014-01-01  Thomas E. Dickey  <dickey@invisible-island.net>
4058
4059         * configure: regen
4060
4061         * yacc.1: s/EE/XE/ to work around groff bug on Debian 6
4062
4063         * makefile.in: use CF_MAKE_DOCS
4064
4065         * aclocal.m4: add CF_MAKE_DOCS
4066
4067         * configure.in: use CF_MAKE_DOCS
4068
4069 2013-12-26  Thomas E. Dickey  <dickey@invisible-island.net>
4070
4071         * config.guess: 2013-11-29
4072
4073 2013-11-19  Thomas E. Dickey  <dickey@invisible-island.net>
4074
4075         * aclocal.m4: resync with my-autoconf (fixes for clang and mingw)
4076
4077 2013-10-25  Thomas E. Dickey  <dickey@invisible-island.net>
4078
4079         * config.sub: 2013-10-01
4080
4081 2013-09-25  Thomas E. Dickey  <dickey@invisible-island.net>
4082
4083         * reader.c: fix two loop-limits found by clang 3.3 --analyze
4084
4085         * configure: regen
4086
4087         * aclocal.m4:
4088         tweaks to CF_MIXEDCASE_FILENAMES and CF_XOPEN_SOURCE for msys from ncurses
4089
4090         * package/mingw-byacc.spec: RCS_BASE
4091
4092         * test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c,
4093           test/code_calc.code.c, test/code_error.code.c, test/error.tab.c,
4094           test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c,
4095           test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c,
4096           test/quote_calc2-s.tab.c, test/quote_calc2.tab.c,
4097           test/quote_calc3-s.tab.c, test/quote_calc3.tab.c,
4098           test/quote_calc4.tab.c:
4099         regen
4100
4101         * skeleton.c:
4102         Increase default stack-size to match FreeBSD version noted as from
4103         "BSD 4.4 Lite Usr.bin Sources".  See
4104
4105                 http://svnweb.freebsd.org/base/vendor/CSRG/dist/usr.bin/yacc/
4106                 http://svnweb.freebsd.org/base/head/usr.bin/yacc/
4107                 http://svnweb.freebsd.org/base/vendor/byacc/
4108
4109         The original 1.9 sources (on which I based development) used 500 for
4110         stacksize; the BSD Lite sources (a year or two later) used 10000.
4111
4112         This is a change to default values; the YYMAXDEPTH and YYSTACKSIZE
4113         symbols have "always" been overridable by applications, but rarely
4114         needed to do this.  RedHat began using the FreeBSD source in 2000,
4115         and switched to this source in 2007 using the 20050813 snapshot.
4116
4117         RedHat #743343 misattributed the change in default stacksize to
4118         a regression in byacc, but did not report the issue upstream.
4119
4120         * package/debian/changelog, VERSION, package/byacc.spec: bump
4121
4122 2013-09-07  Thomas E. Dickey  <dickey@invisible-island.net>
4123
4124         * config.sub: update to 2013-09-15
4125
4126         * config.guess: update to 2013-06-10
4127
4128 2013-03-04  Thomas E. Dickey  <dickey@invisible-island.net>
4129
4130         * package/debian/changelog, VERSION, package/byacc.spec: bump
4131
4132         * aclocal.m4:
4133         adapt tweak from Dave Beckett to work around long-ago breakage in "new" autoconf.
4134
4135         * output.c:
4136         fix bogus #include if "-i" is given but not "-d" (report by Richard Mitton).
4137         also while testing that, found a case where the union_file is unused; added
4138         a check for address that.
4139
4140         * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: regen
4141
4142         * test/ftp.y: fix most compiler warnings for "make check_make"
4143
4144         * test/calc1.tab.c: regen
4145
4146         * test/calc1.y: fix most compiler warnings for "make check_make"
4147
4148         * test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c,
4149           test/code_calc.code.c, test/code_error.code.c, test/error.tab.c,
4150           test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c,
4151           test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c,
4152           test/quote_calc2-s.tab.c, test/quote_calc2.tab.c,
4153           test/quote_calc3-s.tab.c, test/quote_calc3.tab.c,
4154           test/quote_calc4.tab.c:
4155         regen
4156
4157         * skeleton.c: quiet a gcc conversion-warning in yygrowstack()
4158
4159         * configure: regen
4160
4161         * aclocal.m4:
4162         another fix for CF_GCC_VERSION to handle Debian's modification of gcc message.
4163
4164 2013-02-10  Thomas E. Dickey  <dickey@invisible-island.net>
4165
4166         * config.sub, config.guess: update to 2013-02-04
4167
4168 2012-10-03  Thomas E. Dickey  <dickey@invisible-island.net>
4169
4170         * package/debian/changelog, package/byacc.spec, VERSION: bump
4171
4172         * configure: regen
4173
4174         * configure.in: moved AC_PROG_CC_STDC call into CF_PROG_CC
4175
4176         * aclocal.m4:
4177         moved AC_PROG_CC_STDC call into CF_PROG_CC and (for other uses than byacc)
4178         the CF_PROG_CC macro provides the CF_ANSI_CC_REQD for the 2.13 flavor.
4179
4180         * aclocal.m4, configure.in:
4181         Arian's change dropped my check for misused $CC variable - restore that with
4182         alternate macro CF_PROG_CC.
4183
4184 2012-10-03  Adrian.Bunk
4185
4186         * aclocal.m4:
4187         suggested patch: drop CF_ANSI_CC_REQD, CF_ANSI_CC_CHECK, CF_PROG_EXT since
4188         they are not needed.
4189
4190 2012-10-03  Thomas E. Dickey  <dickey@invisible-island.net>
4191
4192         * aclocal.m4:
4193         split-out CF_CC_ENV_FLAGS from CF_ANSI_CC_CHECK to avoid losing it in
4194         Adrian's suggested changes.
4195
4196         * aclocal.m4:
4197         CF_CLANG_COMPILER - check if the given compiler is really clang.
4198
4199         * aclocal.m4:
4200         add check for clang to CF_GCC_WARNINGS.  modify CF_GCC_WARNINGS to work around
4201         old gcc warning:  ncurses change to (try to) use gnatgcc exposed gnatgcc 2.8.1
4202         on my Sarge system (versus 3.3.5 for the normal gcc).  The 2.8.1's
4203         pointer-arithmetic checks fell afoul of gcc's misuse of void* in string.h; work
4204         around by excluding that check for pre-3.x compilers.
4205
4206         * aclocal.m4:
4207         modify CF_GCC_ATTRIBUTES so that autoheader is able to see the definitions
4208         provided by this macro.  use AC_DEFINE_UNQUOTED() in CF_GCC_ATTRIBUTES rather
4209         than appending to confdefs.h, since long-ago concern about the ability to
4210         pass-through parameterized macros appears to be not a problem, testing with
4211         2.13 and 2.52
4212
4213 2012-10-03  Adrian.Bunk
4214
4215         * aclocal.m4:
4216         add parameter to AC_DEFINE_UNQUOTED() to allow it to be recognized by
4217         autoheader, updated macros:
4218                 CF_CHECK_CACHE
4219                 CF_DISABLE_LEAKS
4220                 CF_MKSTEMP
4221                 CF_MIXEDCASE_FILENAMES
4222                 CF_NO_LEAKS_OPTION
4223
4224 2012-10-03  Thomas E. Dickey  <dickey@invisible-island.net>
4225
4226         * aclocal.m4:
4227         move existence-check for mkstemp out of the AC_TRY_RUN, to help with
4228         cross-compiles
4229
4230 2012-10-02  Thomas E. Dickey  <dickey@invisible-island.net>
4231
4232         * config_h.in:
4233         Adrian Bunk request - replace this with the output from autoheader
4234
4235 2012-09-29  Adrian.Bunk
4236
4237         * configure.in:
4238         suggested change: replace CF_ANSI_CC_REQD by AC_PROG_CC_STDC (since no
4239         check is needed anymore for standard C compilers), drop AC_CONST (same
4240         reason), modify AC_OUTPUT to rely upon template generated by autoheader.
4241         bump requirement to autoconf 2.52.20011201 and drop check for CF_PROG_EXT
4242         as being obsolete with autoconf 2.52x
4243
4244         * configure.in, main.c: drop check for atexit, because it is standard C
4245
4246         * makefile.in: add assignment for datarootdir variable.
4247
4248 2012-05-26  Thomas E. Dickey  <dickey@invisible-island.net>
4249
4250         * package/debian/changelog, package/byacc.spec, VERSION: bump
4251
4252         * reader.c:
4253         some versions of gcc may warn that bp is not set in mark_symbol, e.g.,
4254         if GCC_NORETURN is not handled; appease the compiler.
4255
4256         * reader.c:
4257         use the declared types Assoc_t and Value_t in some places where compiler only
4258         cared about char versus short.
4259
4260         * reader.c:
4261         use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
4262         (no object change)
4263
4264         * defs.h:
4265         add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD
4266         packagers to build without configure script.  Also remove duplicate declaration
4267         of pure_parser variable (prompted by patch by Baptiste Daroussin).
4268
4269         Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and
4270         REALLOC macros.
4271
4272         * symtab.c:
4273         use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
4274         (no object change)
4275
4276 2012-05-25  Thomas E. Dickey  <dickey@invisible-island.net>
4277
4278         * output.c, main.c, verbose.c, mkpar.c, lr0.c:
4279         use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
4280         (no object change)
4281
4282 2012-01-15  Thomas E. Dickey  <dickey@invisible-island.net>
4283
4284         * package/debian/copyright: bump
4285
4286         * test/run_make.sh: workaround for breakage due to GNU make 3.82
4287
4288         * test/run_make.sh:
4289         tested with Solaris 10 (bison 1.875) and added scripting to exercise
4290         the /usr/ccs/bin/yacc executable
4291
4292         * test/grammar.tab.c: regen
4293
4294         * test/grammar.y: modify to also build with Solaris yacc
4295
4296         * VERSION, package/debian/changelog, package/byacc.spec: bump
4297
4298         * test/yacc/calc1.output: reference output for testing
4299
4300         * test/calc1.output, test/calc1.tab.c: regen
4301
4302         * test/calc1.y:
4303         undo the change made to appease bison, since it was only a warning.
4304
4305         * test/pure_calc.tab.c, test/pure_error.tab.c: regen
4306
4307         * test/run_make.sh: another fix for running from top-level directory
4308
4309         * makefile.in:
4310         ensure that check_make rule depends on having byacc built.
4311
4312         * test/run_make.sh: fixes for building from parent directory
4313
4314         * test/pure_error.y, test/pure_calc.y: bison-fixes
4315
4316         * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c,
4317           test/pure_error.tab.c:
4318         regen
4319
4320         * test/code_debug.y: RCS_BASE
4321
4322         * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y:
4323         byacc already declares yyerror
4324
4325         * test/pure_error.y, test/pure_calc.y:
4326         modified to help make the files build with bison
4327
4328         * test/run_make.sh:
4329         supply a "%pure-parser" directive when bison needs it.
4330
4331         * test/code_calc.code.c: regen
4332
4333         * test/code_calc.y: modified to help make the files build with bison
4334
4335         * yacc.1:
4336         in testing, found that %expect did not work as documented for bison.
4337         do not recommend it for portable code.
4338
4339         * test/run_make.sh: workaround breakage in bison's %expect directive
4340
4341         * test/grammar.y: modified to help make the files build with bison
4342
4343         * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen
4344
4345         * test/calc1.y: quiet a spurious warning from bison 2.3
4346
4347         * test/calc1.tab.c: regen
4348
4349         * test/calc1.y: modified to help make the files build with bison
4350
4351         * yacc.1: comment on "-y" and "-P" options.
4352
4353         * yacc.1: comment on portability
4354
4355         * test/ftp.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c,
4356           test/quote_calc3-s.tab.c:
4357         regen
4358
4359         * test/ftp.y: modified to help make the files build with bison
4360         (bison's "-y" option is of no use in providing "yacc" compatibility)
4361
4362         * test/quote_calc2.tab.c, test/quote_calc3.tab.c,
4363           test/quote_calc4.tab.c:
4364         regen
4365
4366         * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y,
4367           test/quote_calc3.y:
4368         modified to help make the files build with bison
4369
4370         * test/calc.tab.c: regen
4371
4372         * test/calc.y: modified to help make the files build with bison
4373
4374         * test/error.tab.c: regen
4375
4376         * test/error.y: modified to help make the files build with bison
4377
4378         * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen
4379
4380         * test/run_make.sh:
4381         check for older bisons which (2.3 for instance) do not support pure parsers
4382
4383         * test/code_error.y, test/calc3.y, test/calc2.y:
4384         modified to help make the files build with bison
4385
4386         * test/run_test.sh: use $opt2 in filenames of the generated files
4387
4388         * test/quote_calc2-s.tab.c, test/quote_calc3-s.tab.c,
4389           test/quote_calc4-s.tab.c, test/quote_calc-s.tab.c,
4390           test/quote_calc.tab.c, test/quote_calc2.tab.c, test/quote_calc3.tab.c,
4391           test/quote_calc4.tab.c:
4392         regen
4393
4394 2012-01-14  Thomas E. Dickey  <dickey@invisible-island.net>
4395
4396         * test/calc2.tab.c, test/code_calc.code.c, test/code_error.code.c,
4397           test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c,
4398           test/calc1.tab.c:
4399         regen
4400
4401         * output.c: Several changes:
4402                 a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex.
4403                 b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL,
4404                    using YYLEX_PARAM_TYPE and YYLEX_PARAM.
4405                 c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL,
4406                    to help with redefinitions.
4407
4408         * test/pure_calc.tab.c:
4409         modified to help make the files build with bison
4410
4411         * test/run_make.sh:
4412         start work on followup, to check if the generated files build with bison.
4413
4414         * test/pure_calc.y, test/pure_error.tab.c:
4415         modified to help make the files build with bison
4416
4417         * test/calc3.tab.c: regen
4418
4419         * test/quote_calc-s.output, test/quote_calc-s.tab.c,
4420           test/quote_calc-s.tab.h, test/quote_calc2-s.output,
4421           test/quote_calc2-s.tab.c, test/quote_calc2-s.tab.h,
4422           test/quote_calc3-s.output, test/quote_calc3-s.tab.c,
4423           test/quote_calc3-s.tab.h, test/quote_calc4-s.output,
4424           test/quote_calc4-s.tab.h:
4425         RCS_BASE
4426
4427         * test/yacc/quote_calc-s.output, test/yacc/quote_calc-s.tab.h,
4428           test/yacc/quote_calc2-s.output, test/yacc/quote_calc2-s.tab.h,
4429           test/yacc/quote_calc3-s.output, test/yacc/quote_calc3-s.tab.h,
4430           test/yacc/quote_calc4-s.tab.h:
4431         reference output for testing
4432
4433         * test/run_test.sh: generate/test with "-s" option applied.
4434
4435 2012-01-13  Thomas E. Dickey  <dickey@invisible-island.net>
4436
4437         * package/debian/changelog, package/byacc.spec, VERSION: bump
4438
4439         * yacc.1: improve documentation of -s option
4440
4441         * yacc.1: note that yacc ignores -y
4442
4443         * main.c: add -s option to usage message.
4444
4445         * test/quote_calc3.output, test/quote_calc3.tab.c,
4446           test/quote_calc4.tab.h:
4447         RCS_BASE
4448
4449         * test/yacc/quote_calc3.output, test/yacc/quote_calc4.output,
4450           test/yacc/quote_calc4.tab.h:
4451         reference output for testing
4452
4453         * test/quote_calc3.y, test/quote_calc.tab.h: RCS_BASE
4454
4455         * test/yacc/quote_calc.tab.h: reference output for testing
4456
4457         * test/quote_calc.output, test/quote_calc.tab.c,
4458           test/quote_calc2.output, test/quote_calc2.tab.c,
4459           test/quote_calc3.tab.h:
4460         RCS_BASE
4461
4462         * test/yacc/quote_calc.output, test/yacc/quote_calc2.output,
4463           test/yacc/quote_calc3.tab.h:
4464         reference output for testing
4465
4466         * test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y: RCS_BASE
4467
4468         * configure: regen
4469
4470         * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE
4471
4472 2011-12-19  Thomas E. Dickey  <dickey@invisible-island.net>
4473
4474         * package/debian/changelog, package/byacc.spec, VERSION: bump
4475
4476         * yacc.1, output.c, main.c, defs.h:
4477         add "-s" option to suppress generating #define's based on string contents
4478         in a %token statement.  For instance
4479                 %token EQLS "Equals"
4480         would generate
4481                 #define EQLS 256
4482                 #define Equals 257
4483         Simply suppressing the second #define makes the behavior closer to yacc.
4484         (report by Paulo Andrade).
4485
4486 2011-09-08  Thomas E. Dickey  <dickey@invisible-island.net>
4487
4488         * package/debian/changelog, package/byacc.spec, VERSION: bump
4489
4490         * output.c:
4491         fix some more interaction between -i and -d flags to ensure YYERRCODE
4492         and YYSTYPE are declared, tested with cproto.
4493
4494 2011-09-07  Thomas E. Dickey  <dickey@invisible-island.net>
4495
4496         * yacc.1: document "-i" option.
4497
4498         * package/debian/changelog, package/byacc.spec, VERSION: bump
4499
4500         * output.c: fix an interaction between -i and -d
4501
4502         * test/code_error.code.c, test/error.tab.c, test/ftp.tab.c,
4503           test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c,
4504           test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c,
4505           test/code_calc.code.c:
4506         regen - changes for "-i" option move the global/impure variables near the
4507         macros that may add a prefix, etc.
4508
4509         * skeleton.c, output.c, defs.h: changes to support "-i" option.
4510
4511 2011-09-06  Thomas E. Dickey  <dickey@invisible-island.net>
4512
4513         * reader.c: pass explicit file-pointer to write_section()
4514
4515         * main.c:
4516         add "-i" option, to generate interface-file (suggested by Denis M. Wilson)
4517
4518 2011-09-05  Thomas E. Dickey  <dickey@invisible-island.net>
4519
4520         * configure: regen
4521
4522         * aclocal.m4:
4523         resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC)
4524         and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks)
4525
4526         * defs.h, error.c, reader.c:
4527         add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson)
4528
4529 2011-04-01  Thomas E. Dickey  <dickey@invisible-island.net>
4530
4531         * config.sub: update to 2011-04-01
4532
4533 2011-02-02  Thomas E. Dickey  <dickey@invisible-island.net>
4534
4535         * config.guess: update to 2011-01-01
4536
4537 2010-12-29  Thomas E. Dickey  <dickey@invisible-island.net>
4538
4539         * defs.h, skeleton.c:
4540         add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas)
4541
4542         * defs.h:
4543         mark all of the error-functions as non-returning (report by Christos Zoulas)
4544
4545         * test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c,
4546           test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c,
4547           test/code_calc.code.c, test/code_error.code.c, test/error.tab.c,
4548           test/ftp.tab.c:
4549         regen
4550
4551         * skeleton.c:
4552         use only realloc() rather than realloc+malloc, agree that systems needing this
4553         are very rare (prompted by NetBSD change).
4554
4555         * test/ftp.tab.c: regen
4556
4557 2010-12-29  Christos.Zoulas
4558
4559         * test/ftp.y:
4560         improve example, which was stuck in 19XX and assumed file sizes were longs.
4561
4562 2010-12-29  Thomas E. Dickey  <dickey@invisible-island.net>
4563
4564         * test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c,
4565           test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c,
4566           test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c,
4567           test/error.tab.c:
4568         regen
4569
4570         * test/pure_error.y, test/pure_calc.y, test/ftp.y, test/error.y,
4571           test/code_error.y, test/code_calc.y, test/calc.y, test/calc3.y,
4572           test/calc1.y:
4573         use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror
4574
4575         * skeleton.c:
4576         remove explicit prototype for yylex() via YYLEX_DECL() macro, since that
4577         would prevent declaring yylex() static (request by Christos Zoulas).
4578
4579         * test/calc2.tab.c, test/calc3.tab.c: regen
4580
4581 2010-12-29  Christos.Zoulas
4582
4583         * output.c: correct definition for YYERROR_DECL()
4584
4585 2010-12-29  Thomas E. Dickey  <dickey@invisible-island.net>
4586
4587         * package/debian/changelog, package/byacc.spec, VERSION: bump
4588
4589 2010-12-26  Thomas E. Dickey  <dickey@invisible-island.net>
4590
4591         * defs.h, main.c:
4592         change return-type of allocate() to avoid warnings of alignment problems
4593
4594         * main.c: Solaris declares chmod() in <sys/stat.h>
4595
4596         * configure: regen
4597
4598         * main.c: ifdef'd use of fcntl.h
4599
4600         * configure.in: add configure checks for fcntl.h, atexit and mkstemp
4601
4602         * main.c: for cases where mkstemp() is not available, use tempnam/open
4603
4604         * aclocal.m4: add CF_MKSTEMP
4605
4606         * aclocal.m4:
4607         improve quoting, deprecate ${name-value} in favor of standard ${name:-value}
4608
4609 2010-12-25  Thomas E. Dickey  <dickey@invisible-island.net>
4610
4611         * main.c:
4612         start revising use of tmpfile(), to make this work with MinGW.  Start by
4613         implementing a mkstemp() alternative - noting that mkstemp() also is broken
4614         for MinGW.
4615
4616         * package/debian/changelog, package/byacc.spec, VERSION: bump
4617
4618 2010-11-27  Thomas E. Dickey  <dickey@invisible-island.net>
4619
4620         * package/byacc.spec, package/debian/changelog, VERSION: bump
4621
4622         * test/calc2.tab.c, test/calc3.tab.c: regen
4623
4624         * output.c:
4625         corrected use of %parse-param value in yyerror(); it doesn't use &yylval
4626         (report by Clifford Yapp)
4627
4628 2010-11-26  Thomas E. Dickey  <dickey@invisible-island.net>
4629
4630         * skeleton.c: typo
4631
4632         * output.c:
4633         correct line-numbering when "-r" option is used; the 'outline' variable
4634         should only be incremented when writing to the code-file.
4635
4636         * test/code_calc.code.c, test/code_error.code.c: regen
4637
4638         * yacc.1: bump date
4639
4640         * yacc.1: comment on -b option vs -r
4641
4642         * test/calc2.tab.c, test/calc2.y, test/calc3.tab.c, test/calc3.y,
4643           test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c,
4644           test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c,
4645           test/error.tab.c:
4646         regen
4647
4648         * output.c:
4649         improve on YYERROR_DECL(), adding dummy params which can be used for the
4650         actual function declaration.  Also add YYERROR_CALL().  The two macros
4651         simplify maintaining sets of grammars which may/may not be pure.
4652
4653         * test/calc1.y, test/ftp.tab.c, test/grammar.tab.c,
4654           test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c,
4655           test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c,
4656           test/error.tab.c:
4657         regen
4658
4659         * output.c: generate yyerror() calls in output.c
4660         This is for compatibility with bison, which passes the yylval to yyerror
4661         when the %parse-param feature is used.
4662
4663         * skeleton.c, defs.h: generate yyerror() calls in output.c
4664
4665         * output.c: simplified a little, using putc_code() and putl_code()
4666
4667         * test/yacc/calc1.tab.h: reference output for testing
4668
4669         * test/calc1.tab.h: regen
4670
4671         * reader.c:
4672         improve ifdef for YYSTYPE union declaration (report by Clifford Yapp)
4673
4674         * reader.c:
4675         accept underscore as a replacement for dash in command names, e.g.,
4676         "%pure_parser" vs "%pure-parser".
4677
4678         * test/calc1.tab.c: regen
4679
4680         * output.c, reader.c:
4681         also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp)
4682
4683         * package/debian/changelog, package/byacc.spec, VERSION: bump
4684
4685 2010-11-24  Thomas E. Dickey  <dickey@invisible-island.net>
4686
4687         * main.c, defs.h, symtab.c, error.c: reduce global variables
4688
4689         * package/debian/changelog, package/byacc.spec, VERSION: bump
4690
4691         * reader.c:
4692         amend fix for Redhat #112617 to still call default_action_warning() for
4693         empty rules (report by Bruce Cran).
4694
4695 2010-11-22  Thomas E. Dickey  <dickey@invisible-island.net>
4696
4697         * output.c:
4698         add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp).
4699
4700         * test/calc1.tab.c: regen
4701
4702         * test/calc1.y: cleanup compiler warnings
4703
4704         * test/grammar.y: add "%expect"
4705
4706         * test/calc1.tab.h: regen
4707
4708         * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE
4709
4710         * test/calc2.tab.c, test/calc3.tab.c: regen
4711
4712         * test/calc1.y:
4713         advanced example from Steve Johnson's paper, uses unions
4714
4715         * test/calc3.y, test/calc2.y: init 'base', so examples can run
4716
4717         * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++
4718
4719         * output.c: compensate for fix in reader.c
4720
4721         * reader.c:
4722         add/use putc_both() and puts_both(), incidentally fixing a place where
4723         a union copied to the union_file may be missing the end of the last line.
4724
4725         * package/debian/changelog, package/byacc.spec, VERSION: bump
4726
4727 2010-09-28  Thomas E. Dickey  <dickey@invisible-island.net>
4728
4729         * config.guess: update to 2010-09-24
4730
4731 2010-09-10  Thomas E. Dickey  <dickey@invisible-island.net>
4732
4733         * config.sub: update to 2010-09-11
4734
4735 2010-06-10  Thomas E. Dickey  <dickey@invisible-island.net>
4736
4737         * yacc.1, package/debian/changelog, package/byacc.spec, VERSION:
4738         bump to 2010/06/10
4739
4740 2010-06-09  Thomas E. Dickey  <dickey@invisible-island.net>
4741
4742         * reader.c: free declarations in leak-testing code.
4743
4744         * main.c: close code_file if -r option used, for leak-testing
4745
4746         * defs.h, reader.c:
4747         improve %lex-param / %parse-param implementation by allowing for arrays to
4748         be passed as parameters, e.g., "int regs[26]".
4749
4750         * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h:
4751         RCS_BASE
4752
4753         * test/yacc/calc3.output, test/yacc/calc3.tab.h:
4754         reference output for testing
4755
4756         * test/calc2.tab.c, test/calc2.y, test/calc2.tab.h: RCS_BASE
4757
4758         * test/yacc/calc2.tab.h: reference output for testing
4759
4760         * test/calc2.output: RCS_BASE
4761
4762         * test/yacc/calc2.output: reference output for testing
4763
4764         * output.c:
4765         improve %lex-param / %parse-param implementation by allowing for arrays to
4766         be passed as parameters, e.g., "int regs[26]".
4767
4768         * test/calc.tab.c, test/calc.y:
4769         test-cases and reference files for %lex-param / %parse-param
4770
4771         * makefile.in: add docs-rule, for html/pdf/txt form of manpage
4772
4773         * configure: regen
4774
4775         * aclocal.m4: add CF_XOPEN_SOURCE, etc.
4776
4777         * configure.in:
4778         use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89
4779
4780         * test/ftp.tab.c, test/ftp.y, reader.c, symtab.c, verbose.c, lr0.c,
4781           closure.c:
4782         fix warnings from clang --analyze
4783
4784 2010-06-08  Thomas E. Dickey  <dickey@invisible-island.net>
4785
4786         * output.c: fix to build with c89, etc.
4787
4788         * reader.c: gcc warning
4789
4790         * test/ftp.tab.c, test/ftp.y, test/calc.tab.c, test/code_calc.code.c,
4791           test/code_error.code.c, test/code_error.y, test/code_calc.y,
4792           test/calc.y, test/pure_error.tab.c, test/error.tab.c, test/error.y,
4793           test/pure_calc.y:
4794         modified test-cases to allow them to compile, to validate pure-parser changes.
4795         updated reference files to match.
4796
4797         * output.c:
4798         move call for output_stype() earlier since it is used in pure-parser declarations
4799
4800         * test/grammar.tab.c, test/grammar.y:
4801         modified test-cases to allow them to compile, to validate pure-parser changes.
4802         updated reference files to match.
4803
4804         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
4805         regen
4806
4807         * yacc.1: document %lex-param and %parse-param
4808
4809         * test/run_lint.sh, test/run_make.sh: RCS_BASE
4810
4811         * test/run_test.sh:
4812         further modify to allow build-directory to be in a different location by
4813         passing this directory's location as a parameter to the script.
4814
4815         * makefile.in:
4816         add check_make and check_lint rules to help validate the generated files
4817         in the test-directory
4818
4819 2010-06-07  Thomas E. Dickey  <dickey@invisible-island.net>
4820
4821         * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE
4822
4823         * test/run_test.sh:
4824         provide for testing -r and -P options by checking if the ".y" filename
4825         begins with "code_" or "pure_", respectively.
4826
4827         * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h:
4828         RCS_BASE
4829
4830         * test/yacc/code_error.tab.h: reference output for testing
4831
4832         * test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h:
4833         RCS_BASE
4834
4835         * test/yacc/code_calc.tab.h: reference output for testing
4836
4837         * test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output,
4838           test/pure_error.tab.h:
4839         RCS_BASE
4840
4841         * test/yacc/pure_calc.output, test/yacc/pure_calc.tab.h,
4842           test/yacc/pure_error.tab.h:
4843         reference output for testing
4844
4845         * test/code_calc.output, test/code_error.output: RCS_BASE
4846
4847         * test/yacc/code_calc.output, test/yacc/code_error.output:
4848         reference output for testing
4849
4850         * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen
4851
4852         * test/run_test.sh:
4853         changes to support running "make check" in a separate build-tree
4854
4855         * main.c: add "-P" to usage message
4856
4857         * reader.c: use UCH() macro to hide casts.
4858
4859 2010-06-07  Andres.Mejia
4860
4861         * main.c, output.c, reader.c, defs.h, skeleton.c:
4862         Fix the output order of the generated parse code file.  This allows for
4863         the use of YYPARSE_PARAM, by having the output that checks for
4864         YYPARSE_PARAM to be defined come after the C code block in the
4865         definitions section of a yacc file.
4866
4867         Implement support for YYLEX_PARAM, similar to bison.  This is useful for
4868         support for building reentrant lexers with flex.
4869
4870         Fix a compatibility issue with bison's pure-parser option.  Bison
4871         defines yylex as sending at least one parameter, &yylval, as the first
4872         parameter and doesn't seem to have an easy way to remove that parameter.
4873         This on the other hand is rather convenient to support saving to yylval
4874         from flex when building reentrant lexers and parsers.
4875
4876         Add support for the %parse-param and %lex-param directives used in
4877         bison.  This change bears some similarity to NetBSD's changes to byacc
4878         at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html
4879
4880         Bison allows for POSIX yacc emulation via a yacc directive in the yacc
4881         file, and also via a command line switch.  Implement this feature as a
4882         no-op for byacc, since byacc is designed to be POSIX yacc compatible
4883         anyway.  This allows for better compatibility with yacc sources written
4884         for bison.
4885
4886 2010-06-07  Thomas E. Dickey  <dickey@invisible-island.net>
4887
4888         * VERSION: bump to 2010/06/07
4889
4890 2010-06-06  Thomas E. Dickey  <dickey@invisible-island.net>
4891
4892         * test/calc.tab.c, configure: regen
4893
4894         * skeleton.c:
4895         move #include's down into the generated code, to allow user-defined code
4896         to override feature definitions, particularly with stdlib.h (request by
4897         Marcus Kool).
4898
4899         * lr0.c, error.c, reader.c, defs.h:
4900         strict gcc 3.4.6 warnings on 64-bit platform
4901
4902         * aclocal.m4, configure.in: add check for lint
4903
4904         * makefile.in: add lint rule
4905
4906         * defs.h, closure.c, lr0.c, warshall.c, main.c:
4907         fix gcc warnings, mostly for 64-bit platform
4908
4909         * aclocal.m4:
4910         add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc
4911
4912         * makefile.in: add etags/TAGS if available
4913
4914         * configure.in: add configure check for actual ctags and etags programs
4915
4916         * package/debian/copyright: add copyright notices for non-PD files
4917
4918         * package/debian/changelog:
4919         incorporated scripts in upstream to use for test-builds
4920
4921         * makefile.in: drop mkdirs.sh, just use "mkdir -p"
4922
4923         * AUTHORS: nicknames for some contributors (see CHANGES for details)
4924
4925         * package/byacc.spec: RPM file for byacc
4926
4927         * VERSION: bump to 2010/06/06
4928
4929         * aclocal.m4: add copyright notice, from "my-autoconf" macros
4930                 http://invisible-island.net/autoconf/autoconf.html
4931
4932         * aclocal.m4: resync with my-autoconf.  summary of changes:
4933                 a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter
4934                 b) CF_DISABLE_ECHO, change indent-convention for substituted makefile
4935                 c) CF_GCC_VERSION, ignore stderr
4936                 d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc
4937
4938 2010-04-20  Thomas E. Dickey  <dickey@invisible-island.net>
4939
4940         * package/debian/changelog, package/debian/compat,
4941           package/debian/control, package/debian/copyright, package/debian/docs,
4942           package/debian/postinst, package/debian/prerm, package/debian/rules,
4943           package/debian/watch:
4944         scripts from Debian package
4945
4946 2010-02-16  Thomas E. Dickey  <dickey@invisible-island.net>
4947
4948         * yacc.1: document -P and bison-extensions
4949
4950         * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
4951         regen
4952
4953         * output.c: implement %pure-parser
4954
4955         * skeleton.c:
4956         implement %pure-parser, like bison.  To help with this, changed the stack
4957         variables, putting them into a struct.
4958
4959         * reader.c: implement %pure-parser
4960
4961         * defs.h: modified skeleton to support %pure-parser feature
4962
4963         * main.c: add -P option to set %pure-parser
4964
4965         * output.c:
4966         make -r and -p options work together.  The -r option splits the generated
4967         parser into code/table files; for this case we cannot use static data.
4968         Also, we have to repeat the #define's used for prefix (-p) as well as the
4969         redeclaration of yyparse().  Finally, allow any of the prefixed names to
4970         be overridden, e.g., by passing a -D option to the compiler.  Make that
4971         a little more readable by putting a blank line before each chunk.
4972
4973         * defs.h: add definitions for %pure-parser
4974
4975         * skeleton.c:
4976         put blank line before/after the redeclaration of yyparse()
4977
4978         * output.c: allow for other program redefining yylex()
4979
4980         * skeleton.c:
4981         split-off xdecls[] array, to move declaration of yyparse() after #define's
4982
4983         * defs.h: split-out xdecls[]
4984
4985         * VERSION: bump
4986
4987         * configure: regen
4988
4989         * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS
4990
4991         * aclocal.m4:
4992         resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes.
4993
4994 2010-02-16  Ostap.Cherkashi
4995
4996         * skeleton.c: fix a memory leak in the generated skeleton
4997
4998 2010-01-01  Thomas E. Dickey  <dickey@invisible-island.net>
4999
5000         * package/debian/source/format: scripts from Debian package
5001
5002 2009-12-31  Thomas E. Dickey  <dickey@invisible-island.net>
5003
5004         * config.guess: update to 2009-12-30
5005
5006         * config.sub: update to 2009-12-31
5007
5008 2009-10-27  Thomas E. Dickey  <dickey@invisible-island.net>
5009
5010         * VERSION: 20091027
5011
5012         * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c,
5013           reader.c:
5014         strict compiler warnings
5015
5016 2009-10-26  Thomas E. Dickey  <dickey@invisible-island.net>
5017
5018         * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
5019         resync
5020
5021         * main.c, defs.h: introduce some typedefs for portability, etc.
5022
5023         * makefile.in:
5024         don't remove "*.log" in mostlyclean rule since it interferes with regression
5025         script.
5026
5027         * configure: regen
5028
5029         * aclocal.m4: resync with my-autoconf
5030
5031 2009-08-25  Thomas E. Dickey  <dickey@invisible-island.net>
5032
5033         * config.guess, config.sub: update to 2009-08-19
5034
5035 2009-02-21  Thomas E. Dickey  <dickey@invisible-island.net>
5036
5037         * VERSION: bump
5038
5039         * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25
5040
5041 2008-12-26  Thomas E. Dickey  <dickey@invisible-island.net>
5042
5043         * configure: regen with autoconf-2.52 (patched)
5044
5045 2008-12-25  Thomas E. Dickey  <dickey@invisible-island.net>
5046
5047         * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
5048         regenerated
5049
5050 2008-12-24  Thomas E. Dickey  <dickey@invisible-island.net>
5051
5052         * VERSION: bump
5053
5054         * skeleton.c:
5055         remove ifdef-lint from goto yyerrlab, to quiet gcc warning
5056
5057 2008-11-26  Thomas E. Dickey  <dickey@invisible-island.net>
5058
5059         * verbose.c, main.c, defs.h, mkpar.c, reader.c:
5060         completed implementation of "%expect" (report by Perry E. Metzger).
5061         add "%expect-rr", which is (unlike bison) allowable in LALR parsers.
5062
5063 2008-11-24  Thomas E. Dickey  <dickey@invisible-island.net>
5064
5065         * closure.c, defs.h, error.c, graph.c, lalr.c, lr0.c, main.c, mkpar.c,
5066           warshall.c:
5067         change indent-style (request by Perry E. Metzger)
5068
5069 2008-08-27  Thomas E. Dickey  <dickey@invisible-island.net>
5070
5071         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
5072         better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
5073
5074         * VERSION: bump
5075
5076         * skeleton.c:
5077         better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
5078
5079         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c,
5080           skeleton.c:
5081         change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's.
5082
5083         * configure: regen'd
5084
5085         * configure.in: add -Wwrite-strings to warnings
5086
5087         * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
5088         add YYPARSE_PARAM and YYPARSE_PARAM_TYPE
5089
5090         * skeleton.c:
5091         add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features.
5092
5093         * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c:
5094         fixes for gcc -Wwrite-strings
5095
5096         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
5097         generate the tables as static-const (this is an interface change)
5098
5099         * output.c: realign columns in start_table()
5100
5101         * output.c:
5102         generate the tables as static-const (this is an interface change)
5103
5104         * output.c: reorder functions to eliminate forward-references
5105
5106         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
5107         remove 'register' keywords
5108
5109 2008-08-26  Thomas E. Dickey  <dickey@invisible-island.net>
5110
5111         * warshall.c, verbose.c, symtab.c, skeleton.c, reader.c, output.c,
5112           closure.c:
5113         remove 'register' keywords
5114
5115 2008-08-25  Thomas E. Dickey  <dickey@invisible-island.net>
5116
5117         * test/ftp.tab.c: regen'd
5118
5119         * reader.c:
5120         improve the left-curly fix by testing after blanks, to avoid having a
5121         " {" at the beginning of a line.
5122
5123         * test/error.tab.c, test/grammar.tab.c: regen'd
5124
5125         * output.c:
5126         move the remaining newline-counting into write_XXX functions.
5127
5128         * test/calc.tab.c: regen'd
5129
5130         * output.c:
5131         simplify part of the output_file formatting using new functions, e.g.,
5132         start_int_table(), output_newline().
5133
5134         * reader.c:
5135         modify copy_action() to indent the first character, it if is is left-curly
5136         brace.  That makes the output look more like the original, as well as makes
5137         it simpler to edit (not confuse editors which look for a left-curly in the
5138         first column as if it were the beginning of a function).
5139
5140         * skeleton.c: minor fixes to avoid gcc -Wconversion warnings
5141
5142         * output.c: align the #define's produced for "-p" option
5143
5144         * test/run_test.sh: use the "-p" option for better coverage.
5145
5146         * output.c: simplify output_prefix() with new define_prefixed()
5147
5148         * skeleton.c: include string.h, for memset()
5149         change stack size to unsigned to fix gcc -Wconversion warnings.
5150
5151         * VERSION: bump to 2008/8/25
5152
5153         * makefile.in: add dependency on VERSION file.
5154
5155 2008-08-24  Thomas E. Dickey  <dickey@invisible-island.net>
5156
5157         * VERSION: bump
5158
5159         * lalr.c: improved memory-leak checking by freeing data in includes[]
5160
5161         * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
5162         update to match skeleton-change
5163
5164         * configure: regen'd
5165
5166         * skeleton.c: Add fix for stack discussed
5167                 http://undeadly.org/cgi?action=article&sid=20080708155228
5168         and applied
5169                 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29
5170
5171         * aclocal.m4: resync with my-autoconf (no major changes)
5172
5173 2008-07-24  Thomas E. Dickey  <dickey@invisible-island.net>
5174
5175         * package/pkgsrc/Makefile, package/pkgsrc/distinfo:
5176         scripts from NetBSD pkgsrc, for test-builds
5177
5178 2008-03-14  Thomas E. Dickey  <dickey@invisible-island.net>
5179
5180         * config.sub: update to 2008-03-08
5181
5182         * config.guess: update to 2008-03-12
5183
5184 2007-05-09  Thomas E. Dickey  <dickey@invisible-island.net>
5185
5186         * main.c: close graph, verbose files if opened, on exit.
5187
5188         * main.c:
5189         audit memory leaks - valgrind reported some memory still in use on exit.
5190
5191         * lalr.c, output.c, reader.c, mkpar.c, lr0.c:
5192         add hook for auditing memory leaks
5193
5194         * defs.h: add hooks for auditing memory leaks
5195
5196         * configure: regen'd
5197
5198         * configure.in:
5199         use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind,
5200         --with-dbmalloc and --with-dmalloc
5201
5202         * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND
5203
5204         * aclocal.m4: improve version-checking in CF_GCC_VERSION
5205         rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro
5206
5207         * VERSION: 2007/5/9
5208
5209         * main.c: file_prefix did not always have a trailing null.
5210
5211 2007-03-25  Thomas E. Dickey  <dickey@invisible-island.net>
5212
5213         * mkdirs.sh: improved version for "make -j"
5214
5215 2006-12-22  Thomas E. Dickey  <dickey@invisible-island.net>
5216
5217         * config.guess: update to 2006/12/22
5218
5219 2006-12-08  Thomas E. Dickey  <dickey@invisible-island.net>
5220
5221         * config.sub: update to 2006/12/08
5222
5223 2005-08-13  Thomas E. Dickey  <dickey@invisible-island.net>
5224
5225         * main.c: add -V to usage message
5226
5227         * makefile.in: remove -t option from ctags
5228
5229         * VERSION: 2005/8/13
5230
5231 2005-08-13  schmitz
5232
5233         * main.c: Sylvain Schmitz:
5234         modify the '-o' option to work like bison's, which sets the file-prefix.
5235
5236 2005-08-13  Matt.Kraai
5237
5238         * output.c:
5239         Debian #322858 (don't close union_file, which contained data).
5240         This feature is used in groff.
5241
5242 2005-08-13  Thomas E. Dickey  <dickey@invisible-island.net>
5243
5244         * configure: regenerated
5245
5246         * aclocal.m4: improve checks for Intel compiler warnings
5247
5248 2005-06-25  Thomas E. Dickey  <dickey@invisible-island.net>
5249
5250         * config.sub: update to 2005/6/2
5251
5252         * config.guess: update to 2005/5/27
5253
5254 2005-05-05  Thomas E. Dickey  <dickey@invisible-island.net>
5255
5256         * defs.h: add a fallback for GCC_UNUSED
5257
5258 2005-05-04  Thomas E. Dickey  <dickey@invisible-island.net>
5259
5260         * makefile.in: add "." to include-path to pickup config.h
5261
5262         * reader.c:
5263         apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617.
5264
5265         * output.c:
5266         correct a limit check in pack_vector() - report/analysis by William Evans
5267
5268         * main.c:
5269         exit after printing version.  Otherwise "yacc -V" will exit with an erro
5270         after printing the usage message.
5271
5272         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
5273         regenerated after skeleton-changes
5274
5275         * skeleton.c: replace a few -1's with YYEMPTY
5276
5277         * skeleton.c:
5278         delete yynewerror (no one uses it any more, and it just makes compiler warnings)
5279
5280         * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD
5281
5282         * test/run_test.sh:
5283         filter out lines with YYPATCH, since that will change with each update
5284
5285         * yacc.1: add -V option
5286
5287         * main.c: add -V option to print the version.
5288         simplify option-parsing by moving the duplicate logic for setting flags into
5289         new function setflag().
5290
5291         * skeleton.c:
5292         move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers).
5293         add YYPATCH here so it can be tested by applications.
5294
5295         * defs.h:
5296         add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and
5297         YYPATCH symbols.
5298
5299         * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c,
5300           symtab.c:
5301         reduce externs by making static the procedures that are not referenced outside
5302         the module in which they are defined.
5303
5304         * makefile.in:
5305         the VERSION file holds the patch-date.  Define YYPATCH, so this will be
5306         compiled into the skeleton.
5307
5308         * VERSION: patch-level for byacc
5309
5310         * main.c:
5311         add "-o" to usage message.  It is too long for a single line; rewrite usage()
5312         to show one option per line.
5313
5314 2005-05-03  Thomas E. Dickey  <dickey@invisible-island.net>
5315
5316         * main.c: add -o option, to work with scripts that assume bison.
5317         simplify create_file_names() with a macro.
5318         simplify done() with a macro.
5319         adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by
5320         onintr(), do not flush output via exit(), but use _exit() instead.
5321
5322         * defs.h: remove unnecessary externs for main.c
5323
5324         * yacc.1: add -o option
5325
5326         * graph.c: remove unused parameter
5327
5328         * mkpar.c, defs.h, reader.c:
5329         add support for "%expect", a bison feature from FreeBSD sources
5330
5331         * lr0.c, reader.c, main.c, skeleton.c, graph.c, symtab.c, closure.c,
5332           output.c:
5333         indent'd
5334
5335         * configure: regenerated for 2005/5/5
5336
5337         * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER)
5338
5339 2005-04-27  schmitz
5340
5341         * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1:
5342         Sylvain Schmitz <schmitz@i3s.unice.fr>:
5343         add graphical output of the LALR(1) automaton for graphviz,
5344         associated with command-line option `-g'
5345
5346 2005-04-16  Thomas E. Dickey  <dickey@invisible-island.net>
5347
5348         * config.sub: update to 2005/2/10
5349
5350         * config.guess: update to 2005/3/24
5351
5352 2005-04-13  Thomas E. Dickey  <dickey@invisible-island.net>
5353
5354         * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds
5355
5356 2005-03-21  Thomas E. Dickey  <dickey@invisible-island.net>
5357
5358         * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds
5359
5360 2004-03-28  Thomas E. Dickey  <dickey@invisible-island.net>
5361
5362         * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
5363         updates due to adding yyparse() prototype
5364
5365         * configure: RCS_BASE
5366
5367         * configure.in:
5368         add AC_ARG_PROGRAM to make --program-prefix, etc., work.
5369
5370         * makefile.in: first cut of script to support --program-prefix
5371
5372         * configure.in:
5373         reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52
5374
5375         * makefile.in: modify so DESTDIR works
5376
5377         * makefile.in: use EXEEXT and OBJEXT
5378
5379         * configure.in: use CF_PROG_EXT
5380         generate a config.h
5381
5382         * defs.h: make this use the generated config.h
5383
5384         * skeleton.c: add a forward-reference for yyparse()
5385
5386         * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT
5387
5388         * yacc.1: remove the discussion of TMPDIR since it is obsolete
5389
5390         * skeleton.c: fix a couple of minor compiler-warnings in the skeleton
5391
5392         * defs.h: remove action_file_name, etc., since we use tmpfile() now.
5393
5394         * main.c:
5395         use tmpfile() for opening the working files.  This quiets a warning
5396         advising the use of mkstemp().
5397
5398         * output.c:
5399         Do not close temporary-files here, since they are opened with tmpfile().
5400         Just rewind them, and they're ready to read back the data stored in them.
5401
5402         * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE
5403
5404         * test/yacc/grammar.output, test/yacc/grammar.tab.h:
5405         reference output for testing
5406
5407         * makefile.in: turn on "make check" rule
5408
5409         * test/calc.output: RCS_BASE
5410
5411         * test/yacc/calc.output: reference output for testing
5412
5413         * test/run_test.sh, test/calc.tab.h: RCS_BASE
5414
5415         * test/yacc/calc.tab.h: reference output for testing
5416
5417         * test/ftp.tab.c: yyparse() is now yyparse(void)
5418
5419         * test/calc.tab.c: RCS_BASE
5420
5421         * test/error.tab.c: yyparse() is now yyparse(void)
5422
5423         * test/README: RCS_BASE
5424
5425         * yacc.1: various typography fixes prompted by Debian #100947
5426
5427         * aclocal.m4, makefile.in, configure.in: RCS_BASE
5428
5429         * README: updated to note that this is not the original
5430
5431 2004-03-24  Thomas E. Dickey  <dickey@invisible-island.net>
5432
5433         * test/grammar.y: RCS_BASE
5434
5435 2004-02-23  Thomas E. Dickey  <dickey@invisible-island.net>
5436
5437         * config.sub: RCS_BASE
5438
5439 2004-02-17  Thomas E. Dickey  <dickey@invisible-island.net>
5440
5441         * config.guess: RCS_BASE
5442
5443 2003-11-29  Thomas E. Dickey  <dickey@invisible-island.net>
5444
5445         * install-sh: improved quoting
5446
5447 2002-06-29  Thomas E. Dickey  <dickey@invisible-island.net>
5448
5449         * mkdirs.sh:
5450         don't use character range, since some locales don't work as expected
5451
5452 2001-06-22  Thomas E. Dickey  <dickey@clark.net>
5453
5454         * install-sh: RCS_BASE
5455
5456 2000-11-20  Thomas E. Dickey  <dickey@clark.net>
5457
5458         * test/calc.y: RCS_BASE
5459
5460         * test/code_calc.y, test/pure_calc.y: copy of calc.y
5461
5462         * vmsbuild.com: original version
5463
5464 2000-02-14  Thomas E. Dickey  <dickey@clark.net>
5465
5466         * main.c: fix for VMS port - making pathname for temp-file
5467
5468         * descrip.mms: original version
5469
5470 2000-02-13  Thomas E. Dickey  <dickey@clark.net>
5471
5472         * defs.h, verbose.c, reader.c, main.c, skeleton.c, warshall.c, symtab.c,
5473           error.c:
5474         ansify
5475
5476 1999-11-30  Thomas E. Dickey  <dickey@clark.net>
5477
5478         * mkdirs.sh: RCS_BASE
5479
5480 1995-01-01  Thomas E. Dickey  <dickey@clark.net>
5481
5482         * config_h.in: RCS_BASE
5483
5484 1993-12-23  unknown
5485
5486         * README.DOS, main.c: MSDOS-port
5487
5488 1993-12-22  unknown
5489
5490         * reader.c, defs.h: MSDOS-port
5491
5492 1993-03-02  unknown
5493
5494         * README: original version
5495
5496 1993-02-22  unknown
5497
5498         * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE
5499
5500 1993-02-22  dickey@software.org
5501
5502         * test/yacc/error.output, test/yacc/error.tab.h:
5503         reference output for testing
5504
5505 1993-02-22  unknown
5506
5507         * test/error.output, test/error.tab.c, test/error.tab.h: RCS_BASE
5508
5509         * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES:
5510         original version
5511
5512 1992-10-12  unknown
5513
5514         * yacc.1: original version
5515
5516 1992-10-11  unknown
5517
5518         * defs.h: original version
5519
5520 1991-01-20  unknown
5521
5522         * mkpar.c, verbose.c: original version
5523
5524 1991-01-14  unknown
5525
5526         * lr0.c, Makefile, Makefile.old: original version
5527
5528 1990-07-16  unknown
5529
5530         * NEW_FEATURES: original version
5531
5532 1990-06-03  unknown
5533
5534         * ACKNOWLEDGEMENTS: original version
5535
5536 1990-02-05  unknown
5537
5538         * symtab.c, lalr.c, error.c: original version
5539
5540 1990-01-16  dickey@software.org
5541
5542         * test/code_error.y, test/pure_error.y: RCS_BASE
5543
5544 1990-01-16  unknown
5545
5546         * test/error.y: RCS_BASE
5547
5548 1989-11-22  unknown
5549
5550         * NO_WARRANTY: original version
5551
5552 1989-09-23  unknown
5553
5554         * test/ftp.y: RCS_BASE
5555