CHANGES revision 272955
1272955Srodrigc2014-10-05 Thomas E. Dickey <tom@invisible-island.net> 2272955Srodrigc 3272955Srodrigc * main.c: 4272955Srodrigc make change to umask before calling mkstemp, as suggested in Coverity #56902 5272955Srodrigc 6272955Srodrigc * reader.c: 7272955Srodrigc adjust logic in copy_action to avoid potential null-pointer dereference 8272955Srodrigc (Coverity #56901) 9272955Srodrigc 10272955Srodrigc * reader.c: 11272955Srodrigc adjust logic to avoid potential null-pointer dereference in compile_args 12272955Srodrigc (Coverity #63407) 13272955Srodrigc 14272955Srodrigc * reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408) 15272955Srodrigc 16272955Srodrigc * yacc.1: document changes made with respect to %parse-param 17272955Srodrigc 18272955Srodrigc * output.c: 19272955Srodrigc add parameters from %parse-param to destructor. The order of the parameters 20272955Srodrigc is intentionally inconsistent with yyparse/yyerror, for "compatibility" with 21272955Srodrigc bison. 22272955Srodrigc 23272955Srodrigc * test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c: 24272955Srodrigc regen 25272955Srodrigc 26272955Srodrigc * output.c: 27272955Srodrigc use puts_param_types/puts_param_names to output lex_param data. 28272955Srodrigc 29272955Srodrigc * test/btyacc/ok_syntax1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/rename_debug.c: 30272955Srodrigc regen 31272955Srodrigc 32272955Srodrigc * btyaccpar.c: add casts, change types to fix strict compiler warnings 33272955Srodrigc 34272955Srodrigc * test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c: 35272955Srodrigc regen 36272955Srodrigc 37272955Srodrigc * output.c: gcc-warning 38272955Srodrigc 39272955Srodrigc * test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c: regen 40272955Srodrigc 41272955Srodrigc * output.c: fix limit when merging real/workaround tables 42272955Srodrigc 43272955Srodrigc * output.c: 44272955Srodrigc for btyacc, it is possible to have no conflicts - but in that case, the 45272955Srodrigc "ctable" was not generated at all, while the skeleton uses the table. 46272955Srodrigc The most straightforward (workaround) is generating a dummy table which 47272955Srodrigc rejects any state. 48272955Srodrigc 49272955Srodrigc * test/btyacc_destroy3.y, test/btyacc_destroy2.y, test/btyacc_destroy1.y: 50272955Srodrigc fix "make check_make" 51272955Srodrigc 52272955Srodrigc * test/yacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/calc2.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c: 53272955Srodrigc regen 54272955Srodrigc 55272955Srodrigc * reader.c: 56272955Srodrigc trim blanks from interim value in copy_param() to handle special case when 57272955Srodrigc a space precedes a comma. 58272955Srodrigc 59272955Srodrigc * output.c: 60272955Srodrigc use two new functions, puts_param_types and puts_param_names, to improve 61272955Srodrigc format of the parse_param list (by trimming space after "*") as well as 62272955Srodrigc correcting the output of the comma-separated names (only the last name 63272955Srodrigc was output). 64272955Srodrigc 65272955Srodrigc * test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c: 66272955Srodrigc regen 67272955Srodrigc 68272955Srodrigc * reader.c: 69272955Srodrigc modify copy_param() to handle resulting comma-separated list. Before, it 70272955Srodrigc only expected a single parameter. 71272955Srodrigc 72272955Srodrigc2014-10-04 Thomas E. Dickey <tom@invisible-island.net> 73272955Srodrigc 74272955Srodrigc * reader.c: split-out save_param() from copy_param() 75272955Srodrigc 76272955Srodrigc * reader.c: trim_blanks() did not always convert spaces - fix. 77272955Srodrigc 78272955Srodrigc * reader.c: fix some minor regressions with error-reporting 79272955Srodrigc 80272955Srodrigc * aclocal.m4: update CF_XOPEN_SOURCE for Unixware change from lynx 81272955Srodrigc 82272955Srodrigc * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 83272955Srodrigc bump 84272955Srodrigc 85272955Srodrigc * reader.c: 86272955Srodrigc modify copy_param() to accept multiple parameters, each in curly braces like 87272955Srodrigc recent bison, as well as honoring bison's undocumented feature to accept the 88272955Srodrigc parameters as a comma-separated list. 89272955Srodrigc 90272955Srodrigc * test/btyacc/btyacc_destroy3.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.error, test/btyacc/btyacc_destroy3.output, test/btyacc/btyacc_destroy3.tab.h, test/btyacc/btyacc_destroy2.error, test/btyacc/btyacc_destroy2.output, test/btyacc/btyacc_destroy2.tab.h: 91272955Srodrigc RCS_BASE 92272955Srodrigc 93272955Srodrigc2014-10-03 Thomas E. Dickey <tom@invisible-island.net> 94272955Srodrigc 95272955Srodrigc * test/btyacc/btyacc_demo2.error, test/btyacc/btyacc_demo2.output, test/btyacc/btyacc_demo2.tab.c, test/btyacc/btyacc_demo2.tab.h, test/btyacc/btyacc_destroy1.error, test/btyacc/btyacc_destroy1.output, test/btyacc/btyacc_destroy1.tab.h, test/btyacc_destroy3.y, test/btyacc_destroy1.y, test/btyacc_destroy2.y: 96272955Srodrigc RCS_BASE 97272955Srodrigc 98272954Srodrigc2014-10-02 Thomas E. Dickey <tom@invisible-island.net> 99272954Srodrigc 100272955Srodrigc * main.c, reader.c, defs.h: 101272954Srodrigc use calloc in get_line() when allocating line to ensure it is fully initialized, 102272954Srodrigc fixes a later uninitialized value in copy_param() (FreeBSD #193499). 103272954Srodrigc 104272955Srodrigc2014-09-17 Thomas E. Dickey <tom@invisible-island.net> 105272955Srodrigc 106272955Srodrigc * closure.c, lalr.c, output.c, defs.h: 107272955Srodrigc rephrase odd addressing to fix Coverity #48848, #38950, #38860, not actually 108272955Srodrigc a bug. 109272955Srodrigc 110272955Srodrigc2014-09-01 Thomas E. Dickey <tom@invisible-island.net> 111272955Srodrigc 112272955Srodrigc * config.sub: update to 2014-07-28 113272955Srodrigc 114272955Srodrigc2014-07-27 Thomas E. Dickey <tom@invisible-island.net> 115272955Srodrigc 116272955Srodrigc * configure: regen 117272955Srodrigc 118272955Srodrigc * aclocal.m4: modified to support port to Minix3.2 119272955Srodrigc 120272955Srodrigc * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 121272955Srodrigc bump 122272955Srodrigc 123272953Srodrigc2014-07-15 Thomas E. Dickey <tom@invisible-island.net> 124272953Srodrigc 125272953Srodrigc * aclocal.m4: resync with my-autoconf (no change to configure script) 126272953Srodrigc 127272953Srodrigc * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 128272953Srodrigc bump 129272953Srodrigc 130272953Srodrigc * test/run_test.sh: 131272953Srodrigc make top-level "make check" work again, by adding another step to filtering 132272953Srodrigc the test results. 133272953Srodrigc 134272953Srodrigc2014-07-14 Thomas E. Dickey <tom@invisible-island.net> 135272953Srodrigc 136272953Srodrigc * test/run_test.sh: changes from Garrett Cooper's patch: 137272953Srodrigc a) ensure that the script returns an error-code if there are differences 138272953Srodrigc b) escape "." character in left side of sed expression for $YACC 139272953Srodrigc c) ensure that $ifBTYACC has a value 140272953Srodrigc 141272953Srodrigc * test/btyacc/big_b.output, test/btyacc/big_l.output, test/btyacc/help.output, test/btyacc/no_b_opt.output, test/btyacc/no_output2.output, test/btyacc/no_p_opt.output, test/btyacc/nostdin.output: 142272953Srodrigc regen (reminder by Garrett Cooper) 143272953Srodrigc 144272953Srodrigc2014-07-14 Garrett.Cooper 145272953Srodrigc 146272953Srodrigc * test/btyacc/err_inherit1.error, test/btyacc/err_inherit2.error, test/btyacc/err_inherit3.error, test/btyacc/err_inherit4.error, test/btyacc/err_inherit5.error, test/btyacc/err_syntax1.error, test/btyacc/err_syntax10.error, test/btyacc/err_syntax11.error, test/btyacc/err_syntax12.error, test/btyacc/err_syntax13.error, test/btyacc/err_syntax14.error, test/btyacc/err_syntax15.error, test/btyacc/err_syntax16.error, test/btyacc/err_syntax17.error, test/btyacc/err_syntax18.error, test/btyacc/err_syntax19.error, test/btyacc/err_syntax2.error, test/btyacc/err_syntax21.error, test/btyacc/err_syntax22.error, test/btyacc/err_syntax23.error, test/btyacc/err_syntax24.error, test/btyacc/err_syntax25.error, test/btyacc/err_syntax26.error, test/btyacc/err_syntax27.error, test/btyacc/err_syntax3.error, test/btyacc/err_syntax4.error, test/btyacc/err_syntax5.error, test/btyacc/err_syntax6.error, test/btyacc/err_syntax7.error, test/btyacc/err_syntax7a.error, test/btyacc/err_syntax7b.error, test/btyacc/err_syntax8.error, test/btyacc/err_syntax8a.error, test/btyacc/err_syntax9.error, test/yacc/err_syntax1.error, test/yacc/err_syntax10.error, test/yacc/err_syntax11.error, test/yacc/err_syntax12.error, test/yacc/err_syntax13.error, test/yacc/err_syntax14.error, test/yacc/err_syntax15.error, test/yacc/err_syntax16.error, test/yacc/err_syntax17.error, test/yacc/err_syntax18.error, test/yacc/err_syntax19.error, test/yacc/err_syntax2.error, test/yacc/err_syntax21.error, test/yacc/err_syntax22.error, test/yacc/err_syntax23.error, test/yacc/err_syntax24.error, test/yacc/err_syntax25.error, test/yacc/err_syntax26.error, test/yacc/err_syntax27.error, test/yacc/err_syntax3.error, test/yacc/err_syntax4.error, test/yacc/err_syntax5.error, test/yacc/err_syntax6.error, test/yacc/err_syntax7.error, test/yacc/err_syntax7a.error, test/yacc/err_syntax7b.error, test/yacc/err_syntax8.error, test/yacc/err_syntax8a.error, test/yacc/err_syntax9.error: 147272953Srodrigc regen 148272953Srodrigc 149272953Srodrigc2014-05-27 Tom.Shields 150272953Srodrigc 151272953Srodrigc * main.c: remove obsolete -D option from usage message 152272953Srodrigc 153272953Srodrigc2014-05-27 Thomas E. Dickey <tom@invisible-island.net> 154272953Srodrigc 155272953Srodrigc * VERSION, package/byacc.spec, package/debian/changelog, test/yacc/big_b.output, test/yacc/big_l.output, test/yacc/help.output, test/yacc/no_b_opt.output, test/yacc/no_output2.output, test/yacc/no_p_opt.output, test/yacc/nostdin.output: 156272953Srodrigc bump 157272953Srodrigc 158268899Sbapt2014-04-22 Thomas E. Dickey <tom@invisible-island.net> 159268899Sbapt 160268899Sbapt * mstring.c: 161268899Sbapt use vsnprintf() to ensure that msprintf's buffer is large enough. 162268899Sbapt 163268899Sbapt * main.c, defs.h: add mstring_leaks() 164268899Sbapt 165268899Sbapt * configure: regen 166268899Sbapt 167268899Sbapt * output.c: fix a complementary warning 168268899Sbapt 169268899Sbapt * mstring.c: introduce vsnprintf 170268899Sbapt 171268899Sbapt * configure.in, config_h.in: add check for vsnprintf 172268899Sbapt 173268899Sbapt * output.c: quiet a type-conversion warning 174268899Sbapt 175268899Sbapt * mstring.c: fix a potential memory leak on ENOMEM 176268899Sbapt quiet a couple of type-conversion warnings 177268899Sbapt 178268899Sbapt * defs.h: add/use GCC_PRINTFLIKE for msprintf() 179268899Sbapt 180268899Sbapt2014-04-22 Tom.Shields 181268899Sbapt 182268899Sbapt * README.BTYACC: 183268899Sbapt drop "NOTES-btyacc-Changes" and "NOTES-btyacc-Disposition", merging relevant 184268899Sbapt content into README.BTYACC 185268899Sbapt 186268899Sbapt2014-04-22 Thomas E. Dickey <tom@invisible-island.net> 187268899Sbapt 188268899Sbapt * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 189268899Sbapt bump 190268899Sbapt 191268899Sbapt2014-04-19 Thomas E. Dickey <tom@invisible-island.net> 192268899Sbapt 193268899Sbapt * config.sub: 2014-04-03 194268899Sbapt 195268899Sbapt * config.guess: 2014-03-23 196268899Sbapt 197268899Sbapt2014-04-09 Rick.Spates 198268899Sbapt 199268899Sbapt * main.c, defs.h: patch to allow DEBUG build with WIN32 system 200268899Sbapt 201268899Sbapt2014-04-09 Thomas E. Dickey <tom@invisible-island.net> 202268899Sbapt 203268899Sbapt * output.c, reader.c: gcc warnings 204268899Sbapt 205268899Sbapt * reader.c: fix const-cast warnings 206268899Sbapt 207268899Sbapt * test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/code_error.tab.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/error.tab.c, test/btyacc/rename_debug.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.tab.c, output.c: 208268899Sbapt fix a few clang --analyze warnings; one was a case where output_ctable emitted 209268899Sbapt an empty table (which should be an error). 210268899Sbapt 211268899Sbapt * reader.c: appease clang --analyze 212268899Sbapt 213268899Sbapt * defs.h: mark two functions as no-return. 214268899Sbapt 215268899Sbapt * package/debian/changelog: reason for release 216268899Sbapt 217268899Sbapt * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 218268899Sbapt bump 219268899Sbapt 220268899Sbapt * makefile.in: use $LINT_OPTS from environment via configure script 221268899Sbapt 222268899Sbapt * test/btyacc/ok_syntax1.output, test/btyacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.c, test/ok_syntax1.y, test/yacc/ok_syntax1.output: 223268899Sbapt tweaks to make generated files from ok_syntax1.y compile with check_make rule 224268899Sbapt 225268899Sbapt * test/btyacc/rename_debug.c, test/btyacc/rename_debug.error, test/btyacc/rename_debug.h, test/btyacc/rename_debug.i, test/btyacc/rename_debug.output, test/yacc/rename_debug.c: 226268899Sbapt reference output for testing 227268899Sbapt 228268899Sbapt * test/run_test.sh: 229268899Sbapt retain the renaming done for code_debug.y so that check_make will work. 230268899Sbapt 231268899Sbapt * test/yacc/rename_debug.error, test/yacc/rename_debug.h, test/yacc/rename_debug.i, test/yacc/rename_debug.output: 232268899Sbapt reference output for testing 233268899Sbapt 234268899Sbapt * test/btyacc/ok_syntax1.error: RCS_BASE 235268899Sbapt 236268899Sbapt * test/yacc/quote_calc4-s.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, yaccpar.c: 237268899Sbapt regen 238268899Sbapt 239268899Sbapt * yacc.1: 240268899Sbapt clarify relationship of btyacc features to default configuration. 241268899Sbapt 242268899Sbapt2014-04-08 Thomas E. Dickey <tom@invisible-island.net> 243268899Sbapt 244268899Sbapt * test/yacc/ok_syntax1.output, test/yacc/ok_syntax1.tab.c, test/yacc/ok_syntax1.tab.h, test/btyacc/ok_syntax1.output, test/btyacc/ok_syntax1.tab.c, test/btyacc/ok_syntax1.tab.h: 245268899Sbapt reference output for testing 246268899Sbapt 247268899Sbapt * test/ok_syntax1.y: RCS_BASE 248268899Sbapt 249268899Sbapt * test/yacc/ok_syntax1.error: reference output for testing 250268899Sbapt 251268899Sbapt * test/yacc/big_b.error, test/yacc/big_b.output, test/yacc/big_l.error, test/yacc/big_l.output, test/btyacc/big_b.error, test/btyacc/big_b.output, test/btyacc/big_l.error, test/btyacc/big_l.output, test/run_test.sh: 252268899Sbapt exercise -L/-B options 253268899Sbapt 254268899Sbapt * test/yacc/code_debug.c, test/btyacc/code_debug.c, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax27.tab.c, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/run_test.sh, test/yacc/no_b_opt1.output: 255268899Sbapt use a better renaming of the YYPATCH definition (none of the test-cases rely 256268899Sbapt upon it, but redefinition in the "make check_make" rule is a problem). 257268899Sbapt 258268899Sbapt * test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/varsyntax_calc1.tab.c: 259268899Sbapt undid temporary reordering in reader() by Tom Shields to align with byacc outputs 260268899Sbapt 261268899Sbapt * test/run_test.sh: remove a repeated test-case 262268899Sbapt 263268899Sbapt * mstring.c: minor reformatting to make coverage analysis simpler 264268899Sbapt 265268899Sbapt2014-04-07 Thomas E. Dickey <tom@invisible-island.net> 266268899Sbapt 267268899Sbapt * test/run_test.sh: tidy 268268899Sbapt 269268899Sbapt * test/yacc/help.error, test/yacc/help.output, test/yacc/no_b_opt.error, test/yacc/no_b_opt.output, test/yacc/no_b_opt1.error, test/yacc/no_b_opt1.output, test/yacc/no_code_c.error, test/yacc/no_code_c.output, test/yacc/no_defines.error, test/yacc/no_defines.output, test/yacc/no_graph.error, test/yacc/no_graph.output, test/yacc/no_include.error, test/yacc/no_include.output, test/yacc/no_opts.error, test/yacc/no_opts.output, test/yacc/no_output.error, test/yacc/no_output.output, test/yacc/no_output1.error, test/yacc/no_output1.output, test/yacc/no_output2.error, test/yacc/no_output2.output, test/yacc/no_p_opt.error, test/yacc/no_p_opt.output, test/yacc/no_p_opt1.error, test/yacc/no_p_opt1.output, test/yacc/no_verbose.error, test/yacc/no_verbose.output, test/yacc/nostdin.error, test/yacc/nostdin.output, test/yacc/test-no_b_opt1.output: 270268899Sbapt reference output for testing 271268899Sbapt 272268899Sbapt * test/run_test.sh: 273268899Sbapt add special checks for flags which depend on writable/existing files 274268899Sbapt 275268899Sbapt * test/btyacc/no_b_opt1.output, test/btyacc/no_p_opt1.output, test/btyacc/no_b_opt.error, test/btyacc/no_b_opt.output, test/btyacc/no_b_opt1.error, test/btyacc/no_code_c.output, test/btyacc/no_p_opt.error, test/btyacc/no_p_opt.output, test/btyacc/no_p_opt1.error, test/btyacc/no_output2.output, test/btyacc/no_code_c.error, test/btyacc/no_output2.error, test/btyacc/no_include.error, test/btyacc/no_include.output, test/btyacc/no_defines.output, test/btyacc/no_defines.error, test/btyacc/no_verbose.output, test/btyacc/no_graph.output, test/btyacc/no_graph.error, test/btyacc/no_opts.error, test/btyacc/no_opts.output, test/btyacc/no_verbose.error, test/btyacc/nostdin.error, test/btyacc/nostdin.output, test/btyacc/no_output.error, test/btyacc/no_output.output, test/btyacc/no_output1.error, test/btyacc/no_output1.output: 276268899Sbapt reference output for testing 277268899Sbapt 278268899Sbapt * main.c: 279268899Sbapt change CREATE_FILE_NAMES() to use local function rather than inline code, 280268899Sbapt to simplify coverage analysis. 281268899Sbapt 282268899Sbapt * test/btyacc/err_syntax27.error, test/btyacc/err_syntax27.output, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax27.tab.h, test/btyacc/help.error, test/btyacc/help.output, test/yacc/err_syntax27.error, test/yacc/err_syntax27.output, test/yacc/err_syntax27.tab.c, test/yacc/err_syntax27.tab.h: 283268899Sbapt reference output for testing 284268899Sbapt 285268899Sbapt * test/err_syntax27.y: testcase for missing_brace() 286268899Sbapt 287268899Sbapt * error.c: ifdef'd non-btyacc function 288268899Sbapt 289268899Sbapt * lr0.c: ifdef'd debug-code 290268899Sbapt 291268899Sbapt * yaccpar.skel: use YYINT's to replace short's as in btyaccpar.skel 292268899Sbapt 293268899Sbapt * test/btyacc/code_debug.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_debug.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, output.c, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c, test/run_test.sh: 294268899Sbapt 2010/11/26 simplification of output.c using putc_code() and putl_code() 295268899Sbapt omitted an adjustment of the #line value used for code-file. Fix that. 296268899Sbapt Also, amend 2005/05/04 change to run_test.sh to retain a dummy line for 297268899Sbapt YYPATCH #define's to make test-outputs easier to compare #line's (report 298268899Sbapt by Tom Shields) 299268899Sbapt 300268899Sbapt2014-04-06 Thomas E. Dickey <tom@invisible-island.net> 301268899Sbapt 302268899Sbapt * reader.c: fix for valgrind 303268899Sbapt (the calloc's are intentional - valgrind reported use of uninitialized memory) 304268899Sbapt 305268899Sbapt * lr0.c, output.c: fix for valgrind 306268899Sbapt 307268899Sbapt * test/btyacc/code_debug.c, test/btyacc/code_debug.error, test/btyacc/code_debug.h, test/btyacc/code_debug.i, test/btyacc/code_debug.output: 308268899Sbapt RCS_BASE 309268899Sbapt 310268899Sbapt * test/yacc/code_debug.c, test/yacc/code_debug.h: 311268899Sbapt exercise the -i option 312268899Sbapt 313268899Sbapt * test/yacc/code_debug.i: reference output for testing 314268899Sbapt 315268899Sbapt * test/run_test.sh: exercise the -i option 316268899Sbapt 317268899Sbapt * test/yacc/code_debug.c: reference output for testing 318268899Sbapt 319268899Sbapt * test/run_test.sh: exercise the "-o" option 320268899Sbapt 321268899Sbapt * test/yacc/code_debug.error, test/yacc/code_debug.h, test/yacc/code_debug.output: 322268899Sbapt reference output for testing 323268899Sbapt 324268899Sbapt * output.c: don't call exit() without giving a chance to cleanup. 325268899Sbapt 326268899Sbapt * mstring.c: ifdef'd functions not used in byacc 327268899Sbapt 328268899Sbapt * btyaccpar.c: generated from btyaccpar.skel 329268899Sbapt 330268899Sbapt * yaccpar.c: generated from yaccpar.skel 331268899Sbapt 332268899Sbapt * skel2c: 333268899Sbapt change the generated-by comment to show which version of this script (and 334268899Sbapt which version of the given skeleton file) were used to produce the C-file. 335268899Sbapt 336268899Sbapt * configure: regen 337268899Sbapt 338268899Sbapt * makefile.in: 339268899Sbapt add rules to generate byacc and btyacc parser skeleton files independently 340268899Sbapt 341268899Sbapt * aclocal.m4: CF_PROG_AWK - add to byacc's configure script 342268899Sbapt CF_INTEL_COMPILER 343268899Sbapt cleanup the -no-gcc option which was leftover from testing - prcs does 344268899Sbapt not build with this option. 345268899Sbapt CF_MAKE_DOCS 346268899Sbapt protect $2 from substitution, for luit's "$(manext)" 347268899Sbapt CF_XOPEN_SOURCE 348268899Sbapt for Solaris (tested with gcc/g++ 3.4.3 on Solaris 10 and gcc/g++ 4.5.2 349268899Sbapt on Solaris 11), suppress the followup check for defining _XOPEN_SOURCE 350268899Sbapt because it is not needed, as well as because g++ 4.7.3 (no package, 351268899Sbapt used in Sage for Solaris 10) has some unspecified header breakage which 352268899Sbapt is triggered by the duplicate definition. 353268899Sbapt 354268899Sbapt * configure.in: 355268899Sbapt modify so skeleton-source is determined by configure options rather than by 356268899Sbapt having developer rename yaccpar.skel.old to yaccpar.skel 357268899Sbapt 358268899Sbapt * descrip.mms: rename skeleton 359268899Sbapt 360268899Sbapt * vmsbuild.com: 361268899Sbapt fwiw, renamed the skeleton for consistency with makefile 362268899Sbapt 363268899Sbapt * skel2c, skeleton.c: resync skeleton and its generating files 364268899Sbapt 365268899Sbapt * yaccpar.skel: 366268899Sbapt renamed yaccpar.skel.old to yaccpar.skel, to allow using makefile suffix rules 367268899Sbapt 368268899Sbapt * yaccpar.skel.old: resync skeleton and its generating files 369268899Sbapt 370268899Sbapt * test/run_make.sh: improve cleanup after error recovery 371268899Sbapt 372268899Sbapt * test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, output.c, skeleton.c, defs.h: 373268899Sbapt use improvement from Tom Shield's btyacc changes, getting rid of special cases for generating two yyerror calls in skeleton 374268899Sbapt 375268899Sbapt * output.c: simplify output_yyerror_decl() 376268899Sbapt 377268899Sbapt * test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.tab.c, test/yacc/code_error.tab.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, output.c: 378268899Sbapt add second "const" to string-table declarations, from Tom Shield's btyacc changes 379268899Sbapt 380268899Sbapt * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c: 381268899Sbapt discard unnecessary call on write_code_lineno() from Tom Shield's changes 382268899Sbapt 383268899Sbapt * test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.code.c, test/yacc/code_error.tab.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, output.c: 384268899Sbapt use YYINT typedef from Tom Shield's btyacc changes to replace explicit "short" 385268899Sbapt 386268899Sbapt * test/yacc/code_calc.code.c, test/yacc/code_error.code.c, output.c: 387268899Sbapt use fix from Tom Shield's btyacc changes: remove redundant extern-declaration for YYPARSE_DECL() 388268899Sbapt 389268899Sbapt * test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c: 390268899Sbapt discard unnecessary call on write_code_lineno() from Tom Shield's changes 391268899Sbapt 392268899Sbapt * output.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.tab.c: 393268899Sbapt use fix from Tom Shield's btyacc changes: prefix-definitions went to the 394268899Sbapt output (.tab.c) file in a case where they should have gone to the code 395268899Sbapt (.code.c) file. Remove now-redundant call to output_prefix(). 396268899Sbapt 397268899Sbapt * main.c: do the same for help-message 398268899Sbapt 399268899Sbapt * main.c: use OUTPUT_SUFFIX symbol in an overlooked case 400268899Sbapt 401268899Sbapt * test/run_make.sh: 402268899Sbapt modify to avoid use of VPATH, which has no standard implementation 403268899Sbapt 404268899Sbapt2014-04-05 Thomas E. Dickey <tom@invisible-island.net> 405268899Sbapt 406268899Sbapt * test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c: 407268899Sbapt discard a change which merged CountLines() with explicit comparisons against 408268899Sbapt code_file because that adds extra to the #line values 409268899Sbapt 410268899Sbapt * test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/calc.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/error.tab.c, output.c: 411268899Sbapt add Tom Shield's change to allow definition of YYSTYPE_IS_DECLARED symbol to 412268899Sbapt override fallback typedef for YYSTYPE when that symbol is undefined 413268899Sbapt 414268899Sbapt * test/btyacc/error.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c: 415268899Sbapt minor tweak to coding style - use parenthesis for "defined" operator's parameter 416268899Sbapt 417268899Sbapt * test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c: 418268899Sbapt regen to make YYMAXTOKEN and YYUNDFTOKEN adjacent 419268899Sbapt 420268899Sbapt * test/yacc/err_syntax20.tab.c, test/yacc/grammar.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.code.c, test/yacc/code_error.tab.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c: 421268899Sbapt regen after adding the YYUNDFTOKEN symbol 422268899Sbapt 423268899Sbapt * output.c: 424268899Sbapt integrate Tom Shield's btyacc changes which introduce the YYUNDFTOKEN symbol 425268899Sbapt (I changed order of output to keep this adjacent to YYMAXTOKEN) 426268899Sbapt 427268899Sbapt * reader.c: 428268899Sbapt merge all but one small change from Tom Shield's btyacc changes - that 429268899Sbapt changes the order of code-file in the tests. 430268899Sbapt 431268899Sbapt * test/btyacc/btyacc_demo.tab.c: regen 432268899Sbapt 433268899Sbapt * test/btyacc_demo.y: fix prototypes 434268899Sbapt 435268899Sbapt2014-04-04 Thomas E. Dickey <tom@invisible-island.net> 436268899Sbapt 437268899Sbapt * reader.c, defs.h, main.c: 438268899Sbapt more merging of Tom Shield's btyacc changes. In the merge, I moved the 439268899Sbapt symbol_pval inside the btyacc ifdef's and added some more btyacc ifdefs 440268899Sbapt 441268899Sbapt2014-04-03 Thomas E. Dickey <tom@invisible-island.net> 442268899Sbapt 443268899Sbapt * reader.c: 444268899Sbapt merge-in 3/4 of btyacc's changes, deferring those which change test-outputs. 445268899Sbapt Tom Shield's changes split-out copy_string() and copy_comment() functions 446268899Sbapt to simplify some logic, as well as adding btyacc-only chunks 447268899Sbapt 448268899Sbapt * makefile.in: build mstring.o, needed for changes in reader.c 449268899Sbapt 450268899Sbapt * output.c: 451268899Sbapt merge-in all of btyacc's changes which do not change byacc's test-output. 452268899Sbapt Some of the merge uses ifdef-changes which I applied to ongoing resync, 453268899Sbapt e.g., the introduction of PER_STATE. 454268899Sbapt 455268899Sbapt2014-04-02 Thomas E. Dickey <tom@invisible-island.net> 456268899Sbapt 457268899Sbapt * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c: regen 458268899Sbapt 459268899Sbapt * output.c: fix typo 460268899Sbapt 461268899Sbapt * output.c, reader.c: 462268899Sbapt merge in some chunks of reader and output files which do not affect byacc tests 463268899Sbapt 464268899Sbapt * test/yacc/calc2.tab.c, test/yacc/calc3.tab.c: regen 465268899Sbapt 466268899Sbapt * test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, skeleton.c: 467268899Sbapt incorporate YYENOMEM and YYEOF symbols from btyacc 468268899Sbapt 469268899Sbapt * output.c: merge chunk from btyacc changes for header-guards 470268899Sbapt 471268899Sbapt * btyaccpar.skel: RCS_BASE 472268899Sbapt 473268899Sbapt * yaccpar.skel: comment-out yysccsid[], for FreeBSD build-issues 474268899Sbapt remove GCC_UNUSED to reduce name-pollution as well as being simpler 475268899Sbapt 476268899Sbapt * main.c: 477268899Sbapt move a btyacc symbol outside ifdef to work around current state of merge 478268899Sbapt 479268899Sbapt * defs.h: 480268899Sbapt add USE_HEADER_GUARDS to defer whether to modify byacc's header-output 481268899Sbapt 482268899Sbapt * test/run_make.sh: 483268899Sbapt do not try to compile files used for testing syntax-errors, since they are 484268899Sbapt likely to be incomplete 485268899Sbapt 486268899Sbapt2014-04-02 Tom.Shields 487268899Sbapt 488268899Sbapt * main.c: changes for btyacc 489268899Sbapt 490268899Sbapt2014-04-01 Thomas E. Dickey <tom@invisible-island.net> 491268899Sbapt 492268899Sbapt * reader.c: 493268899Sbapt integrate change by Tom Shields to use bsearch rather than successive 494268899Sbapt calls to matchec() 495268899Sbapt 496268899Sbapt * defs.h: typedef __compar_fn_t is unnecessary 497268899Sbapt 498268899Sbapt * test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c: 499268899Sbapt omit the GCC_UNUSED, as noted by Tom Shields not really essential 500268899Sbapt 501268899Sbapt2014-04-01 Tom.Shields 502268899Sbapt 503268899Sbapt * verbose.c: changes for btyacc, ifdef'd 504268899Sbapt 505268899Sbapt2014-04-01 Thomas E. Dickey <tom@invisible-island.net> 506268899Sbapt 507268899Sbapt * mkpar.c: eliminate most of the ifdef's using macros 508268899Sbapt 509268899Sbapt2014-04-01 Tom.Shields 510268899Sbapt 511268899Sbapt * mkpar.c: merge btyacc changes (ifdef'd - no change to byacc) 512268899Sbapt 513268899Sbapt * error.c: 514268899Sbapt new functions used for reporting errors from the btyacc configuration 515268899Sbapt (I reordered some, and ifdef'd the new ones -TD) 516268899Sbapt 517268899Sbapt2014-03-31 Thomas E. Dickey <tom@invisible-island.net> 518268899Sbapt 519268899Sbapt * test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c: 520268899Sbapt omit the GCC_UNUSED, as noted by Tom Shields not really essential 521268899Sbapt 522268899Sbapt * test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c: 523268899Sbapt regen 524268899Sbapt 525268899Sbapt2014-03-29 Thomas E. Dickey <tom@invisible-island.net> 526268899Sbapt 527268899Sbapt * test/yacc/err_syntax22.tab.c, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax9.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax21.tab.c, skeleton.c: 528268899Sbapt comment-out yysccsid in the banner because it produces unnecessary compiler 529268899Sbapt warnings. The suggested alternative (using #pragma ident) in the preceding 530268899Sbapt comment is also obsolete; remove that comment (request by Gleb Smirnoff). 531268899Sbapt 532268899Sbapt * test/run_test.sh: 533268899Sbapt for yacc, ignore the inherit testcases, since they are btyacc-specific 534268899Sbapt 535268899Sbapt2014-03-28 Thomas E. Dickey <tom@invisible-island.net> 536268899Sbapt 537268899Sbapt * test/yacc/varsyntax_calc1.error, test/yacc/varsyntax_calc1.output, test/yacc/varsyntax_calc1.tab.c, test/yacc/varsyntax_calc1.tab.h, test/yacc/err_inherit3.error, test/yacc/err_inherit3.output, test/yacc/err_inherit3.tab.c, test/yacc/err_inherit3.tab.h, test/yacc/err_inherit4.error, test/yacc/err_inherit4.output, test/yacc/err_inherit4.tab.c, test/yacc/err_inherit4.tab.h, test/yacc/err_inherit5.error, test/yacc/err_inherit5.output, test/yacc/err_inherit5.tab.c, test/yacc/err_inherit5.tab.h, test/yacc/inherit0.error, test/yacc/inherit0.output, test/yacc/inherit0.tab.c, test/yacc/inherit0.tab.h, test/yacc/inherit1.error, test/yacc/inherit1.output, test/yacc/inherit1.tab.c, test/yacc/inherit1.tab.h, test/yacc/inherit2.error, test/yacc/inherit2.output, test/yacc/inherit2.tab.c, test/yacc/inherit2.tab.h, test/yacc/empty.error, test/yacc/empty.output, test/yacc/empty.tab.c, test/yacc/empty.tab.h, test/yacc/err_inherit1.error, test/yacc/err_inherit1.output, test/yacc/err_inherit1.tab.c, test/yacc/err_inherit1.tab.h, test/yacc/err_inherit2.error, test/yacc/err_inherit2.output, test/yacc/err_inherit2.tab.c, test/yacc/err_inherit2.tab.h: 538268899Sbapt reference output for testing 539268899Sbapt 540268899Sbapt * test/run_lint.sh, test/run_make.sh, test/run_test.sh: 541268899Sbapt moving #define's out of makefile broke check for yacc vs btyacc (fix) 542268899Sbapt 543268899Sbapt2014-03-28 Tom.Shields 544268899Sbapt 545268899Sbapt * test/btyacc/btyacc_demo.tab.c, test/btyacc/err_inherit3.error, test/btyacc/err_inherit3.output, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit3.tab.h, test/btyacc/err_inherit2.error, test/btyacc/err_inherit2.output, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit2.tab.h, test/btyacc/err_inherit4.error, test/btyacc/err_inherit4.output, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit4.tab.h, test/btyacc/err_inherit5.error, test/btyacc/err_inherit5.output, test/btyacc/err_inherit5.tab.c, test/btyacc/err_inherit5.tab.h, test/btyacc/inherit0.error, test/btyacc/inherit0.output, test/btyacc/inherit0.tab.c, test/btyacc/inherit0.tab.h, test/btyacc/inherit1.error, test/btyacc/inherit1.output, test/btyacc/inherit1.tab.c, test/btyacc/inherit1.tab.h, test/btyacc/inherit2.error, test/btyacc/inherit2.output, test/btyacc/inherit2.tab.c, test/btyacc/inherit2.tab.h, test/btyacc/calc.error, test/btyacc/err_inherit1.error, test/btyacc/err_inherit1.output, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit1.tab.h: 546268899Sbapt reference output for testing 547268899Sbapt 548268899Sbapt * defs.h: new functions/variables for btyacc 549268899Sbapt (I reordered and ifdef'd -TD) 550268899Sbapt 551268899Sbapt * test/inherit0.y, test/inherit1.y: testcase for btyacc 552268899Sbapt 553268899Sbapt2014-03-27 Tom.Shields 554268899Sbapt 555268899Sbapt * test/err_inherit5.y, test/err_inherit4.y, test/err_inherit3.y, test/err_inherit2.y, test/err_inherit1.y, test/inherit2.y: 556268899Sbapt testcase for btyacc 557268899Sbapt 558268899Sbapt2014-03-25 Tom.Shields 559268899Sbapt 560268899Sbapt * symtab.c: extra initialization needed for btyacc 561268899Sbapt (I ifdef'd -TD) 562268899Sbapt 563268899Sbapt * yacc.1: document -L/-B features from btyacc 564268899Sbapt 565268899Sbapt2014-03-25 Thomas E. Dickey <tom@invisible-island.net> 566268899Sbapt 567268899Sbapt * yacc.1: typo 568268899Sbapt 569268899Sbapt * configure: regen 570268899Sbapt 571268899Sbapt * configure.in: 572268899Sbapt modified new options to act like those in my other configure-scripts, e.g., 573268899Sbapt showing what option is being tested, and the resulting value. Put the 574268899Sbapt definitions in config.h rather than in the makefile. 575268899Sbapt 576268899Sbapt2014-03-25 Tom.Shields 577268899Sbapt 578268899Sbapt * makefile.in: add/use LINTFLAGS variable 579268899Sbapt make all of the objects (not just skeleton) rebuild if makefile changes 580268899Sbapt modify check-rule to reflect updates to run_test.sh vs subdirectory 581268899Sbapt 582268899Sbapt * mstring.c: byacc-btyacc-20140323 583268899Sbapt 584268899Sbapt2014-03-25 Thomas E. Dickey <tom@invisible-island.net> 585268899Sbapt 586268899Sbapt * test/btyacc/RCS, test/yacc/RCS: PERMIT FILE 587268899Sbapt 588268899Sbapt * config_h.in: updated with autoheader-252 589268899Sbapt 590268899Sbapt2014-03-25 Tom.Shields 591268899Sbapt 592268899Sbapt * README.BTYACC: byacc-btyacc-20140323 593268899Sbapt 594268899Sbapt2014-03-24 Tom.Shields 595268899Sbapt 596268899Sbapt * test/btyacc/err_syntax1.output, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax1.tab.h, test/btyacc/err_syntax10.error, test/btyacc/err_syntax10.output, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax10.tab.h, test/btyacc/err_syntax11.error, test/btyacc/err_syntax11.output, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax11.tab.h, test/btyacc/err_syntax12.error, test/btyacc/err_syntax12.output, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax12.tab.h, test/btyacc/err_syntax13.error, test/btyacc/err_syntax13.output, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax13.tab.h, test/btyacc/err_syntax14.error, test/btyacc/err_syntax14.output, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax14.tab.h, test/btyacc/err_syntax15.error, test/btyacc/err_syntax15.output, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax15.tab.h, test/btyacc/err_syntax16.error, test/btyacc/err_syntax16.output, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax16.tab.h, test/btyacc/err_syntax17.error, test/btyacc/err_syntax17.output, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax17.tab.h, test/btyacc/err_syntax18.error, test/btyacc/err_syntax18.output, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax18.tab.h, test/btyacc/err_syntax19.error, test/btyacc/err_syntax19.output, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax19.tab.h, test/btyacc/err_syntax2.output, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax2.tab.h, test/btyacc/err_syntax20.error, test/btyacc/err_syntax20.output, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax20.tab.h, test/btyacc/err_syntax21.error, test/btyacc/err_syntax21.output, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax21.tab.h, test/btyacc/err_syntax22.error, test/btyacc/err_syntax22.output, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax22.tab.h, test/btyacc/err_syntax23.error, test/btyacc/err_syntax23.output, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax23.tab.h, test/btyacc/err_syntax24.error, test/btyacc/err_syntax24.output, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax24.tab.h, test/btyacc/err_syntax25.error, test/btyacc/err_syntax25.output, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax25.tab.h, test/btyacc/err_syntax26.error, test/btyacc/err_syntax26.output, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax26.tab.h, test/btyacc/err_syntax3.output, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax3.tab.h, test/btyacc/err_syntax4.output, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax4.tab.h, test/btyacc/err_syntax5.output, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax5.tab.h, test/btyacc/err_syntax6.output, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax6.tab.h, test/btyacc/err_syntax7.output, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7.tab.h, test/btyacc/err_syntax7a.output, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7a.tab.h, test/btyacc/err_syntax7b.output, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax7b.tab.h, test/btyacc/err_syntax8.output, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8.tab.h, test/btyacc/err_syntax8a.output, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax8a.tab.h, test/btyacc/err_syntax9.output, test/btyacc/err_syntax9.tab.c, test/btyacc/err_syntax9.tab.h: 597268899Sbapt reference output for testing 598268899Sbapt 599268899Sbapt2014-03-24 Thomas E. Dickey <tom@invisible-island.net> 600268899Sbapt 601268899Sbapt * defs.h: fix compiler warnings due to mputc() 602268899Sbapt 603268899Sbapt2014-03-23 Tom.Shields 604268899Sbapt 605268899Sbapt * test/btyacc_demo.y: testcase for btyacc 606268899Sbapt 607268899Sbapt * test/btyacc/varsyntax_calc1.error, test/btyacc/varsyntax_calc1.output, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h: 608268899Sbapt reference output for testing 609268899Sbapt 610268899Sbapt * test/varsyntax_calc1.y, test/btyacc_calc1.y: testcase for btyacc 611268899Sbapt 612268899Sbapt2014-03-23 Thomas E. Dickey <tom@invisible-island.net> 613268899Sbapt 614268899Sbapt * test/err_syntax26.error, test/err_syntax26.output, test/err_syntax26.tab.c, test/err_syntax26.tab.h, test/yacc/err_syntax26.error, test/yacc/err_syntax26.output, test/yacc/err_syntax26.tab.c, test/yacc/err_syntax26.tab.h: 615268899Sbapt reference output for testing 616268899Sbapt 617268899Sbapt * test/err_syntax26.y: testcase for missing_brace() 618268899Sbapt 619268899Sbapt * test/err_syntax25.error, test/err_syntax25.output, test/err_syntax25.tab.c, test/err_syntax25.tab.h, test/yacc/err_syntax25.error, test/yacc/err_syntax25.output, test/yacc/err_syntax25.tab.c, test/yacc/err_syntax25.tab.h: 620268899Sbapt reference output for testing 621268899Sbapt 622268899Sbapt * test/err_syntax25.y: testcase for over_unionized() 623268899Sbapt 624268899Sbapt * test/err_syntax24.error, test/err_syntax24.output, test/err_syntax24.tab.c, test/err_syntax24.tab.h, test/yacc/err_syntax24.error, test/yacc/err_syntax24.output, test/yacc/err_syntax24.tab.c, test/yacc/err_syntax24.tab.h: 625268899Sbapt reference output for testing 626268899Sbapt 627268899Sbapt * test/err_syntax24.y: testcase for default_action_warning() 628268899Sbapt 629268899Sbapt2014-03-23 Tom.Shields 630268899Sbapt 631268899Sbapt * test/btyacc/quote_calc3-s.error, test/btyacc/quote_calc4-s.error, test/btyacc/quote_calc4.error, test/btyacc/grammar.dot, test/btyacc/grammar.error, test/btyacc/pure_calc.error, test/btyacc/pure_error.error, test/btyacc/quote_calc-s.error, test/btyacc/quote_calc.error, test/btyacc/quote_calc2-s.error, test/btyacc/quote_calc2.error, test/btyacc/quote_calc3.error, test/btyacc/err_syntax2.error, test/btyacc/err_syntax3.error, test/btyacc/err_syntax4.error, test/btyacc/err_syntax5.error, test/btyacc/err_syntax6.error, test/btyacc/err_syntax7.error, test/btyacc/err_syntax7a.error, test/btyacc/err_syntax7b.error, test/btyacc/err_syntax8.error, test/btyacc/err_syntax8a.error, test/btyacc/err_syntax9.error, test/btyacc/error.error, test/btyacc/calc1.error, test/btyacc/calc2.error, test/btyacc/calc3.error, test/btyacc/code_calc.error, test/btyacc/code_error.error, test/btyacc/empty.error, test/btyacc/err_syntax1.error, test/btyacc/btyacc_calc1.error, test/btyacc/btyacc_demo.error: 632268899Sbapt reference output for testing 633268899Sbapt 634268899Sbapt2014-03-23 Thomas E. Dickey <tom@invisible-island.net> 635268899Sbapt 636268899Sbapt * test/err_syntax23.error, test/err_syntax23.output, test/err_syntax23.tab.c, test/err_syntax23.tab.h, test/yacc/err_syntax23.error, test/yacc/err_syntax23.output, test/yacc/err_syntax23.tab.c, test/yacc/err_syntax23.tab.h: 637268899Sbapt reference output for testing 638268899Sbapt 639268899Sbapt * test/err_syntax23.y: testcase for untyped_lhs() 640268899Sbapt 641268899Sbapt2014-03-23 Tom.Shields 642268899Sbapt 643268899Sbapt * test/run_test.sh: 644268899Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 645268899Sbapt 646268899Sbapt2014-03-23 Thomas E. Dickey <tom@invisible-island.net> 647268899Sbapt 648268899Sbapt * test/err_syntax22.error, test/err_syntax22.output, test/err_syntax22.tab.c, test/err_syntax22.tab.h, test/yacc/err_syntax22.error, test/yacc/err_syntax22.output, test/yacc/err_syntax22.tab.c, test/yacc/err_syntax22.tab.h: 649268899Sbapt reference output for testing 650268899Sbapt 651268899Sbapt * test/err_syntax22.y: testcase for untyped_rhs() 652268899Sbapt 653268899Sbapt * test/err_syntax21.error, test/err_syntax21.output, test/err_syntax21.tab.c, test/err_syntax21.tab.h, test/yacc/err_syntax21.error, test/yacc/err_syntax21.output, test/yacc/err_syntax21.tab.c, test/yacc/err_syntax21.tab.h, test/err_syntax20.error, test/err_syntax20.output, test/err_syntax20.tab.c, test/err_syntax20.tab.h, test/yacc/err_syntax20.error, test/yacc/err_syntax20.output, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax20.tab.h: 654268899Sbapt reference output for testing 655268899Sbapt 656268899Sbapt * test/err_syntax20.y: testcase for undefined_symbol_warning() 657268899Sbapt 658268899Sbapt * test/err_syntax21.y: testcase for unknown_rhs() 659268899Sbapt 660268899Sbapt * test/err_syntax19.error, test/err_syntax19.output, test/err_syntax19.tab.c, test/err_syntax19.tab.h, test/yacc/err_syntax19.error, test/yacc/err_syntax19.output, test/yacc/err_syntax19.tab.c, test/yacc/err_syntax19.tab.h: 661268899Sbapt reference output for testing 662268899Sbapt 663268899Sbapt * test/err_syntax19.y: testcase for dollar_error() 664268899Sbapt 665268899Sbapt * test/err_syntax18.error, test/err_syntax18.output, test/err_syntax18.tab.c, test/err_syntax18.tab.h, test/yacc/err_syntax18.error, test/yacc/err_syntax18.output, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax18.tab.h: 666268899Sbapt reference output for testing 667268899Sbapt 668268899Sbapt * test/err_syntax18.y: testcase for dollar_warning() 669268899Sbapt 670268899Sbapt * test/err_syntax17.error, test/err_syntax17.output, test/err_syntax17.tab.c, test/err_syntax17.tab.h, test/yacc/err_syntax17.error, test/yacc/err_syntax17.output, test/yacc/err_syntax17.tab.c, test/yacc/err_syntax17.tab.h: 671268899Sbapt reference output for testing 672268899Sbapt 673268899Sbapt * test/err_syntax17.y: testcase for unterminated_action() 674268899Sbapt 675268899Sbapt2014-03-22 Thomas E. Dickey <tom@invisible-island.net> 676268899Sbapt 677268899Sbapt * test/err_syntax16.error, test/err_syntax16.output, test/err_syntax16.tab.c, test/err_syntax16.tab.h, test/yacc/err_syntax16.error, test/yacc/err_syntax16.output, test/yacc/err_syntax16.tab.c, test/yacc/err_syntax16.tab.h: 678268899Sbapt reference output for testing 679268899Sbapt 680268899Sbapt * test/err_syntax16.y: testcase for terminal_lhs() 681268899Sbapt 682268899Sbapt * test/err_syntax15.error, test/err_syntax15.output, test/err_syntax15.tab.c, test/err_syntax15.tab.h, test/yacc/err_syntax15.error, test/yacc/err_syntax15.output, test/yacc/err_syntax15.tab.c, test/yacc/err_syntax15.tab.h: 683268899Sbapt reference output for testing 684268899Sbapt 685268899Sbapt * test/err_syntax15.y: testcase for no_grammar() 686268899Sbapt 687268899Sbapt * test/err_syntax14.error, test/err_syntax14.output, test/err_syntax14.tab.c, test/err_syntax14.tab.h, test/yacc/err_syntax14.error, test/yacc/err_syntax14.output, test/yacc/err_syntax14.tab.c, test/yacc/err_syntax14.tab.h: 688268899Sbapt reference output for testing 689268899Sbapt 690268899Sbapt * test/err_syntax14.y: 691268899Sbapt testcase for restarted_warning() and undefined_goal() 692268899Sbapt 693268899Sbapt * test/err_syntax13.error, test/err_syntax13.output, test/err_syntax13.tab.c, test/err_syntax13.tab.h, test/yacc/err_syntax13.error, test/yacc/err_syntax13.output, test/yacc/err_syntax13.tab.c, test/yacc/err_syntax13.tab.h: 694268899Sbapt reference output for testing 695268899Sbapt 696268899Sbapt * test/err_syntax13.y: testcase for terminal_start() 697268899Sbapt 698268899Sbapt * test/err_syntax12.error, test/err_syntax12.output, test/err_syntax12.tab.c, test/err_syntax12.tab.h, test/yacc/err_syntax12.error, test/yacc/err_syntax12.output, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax12.tab.h: 699268899Sbapt reference output for testing 700268899Sbapt 701268899Sbapt * test/err_syntax12.y: testcase for revalued_warning() 702268899Sbapt 703268899Sbapt * test/err_syntax11.error, test/err_syntax11.output, test/err_syntax11.tab.c, test/err_syntax11.tab.h, test/yacc/err_syntax11.error, test/yacc/err_syntax11.output, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax11.tab.h: 704268899Sbapt reference output for testing 705268899Sbapt 706268899Sbapt * test/err_syntax11.y: testcase for reprec_warning() 707268899Sbapt 708268899Sbapt * test/err_syntax10.error, test/err_syntax10.output, test/err_syntax10.tab.c, test/err_syntax10.tab.h, test/yacc/err_syntax10.error, test/yacc/err_syntax10.output, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax10.tab.h: 709268899Sbapt reference output for testing 710268899Sbapt 711268899Sbapt * test/err_syntax10.y: testcase for retyped_warning() 712268899Sbapt 713268899Sbapt2014-03-21 Thomas E. Dickey <tom@invisible-island.net> 714268899Sbapt 715268899Sbapt * test/err_syntax9.error, test/err_syntax9.output, test/err_syntax9.tab.c, test/err_syntax9.tab.h, test/yacc/err_syntax9.error, test/yacc/err_syntax9.output, test/yacc/err_syntax9.tab.c, test/yacc/err_syntax9.tab.h: 716268899Sbapt reference output for testing 717268899Sbapt 718268899Sbapt * test/err_syntax9.y: testcase for tokenized_start() 719268899Sbapt 720268899Sbapt * test/err_syntax8.error, test/err_syntax8.output, test/err_syntax8.tab.c, test/err_syntax8.tab.h, test/err_syntax8a.error, test/err_syntax8a.output, test/err_syntax8a.tab.c, test/err_syntax8a.tab.h, test/yacc/err_syntax8.error, test/yacc/err_syntax8.output, test/yacc/err_syntax8.tab.c, test/yacc/err_syntax8.tab.h, test/yacc/err_syntax8a.error, test/yacc/err_syntax8a.output, test/yacc/err_syntax8a.tab.c, test/yacc/err_syntax8a.tab.h: 721268899Sbapt reference output for testing 722268899Sbapt 723268899Sbapt * test/err_syntax8a.y, test/err_syntax8.y: testcase for used_reserved() 724268899Sbapt 725268899Sbapt * test/err_syntax7.error, test/err_syntax7.output, test/err_syntax7.tab.c, test/err_syntax7.tab.h, test/err_syntax7a.error, test/err_syntax7a.output, test/err_syntax7a.tab.c, test/err_syntax7a.tab.h, test/err_syntax7b.error, test/err_syntax7b.output, test/err_syntax7b.tab.c, test/err_syntax7b.tab.h, test/yacc/err_syntax7.error, test/yacc/err_syntax7.output, test/yacc/err_syntax7.tab.c, test/yacc/err_syntax7.tab.h, test/yacc/err_syntax7a.error, test/yacc/err_syntax7a.output, test/yacc/err_syntax7a.tab.c, test/yacc/err_syntax7a.tab.h, test/yacc/err_syntax7b.error, test/yacc/err_syntax7b.output, test/yacc/err_syntax7b.tab.c, test/yacc/err_syntax7b.tab.h: 726268899Sbapt reference output for testing 727268899Sbapt 728268899Sbapt * test/err_syntax7b.y, test/err_syntax7a.y, test/err_syntax7.y: 729268899Sbapt testcase for illegal_character() 730268899Sbapt 731268899Sbapt * test/err_syntax6.error, test/err_syntax6.output, test/err_syntax6.tab.c, test/err_syntax6.tab.h, test/yacc/err_syntax6.error, test/yacc/err_syntax6.output, test/yacc/err_syntax6.tab.c, test/yacc/err_syntax6.tab.h: 732268899Sbapt reference output for testing 733268899Sbapt 734268899Sbapt * test/err_syntax6.y: testcase for illegal_tag() 735268899Sbapt 736268899Sbapt * test/err_syntax5.error, test/err_syntax5.output, test/err_syntax5.tab.c, test/err_syntax5.tab.h, test/yacc/err_syntax5.error, test/yacc/err_syntax5.output, test/yacc/err_syntax5.tab.c, test/yacc/err_syntax5.tab.h: 737268899Sbapt reference output for testing 738268899Sbapt 739268899Sbapt * test/err_syntax5.y: testcase for unterminated_union() 740268899Sbapt 741268899Sbapt * test/err_syntax4.error, test/err_syntax4.output, test/err_syntax4.tab.c, test/err_syntax4.tab.h, test/yacc/err_syntax4.error, test/yacc/err_syntax4.output, test/yacc/err_syntax4.tab.c, test/yacc/err_syntax4.tab.h: 742268899Sbapt reference output for testing 743268899Sbapt 744268899Sbapt * test/err_syntax4.y: testcase for unterminated_text() 745268899Sbapt 746268899Sbapt * test/err_syntax3.error, test/err_syntax3.output, test/err_syntax3.tab.c, test/err_syntax3.tab.h, test/yacc/err_syntax3.error, test/yacc/err_syntax3.output, test/yacc/err_syntax3.tab.c, test/yacc/err_syntax3.tab.h: 747268899Sbapt reference output for testing 748268899Sbapt 749268899Sbapt * test/err_syntax3.y: testcase for unterminated_string() 750268899Sbapt 751268899Sbapt * test/err_syntax2.error, test/err_syntax2.output, test/err_syntax2.tab.c, test/err_syntax2.tab.h, test/yacc/err_syntax2.error, test/yacc/err_syntax2.output, test/yacc/err_syntax2.tab.c, test/yacc/err_syntax2.tab.h: 752268899Sbapt reference output for testing 753268899Sbapt 754268899Sbapt * test/err_syntax2.y: testcase for unterminated_comment() 755268899Sbapt 756268899Sbapt * test/err_syntax1.error, test/yacc/err_syntax1.error: 757268899Sbapt reference output for testing 758268899Sbapt 759268899Sbapt * test/err_syntax1.y: 760268899Sbapt test-case with syntax error (and nonprinting character) 761268899Sbapt 762268899Sbapt * test/calc.error, test/calc1.error, test/calc2.error, test/calc3.error, test/code_calc.error, test/code_error.error, test/err_syntax1.error, test/error.error, test/grammar.error, test/pure_calc.error, test/pure_error.error, test/quote_calc-s.error, test/quote_calc.error, test/quote_calc2-s.error, test/quote_calc2.error, test/quote_calc3-s.error, test/quote_calc3.error, test/quote_calc4-s.error, test/quote_calc4.error, test/yacc/calc.error, test/yacc/calc1.error, test/yacc/calc2.error, test/yacc/calc3.error, test/yacc/code_calc.error, test/yacc/code_error.error, test/yacc/error.error, test/yacc/grammar.error, test/yacc/pure_calc.error, test/yacc/pure_error.error, test/yacc/quote_calc-s.error, test/yacc/quote_calc.error, test/yacc/quote_calc2-s.error, test/yacc/quote_calc2.error, test/yacc/quote_calc3-s.error, test/yacc/quote_calc3.error, test/yacc/quote_calc4-s.error, test/yacc/quote_calc4.error: 763268899Sbapt reference output for testing 764268899Sbapt 765268899Sbapt * test/run_test.sh: 766268899Sbapt save stderr to reference files, to capture shift/reduce messages as well 767268899Sbapt as syntax-error messages 768268899Sbapt 769268899Sbapt * test/err_syntax1.output, test/err_syntax1.tab.c, test/err_syntax1.tab.h, test/yacc/err_syntax1.output, test/yacc/err_syntax1.tab.c, test/yacc/err_syntax1.tab.h: 770268899Sbapt reference output for testing 771268899Sbapt 772268899Sbapt * test/run_test.sh: generate a ".dot" file for the grammar file 773268899Sbapt 774268899Sbapt * test/grammar.dot: RCS_BASE 775268899Sbapt 776268899Sbapt * test/yacc/grammar.dot: reference output for testing 777268899Sbapt 778268899Sbapt2014-03-19 Tom.Shields 779268899Sbapt 780268899Sbapt * output.c: rename MAXSHORT to MAXYYINT 781268899Sbapt 782268899Sbapt2014-03-18 Tom.Shields 783268899Sbapt 784268899Sbapt * yaccpar.skel: skeleton with btyacc additions 785268899Sbapt 786268899Sbapt * NOTES-btyacc-Changes: byacc-btyacc-20140323 787268899Sbapt 788268899Sbapt * test/btyacc/btyacc_calc1.output, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h: 789268899Sbapt reference output for testing 790268899Sbapt 791268899Sbapt * test/run_make.sh: 792268899Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 793268899Sbapt 794268899Sbapt * test/btyacc/pure_calc.tab.c, test/btyacc/pure_calc.tab.h, test/btyacc/pure_error.output, test/btyacc/pure_error.tab.c, test/btyacc/pure_error.tab.h, test/btyacc/quote_calc-s.output, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc-s.tab.h, test/btyacc/quote_calc.output, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc.tab.h, test/btyacc/quote_calc2-s.output, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2-s.tab.h, test/btyacc/quote_calc2.output, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc2.tab.h, test/btyacc/quote_calc3-s.output, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3-s.tab.h, test/btyacc/quote_calc3.output, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc3.tab.h, test/btyacc/quote_calc4-s.output, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4-s.tab.h, test/btyacc/quote_calc4.output, test/btyacc/quote_calc4.tab.c, test/btyacc/quote_calc4.tab.h, test/btyacc/calc1.output, test/btyacc/calc1.tab.c, test/btyacc/calc1.tab.h, test/btyacc/calc2.output, test/btyacc/calc2.tab.c, test/btyacc/calc2.tab.h, test/btyacc/calc3.output, test/btyacc/calc3.tab.c, test/btyacc/calc3.tab.h, test/btyacc/code_calc.code.c, test/btyacc/code_calc.output, test/btyacc/code_calc.tab.c, test/btyacc/code_calc.tab.h, test/btyacc/code_error.code.c, test/btyacc/code_error.output, test/btyacc/code_error.tab.c, test/btyacc/code_error.tab.h, test/btyacc/empty.output, test/btyacc/empty.tab.c, test/btyacc/empty.tab.h, test/btyacc/error.output, test/btyacc/error.tab.c, test/btyacc/error.tab.h, test/btyacc/grammar.output, test/btyacc/grammar.tab.c, test/btyacc/grammar.tab.h, test/btyacc/pure_calc.output, test/btyacc/btyacc_demo.output, test/btyacc/btyacc_demo.tab.h, test/btyacc/calc.output, test/btyacc/calc.tab.c, test/btyacc/calc.tab.h: 795268899Sbapt reference output for testing 796268899Sbapt 797268899Sbapt * defs.h: 798268899Sbapt several changes to help decouple the use of 'short' as the type of value 799268899Sbapt used in yacc parsers. 800268899Sbapt 801268899Sbapt * NOTES-btyacc-Disposition: byacc-btyacc-20140323 802268899Sbapt 803268899Sbapt2014-03-17 Tom.Shields 804268899Sbapt 805268899Sbapt * skel2c, yaccpar.skel, yaccpar.skel.old: RCS_BASE 806268899Sbapt 807268899Sbapt * test/run_lint.sh: 808268899Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 809268899Sbapt 810268899Sbapt * configure.in: add --with-max-table-size and --enable-btyacc options 811268899Sbapt 812268899Sbapt2014-03-16 Tom.Shields 813268899Sbapt 814268899Sbapt * main.c: use Value_t rather than short 815268899Sbapt 816268899Sbapt2014-03-11 Tom.Shields 817268899Sbapt 818268899Sbapt * test/empty.y: testcase for btyacc 819268899Sbapt 820268899Sbapt2014-03-10 Tom.Shields 821268899Sbapt 822268899Sbapt * test/calc3.y, test/calc2.y: fix unused-variable warning 823268899Sbapt 824268899Sbapt2014-02-18 Tom.Shields 825268899Sbapt 826268899Sbapt * lr0.c, graph.c: use Value_t rather than short 827268899Sbapt 828268899Sbapt * closure.c: use Value_t rather than short 829268899Sbapt ifdef'd forward-reference prototypes to match ifdef'ing of the actual functions 830268899Sbapt 831268899Sbapt * lalr.c: rename MAXSHORT to MAXYYINT 832268899Sbapt 833268899Sbapt2014-01-01 Thomas E. Dickey <tom@invisible-island.net> 834268899Sbapt 835268899Sbapt * yacc.1: document %token-table, improve presentation of double-quotes 836268899Sbapt 837268899Sbapt * VERSION, package/byacc.spec, package/debian/changelog: bump 838268899Sbapt 839268899Sbapt * test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_error.code.c, test/yacc/code_error.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c: 840268899Sbapt reference output for testing 841268899Sbapt 842268899Sbapt * test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_calc.tab.c, test/code_error.code.c, test/code_error.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc2.tab.c, test/quote_calc3-s.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 843268899Sbapt regen 844268899Sbapt 845268899Sbapt * output.c, skeleton.c: 846268899Sbapt amend the last change so that yytname is #define'd as needed rather than 847268899Sbapt permanent - to avoid breaking cproto for instance. 848268899Sbapt 849268899Sbapt2014-01-01 Christos.Zoulas 850268899Sbapt 851268899Sbapt * output.c, defs.h, main.c, reader.c, skeleton.c: 852268899Sbapt changes to build ntpd using byacc: 853268899Sbapt - rename yyname[] to yytname[] 854268899Sbapt - add YYTRANSLATE() macro 855268899Sbapt - recognize bison's %token-table declaration 856268899Sbapt 857268899Sbapt2014-01-01 Thomas E. Dickey <tom@invisible-island.net> 858268899Sbapt 859268899Sbapt * configure: regen 860268899Sbapt 861268899Sbapt * yacc.1: s/EE/XE/ to work around groff bug on Debian 6 862268899Sbapt 863268899Sbapt * makefile.in: use CF_MAKE_DOCS 864268899Sbapt 865268899Sbapt * aclocal.m4: add CF_MAKE_DOCS 866268899Sbapt 867268899Sbapt * configure.in: use CF_MAKE_DOCS 868268899Sbapt 869268899Sbapt2013-12-26 Thomas E. Dickey <tom@invisible-island.net> 870268899Sbapt 871268899Sbapt * config.guess: 2013-11-29 872268899Sbapt 873268899Sbapt2013-11-19 Thomas E. Dickey <tom@invisible-island.net> 874268899Sbapt 875268899Sbapt * aclocal.m4: resync with my-autoconf (fixes for clang and mingw) 876268899Sbapt 877268899Sbapt2013-10-25 Thomas E. Dickey <tom@invisible-island.net> 878268899Sbapt 879268899Sbapt * config.sub: 2013-10-01 880268899Sbapt 881268899Sbapt2013-09-25 Thomas E. Dickey <tom@invisible-island.net> 882268899Sbapt 883268899Sbapt * reader.c: fix two loop-limits found by clang 3.3 --analyze 884268899Sbapt 885268899Sbapt * configure: regen 886268899Sbapt 887268899Sbapt * aclocal.m4: 888268899Sbapt tweaks to CF_MIXEDCASE_FILENAMES and CF_XOPEN_SOURCE for msys from ncurses 889268899Sbapt 890268899Sbapt * package/mingw-byacc.spec: RCS_BASE 891268899Sbapt 892268899Sbapt * test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc2.tab.c, test/quote_calc3-s.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 893268899Sbapt regen 894268899Sbapt 895268899Sbapt * skeleton.c: 896268899Sbapt Increase default stack-size to match FreeBSD version noted as from 897268899Sbapt "BSD 4.4 Lite Usr.bin Sources". See 898268899Sbapt 899268899Sbapt http://svnweb.freebsd.org/base/vendor/CSRG/dist/usr.bin/yacc/ 900268899Sbapt http://svnweb.freebsd.org/base/head/usr.bin/yacc/ 901268899Sbapt http://svnweb.freebsd.org/base/vendor/byacc/ 902268899Sbapt 903268899Sbapt The original 1.9 sources (on which I based development) used 500 for 904268899Sbapt stacksize; the BSD Lite sources (a year or two later) used 10000. 905268899Sbapt 906268899Sbapt This is a change to default values; the YYMAXDEPTH and YYSTACKSIZE 907268899Sbapt symbols have "always" been overridable by applications, but rarely 908268899Sbapt needed to do this. RedHat began using the FreeBSD source in 2000, 909268899Sbapt and switched to this source in 2007 using the 20050813 snapshot. 910268899Sbapt 911268899Sbapt RedHat #743343 misattributed the change in default stacksize to 912268899Sbapt a regression in byacc, but did not report the issue upstream. 913268899Sbapt 914268899Sbapt * package/debian/changelog, VERSION, package/byacc.spec: bump 915268899Sbapt 916268899Sbapt2013-09-07 Thomas E. Dickey <tom@invisible-island.net> 917268899Sbapt 918268899Sbapt * config.sub: update to 2013-09-15 919268899Sbapt 920268899Sbapt * config.guess: update to 2013-06-10 921268899Sbapt 922251143Sbapt2013-03-04 Thomas E. Dickey <tom@invisible-island.net> 923251143Sbapt 924251143Sbapt * package/debian/changelog, VERSION, package/byacc.spec: bump 925251143Sbapt 926251143Sbapt * aclocal.m4: 927251143Sbapt adapt tweak from Dave Becket to work around long-ago breakage in "new" autoconf. 928251143Sbapt 929251143Sbapt * output.c: 930251143Sbapt fix bogus #include if "-i" is given but not "-d" (report by Richard Mitton). 931251143Sbapt also while testing that, found a case where the union_file is unused; added 932251143Sbapt a check for address that. 933251143Sbapt 934251143Sbapt * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: regen 935251143Sbapt 936251143Sbapt * test/ftp.y: fix most compiler warnings for "make check_make" 937251143Sbapt 938251143Sbapt * test/calc1.tab.c: regen 939251143Sbapt 940251143Sbapt * test/calc1.y: fix most compiler warnings for "make check_make" 941251143Sbapt 942251143Sbapt * test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc2.tab.c, test/quote_calc3-s.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 943251143Sbapt regen 944251143Sbapt 945251143Sbapt * skeleton.c: quiet a gcc conversion-warning in yygrowstack() 946251143Sbapt 947251143Sbapt * configure: regen 948251143Sbapt 949251143Sbapt * aclocal.m4: 950251143Sbapt another fix for CF_GCC_VERSION to handle Debian's modification of gcc message. 951251143Sbapt 952251143Sbapt2013-02-10 Thomas E. Dickey <tom@invisible-island.net> 953251143Sbapt 954268899Sbapt * config.sub, config.guess: update to 2013-02-04 955251143Sbapt 956251143Sbapt2012-10-03 Thomas E. Dickey <tom@invisible-island.net> 957251143Sbapt 958251143Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 959251143Sbapt 960251143Sbapt * configure: regen 961251143Sbapt 962251143Sbapt * configure.in: moved AC_PROG_CC_STDC call into CF_PROG_CC 963251143Sbapt 964251143Sbapt * aclocal.m4: 965251143Sbapt moved AC_PROG_CC_STDC call into CF_PROG_CC and (for other uses than byacc) 966251143Sbapt the CF_PROG_CC macro provides the CF_ANSI_CC_REQD for the 2.13 flavor. 967251143Sbapt 968251143Sbapt * aclocal.m4, configure.in: 969251143Sbapt Arian's change dropped my check for misused $CC variable - restore that with 970251143Sbapt alternate macro CF_PROG_CC. 971251143Sbapt 972251143Sbapt2012-10-03 Adrian.Bunk 973251143Sbapt 974251143Sbapt * aclocal.m4: 975251143Sbapt suggested patch: drop CF_ANSI_CC_REQD, CF_ANSI_CC_CHECK, CF_PROG_EXT since 976251143Sbapt they are not needed. 977251143Sbapt 978251143Sbapt2012-10-03 Thomas E. Dickey <tom@invisible-island.net> 979251143Sbapt 980251143Sbapt * aclocal.m4: 981251143Sbapt split-out CF_CC_ENV_FLAGS from CF_ANSI_CC_CHECK to avoid losing it in 982251143Sbapt Adrian's suggested changes. 983251143Sbapt 984251143Sbapt * aclocal.m4: 985251143Sbapt CF_CLANG_COMPILER - check if the given compiler is really clang. 986251143Sbapt 987251143Sbapt * aclocal.m4: 988251143Sbapt add check for clang to CF_GCC_WARNINGS. modify CF_GCC_WARNINGS to work around 989251143Sbapt old gcc warning: ncurses change to (try to) use gnatgcc exposed gnatgcc 2.8.1 990251143Sbapt on my Sarge system (versus 3.3.5 for the normal gcc). The 2.8.1's 991251143Sbapt pointer-arithmetic checks fell afoul of gcc's misuse of void* in string.h; work 992251143Sbapt around by excluding that check for pre-3.x compilers. 993251143Sbapt 994251143Sbapt * aclocal.m4: 995251143Sbapt modify CF_GCC_ATTRIBUTES so that autoheader is able to see the definitions 996251143Sbapt provided by this macro. use AC_DEFINE_UNQUOTED() in CF_GCC_ATTRIBUTES rather 997251143Sbapt than appending to confdefs.h, since long-ago concern about the ability to 998251143Sbapt pass-through parameterized macros appears to be not a problem, testing with 999251143Sbapt 2.13 and 2.52 1000251143Sbapt 1001251143Sbapt2012-10-03 Adrian.Bunk 1002251143Sbapt 1003251143Sbapt * aclocal.m4: 1004251143Sbapt add parameter to AC_DEFINE_UNQUOTED() to allow it to be recognized by 1005251143Sbapt autoheader, updated macros: 1006251143Sbapt CF_CHECK_CACHE 1007251143Sbapt CF_DISABLE_LEAKS 1008251143Sbapt CF_MKSTEMP 1009251143Sbapt CF_MIXEDCASE_FILENAMES 1010251143Sbapt CF_NO_LEAKS_OPTION 1011251143Sbapt 1012251143Sbapt2012-10-03 Thomas E. Dickey <tom@invisible-island.net> 1013251143Sbapt 1014251143Sbapt * aclocal.m4: 1015251143Sbapt move existence-check for mkstemp out of the AC_TRY_RUN, to help with 1016251143Sbapt cross-compiles 1017251143Sbapt 1018251143Sbapt2012-10-02 Thomas E. Dickey <tom@invisible-island.net> 1019251143Sbapt 1020251143Sbapt * config_h.in: 1021251143Sbapt Adrian Bunk request - replace this with the output from autoheader 1022251143Sbapt 1023251143Sbapt2012-09-29 Adrian.Bunk 1024251143Sbapt 1025251143Sbapt * configure.in: 1026251143Sbapt suggested change: replace CF_ANSI_CC_REQD by AC_PROG_CC_STDC (since no 1027251143Sbapt check is needed anymore for standard C compilers), drop AC_CONST (same 1028251143Sbapt reason), modify AC_OUTPUT to rely upon template generated by autoheader. 1029251143Sbapt bump requirement to autoconf 2.52.20011201 and drop check for CF_PROG_EXT 1030251143Sbapt as being obsolete with autoconf 2.52x 1031251143Sbapt 1032251143Sbapt * configure.in, main.c: drop check for atexit, because it is standard C 1033251143Sbapt 1034251143Sbapt * makefile.in: add assignment for datarootdir variable. 1035251143Sbapt 1036240517Sbapt2012-05-26 Thomas E. Dickey <tom@invisible-island.net> 1037240517Sbapt 1038240517Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1039240517Sbapt 1040240517Sbapt * reader.c: 1041240517Sbapt some versions of gcc may warn that bp is not set in mark_symbol, e.g., 1042240517Sbapt if GCC_NORETURN is not handled; appease the compiler. 1043240517Sbapt 1044240517Sbapt * reader.c: 1045240517Sbapt use the declared types Assoc_t and Value_t in some places where compiler only 1046240517Sbapt cared about char versus short. 1047240517Sbapt 1048240517Sbapt * reader.c: 1049240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1050240517Sbapt (no object change) 1051240517Sbapt 1052240517Sbapt * defs.h: 1053240517Sbapt add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD 1054240517Sbapt packagers to build without configure script. Also remove duplicate declaration 1055240517Sbapt of pure_parser variable (prompted by patch by Baptiste Daroussin). 1056240517Sbapt 1057240517Sbapt Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and 1058240517Sbapt REALLOC macros. 1059240517Sbapt 1060240517Sbapt * symtab.c: 1061240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1062240517Sbapt (no object change) 1063240517Sbapt 1064240517Sbapt2012-05-25 Thomas E. Dickey <tom@invisible-island.net> 1065240517Sbapt 1066240517Sbapt * output.c, main.c, verbose.c, mkpar.c, lr0.c: 1067240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1068240517Sbapt (no object change) 1069240517Sbapt 1070234949Sbapt2012-01-15 Thomas E. Dickey <tom@invisible-island.net> 1071234949Sbapt 1072234949Sbapt * package/debian/copyright: bump 1073234949Sbapt 1074234949Sbapt * test/run_make.sh: workaround for breakage due to GNU make 3.82 1075234949Sbapt 1076234949Sbapt * test/run_make.sh: 1077234949Sbapt tested with Solaris 10 (bison 1.875) and added scripting to exercise 1078234949Sbapt the /usr/ccs/bin/yacc executable 1079234949Sbapt 1080234949Sbapt * test/grammar.tab.c: regen 1081234949Sbapt 1082234949Sbapt * test/grammar.y: modify to also build with Solaris yacc 1083234949Sbapt 1084234949Sbapt * VERSION, package/debian/changelog, package/byacc.spec: bump 1085234949Sbapt 1086268899Sbapt * test/yacc/calc1.output: reference output for testing 1087268899Sbapt 1088234949Sbapt * test/calc1.output, test/calc1.tab.c: regen 1089234949Sbapt 1090234949Sbapt * test/calc1.y: 1091234949Sbapt undo the change made to appease bison, since it was only a warning. 1092234949Sbapt 1093234949Sbapt * test/pure_calc.tab.c, test/pure_error.tab.c: regen 1094234949Sbapt 1095234949Sbapt * test/run_make.sh: another fix for running from top-level directory 1096234949Sbapt 1097234949Sbapt * makefile.in: 1098234949Sbapt ensure that check_make rule depends on having byacc built. 1099234949Sbapt 1100234949Sbapt * test/run_make.sh: fixes for building from parent directory 1101234949Sbapt 1102234949Sbapt * test/pure_error.y, test/pure_calc.y: bison-fixes 1103234949Sbapt 1104234949Sbapt * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c, test/ftp.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c: 1105234949Sbapt regen 1106234949Sbapt 1107268899Sbapt * test/code_debug.y: RCS_BASE 1108268899Sbapt 1109234949Sbapt * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y: 1110234949Sbapt byacc already declares yyerror 1111234949Sbapt 1112234949Sbapt * test/pure_error.y, test/pure_calc.y: 1113234949Sbapt modified to help make the files build with bison 1114234949Sbapt 1115234949Sbapt * test/run_make.sh: 1116234949Sbapt supply a "%pure-parser" directive when bison needs it. 1117234949Sbapt 1118234949Sbapt * test/code_calc.code.c: regen 1119234949Sbapt 1120234949Sbapt * test/code_calc.y: modified to help make the files build with bison 1121234949Sbapt 1122234949Sbapt * yacc.1: 1123234949Sbapt in testing, found that %expect did not work as documented for bison. 1124234949Sbapt do not recommend it for portable code. 1125234949Sbapt 1126234949Sbapt * test/run_make.sh: workaround breakage in bison's %expect directive 1127234949Sbapt 1128234949Sbapt * test/grammar.y: modified to help make the files build with bison 1129234949Sbapt 1130234949Sbapt * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen 1131234949Sbapt 1132234949Sbapt * test/calc1.y: quiet a spurious warning from bison 2.3 1133234949Sbapt 1134234949Sbapt * test/calc1.tab.c: regen 1135234949Sbapt 1136234949Sbapt * test/calc1.y: modified to help make the files build with bison 1137234949Sbapt 1138234949Sbapt * yacc.1: comment on "-y" and "-P" options. 1139234949Sbapt 1140234949Sbapt * yacc.1: comment on portability 1141234949Sbapt 1142234949Sbapt * test/ftp.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2-s.tab.c, test/quote_calc3-s.tab.c: 1143234949Sbapt regen 1144234949Sbapt 1145234949Sbapt * test/ftp.y: modified to help make the files build with bison 1146234949Sbapt (bison's "-y" option is of no use in providing "yacc" compatibility) 1147234949Sbapt 1148234949Sbapt * test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 1149234949Sbapt regen 1150234949Sbapt 1151234949Sbapt * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y: 1152234949Sbapt modified to help make the files build with bison 1153234949Sbapt 1154234949Sbapt * test/calc.tab.c: regen 1155234949Sbapt 1156234949Sbapt * test/calc.y: modified to help make the files build with bison 1157234949Sbapt 1158234949Sbapt * test/error.tab.c: regen 1159234949Sbapt 1160234949Sbapt * test/error.y: modified to help make the files build with bison 1161234949Sbapt 1162234949Sbapt * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen 1163234949Sbapt 1164234949Sbapt * test/run_make.sh: 1165234949Sbapt check for older bisons which (2.3 for instance) do not support pure parsers 1166234949Sbapt 1167234949Sbapt * test/code_error.y, test/calc3.y, test/calc2.y: 1168234949Sbapt modified to help make the files build with bison 1169234949Sbapt 1170234949Sbapt * test/run_test.sh: use $opt2 in filenames of the generated files 1171234949Sbapt 1172234949Sbapt * test/quote_calc2-s.tab.c, test/quote_calc3-s.tab.c, test/quote_calc4-s.tab.c, test/quote_calc-s.tab.c, test/quote_calc.tab.c, test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4.tab.c: 1173234949Sbapt regen 1174234949Sbapt 1175234949Sbapt2012-01-14 Thomas E. Dickey <tom@invisible-island.net> 1176234949Sbapt 1177234949Sbapt * test/calc2.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/calc1.tab.c: 1178234949Sbapt regen 1179234949Sbapt 1180234949Sbapt * output.c: Several changes: 1181234949Sbapt a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex. 1182234949Sbapt b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL, 1183234949Sbapt using YYLEX_PARAM_TYPE and YYLEX_PARAM. 1184234949Sbapt c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL, 1185234949Sbapt to help with redefinitions. 1186234949Sbapt 1187234949Sbapt * test/pure_calc.tab.c: 1188234949Sbapt modified to help make the files build with bison 1189234949Sbapt 1190234949Sbapt * test/run_make.sh: 1191234949Sbapt start work on followup, to check if the generated files build with bison. 1192234949Sbapt 1193234949Sbapt * test/pure_calc.y, test/pure_error.tab.c: 1194234949Sbapt modified to help make the files build with bison 1195234949Sbapt 1196234949Sbapt * test/calc3.tab.c: regen 1197234949Sbapt 1198234949Sbapt * test/quote_calc-s.output, test/quote_calc-s.tab.c, test/quote_calc-s.tab.h, test/quote_calc2-s.output, test/quote_calc2-s.tab.c, test/quote_calc2-s.tab.h, test/quote_calc3-s.output, test/quote_calc3-s.tab.c, test/quote_calc3-s.tab.h, test/quote_calc4-s.output, test/quote_calc4-s.tab.c, test/quote_calc4-s.tab.h: 1199234949Sbapt RCS_BASE 1200234949Sbapt 1201268899Sbapt * test/yacc/quote_calc-s.output, test/yacc/quote_calc-s.tab.h, test/yacc/quote_calc2-s.output, test/yacc/quote_calc2-s.tab.h, test/yacc/quote_calc3-s.output, test/yacc/quote_calc3-s.tab.h, test/yacc/quote_calc4-s.output, test/yacc/quote_calc4-s.tab.h: 1202268899Sbapt reference output for testing 1203268899Sbapt 1204234949Sbapt * test/run_test.sh: generate/test with "-s" option applied. 1205234949Sbapt 1206234949Sbapt2012-01-13 Thomas E. Dickey <tom@invisible-island.net> 1207234949Sbapt 1208234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1209234949Sbapt 1210234949Sbapt * yacc.1: improve documentation of -s option 1211234949Sbapt 1212234949Sbapt * yacc.1: note that yacc ignores -y 1213234949Sbapt 1214234949Sbapt * main.c: add -s option to usage message. 1215234949Sbapt 1216268899Sbapt * test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h: 1217234949Sbapt RCS_BASE 1218234949Sbapt 1219268899Sbapt * test/yacc/quote_calc3.output, test/yacc/quote_calc4.output, test/yacc/quote_calc4.tab.h: 1220268899Sbapt reference output for testing 1221268899Sbapt 1222268899Sbapt * test/quote_calc3.y, test/quote_calc.tab.h: RCS_BASE 1223268899Sbapt 1224268899Sbapt * test/yacc/quote_calc.tab.h: reference output for testing 1225268899Sbapt 1226268899Sbapt * test/quote_calc.output, test/quote_calc.tab.c, test/quote_calc2.output, test/quote_calc2.tab.c, test/quote_calc2.tab.h, test/quote_calc3.tab.h: 1227268899Sbapt RCS_BASE 1228268899Sbapt 1229268899Sbapt * test/yacc/quote_calc.output, test/yacc/quote_calc2.output, test/yacc/quote_calc2.tab.h, test/yacc/quote_calc3.tab.h: 1230268899Sbapt reference output for testing 1231268899Sbapt 1232268899Sbapt * test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y: RCS_BASE 1233268899Sbapt 1234234949Sbapt * configure: regen 1235234949Sbapt 1236234949Sbapt * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE 1237234949Sbapt 1238234949Sbapt2011-12-19 Thomas E. Dickey <tom@invisible-island.net> 1239234949Sbapt 1240234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1241234949Sbapt 1242234949Sbapt * yacc.1, output.c, main.c, defs.h: 1243234949Sbapt add "-s" option to suppress generating #define's based on string contents 1244234949Sbapt in a %token statement. For instance 1245234949Sbapt %token EQLS "Equals" 1246234949Sbapt would generate 1247234949Sbapt #define EQLS 256 1248234949Sbapt #define Equals 257 1249234949Sbapt Simply suppressing the second #define makes the behavior closer to yacc. 1250234949Sbapt (report by Paulo Andrade). 1251234949Sbapt 1252234949Sbapt2011-09-08 Thomas E. Dickey <tom@invisible-island.net> 1253234949Sbapt 1254234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1255234949Sbapt 1256234949Sbapt * output.c: 1257234949Sbapt fix some more interaction between -i and -d flags to ensure YYERRCODE 1258234949Sbapt and YYSTYPE are declared, tested with cproto. 1259234949Sbapt 1260234949Sbapt2011-09-07 Thomas E. Dickey <tom@invisible-island.net> 1261234949Sbapt 1262234949Sbapt * yacc.1: document "-i" option. 1263234949Sbapt 1264234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1265234949Sbapt 1266234949Sbapt * output.c: fix an interaction between -i and -d 1267234949Sbapt 1268234949Sbapt * test/code_error.code.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c: 1269234949Sbapt regen - changes for "-i" option move the global/impure variables near the 1270234949Sbapt macros that may add a prefix, etc. 1271234949Sbapt 1272234949Sbapt * skeleton.c, output.c, defs.h: changes to support "-i" option. 1273234949Sbapt 1274234949Sbapt2011-09-06 Thomas E. Dickey <tom@invisible-island.net> 1275234949Sbapt 1276234949Sbapt * reader.c: pass explicit file-pointer to write_section() 1277234949Sbapt 1278234949Sbapt * main.c: 1279234949Sbapt add "-i" option, to generate interface-file (suggested by Denis M. Wilson) 1280234949Sbapt 1281234949Sbapt2011-09-05 Thomas E. Dickey <tom@invisible-island.net> 1282234949Sbapt 1283234949Sbapt * configure: regen 1284234949Sbapt 1285234949Sbapt * aclocal.m4: 1286234949Sbapt resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC) 1287234949Sbapt and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks) 1288234949Sbapt 1289234949Sbapt * defs.h, error.c, reader.c: 1290234949Sbapt add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson) 1291234949Sbapt 1292234949Sbapt2011-04-01 Thomas E. Dickey <tom@invisible-island.net> 1293234949Sbapt 1294268899Sbapt * config.sub: update to 2011-04-01 1295234949Sbapt 1296234949Sbapt2011-02-02 Thomas E. Dickey <tom@invisible-island.net> 1297234949Sbapt 1298268899Sbapt * config.guess: update to 2011-01-01 1299234949Sbapt 1300234949Sbapt2010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1301234949Sbapt 1302234949Sbapt * defs.h, skeleton.c: 1303234949Sbapt add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas) 1304234949Sbapt 1305234949Sbapt * defs.h: 1306234949Sbapt mark all of the error-functions as non-returning (report by Christos Zoulas) 1307234949Sbapt 1308234949Sbapt * test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c, test/ftp.tab.c: 1309234949Sbapt regen 1310234949Sbapt 1311234949Sbapt * skeleton.c: 1312234949Sbapt use only realloc() rather than realloc+malloc, agree that systems needing this 1313234949Sbapt are very rare (prompted by NetBSD change). 1314234949Sbapt 1315234949Sbapt * test/ftp.tab.c: regen 1316234949Sbapt 1317234949Sbapt2010-12-29 Christos.Zoulas 1318234949Sbapt 1319234949Sbapt * test/ftp.y: 1320234949Sbapt improve example, which was stuck in 19XX and assumed file sizes were longs. 1321234949Sbapt 1322234949Sbapt2010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1323234949Sbapt 1324234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c: 1325234949Sbapt regen 1326234949Sbapt 1327234949Sbapt * test/pure_error.y, test/pure_calc.y, test/ftp.y, test/error.y, test/code_error.y, test/code_calc.y, test/calc.y, test/calc3.y, test/calc2.y, test/calc1.y: 1328234949Sbapt use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror 1329234949Sbapt 1330234949Sbapt * skeleton.c: 1331234949Sbapt remove explicit prototype for yylex() via YYLEX_DECL() macro, since that 1332234949Sbapt would prevent declaring yylex() static (request by Christos Zoulas). 1333234949Sbapt 1334234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1335234949Sbapt 1336234949Sbapt2010-12-29 Christos.Zoulas 1337234949Sbapt 1338234949Sbapt * output.c: correct definition for YYERROR_DECL() 1339234949Sbapt 1340234949Sbapt2010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1341234949Sbapt 1342234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1343234949Sbapt 1344234949Sbapt2010-12-26 Thomas E. Dickey <tom@invisible-island.net> 1345234949Sbapt 1346234949Sbapt * defs.h, main.c: 1347234949Sbapt change return-type of allocate() to avoid warnings of alignment problems 1348234949Sbapt 1349234949Sbapt * main.c: Solaris declares chmod() in <sys/stat.h> 1350234949Sbapt 1351234949Sbapt * configure: regen 1352234949Sbapt 1353234949Sbapt * main.c: ifdef'd use of fcntl.h 1354234949Sbapt 1355234949Sbapt * configure.in: add configure checks for fcntl.h, atexit and mkstemp 1356234949Sbapt 1357234949Sbapt * main.c: for cases where mkstemp() is not available, use tempnam/open 1358234949Sbapt 1359234949Sbapt * aclocal.m4: add CF_MKSTEMP 1360234949Sbapt 1361234949Sbapt * aclocal.m4: 1362234949Sbapt improve quoting, deprecate ${name-value} in favor of standard ${name:-value} 1363234949Sbapt 1364234949Sbapt2010-12-25 Thomas E. Dickey <tom@invisible-island.net> 1365234949Sbapt 1366234949Sbapt * main.c: 1367234949Sbapt start revising use of tmpfile(), to make this work with MinGW. Start by 1368234949Sbapt implementing a mkstemp() alternative - noting that mkstemp() also is broken 1369234949Sbapt for MinGW. 1370234949Sbapt 1371234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1372234949Sbapt 1373234949Sbapt2010-11-27 Thomas E. Dickey <tom@invisible-island.net> 1374234949Sbapt 1375234949Sbapt * package/byacc.spec, package/debian/changelog, VERSION: bump 1376234949Sbapt 1377234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1378234949Sbapt 1379234949Sbapt * output.c: 1380234949Sbapt corrected use of %parse-param value in yyerror(); it doesn't use &yylval 1381234949Sbapt (report by Clifford Yapp) 1382234949Sbapt 1383234949Sbapt2010-11-26 Thomas E. Dickey <tom@invisible-island.net> 1384234949Sbapt 1385234949Sbapt * skeleton.c: typo 1386234949Sbapt 1387234949Sbapt * output.c: 1388234949Sbapt correct line-numbering when "-r" option is used; the 'outline' variable 1389234949Sbapt should only be incremented when writing to the code-file. 1390234949Sbapt 1391234949Sbapt * test/code_calc.code.c, test/code_error.code.c: regen 1392234949Sbapt 1393234949Sbapt * yacc.1: bump date 1394234949Sbapt 1395234949Sbapt * yacc.1: comment on -b option vs -r 1396234949Sbapt 1397234949Sbapt * test/calc2.tab.c, test/calc2.y, test/calc3.tab.c, test/calc3.y, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c: 1398234949Sbapt regen 1399234949Sbapt 1400234949Sbapt * output.c: 1401234949Sbapt improve on YYERROR_DECL(), adding dummy params which can be used for the 1402234949Sbapt actual function declaration. Also add YYERROR_CALL(). The two macros 1403234949Sbapt simplify maintaining sets of grammars which may/may not be pure. 1404234949Sbapt 1405234949Sbapt * test/calc1.y, test/ftp.tab.c, test/grammar.tab.c, test/pure_calc.tab.c, test/pure_error.tab.c, test/calc.tab.c, test/calc1.tab.c, test/calc2.tab.c, test/calc3.tab.c, test/code_calc.code.c, test/code_error.code.c, test/error.tab.c: 1406234949Sbapt regen 1407234949Sbapt 1408234949Sbapt * output.c: generate yyerror() calls in output.c 1409234949Sbapt This is for compatibility with bison, which passes the yylval to yyerror 1410234949Sbapt when the %parse-param feature is used. 1411234949Sbapt 1412234949Sbapt * skeleton.c, defs.h: generate yyerror() calls in output.c 1413234949Sbapt 1414234949Sbapt * output.c: simplified a little, using putc_code() and putl_code() 1415234949Sbapt 1416268899Sbapt * test/yacc/calc1.tab.h: reference output for testing 1417268899Sbapt 1418234949Sbapt * test/calc1.tab.h: regen 1419234949Sbapt 1420234949Sbapt * reader.c: 1421234949Sbapt improve ifdef for YYSTYPE union declaration (report by Clifford Yapp) 1422234949Sbapt 1423234949Sbapt * reader.c: 1424234949Sbapt accept underscore as a replacement for dash in command names, e.g., 1425234949Sbapt "%pure_parser" vs "%pure-parser". 1426234949Sbapt 1427234949Sbapt * test/calc1.tab.c: regen 1428234949Sbapt 1429234949Sbapt * output.c, reader.c: 1430234949Sbapt also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp) 1431234949Sbapt 1432234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1433234949Sbapt 1434234949Sbapt2010-11-24 Thomas E. Dickey <tom@invisible-island.net> 1435234949Sbapt 1436234949Sbapt * main.c, defs.h, symtab.c, error.c: reduce global variables 1437234949Sbapt 1438234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1439234949Sbapt 1440234949Sbapt * reader.c: 1441234949Sbapt amend fix for Redhat #112617 to still call default_action_warning() for 1442234949Sbapt empty rules (report by Bruce Cran). 1443234949Sbapt 1444234949Sbapt2010-11-22 Thomas E. Dickey <tom@invisible-island.net> 1445234949Sbapt 1446234949Sbapt * output.c: 1447234949Sbapt add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp). 1448234949Sbapt 1449234949Sbapt * test/calc1.tab.c: regen 1450234949Sbapt 1451234949Sbapt * test/calc1.y: cleanup compiler warnings 1452234949Sbapt 1453234949Sbapt * test/grammar.y: add "%expect" 1454234949Sbapt 1455234949Sbapt * test/calc1.tab.h: regen 1456234949Sbapt 1457234949Sbapt * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE 1458234949Sbapt 1459234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1460234949Sbapt 1461234949Sbapt * test/calc1.y: 1462234949Sbapt advanced example from Steve Johnson's paper, uses unions 1463234949Sbapt 1464234949Sbapt * test/calc3.y, test/calc2.y: init 'base', so examples can run 1465234949Sbapt 1466234949Sbapt * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++ 1467234949Sbapt 1468234949Sbapt * output.c: compensate for fix in reader.c 1469234949Sbapt 1470234949Sbapt * reader.c: 1471234949Sbapt add/use putc_both() and puts_both(), incidentally fixing a place where 1472234949Sbapt a union copied to the union_file may be missing the end of the last line. 1473234949Sbapt 1474234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1475234949Sbapt 1476234949Sbapt2010-09-28 Thomas E. Dickey <tom@invisible-island.net> 1477234949Sbapt 1478268899Sbapt * config.guess: update to 2010-09-24 1479234949Sbapt 1480234949Sbapt2010-09-10 Thomas E. Dickey <tom@invisible-island.net> 1481234949Sbapt 1482268899Sbapt * config.sub: update to 2010-09-11 1483234949Sbapt 1484234949Sbapt2010-06-10 Thomas E. Dickey <tom@invisible-island.net> 1485234949Sbapt 1486234949Sbapt * yacc.1, package/debian/changelog, package/byacc.spec, VERSION: 1487234949Sbapt bump to 2010/06/10 1488234949Sbapt 1489234949Sbapt2010-06-09 Thomas E. Dickey <tom@invisible-island.net> 1490234949Sbapt 1491234949Sbapt * reader.c: free declarations in leak-testing code. 1492234949Sbapt 1493234949Sbapt * main.c: close code_file if -r option used, for leak-testing 1494234949Sbapt 1495234949Sbapt * defs.h, reader.c: 1496234949Sbapt improve %lex-param / %parse-param implementation by allowing for arrays to 1497234949Sbapt be passed as parameters, e.g., "int regs[26]". 1498234949Sbapt 1499268899Sbapt * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h: 1500234949Sbapt RCS_BASE 1501234949Sbapt 1502268899Sbapt * test/yacc/calc3.output, test/yacc/calc3.tab.h: 1503268899Sbapt reference output for testing 1504268899Sbapt 1505268899Sbapt * test/calc2.tab.c, test/calc2.y, test/calc2.tab.h: RCS_BASE 1506268899Sbapt 1507268899Sbapt * test/yacc/calc2.tab.h: reference output for testing 1508268899Sbapt 1509268899Sbapt * test/calc2.output: RCS_BASE 1510268899Sbapt 1511268899Sbapt * test/yacc/calc2.output: reference output for testing 1512268899Sbapt 1513234949Sbapt * output.c: 1514234949Sbapt improve %lex-param / %parse-param implementation by allowing for arrays to 1515234949Sbapt be passed as parameters, e.g., "int regs[26]". 1516234949Sbapt 1517234949Sbapt * test/calc.tab.c, test/calc.y: 1518234949Sbapt test-cases and reference files for %lex-param / %parse-param 1519234949Sbapt 1520234949Sbapt * makefile.in: add docs-rule, for html/pdf/txt form of manpage 1521234949Sbapt 1522234949Sbapt * configure: regen 1523234949Sbapt 1524234949Sbapt * aclocal.m4: add CF_XOPEN_SOURCE, etc. 1525234949Sbapt 1526234949Sbapt * configure.in: 1527234949Sbapt use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89 1528234949Sbapt 1529234949Sbapt * test/ftp.tab.c, test/ftp.y, reader.c, symtab.c, verbose.c, lr0.c, main.c, mkpar.c, output.c, defs.h, closure.c: 1530234949Sbapt fix warnings from clang --analyze 1531234949Sbapt 1532234949Sbapt2010-06-08 Thomas E. Dickey <tom@invisible-island.net> 1533234949Sbapt 1534234949Sbapt * output.c: fix to build with c89, etc. 1535234949Sbapt 1536234949Sbapt * reader.c: gcc warning 1537234949Sbapt 1538234949Sbapt * test/ftp.tab.c, test/ftp.y, test/calc.tab.c, test/code_calc.code.c, test/code_error.code.c, test/code_error.y, test/code_calc.y, test/calc.y, test/pure_error.tab.c, test/error.tab.c, test/error.y, test/pure_error.y, test/pure_calc.tab.c, test/pure_calc.y: 1539234949Sbapt modified test-cases to allow them to compile, to validate pure-parser changes. 1540234949Sbapt updated reference files to match. 1541234949Sbapt 1542234949Sbapt * output.c: 1543234949Sbapt move call for output_stype() earlier since it is used in pure-parser declarations 1544234949Sbapt 1545234949Sbapt * test/grammar.tab.c, test/grammar.y: 1546234949Sbapt modified test-cases to allow them to compile, to validate pure-parser changes. 1547234949Sbapt updated reference files to match. 1548234949Sbapt 1549234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1550234949Sbapt regen 1551234949Sbapt 1552234949Sbapt * yacc.1: document %lex-param and %parse-param 1553234949Sbapt 1554234949Sbapt * test/run_lint.sh, test/run_make.sh: RCS_BASE 1555234949Sbapt 1556234949Sbapt * test/run_test.sh: 1557234949Sbapt further modify to allow build-directory to be in a different location by 1558234949Sbapt passing this directory's location as a parameter to the script. 1559234949Sbapt 1560234949Sbapt * makefile.in: 1561234949Sbapt add check_make and check_lint rules to help validate the generated files 1562234949Sbapt in the test-directory 1563234949Sbapt 1564234949Sbapt2010-06-07 Thomas E. Dickey <tom@invisible-island.net> 1565234949Sbapt 1566234949Sbapt * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE 1567234949Sbapt 1568234949Sbapt * test/run_test.sh: 1569234949Sbapt provide for testing -r and -P options by checking if the ".y" filename 1570234949Sbapt begins with "code_" or "pure_", respectively. 1571234949Sbapt 1572268899Sbapt * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h: 1573234949Sbapt RCS_BASE 1574234949Sbapt 1575268899Sbapt * test/yacc/code_error.tab.h: reference output for testing 1576268899Sbapt 1577268899Sbapt * test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h: 1578268899Sbapt RCS_BASE 1579268899Sbapt 1580268899Sbapt * test/yacc/code_calc.tab.h: reference output for testing 1581268899Sbapt 1582268899Sbapt * test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h: 1583268899Sbapt RCS_BASE 1584268899Sbapt 1585268899Sbapt * test/yacc/pure_calc.output, test/yacc/pure_calc.tab.h, test/yacc/pure_error.output, test/yacc/pure_error.tab.h: 1586268899Sbapt reference output for testing 1587268899Sbapt 1588268899Sbapt * test/code_calc.output, test/code_error.output: RCS_BASE 1589268899Sbapt 1590268899Sbapt * test/yacc/code_calc.output, test/yacc/code_error.output: 1591268899Sbapt reference output for testing 1592268899Sbapt 1593234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen 1594234949Sbapt 1595234949Sbapt * test/run_test.sh: 1596234949Sbapt changes to support running "make check" in a separate build-tree 1597234949Sbapt 1598234949Sbapt * main.c: add "-P" to usage message 1599234949Sbapt 1600234949Sbapt * reader.c: use UCH() macro to hide casts. 1601234949Sbapt 1602234949Sbapt2010-06-07 Andres.Mejia 1603234949Sbapt 1604234949Sbapt * main.c, output.c, reader.c, defs.h, skeleton.c: 1605234949Sbapt Fix the output order of the generated parse code file. This allows for 1606234949Sbapt the use of YYPARSE_PARAM, by having the output that checks for 1607234949Sbapt YYPARSE_PARAM to be defined come after the C code block in the 1608234949Sbapt definitions section of a yacc file. 1609234949Sbapt 1610234949Sbapt Implement support for YYLEX_PARAM, similar to bison. This is useful for 1611234949Sbapt support for building reentrant lexers with flex. 1612234949Sbapt 1613234949Sbapt Fix a compatibility issue with bison's pure-parser option. Bison 1614234949Sbapt defines yylex as sending at least one parameter, &yylval, as the first 1615234949Sbapt parameter and doesn't seem to have an easy way to remove that parameter. 1616234949Sbapt This on the other hand is rather convenient to support saving to yylval 1617234949Sbapt from flex when building reentrant lexers and parsers. 1618234949Sbapt 1619234949Sbapt Add support for the %parse-param and %lex-param directives used in 1620234949Sbapt bison. This change bears some similarity to NetBSD's changes to byacc 1621234949Sbapt at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html 1622234949Sbapt 1623234949Sbapt Bison allows for POSIX yacc emulation via a yacc directive in the yacc 1624234949Sbapt file, and also via a command line switch. Implement this feature as a 1625234949Sbapt no-op for byacc, since byacc is designed to be POSIX yacc compatible 1626234949Sbapt anyway. This allows for better compatibility with yacc sources written 1627234949Sbapt for bison. 1628234949Sbapt 1629234949Sbapt2010-06-07 Thomas E. Dickey <tom@invisible-island.net> 1630234949Sbapt 1631234949Sbapt * VERSION: bump to 2010/06/07 1632234949Sbapt 1633234949Sbapt2010-06-06 Thomas E. Dickey <tom@invisible-island.net> 1634234949Sbapt 1635234949Sbapt * test/calc.tab.c, configure: regen 1636234949Sbapt 1637234949Sbapt * skeleton.c: 1638234949Sbapt move #include's down into the generated code, to allow user-defined code 1639234949Sbapt to override feature definitions, particularly with stdlib.h (request by 1640234949Sbapt Marcus Kool). 1641234949Sbapt 1642234949Sbapt * lr0.c, error.c, reader.c, defs.h: 1643234949Sbapt strict gcc 3.4.6 warnings on 64-bit platform 1644234949Sbapt 1645234949Sbapt * aclocal.m4, configure.in: add check for lint 1646234949Sbapt 1647234949Sbapt * makefile.in: add lint rule 1648234949Sbapt 1649234949Sbapt * defs.h, closure.c, lr0.c, warshall.c, main.c: 1650234949Sbapt fix gcc warnings, mostly for 64-bit platform 1651234949Sbapt 1652234949Sbapt * aclocal.m4: 1653234949Sbapt add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc 1654234949Sbapt 1655234949Sbapt * makefile.in: add etags/TAGS if available 1656234949Sbapt 1657234949Sbapt * configure.in: add configure check for actual ctags and etags programs 1658234949Sbapt 1659234949Sbapt * package/debian/copyright: add copyright notices for non-PD files 1660234949Sbapt 1661234949Sbapt * package/debian/changelog: 1662234949Sbapt incorporated scripts in upstream to use for test-builds 1663234949Sbapt 1664234949Sbapt * makefile.in: drop mkdirs.sh, just use "mkdir -p" 1665234949Sbapt 1666234949Sbapt * AUTHORS: nicknames for some contributors (see CHANGES for details) 1667234949Sbapt 1668234949Sbapt * package/byacc.spec: RPM file for byacc 1669234949Sbapt 1670234949Sbapt * VERSION: bump to 2010/06/06 1671234949Sbapt 1672234949Sbapt * aclocal.m4: add copyright notice, from "my-autoconf" macros 1673234949Sbapt http://invisible-island.net/autoconf/autoconf.html 1674234949Sbapt 1675234949Sbapt * package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS: 1676234949Sbapt PERMIT FILE 1677234949Sbapt 1678234949Sbapt * aclocal.m4: resync with my-autoconf. summary of changes: 1679234949Sbapt a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter 1680234949Sbapt b) CF_DISABLE_ECHO, change indent-convention for substituted makefile 1681234949Sbapt c) CF_GCC_VERSION, ignore stderr 1682234949Sbapt d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc 1683234949Sbapt 1684234949Sbapt2010-04-20 Thomas E. Dickey <tom@invisible-island.net> 1685234949Sbapt 1686234949Sbapt * package/debian/changelog, package/debian/compat, package/debian/control, package/debian/copyright, package/debian/docs, package/debian/postinst, package/debian/prerm, package/debian/rules, package/debian/watch: 1687234949Sbapt scripts from Debian package 1688234949Sbapt 1689234949Sbapt2010-02-16 Thomas E. Dickey <tom@invisible-island.net> 1690234949Sbapt 1691234949Sbapt * yacc.1: document -P and bison-extensions 1692234949Sbapt 1693234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1694234949Sbapt regen 1695234949Sbapt 1696234949Sbapt * output.c: implement %pure-parser 1697234949Sbapt 1698234949Sbapt * skeleton.c: 1699234949Sbapt implement %pure-parser, like bison. To help with this, changed the stack 1700234949Sbapt variables, putting them into a struct. 1701234949Sbapt 1702234949Sbapt * reader.c: implement %pure-parser 1703234949Sbapt 1704234949Sbapt * defs.h: modified skeleton to support %pure-parser feature 1705234949Sbapt 1706234949Sbapt * main.c: add -P option to set %pure-parser 1707234949Sbapt 1708234949Sbapt * output.c: 1709234949Sbapt make -r and -p options work together. The -r option splits the generated 1710234949Sbapt parser into code/table files; for this case we cannot use static data. 1711234949Sbapt Also, we have to repeat the #define's used for prefix (-p) as well as the 1712234949Sbapt redeclaration of yyparse(). Finally, allow any of the prefixed names to 1713234949Sbapt be overridden, e.g., by passing a -D option to the compiler. Make that 1714234949Sbapt a little more readable by putting a blank line before each chunk. 1715234949Sbapt 1716234949Sbapt * defs.h: add definitions for %pure-parser 1717234949Sbapt 1718234949Sbapt * skeleton.c: 1719234949Sbapt put blank line before/after the redeclaration of yyparse() 1720234949Sbapt 1721234949Sbapt * output.c: allow for other program redefining yylex() 1722234949Sbapt 1723234949Sbapt * skeleton.c: 1724234949Sbapt split-off xdecls[] array, to move declaration of yyparse() after #define's 1725234949Sbapt 1726234949Sbapt * defs.h: split-out xdecls[] 1727234949Sbapt 1728234949Sbapt * VERSION: bump 1729234949Sbapt 1730234949Sbapt * configure: regen 1731234949Sbapt 1732234949Sbapt * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS 1733234949Sbapt 1734234949Sbapt * aclocal.m4: 1735234949Sbapt resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes. 1736234949Sbapt 1737234949Sbapt2010-02-16 Ostap.Cherkashi 1738234949Sbapt 1739234949Sbapt * skeleton.c: fix a memory leak in the generated skeleton 1740234949Sbapt 1741234949Sbapt2010-01-01 Thomas E. Dickey <tom@invisible-island.net> 1742234949Sbapt 1743234949Sbapt * package/debian/source/format: scripts from Debian package 1744234949Sbapt 1745234949Sbapt2009-12-31 Thomas E. Dickey <tom@invisible-island.net> 1746234949Sbapt 1747268899Sbapt * config.guess: update to 2009-12-30 1748234949Sbapt 1749268899Sbapt * config.sub: update to 2009-12-31 1750234949Sbapt 1751234949Sbapt2009-10-27 Thomas E. Dickey <tom@invisible-island.net> 1752234949Sbapt 1753234949Sbapt * VERSION: 20091027 1754234949Sbapt 1755234949Sbapt * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c: 1756234949Sbapt strict compiler warnings 1757234949Sbapt 1758234949Sbapt2009-10-26 Thomas E. Dickey <tom@invisible-island.net> 1759234949Sbapt 1760234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1761234949Sbapt resync 1762234949Sbapt 1763234949Sbapt * main.c, defs.h: introduce some typedefs for portability, etc. 1764234949Sbapt 1765234949Sbapt * makefile.in: 1766234949Sbapt don't remove "*.log" in mostlyclean rule since it interferes with regression 1767234949Sbapt script. 1768234949Sbapt 1769234949Sbapt * configure: regen 1770234949Sbapt 1771234949Sbapt * aclocal.m4: resync with my-autoconf 1772234949Sbapt 1773234949Sbapt2009-08-25 Thomas E. Dickey <tom@invisible-island.net> 1774234949Sbapt 1775268899Sbapt * config.guess, config.sub: update to 2009-08-19 1776234949Sbapt 1777234949Sbapt2009-02-21 Thomas E. Dickey <tom@invisible-island.net> 1778234949Sbapt 1779234949Sbapt * VERSION: bump 1780234949Sbapt 1781234949Sbapt * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25 1782234949Sbapt 1783234949Sbapt2008-12-26 Thomas E. Dickey <tom@invisible-island.net> 1784234949Sbapt 1785234949Sbapt * configure: regen with autoconf-2.52 (patched) 1786234949Sbapt 1787234949Sbapt2008-12-25 Thomas E. Dickey <tom@invisible-island.net> 1788234949Sbapt 1789234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 1790234949Sbapt regenerated 1791234949Sbapt 1792234949Sbapt2008-12-24 Thomas E. Dickey <tom@invisible-island.net> 1793234949Sbapt 1794234949Sbapt * VERSION: bump 1795234949Sbapt 1796234949Sbapt * skeleton.c: 1797234949Sbapt remove ifdef-lint from goto yyerrlab, to quiet gcc warning 1798234949Sbapt 1799234949Sbapt2008-11-26 Thomas E. Dickey <tom@invisible-island.net> 1800234949Sbapt 1801234949Sbapt * verbose.c, main.c, defs.h, mkpar.c, reader.c: 1802234949Sbapt completed implementation of "%expect" (report by Perry E. Metzger). 1803234949Sbapt add "%expect-rr", which is (unlike bison) allowable in LALR parsers. 1804234949Sbapt 1805234949Sbapt2008-11-24 Thomas E. Dickey <tom@invisible-island.net> 1806234949Sbapt 1807234949Sbapt * closure.c, defs.h, error.c, graph.c, lalr.c, lr0.c, main.c, mkpar.c, output.c, reader.c, skeleton.c, symtab.c, verbose.c, warshall.c: 1808234949Sbapt change indent-style (request by Perry E. Metzger) 1809234949Sbapt 1810234949Sbapt2008-08-27 Thomas E. Dickey <tom@invisible-island.net> 1811234949Sbapt 1812234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1813234949Sbapt better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 1814234949Sbapt 1815234949Sbapt * VERSION: bump 1816234949Sbapt 1817234949Sbapt * skeleton.c: 1818234949Sbapt better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 1819234949Sbapt 1820234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c: 1821234949Sbapt change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's. 1822234949Sbapt 1823234949Sbapt * configure: regen'd 1824234949Sbapt 1825234949Sbapt * configure.in: add -Wwrite-strings to warnings 1826234949Sbapt 1827234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1828234949Sbapt add YYPARSE_PARAM and YYPARSE_PARAM_TYPE 1829234949Sbapt 1830234949Sbapt * skeleton.c: 1831234949Sbapt add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features. 1832234949Sbapt 1833234949Sbapt * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c: 1834234949Sbapt fixes for gcc -Wwrite-strings 1835234949Sbapt 1836234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1837234949Sbapt generate the tables as static-const (this is an interface change) 1838234949Sbapt 1839234949Sbapt * output.c: realign columns in start_table() 1840234949Sbapt 1841234949Sbapt * output.c: 1842234949Sbapt generate the tables as static-const (this is an interface change) 1843234949Sbapt 1844234949Sbapt * output.c: reorder functions to eliminate forward-references 1845234949Sbapt 1846234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1847234949Sbapt remove 'register' keywords 1848234949Sbapt 1849234949Sbapt2008-08-26 Thomas E. Dickey <tom@invisible-island.net> 1850234949Sbapt 1851234949Sbapt * warshall.c, verbose.c, symtab.c, skeleton.c, reader.c, output.c, mkpar.c, main.c, lr0.c, lalr.c, graph.c, error.c, closure.c: 1852234949Sbapt remove 'register' keywords 1853234949Sbapt 1854234949Sbapt2008-08-25 Thomas E. Dickey <tom@invisible-island.net> 1855234949Sbapt 1856234949Sbapt * test/ftp.tab.c: regen'd 1857234949Sbapt 1858234949Sbapt * reader.c: 1859234949Sbapt improve the left-curly fix by testing after blanks, to avoid having a 1860234949Sbapt " {" at the beginning of a line. 1861234949Sbapt 1862234949Sbapt * test/error.tab.c, test/grammar.tab.c: regen'd 1863234949Sbapt 1864234949Sbapt * output.c: 1865234949Sbapt move the remaining newline-counting into write_XXX functions. 1866234949Sbapt 1867234949Sbapt * test/calc.tab.c: regen'd 1868234949Sbapt 1869234949Sbapt * output.c: 1870234949Sbapt simplify part of the output_file formatting using new functions, e.g., 1871234949Sbapt start_int_table(), output_newline(). 1872234949Sbapt 1873234949Sbapt * reader.c: 1874234949Sbapt modify copy_action() to indent the first character, it if is is left-curly 1875234949Sbapt brace. That makes the output look more like the original, as well as makes 1876234949Sbapt it simpler to edit (not confuse editors which look for a left-curly in the 1877234949Sbapt first column as if it were the beginning of a function). 1878234949Sbapt 1879234949Sbapt * skeleton.c: minor fixes to avoid gcc -Wconversion warnings 1880234949Sbapt 1881234949Sbapt * output.c: align the #define's produced for "-p" option 1882234949Sbapt 1883234949Sbapt * test/run_test.sh: use the "-p" option for better coverage. 1884234949Sbapt 1885234949Sbapt * output.c: simplify output_prefix() with new define_prefixed() 1886234949Sbapt 1887234949Sbapt * skeleton.c: include string.h, for memset() 1888234949Sbapt change stack size to unsigned to fix gcc -Wconversion warnings. 1889234949Sbapt 1890234949Sbapt * VERSION: bump to 2008/8/25 1891234949Sbapt 1892234949Sbapt * makefile.in: add dependency on VERSION file. 1893234949Sbapt 1894234949Sbapt2008-08-24 Thomas E. Dickey <tom@invisible-island.net> 1895234949Sbapt 1896234949Sbapt * VERSION: bump 1897234949Sbapt 1898234949Sbapt * lalr.c: improved memory-leak checking by freeing data in includes[] 1899234949Sbapt 1900234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 1901234949Sbapt update to match skeleton-change 1902234949Sbapt 1903234949Sbapt * configure: regen'd 1904234949Sbapt 1905234949Sbapt * skeleton.c: Add fix for stack discussed 1906234949Sbapt http://undeadly.org/cgi?action=article&sid=20080708155228 1907234949Sbapt and applied 1908234949Sbapt http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29 1909234949Sbapt 1910234949Sbapt * aclocal.m4: resync with my-autoconf (no major changes) 1911234949Sbapt 1912234949Sbapt2008-07-24 Thomas E. Dickey <tom@invisible-island.net> 1913234949Sbapt 1914234949Sbapt * package/pkgsrc/Makefile, package/pkgsrc/distinfo: 1915234949Sbapt scripts from NetBSD pkgsrc, for test-builds 1916234949Sbapt 1917234949Sbapt2008-03-14 Thomas E. Dickey <tom@invisible-island.net> 1918234949Sbapt 1919234949Sbapt * config.sub: update to 2008-03-08 1920234949Sbapt 1921234949Sbapt * config.guess: update to 2008-03-12 1922234949Sbapt 1923234949Sbapt2007-05-09 Thomas E. Dickey <tom@invisible-island.net> 1924234949Sbapt 1925234949Sbapt * main.c: close graph, verbose files if opened, on exit. 1926234949Sbapt 1927234949Sbapt * main.c: 1928234949Sbapt audit memory leaks - valgrind reported some memory still in use on exit. 1929234949Sbapt 1930234949Sbapt * lalr.c, output.c, reader.c, mkpar.c, lr0.c: 1931234949Sbapt add hook for auditing memory leaks 1932234949Sbapt 1933234949Sbapt * defs.h: add hooks for auditing memory leaks 1934234949Sbapt 1935234949Sbapt * configure: regen'd 1936234949Sbapt 1937234949Sbapt * configure.in: 1938234949Sbapt use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind, 1939234949Sbapt --with-dbmalloc and --with-dmalloc 1940234949Sbapt 1941234949Sbapt * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND 1942234949Sbapt 1943234949Sbapt * aclocal.m4: improve version-checking in CF_GCC_VERSION 1944234949Sbapt rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro 1945234949Sbapt 1946234949Sbapt * VERSION: 2007/5/9 1947234949Sbapt 1948234949Sbapt * main.c: file_prefix did not always have a trailing null. 1949234949Sbapt 1950234949Sbapt2007-03-25 Thomas E. Dickey <tom@invisible-island.net> 1951234949Sbapt 1952234949Sbapt * mkdirs.sh: improved version for "make -j" 1953234949Sbapt 1954234949Sbapt2006-12-22 Thomas E. Dickey <tom@invisible-island.net> 1955234949Sbapt 1956268899Sbapt * config.guess: update to 2006/12/22 1957234949Sbapt 1958234949Sbapt2006-12-08 Thomas E. Dickey <tom@invisible-island.net> 1959234949Sbapt 1960268899Sbapt * config.sub: update to 2006/12/08 1961234949Sbapt 1962234949Sbapt2005-08-13 Thomas E. Dickey <tom@invisible-island.net> 1963234949Sbapt 1964234949Sbapt * main.c: add -V to usage message 1965234949Sbapt 1966234949Sbapt * makefile.in: remove -t option from ctags 1967234949Sbapt 1968234949Sbapt * VERSION: 2005/8/13 1969234949Sbapt 1970234949Sbapt2005-08-13 schmitz 1971234949Sbapt 1972234949Sbapt * main.c: Sylvain Schmitz: 1973234949Sbapt modify the '-o' option to work like bison's, which sets the file-prefix. 1974234949Sbapt 1975234949Sbapt2005-08-13 Matt.Kraai 1976234949Sbapt 1977234949Sbapt * output.c: 1978234949Sbapt Debian #322858 (don't close union_file, which contained data). 1979234949Sbapt This feature is used in groff. 1980234949Sbapt 1981234949Sbapt2005-08-13 Thomas E. Dickey <tom@invisible-island.net> 1982234949Sbapt 1983234949Sbapt * configure: regenerated 1984234949Sbapt 1985234949Sbapt * aclocal.m4: improve checks for Intel compiler warnings 1986234949Sbapt 1987234949Sbapt2005-06-25 Thomas E. Dickey <tom@invisible-island.net> 1988234949Sbapt 1989268899Sbapt * config.sub: update to 2005/6/2 1990234949Sbapt 1991268899Sbapt * config.guess: update to 2005/5/27 1992234949Sbapt 1993234949Sbapt2005-05-05 Thomas E. Dickey <tom@invisible-island.net> 1994234949Sbapt 1995234949Sbapt * defs.h: add a fallback for GCC_UNUSED 1996234949Sbapt 1997234949Sbapt2005-05-04 Thomas E. Dickey <tom@invisible-island.net> 1998234949Sbapt 1999234949Sbapt * makefile.in: add "." to include-path to pickup config.h 2000234949Sbapt 2001234949Sbapt * reader.c: 2002234949Sbapt apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617. 2003234949Sbapt 2004234949Sbapt * output.c: 2005234949Sbapt correct a limit check in pack_vector() - report/analysis by William Evans 2006234949Sbapt 2007234949Sbapt * main.c: 2008234949Sbapt exit after printing version. Otherwise "yacc -V" will exit with an erro 2009234949Sbapt after printing the usage message. 2010234949Sbapt 2011234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2012234949Sbapt regenerated after skeleton-changes 2013234949Sbapt 2014234949Sbapt * skeleton.c: replace a few -1's with YYEMPTY 2015234949Sbapt 2016234949Sbapt * skeleton.c: 2017234949Sbapt delete yynewerror (no one uses it any more, and it just makes compiler warnings) 2018234949Sbapt 2019234949Sbapt * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD 2020234949Sbapt 2021234949Sbapt * test/run_test.sh: 2022234949Sbapt filter out lines with YYPATCH, since that will change with each update 2023234949Sbapt 2024234949Sbapt * yacc.1: add -V option 2025234949Sbapt 2026234949Sbapt * main.c: add -V option to print the version. 2027234949Sbapt simplify option-parsing by moving the duplicate logic for setting flags into 2028234949Sbapt new function setflag(). 2029234949Sbapt 2030234949Sbapt * skeleton.c: 2031234949Sbapt move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers). 2032234949Sbapt add YYPATCH here so it can be tested by applications. 2033234949Sbapt 2034234949Sbapt * defs.h: 2035234949Sbapt add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and 2036234949Sbapt YYPATCH symbols. 2037234949Sbapt 2038234949Sbapt * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c: 2039234949Sbapt reduce externs by making static the procedures that are not referenced outside 2040234949Sbapt the module in which they are defined. 2041234949Sbapt 2042234949Sbapt * makefile.in: 2043234949Sbapt the VERSION file holds the patch-date. Define YYPATCH, so this will be 2044234949Sbapt compiled into the skeleton. 2045234949Sbapt 2046234949Sbapt * VERSION: patch-level for byacc 2047234949Sbapt 2048234949Sbapt * main.c: 2049234949Sbapt add "-o" to usage message. It is too long for a single line; rewrite usage() 2050234949Sbapt to show one option per line. 2051234949Sbapt 2052234949Sbapt2005-05-03 Thomas E. Dickey <tom@invisible-island.net> 2053234949Sbapt 2054234949Sbapt * main.c: add -o option, to work with scripts that assume bison. 2055234949Sbapt simplify create_file_names() with a macro. 2056234949Sbapt simplify done() with a macro. 2057234949Sbapt adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by 2058234949Sbapt onintr(), do not flush output via exit(), but use _exit() instead. 2059234949Sbapt 2060234949Sbapt * defs.h: remove unnecessary externs for main.c 2061234949Sbapt 2062234949Sbapt * yacc.1: add -o option 2063234949Sbapt 2064234949Sbapt * graph.c: remove unused parameter 2065234949Sbapt 2066234949Sbapt * mkpar.c, defs.h, reader.c: 2067234949Sbapt add support for "%expect", a bison feature from FreeBSD sources 2068234949Sbapt 2069234949Sbapt * lr0.c, reader.c, main.c, skeleton.c, graph.c, symtab.c, closure.c, mkpar.c, lalr.c, error.c, warshall.c, verbose.c, output.c: 2070234949Sbapt indent'd 2071234949Sbapt 2072234949Sbapt * configure: regenerated for 2005/5/5 2073234949Sbapt 2074234949Sbapt * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER) 2075234949Sbapt 2076234949Sbapt2005-04-27 schmitz 2077234949Sbapt 2078234949Sbapt * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1: 2079234949Sbapt Sylvain Schmitz <schmitz@i3s.unice.fr>: 2080234949Sbapt add graphical output of the LALR(1) automaton for graphviz, 2081234949Sbapt associated with command-line option `-g' 2082234949Sbapt 2083234949Sbapt2005-04-16 Thomas E. Dickey <tom@invisible-island.net> 2084234949Sbapt 2085268899Sbapt * config.sub: update to 2005/2/10 2086234949Sbapt 2087268899Sbapt * config.guess: update to 2005/3/24 2088234949Sbapt 2089234949Sbapt2005-04-13 Thomas E. Dickey <tom@invisible-island.net> 2090234949Sbapt 2091234949Sbapt * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds 2092234949Sbapt 2093234949Sbapt2005-03-21 Thomas E. Dickey <tom@invisible-island.net> 2094234949Sbapt 2095234949Sbapt * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds 2096234949Sbapt 2097234949Sbapt2004-03-28 Thomas E. Dickey <tom@invisible-island.net> 2098234949Sbapt 2099234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2100234949Sbapt updates due to adding yyparse() prototype 2101234949Sbapt 2102234949Sbapt * configure: RCS_BASE 2103234949Sbapt 2104234949Sbapt * configure.in: 2105234949Sbapt add AC_ARG_PROGRAM to make --program-prefix, etc., work. 2106234949Sbapt 2107234949Sbapt * makefile.in: first cut of script to support --program-prefix 2108234949Sbapt 2109234949Sbapt * configure.in: 2110234949Sbapt reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52 2111234949Sbapt 2112234949Sbapt * makefile.in: modify so DESTDIR works 2113234949Sbapt 2114234949Sbapt * makefile.in: use EXEEXT and OBJEXT 2115234949Sbapt 2116234949Sbapt * configure.in: use CF_PROG_EXT 2117234949Sbapt generate a config.h 2118234949Sbapt 2119234949Sbapt * defs.h: make this use the generated config.h 2120234949Sbapt 2121234949Sbapt * skeleton.c: add a forward-reference for yyparse() 2122234949Sbapt 2123234949Sbapt * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT 2124234949Sbapt 2125234949Sbapt * yacc.1: remove the discussion of TMPDIR since it is obsolete 2126234949Sbapt 2127234949Sbapt * skeleton.c: fix a couple of minor compiler-warnings in the skeleton 2128234949Sbapt 2129234949Sbapt * defs.h: remove action_file_name, etc., since we use tmpfile() now. 2130234949Sbapt 2131234949Sbapt * main.c: 2132234949Sbapt use tmpfile() for opening the working files. This quiets a warning 2133234949Sbapt advising the use of mkstemp(). 2134234949Sbapt 2135234949Sbapt * output.c: 2136234949Sbapt Do not close temporary-files here, since they are opened with tmpfile(). 2137234949Sbapt Just rewind them, and they're ready to read back the data stored in them. 2138234949Sbapt 2139234949Sbapt * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE 2140234949Sbapt 2141268899Sbapt * test/yacc/grammar.output, test/yacc/grammar.tab.h: 2142268899Sbapt reference output for testing 2143268899Sbapt 2144234949Sbapt * makefile.in: turn on "make check" rule 2145234949Sbapt 2146268899Sbapt * test/calc.output: RCS_BASE 2147234949Sbapt 2148268899Sbapt * test/yacc/calc.output: reference output for testing 2149268899Sbapt 2150268899Sbapt * test/run_test.sh, test/calc.tab.h: RCS_BASE 2151268899Sbapt 2152268899Sbapt * test/yacc/calc.tab.h: reference output for testing 2153268899Sbapt 2154234949Sbapt * test/ftp.tab.c: yyparse() is now yyparse(void) 2155234949Sbapt 2156234949Sbapt * test/calc.tab.c: RCS_BASE 2157234949Sbapt 2158234949Sbapt * test/error.tab.c: yyparse() is now yyparse(void) 2159234949Sbapt 2160234949Sbapt * test/README: RCS_BASE 2161234949Sbapt 2162234949Sbapt * yacc.1: various typography fixes prompted by Debian #100947 2163234949Sbapt 2164234949Sbapt * aclocal.m4, makefile.in, configure.in: RCS_BASE 2165234949Sbapt 2166234949Sbapt * README: updated to note that this is not the original 2167234949Sbapt 2168234949Sbapt2004-03-24 Thomas E. Dickey <tom@invisible-island.net> 2169234949Sbapt 2170234949Sbapt * test/grammar.y: RCS_BASE 2171234949Sbapt 2172234949Sbapt2004-02-23 Thomas E. Dickey <tom@invisible-island.net> 2173234949Sbapt 2174234949Sbapt * config.sub: RCS_BASE 2175234949Sbapt 2176234949Sbapt2004-02-17 Thomas E. Dickey <tom@invisible-island.net> 2177234949Sbapt 2178234949Sbapt * config.guess: RCS_BASE 2179234949Sbapt 2180234949Sbapt2003-11-29 Thomas E. Dickey <tom@invisible-island.net> 2181234949Sbapt 2182234949Sbapt * install-sh: improved quoting 2183234949Sbapt 2184234949Sbapt2002-06-29 Thomas E. Dickey <tom@invisible-island.net> 2185234949Sbapt 2186234949Sbapt * mkdirs.sh: 2187234949Sbapt don't use character range, since some locales don't work as expected 2188234949Sbapt 2189234949Sbapt2001-06-22 Thomas E. Dickey <tom@invisible-island.net> 2190234949Sbapt 2191234949Sbapt * install-sh: RCS_BASE 2192234949Sbapt 2193234949Sbapt2000-11-20 Thomas E. Dickey <tom@invisible-island.net> 2194234949Sbapt 2195234949Sbapt * test/calc.y: RCS_BASE 2196234949Sbapt 2197234949Sbapt * test/code_calc.y, test/pure_calc.y: copy of calc.y 2198234949Sbapt 2199234949Sbapt * vmsbuild.com: original version 2200234949Sbapt 2201234949Sbapt2000-02-23 Thomas E. Dickey <dickey@invisible-island.net> 2202234949Sbapt 2203234949Sbapt * test/RCS, RCS: PERMIT FILE 2204234949Sbapt 2205234949Sbapt2000-02-14 Thomas E. Dickey <tom@invisible-island.net> 2206234949Sbapt 2207234949Sbapt * main.c: fix for VMS port - making pathname for temp-file 2208234949Sbapt 2209234949Sbapt * descrip.mms: original version 2210234949Sbapt 2211234949Sbapt2000-02-13 Thomas E. Dickey <tom@invisible-island.net> 2212234949Sbapt 2213234949Sbapt * defs.h, verbose.c, reader.c, main.c, skeleton.c, warshall.c, symtab.c, closure.c, mkpar.c, lalr.c, lr0.c, output.c, error.c: 2214234949Sbapt ansify 2215234949Sbapt 2216234949Sbapt1999-11-30 Thomas E. Dickey <tom@invisible-island.net> 2217234949Sbapt 2218234949Sbapt * mkdirs.sh: RCS_BASE 2219234949Sbapt 2220234949Sbapt1995-01-01 Thomas E. Dickey <tom@invisible-island.net> 2221234949Sbapt 2222234949Sbapt * config_h.in: RCS_BASE 2223234949Sbapt 2224234949Sbapt1993-12-23 unknown 2225234949Sbapt 2226234949Sbapt * README.DOS, main.c: MSDOS-port 2227234949Sbapt 2228234949Sbapt1993-12-22 unknown 2229234949Sbapt 2230234949Sbapt * reader.c, defs.h: MSDOS-port 2231234949Sbapt 2232234949Sbapt1993-03-02 unknown 2233234949Sbapt 2234234949Sbapt * README: original version 2235234949Sbapt 2236234949Sbapt1993-02-22 unknown 2237234949Sbapt 2238268899Sbapt * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE 2239234949Sbapt 2240268899Sbapt1993-02-22 Thomas E. Dickey <tom@invisible-island.net> 2241268899Sbapt 2242268899Sbapt * test/yacc/error.output, test/yacc/error.tab.h: 2243268899Sbapt reference output for testing 2244268899Sbapt 2245268899Sbapt1993-02-22 unknown 2246268899Sbapt 2247268899Sbapt * test/error.output, test/error.tab.c, test/error.tab.h: RCS_BASE 2248268899Sbapt 2249234949Sbapt * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES: 2250234949Sbapt original version 2251234949Sbapt 2252234949Sbapt1992-10-12 unknown 2253234949Sbapt 2254234949Sbapt * yacc.1: original version 2255234949Sbapt 2256234949Sbapt1992-10-11 unknown 2257234949Sbapt 2258234949Sbapt * defs.h: original version 2259234949Sbapt 2260234949Sbapt1991-01-20 unknown 2261234949Sbapt 2262234949Sbapt * mkpar.c, verbose.c: original version 2263234949Sbapt 2264234949Sbapt1991-01-14 unknown 2265234949Sbapt 2266234949Sbapt * lr0.c, Makefile, Makefile.old: original version 2267234949Sbapt 2268234949Sbapt1990-07-16 unknown 2269234949Sbapt 2270234949Sbapt * NEW_FEATURES: original version 2271234949Sbapt 2272234949Sbapt1990-06-03 unknown 2273234949Sbapt 2274234949Sbapt * ACKNOWLEDGEMENTS: original version 2275234949Sbapt 2276234949Sbapt1990-02-05 unknown 2277234949Sbapt 2278234949Sbapt * symtab.c, lalr.c, error.c: original version 2279234949Sbapt 2280234949Sbapt1990-01-16 Thomas E. Dickey <tom@invisible-island.net> 2281234949Sbapt 2282234949Sbapt * test/code_error.y, test/pure_error.y: RCS_BASE 2283234949Sbapt 2284234949Sbapt1990-01-16 unknown 2285234949Sbapt 2286234949Sbapt * test/error.y: RCS_BASE 2287234949Sbapt 2288234949Sbapt1989-11-22 unknown 2289234949Sbapt 2290234949Sbapt * NO_WARRANTY: original version 2291234949Sbapt 2292234949Sbapt1989-09-23 unknown 2293234949Sbapt 2294234949Sbapt * test/ftp.y: RCS_BASE 2295234949Sbapt 2296