1268899Sbapt2014-04-22 Thomas E. Dickey <tom@invisible-island.net> 2268899Sbapt 3268899Sbapt * mstring.c: 4268899Sbapt use vsnprintf() to ensure that msprintf's buffer is large enough. 5268899Sbapt 6268899Sbapt * main.c, defs.h: add mstring_leaks() 7268899Sbapt 8268899Sbapt * configure: regen 9268899Sbapt 10268899Sbapt * output.c: fix a complementary warning 11268899Sbapt 12268899Sbapt * mstring.c: introduce vsnprintf 13268899Sbapt 14268899Sbapt * configure.in, config_h.in: add check for vsnprintf 15268899Sbapt 16268899Sbapt * output.c: quiet a type-conversion warning 17268899Sbapt 18268899Sbapt * mstring.c: fix a potential memory leak on ENOMEM 19268899Sbapt quiet a couple of type-conversion warnings 20268899Sbapt 21268899Sbapt * defs.h: add/use GCC_PRINTFLIKE for msprintf() 22268899Sbapt 23268899Sbapt2014-04-22 Tom.Shields 24268899Sbapt 25268899Sbapt * README.BTYACC: 26268899Sbapt drop "NOTES-btyacc-Changes" and "NOTES-btyacc-Disposition", merging relevant 27268899Sbapt content into README.BTYACC 28268899Sbapt 29268899Sbapt2014-04-22 Thomas E. Dickey <tom@invisible-island.net> 30268899Sbapt 31268899Sbapt * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 32268899Sbapt bump 33268899Sbapt 34268899Sbapt2014-04-19 Thomas E. Dickey <tom@invisible-island.net> 35268899Sbapt 36268899Sbapt * config.sub: 2014-04-03 37268899Sbapt 38268899Sbapt * config.guess: 2014-03-23 39268899Sbapt 40268899Sbapt2014-04-09 Rick.Spates 41268899Sbapt 42268899Sbapt * main.c, defs.h: patch to allow DEBUG build with WIN32 system 43268899Sbapt 44268899Sbapt2014-04-09 Thomas E. Dickey <tom@invisible-island.net> 45268899Sbapt 46268899Sbapt * output.c, reader.c: gcc warnings 47268899Sbapt 48268899Sbapt * reader.c: fix const-cast warnings 49268899Sbapt 50268899Sbapt * 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: 51268899Sbapt fix a few clang --analyze warnings; one was a case where output_ctable emitted 52268899Sbapt an empty table (which should be an error). 53268899Sbapt 54268899Sbapt * reader.c: appease clang --analyze 55268899Sbapt 56268899Sbapt * defs.h: mark two functions as no-return. 57268899Sbapt 58268899Sbapt * package/debian/changelog: reason for release 59268899Sbapt 60268899Sbapt * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 61268899Sbapt bump 62268899Sbapt 63268899Sbapt * makefile.in: use $LINT_OPTS from environment via configure script 64268899Sbapt 65268899Sbapt * 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: 66268899Sbapt tweaks to make generated files from ok_syntax1.y compile with check_make rule 67268899Sbapt 68268899Sbapt * 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: 69268899Sbapt reference output for testing 70268899Sbapt 71268899Sbapt * test/run_test.sh: 72268899Sbapt retain the renaming done for code_debug.y so that check_make will work. 73268899Sbapt 74268899Sbapt * test/yacc/rename_debug.error, test/yacc/rename_debug.h, test/yacc/rename_debug.i, test/yacc/rename_debug.output: 75268899Sbapt reference output for testing 76268899Sbapt 77268899Sbapt * test/btyacc/ok_syntax1.error: RCS_BASE 78268899Sbapt 79268899Sbapt * 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: 80268899Sbapt regen 81268899Sbapt 82268899Sbapt * yacc.1: 83268899Sbapt clarify relationship of btyacc features to default configuration. 84268899Sbapt 85268899Sbapt2014-04-08 Thomas E. Dickey <tom@invisible-island.net> 86268899Sbapt 87268899Sbapt * 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: 88268899Sbapt reference output for testing 89268899Sbapt 90268899Sbapt * test/ok_syntax1.y: RCS_BASE 91268899Sbapt 92268899Sbapt * test/yacc/ok_syntax1.error: reference output for testing 93268899Sbapt 94268899Sbapt * 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: 95268899Sbapt exercise -L/-B options 96268899Sbapt 97268899Sbapt * 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: 98268899Sbapt use a better renaming of the YYPATCH definition (none of the test-cases rely 99268899Sbapt upon it, but redefinition in the "make check_make" rule is a problem). 100268899Sbapt 101268899Sbapt * 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: 102268899Sbapt undid temporary reordering in reader() by Tom Shields to align with byacc outputs 103268899Sbapt 104268899Sbapt * test/run_test.sh: remove a repeated test-case 105268899Sbapt 106268899Sbapt * mstring.c: minor reformatting to make coverage analysis simpler 107268899Sbapt 108268899Sbapt2014-04-07 Thomas E. Dickey <tom@invisible-island.net> 109268899Sbapt 110268899Sbapt * test/run_test.sh: tidy 111268899Sbapt 112268899Sbapt * 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: 113268899Sbapt reference output for testing 114268899Sbapt 115268899Sbapt * test/run_test.sh: 116268899Sbapt add special checks for flags which depend on writable/existing files 117268899Sbapt 118268899Sbapt * 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: 119268899Sbapt reference output for testing 120268899Sbapt 121268899Sbapt * main.c: 122268899Sbapt change CREATE_FILE_NAMES() to use local function rather than inline code, 123268899Sbapt to simplify coverage analysis. 124268899Sbapt 125268899Sbapt * 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: 126268899Sbapt reference output for testing 127268899Sbapt 128268899Sbapt * test/err_syntax27.y: testcase for missing_brace() 129268899Sbapt 130268899Sbapt * error.c: ifdef'd non-btyacc function 131268899Sbapt 132268899Sbapt * lr0.c: ifdef'd debug-code 133268899Sbapt 134268899Sbapt * yaccpar.skel: use YYINT's to replace short's as in btyaccpar.skel 135268899Sbapt 136268899Sbapt * 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: 137268899Sbapt 2010/11/26 simplification of output.c using putc_code() and putl_code() 138268899Sbapt omitted an adjustment of the #line value used for code-file. Fix that. 139268899Sbapt Also, amend 2005/05/04 change to run_test.sh to retain a dummy line for 140268899Sbapt YYPATCH #define's to make test-outputs easier to compare #line's (report 141268899Sbapt by Tom Shields) 142268899Sbapt 143268899Sbapt2014-04-06 Thomas E. Dickey <tom@invisible-island.net> 144268899Sbapt 145268899Sbapt * reader.c: fix for valgrind 146268899Sbapt (the calloc's are intentional - valgrind reported use of uninitialized memory) 147268899Sbapt 148268899Sbapt * lr0.c, output.c: fix for valgrind 149268899Sbapt 150268899Sbapt * 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: 151268899Sbapt RCS_BASE 152268899Sbapt 153268899Sbapt * test/yacc/code_debug.c, test/yacc/code_debug.h: 154268899Sbapt exercise the -i option 155268899Sbapt 156268899Sbapt * test/yacc/code_debug.i: reference output for testing 157268899Sbapt 158268899Sbapt * test/run_test.sh: exercise the -i option 159268899Sbapt 160268899Sbapt * test/yacc/code_debug.c: reference output for testing 161268899Sbapt 162268899Sbapt * test/run_test.sh: exercise the "-o" option 163268899Sbapt 164268899Sbapt * test/yacc/code_debug.error, test/yacc/code_debug.h, test/yacc/code_debug.output: 165268899Sbapt reference output for testing 166268899Sbapt 167268899Sbapt * output.c: don't call exit() without giving a chance to cleanup. 168268899Sbapt 169268899Sbapt * mstring.c: ifdef'd functions not used in byacc 170268899Sbapt 171268899Sbapt * btyaccpar.c: generated from btyaccpar.skel 172268899Sbapt 173268899Sbapt * yaccpar.c: generated from yaccpar.skel 174268899Sbapt 175268899Sbapt * skel2c: 176268899Sbapt change the generated-by comment to show which version of this script (and 177268899Sbapt which version of the given skeleton file) were used to produce the C-file. 178268899Sbapt 179268899Sbapt * configure: regen 180268899Sbapt 181268899Sbapt * makefile.in: 182268899Sbapt add rules to generate byacc and btyacc parser skeleton files independently 183268899Sbapt 184268899Sbapt * aclocal.m4: CF_PROG_AWK - add to byacc's configure script 185268899Sbapt CF_INTEL_COMPILER 186268899Sbapt cleanup the -no-gcc option which was leftover from testing - prcs does 187268899Sbapt not build with this option. 188268899Sbapt CF_MAKE_DOCS 189268899Sbapt protect $2 from substitution, for luit's "$(manext)" 190268899Sbapt CF_XOPEN_SOURCE 191268899Sbapt for Solaris (tested with gcc/g++ 3.4.3 on Solaris 10 and gcc/g++ 4.5.2 192268899Sbapt on Solaris 11), suppress the followup check for defining _XOPEN_SOURCE 193268899Sbapt because it is not needed, as well as because g++ 4.7.3 (no package, 194268899Sbapt used in Sage for Solaris 10) has some unspecified header breakage which 195268899Sbapt is triggered by the duplicate definition. 196268899Sbapt 197268899Sbapt * configure.in: 198268899Sbapt modify so skeleton-source is determined by configure options rather than by 199268899Sbapt having developer rename yaccpar.skel.old to yaccpar.skel 200268899Sbapt 201268899Sbapt * descrip.mms: rename skeleton 202268899Sbapt 203268899Sbapt * vmsbuild.com: 204268899Sbapt fwiw, renamed the skeleton for consistency with makefile 205268899Sbapt 206268899Sbapt * skel2c, skeleton.c: resync skeleton and its generating files 207268899Sbapt 208268899Sbapt * yaccpar.skel: 209268899Sbapt renamed yaccpar.skel.old to yaccpar.skel, to allow using makefile suffix rules 210268899Sbapt 211268899Sbapt * yaccpar.skel.old: resync skeleton and its generating files 212268899Sbapt 213268899Sbapt * test/run_make.sh: improve cleanup after error recovery 214268899Sbapt 215268899Sbapt * 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: 216268899Sbapt use improvement from Tom Shield's btyacc changes, getting rid of special cases for generating two yyerror calls in skeleton 217268899Sbapt 218268899Sbapt * output.c: simplify output_yyerror_decl() 219268899Sbapt 220268899Sbapt * 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: 221268899Sbapt add second "const" to string-table declarations, from Tom Shield's btyacc changes 222268899Sbapt 223268899Sbapt * 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: 224268899Sbapt discard unnecessary call on write_code_lineno() from Tom Shield's changes 225268899Sbapt 226268899Sbapt * 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: 227268899Sbapt use YYINT typedef from Tom Shield's btyacc changes to replace explicit "short" 228268899Sbapt 229268899Sbapt * test/yacc/code_calc.code.c, test/yacc/code_error.code.c, output.c: 230268899Sbapt use fix from Tom Shield's btyacc changes: remove redundant extern-declaration for YYPARSE_DECL() 231268899Sbapt 232268899Sbapt * 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: 233268899Sbapt discard unnecessary call on write_code_lineno() from Tom Shield's changes 234268899Sbapt 235268899Sbapt * 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: 236268899Sbapt use fix from Tom Shield's btyacc changes: prefix-definitions went to the 237268899Sbapt output (.tab.c) file in a case where they should have gone to the code 238268899Sbapt (.code.c) file. Remove now-redundant call to output_prefix(). 239268899Sbapt 240268899Sbapt * main.c: do the same for help-message 241268899Sbapt 242268899Sbapt * main.c: use OUTPUT_SUFFIX symbol in an overlooked case 243268899Sbapt 244268899Sbapt * test/run_make.sh: 245268899Sbapt modify to avoid use of VPATH, which has no standard implementation 246268899Sbapt 247268899Sbapt2014-04-05 Thomas E. Dickey <tom@invisible-island.net> 248268899Sbapt 249268899Sbapt * 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: 250268899Sbapt discard a change which merged CountLines() with explicit comparisons against 251268899Sbapt code_file because that adds extra to the #line values 252268899Sbapt 253268899Sbapt * 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: 254268899Sbapt add Tom Shield's change to allow definition of YYSTYPE_IS_DECLARED symbol to 255268899Sbapt override fallback typedef for YYSTYPE when that symbol is undefined 256268899Sbapt 257268899Sbapt * 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: 258268899Sbapt minor tweak to coding style - use parenthesis for "defined" operator's parameter 259268899Sbapt 260268899Sbapt * 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: 261268899Sbapt regen to make YYMAXTOKEN and YYUNDFTOKEN adjacent 262268899Sbapt 263268899Sbapt * 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: 264268899Sbapt regen after adding the YYUNDFTOKEN symbol 265268899Sbapt 266268899Sbapt * output.c: 267268899Sbapt integrate Tom Shield's btyacc changes which introduce the YYUNDFTOKEN symbol 268268899Sbapt (I changed order of output to keep this adjacent to YYMAXTOKEN) 269268899Sbapt 270268899Sbapt * reader.c: 271268899Sbapt merge all but one small change from Tom Shield's btyacc changes - that 272268899Sbapt changes the order of code-file in the tests. 273268899Sbapt 274268899Sbapt * test/btyacc/btyacc_demo.tab.c: regen 275268899Sbapt 276268899Sbapt * test/btyacc_demo.y: fix prototypes 277268899Sbapt 278268899Sbapt2014-04-04 Thomas E. Dickey <tom@invisible-island.net> 279268899Sbapt 280268899Sbapt * reader.c, defs.h, main.c: 281268899Sbapt more merging of Tom Shield's btyacc changes. In the merge, I moved the 282268899Sbapt symbol_pval inside the btyacc ifdef's and added some more btyacc ifdefs 283268899Sbapt 284268899Sbapt2014-04-03 Thomas E. Dickey <tom@invisible-island.net> 285268899Sbapt 286268899Sbapt * reader.c: 287268899Sbapt merge-in 3/4 of btyacc's changes, deferring those which change test-outputs. 288268899Sbapt Tom Shield's changes split-out copy_string() and copy_comment() functions 289268899Sbapt to simplify some logic, as well as adding btyacc-only chunks 290268899Sbapt 291268899Sbapt * makefile.in: build mstring.o, needed for changes in reader.c 292268899Sbapt 293268899Sbapt * output.c: 294268899Sbapt merge-in all of btyacc's changes which do not change byacc's test-output. 295268899Sbapt Some of the merge uses ifdef-changes which I applied to ongoing resync, 296268899Sbapt e.g., the introduction of PER_STATE. 297268899Sbapt 298268899Sbapt2014-04-02 Thomas E. Dickey <tom@invisible-island.net> 299268899Sbapt 300268899Sbapt * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c: regen 301268899Sbapt 302268899Sbapt * output.c: fix typo 303268899Sbapt 304268899Sbapt * output.c, reader.c: 305268899Sbapt merge in some chunks of reader and output files which do not affect byacc tests 306268899Sbapt 307268899Sbapt * test/yacc/calc2.tab.c, test/yacc/calc3.tab.c: regen 308268899Sbapt 309268899Sbapt * 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: 310268899Sbapt incorporate YYENOMEM and YYEOF symbols from btyacc 311268899Sbapt 312268899Sbapt * output.c: merge chunk from btyacc changes for header-guards 313268899Sbapt 314268899Sbapt * btyaccpar.skel: RCS_BASE 315268899Sbapt 316268899Sbapt * yaccpar.skel: comment-out yysccsid[], for FreeBSD build-issues 317268899Sbapt remove GCC_UNUSED to reduce name-pollution as well as being simpler 318268899Sbapt 319268899Sbapt * main.c: 320268899Sbapt move a btyacc symbol outside ifdef to work around current state of merge 321268899Sbapt 322268899Sbapt * defs.h: 323268899Sbapt add USE_HEADER_GUARDS to defer whether to modify byacc's header-output 324268899Sbapt 325268899Sbapt * test/run_make.sh: 326268899Sbapt do not try to compile files used for testing syntax-errors, since they are 327268899Sbapt likely to be incomplete 328268899Sbapt 329268899Sbapt2014-04-02 Tom.Shields 330268899Sbapt 331268899Sbapt * main.c: changes for btyacc 332268899Sbapt 333268899Sbapt2014-04-01 Thomas E. Dickey <tom@invisible-island.net> 334268899Sbapt 335268899Sbapt * reader.c: 336268899Sbapt integrate change by Tom Shields to use bsearch rather than successive 337268899Sbapt calls to matchec() 338268899Sbapt 339268899Sbapt * defs.h: typedef __compar_fn_t is unnecessary 340268899Sbapt 341268899Sbapt * 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: 342268899Sbapt omit the GCC_UNUSED, as noted by Tom Shields not really essential 343268899Sbapt 344268899Sbapt2014-04-01 Tom.Shields 345268899Sbapt 346268899Sbapt * verbose.c: changes for btyacc, ifdef'd 347268899Sbapt 348268899Sbapt2014-04-01 Thomas E. Dickey <tom@invisible-island.net> 349268899Sbapt 350268899Sbapt * mkpar.c: eliminate most of the ifdef's using macros 351268899Sbapt 352268899Sbapt2014-04-01 Tom.Shields 353268899Sbapt 354268899Sbapt * mkpar.c: merge btyacc changes (ifdef'd - no change to byacc) 355268899Sbapt 356268899Sbapt * error.c: 357268899Sbapt new functions used for reporting errors from the btyacc configuration 358268899Sbapt (I reordered some, and ifdef'd the new ones -TD) 359268899Sbapt 360268899Sbapt2014-03-31 Thomas E. Dickey <tom@invisible-island.net> 361268899Sbapt 362268899Sbapt * test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c: 363268899Sbapt omit the GCC_UNUSED, as noted by Tom Shields not really essential 364268899Sbapt 365268899Sbapt * 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: 366268899Sbapt regen 367268899Sbapt 368268899Sbapt2014-03-29 Thomas E. Dickey <tom@invisible-island.net> 369268899Sbapt 370268899Sbapt * 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: 371268899Sbapt comment-out yysccsid in the banner because it produces unnecessary compiler 372268899Sbapt warnings. The suggested alternative (using #pragma ident) in the preceding 373268899Sbapt comment is also obsolete; remove that comment (request by Gleb Smirnoff). 374268899Sbapt 375268899Sbapt * test/run_test.sh: 376268899Sbapt for yacc, ignore the inherit testcases, since they are btyacc-specific 377268899Sbapt 378268899Sbapt2014-03-28 Thomas E. Dickey <tom@invisible-island.net> 379268899Sbapt 380268899Sbapt * 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: 381268899Sbapt reference output for testing 382268899Sbapt 383268899Sbapt * test/run_lint.sh, test/run_make.sh, test/run_test.sh: 384268899Sbapt moving #define's out of makefile broke check for yacc vs btyacc (fix) 385268899Sbapt 386268899Sbapt2014-03-28 Tom.Shields 387268899Sbapt 388268899Sbapt * 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: 389268899Sbapt reference output for testing 390268899Sbapt 391268899Sbapt * defs.h: new functions/variables for btyacc 392268899Sbapt (I reordered and ifdef'd -TD) 393268899Sbapt 394268899Sbapt * test/inherit0.y, test/inherit1.y: testcase for btyacc 395268899Sbapt 396268899Sbapt2014-03-27 Tom.Shields 397268899Sbapt 398268899Sbapt * test/err_inherit5.y, test/err_inherit4.y, test/err_inherit3.y, test/err_inherit2.y, test/err_inherit1.y, test/inherit2.y: 399268899Sbapt testcase for btyacc 400268899Sbapt 401268899Sbapt2014-03-25 Tom.Shields 402268899Sbapt 403268899Sbapt * symtab.c: extra initialization needed for btyacc 404268899Sbapt (I ifdef'd -TD) 405268899Sbapt 406268899Sbapt * yacc.1: document -L/-B features from btyacc 407268899Sbapt 408268899Sbapt2014-03-25 Thomas E. Dickey <tom@invisible-island.net> 409268899Sbapt 410268899Sbapt * yacc.1: typo 411268899Sbapt 412268899Sbapt * configure: regen 413268899Sbapt 414268899Sbapt * configure.in: 415268899Sbapt modified new options to act like those in my other configure-scripts, e.g., 416268899Sbapt showing what option is being tested, and the resulting value. Put the 417268899Sbapt definitions in config.h rather than in the makefile. 418268899Sbapt 419268899Sbapt2014-03-25 Tom.Shields 420268899Sbapt 421268899Sbapt * makefile.in: add/use LINTFLAGS variable 422268899Sbapt make all of the objects (not just skeleton) rebuild if makefile changes 423268899Sbapt modify check-rule to reflect updates to run_test.sh vs subdirectory 424268899Sbapt 425268899Sbapt * mstring.c: byacc-btyacc-20140323 426268899Sbapt 427268899Sbapt2014-03-25 Thomas E. Dickey <tom@invisible-island.net> 428268899Sbapt 429268899Sbapt * test/btyacc/RCS, test/yacc/RCS: PERMIT FILE 430268899Sbapt 431268899Sbapt * config_h.in: updated with autoheader-252 432268899Sbapt 433268899Sbapt2014-03-25 Tom.Shields 434268899Sbapt 435268899Sbapt * README.BTYACC: byacc-btyacc-20140323 436268899Sbapt 437268899Sbapt2014-03-24 Tom.Shields 438268899Sbapt 439268899Sbapt * 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: 440268899Sbapt reference output for testing 441268899Sbapt 442268899Sbapt2014-03-24 Thomas E. Dickey <tom@invisible-island.net> 443268899Sbapt 444268899Sbapt * defs.h: fix compiler warnings due to mputc() 445268899Sbapt 446268899Sbapt2014-03-23 Tom.Shields 447268899Sbapt 448268899Sbapt * test/btyacc_demo.y: testcase for btyacc 449268899Sbapt 450268899Sbapt * test/btyacc/varsyntax_calc1.error, test/btyacc/varsyntax_calc1.output, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h: 451268899Sbapt reference output for testing 452268899Sbapt 453268899Sbapt * test/varsyntax_calc1.y, test/btyacc_calc1.y: testcase for btyacc 454268899Sbapt 455268899Sbapt2014-03-23 Thomas E. Dickey <tom@invisible-island.net> 456268899Sbapt 457268899Sbapt * 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: 458268899Sbapt reference output for testing 459268899Sbapt 460268899Sbapt * test/err_syntax26.y: testcase for missing_brace() 461268899Sbapt 462268899Sbapt * 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: 463268899Sbapt reference output for testing 464268899Sbapt 465268899Sbapt * test/err_syntax25.y: testcase for over_unionized() 466268899Sbapt 467268899Sbapt * 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: 468268899Sbapt reference output for testing 469268899Sbapt 470268899Sbapt * test/err_syntax24.y: testcase for default_action_warning() 471268899Sbapt 472268899Sbapt2014-03-23 Tom.Shields 473268899Sbapt 474268899Sbapt * 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: 475268899Sbapt reference output for testing 476268899Sbapt 477268899Sbapt2014-03-23 Thomas E. Dickey <tom@invisible-island.net> 478268899Sbapt 479268899Sbapt * 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: 480268899Sbapt reference output for testing 481268899Sbapt 482268899Sbapt * test/err_syntax23.y: testcase for untyped_lhs() 483268899Sbapt 484268899Sbapt2014-03-23 Tom.Shields 485268899Sbapt 486268899Sbapt * test/run_test.sh: 487268899Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 488268899Sbapt 489268899Sbapt2014-03-23 Thomas E. Dickey <tom@invisible-island.net> 490268899Sbapt 491268899Sbapt * 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: 492268899Sbapt reference output for testing 493268899Sbapt 494268899Sbapt * test/err_syntax22.y: testcase for untyped_rhs() 495268899Sbapt 496268899Sbapt * 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: 497268899Sbapt reference output for testing 498268899Sbapt 499268899Sbapt * test/err_syntax20.y: testcase for undefined_symbol_warning() 500268899Sbapt 501268899Sbapt * test/err_syntax21.y: testcase for unknown_rhs() 502268899Sbapt 503268899Sbapt * 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: 504268899Sbapt reference output for testing 505268899Sbapt 506268899Sbapt * test/err_syntax19.y: testcase for dollar_error() 507268899Sbapt 508268899Sbapt * 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: 509268899Sbapt reference output for testing 510268899Sbapt 511268899Sbapt * test/err_syntax18.y: testcase for dollar_warning() 512268899Sbapt 513268899Sbapt * 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: 514268899Sbapt reference output for testing 515268899Sbapt 516268899Sbapt * test/err_syntax17.y: testcase for unterminated_action() 517268899Sbapt 518268899Sbapt2014-03-22 Thomas E. Dickey <tom@invisible-island.net> 519268899Sbapt 520268899Sbapt * 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: 521268899Sbapt reference output for testing 522268899Sbapt 523268899Sbapt * test/err_syntax16.y: testcase for terminal_lhs() 524268899Sbapt 525268899Sbapt * 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: 526268899Sbapt reference output for testing 527268899Sbapt 528268899Sbapt * test/err_syntax15.y: testcase for no_grammar() 529268899Sbapt 530268899Sbapt * 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: 531268899Sbapt reference output for testing 532268899Sbapt 533268899Sbapt * test/err_syntax14.y: 534268899Sbapt testcase for restarted_warning() and undefined_goal() 535268899Sbapt 536268899Sbapt * 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: 537268899Sbapt reference output for testing 538268899Sbapt 539268899Sbapt * test/err_syntax13.y: testcase for terminal_start() 540268899Sbapt 541268899Sbapt * 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: 542268899Sbapt reference output for testing 543268899Sbapt 544268899Sbapt * test/err_syntax12.y: testcase for revalued_warning() 545268899Sbapt 546268899Sbapt * 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: 547268899Sbapt reference output for testing 548268899Sbapt 549268899Sbapt * test/err_syntax11.y: testcase for reprec_warning() 550268899Sbapt 551268899Sbapt * 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: 552268899Sbapt reference output for testing 553268899Sbapt 554268899Sbapt * test/err_syntax10.y: testcase for retyped_warning() 555268899Sbapt 556268899Sbapt2014-03-21 Thomas E. Dickey <tom@invisible-island.net> 557268899Sbapt 558268899Sbapt * 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: 559268899Sbapt reference output for testing 560268899Sbapt 561268899Sbapt * test/err_syntax9.y: testcase for tokenized_start() 562268899Sbapt 563268899Sbapt * 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: 564268899Sbapt reference output for testing 565268899Sbapt 566268899Sbapt * test/err_syntax8a.y, test/err_syntax8.y: testcase for used_reserved() 567268899Sbapt 568268899Sbapt * 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: 569268899Sbapt reference output for testing 570268899Sbapt 571268899Sbapt * test/err_syntax7b.y, test/err_syntax7a.y, test/err_syntax7.y: 572268899Sbapt testcase for illegal_character() 573268899Sbapt 574268899Sbapt * 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: 575268899Sbapt reference output for testing 576268899Sbapt 577268899Sbapt * test/err_syntax6.y: testcase for illegal_tag() 578268899Sbapt 579268899Sbapt * 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: 580268899Sbapt reference output for testing 581268899Sbapt 582268899Sbapt * test/err_syntax5.y: testcase for unterminated_union() 583268899Sbapt 584268899Sbapt * 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: 585268899Sbapt reference output for testing 586268899Sbapt 587268899Sbapt * test/err_syntax4.y: testcase for unterminated_text() 588268899Sbapt 589268899Sbapt * 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: 590268899Sbapt reference output for testing 591268899Sbapt 592268899Sbapt * test/err_syntax3.y: testcase for unterminated_string() 593268899Sbapt 594268899Sbapt * 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: 595268899Sbapt reference output for testing 596268899Sbapt 597268899Sbapt * test/err_syntax2.y: testcase for unterminated_comment() 598268899Sbapt 599268899Sbapt * test/err_syntax1.error, test/yacc/err_syntax1.error: 600268899Sbapt reference output for testing 601268899Sbapt 602268899Sbapt * test/err_syntax1.y: 603268899Sbapt test-case with syntax error (and nonprinting character) 604268899Sbapt 605268899Sbapt * 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: 606268899Sbapt reference output for testing 607268899Sbapt 608268899Sbapt * test/run_test.sh: 609268899Sbapt save stderr to reference files, to capture shift/reduce messages as well 610268899Sbapt as syntax-error messages 611268899Sbapt 612268899Sbapt * 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: 613268899Sbapt reference output for testing 614268899Sbapt 615268899Sbapt * test/run_test.sh: generate a ".dot" file for the grammar file 616268899Sbapt 617268899Sbapt * test/grammar.dot: RCS_BASE 618268899Sbapt 619268899Sbapt * test/yacc/grammar.dot: reference output for testing 620268899Sbapt 621268899Sbapt2014-03-19 Tom.Shields 622268899Sbapt 623268899Sbapt * output.c: rename MAXSHORT to MAXYYINT 624268899Sbapt 625268899Sbapt2014-03-18 Tom.Shields 626268899Sbapt 627268899Sbapt * yaccpar.skel: skeleton with btyacc additions 628268899Sbapt 629268899Sbapt * NOTES-btyacc-Changes: byacc-btyacc-20140323 630268899Sbapt 631268899Sbapt * test/btyacc/btyacc_calc1.output, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h: 632268899Sbapt reference output for testing 633268899Sbapt 634268899Sbapt * test/run_make.sh: 635268899Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 636268899Sbapt 637268899Sbapt * 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: 638268899Sbapt reference output for testing 639268899Sbapt 640268899Sbapt * defs.h: 641268899Sbapt several changes to help decouple the use of 'short' as the type of value 642268899Sbapt used in yacc parsers. 643268899Sbapt 644268899Sbapt * NOTES-btyacc-Disposition: byacc-btyacc-20140323 645268899Sbapt 646268899Sbapt2014-03-17 Tom.Shields 647268899Sbapt 648268899Sbapt * skel2c, yaccpar.skel, yaccpar.skel.old: RCS_BASE 649268899Sbapt 650268899Sbapt * test/run_lint.sh: 651268899Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 652268899Sbapt 653268899Sbapt * configure.in: add --with-max-table-size and --enable-btyacc options 654268899Sbapt 655268899Sbapt2014-03-16 Tom.Shields 656268899Sbapt 657268899Sbapt * main.c: use Value_t rather than short 658268899Sbapt 659268899Sbapt2014-03-11 Tom.Shields 660268899Sbapt 661268899Sbapt * test/empty.y: testcase for btyacc 662268899Sbapt 663268899Sbapt2014-03-10 Tom.Shields 664268899Sbapt 665268899Sbapt * test/calc3.y, test/calc2.y: fix unused-variable warning 666268899Sbapt 667268899Sbapt2014-02-18 Tom.Shields 668268899Sbapt 669268899Sbapt * lr0.c, graph.c: use Value_t rather than short 670268899Sbapt 671268899Sbapt * closure.c: use Value_t rather than short 672268899Sbapt ifdef'd forward-reference prototypes to match ifdef'ing of the actual functions 673268899Sbapt 674268899Sbapt * lalr.c: rename MAXSHORT to MAXYYINT 675268899Sbapt 676268899Sbapt2014-01-01 Thomas E. Dickey <tom@invisible-island.net> 677268899Sbapt 678268899Sbapt * yacc.1: document %token-table, improve presentation of double-quotes 679268899Sbapt 680268899Sbapt * VERSION, package/byacc.spec, package/debian/changelog: bump 681268899Sbapt 682268899Sbapt * 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: 683268899Sbapt reference output for testing 684268899Sbapt 685268899Sbapt * 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: 686268899Sbapt regen 687268899Sbapt 688268899Sbapt * output.c, skeleton.c: 689268899Sbapt amend the last change so that yytname is #define'd as needed rather than 690268899Sbapt permanent - to avoid breaking cproto for instance. 691268899Sbapt 692268899Sbapt2014-01-01 Christos.Zoulas 693268899Sbapt 694268899Sbapt * output.c, defs.h, main.c, reader.c, skeleton.c: 695268899Sbapt changes to build ntpd using byacc: 696268899Sbapt - rename yyname[] to yytname[] 697268899Sbapt - add YYTRANSLATE() macro 698268899Sbapt - recognize bison's %token-table declaration 699268899Sbapt 700268899Sbapt2014-01-01 Thomas E. Dickey <tom@invisible-island.net> 701268899Sbapt 702268899Sbapt * configure: regen 703268899Sbapt 704268899Sbapt * yacc.1: s/EE/XE/ to work around groff bug on Debian 6 705268899Sbapt 706268899Sbapt * makefile.in: use CF_MAKE_DOCS 707268899Sbapt 708268899Sbapt * aclocal.m4: add CF_MAKE_DOCS 709268899Sbapt 710268899Sbapt * configure.in: use CF_MAKE_DOCS 711268899Sbapt 712268899Sbapt2013-12-26 Thomas E. Dickey <tom@invisible-island.net> 713268899Sbapt 714268899Sbapt * config.guess: 2013-11-29 715268899Sbapt 716268899Sbapt2013-11-19 Thomas E. Dickey <tom@invisible-island.net> 717268899Sbapt 718268899Sbapt * aclocal.m4: resync with my-autoconf (fixes for clang and mingw) 719268899Sbapt 720268899Sbapt2013-10-25 Thomas E. Dickey <tom@invisible-island.net> 721268899Sbapt 722268899Sbapt * config.sub: 2013-10-01 723268899Sbapt 724268899Sbapt2013-09-25 Thomas E. Dickey <tom@invisible-island.net> 725268899Sbapt 726268899Sbapt * reader.c: fix two loop-limits found by clang 3.3 --analyze 727268899Sbapt 728268899Sbapt * configure: regen 729268899Sbapt 730268899Sbapt * aclocal.m4: 731268899Sbapt tweaks to CF_MIXEDCASE_FILENAMES and CF_XOPEN_SOURCE for msys from ncurses 732268899Sbapt 733268899Sbapt * package/mingw-byacc.spec: RCS_BASE 734268899Sbapt 735268899Sbapt * 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: 736268899Sbapt regen 737268899Sbapt 738268899Sbapt * skeleton.c: 739268899Sbapt Increase default stack-size to match FreeBSD version noted as from 740268899Sbapt "BSD 4.4 Lite Usr.bin Sources". See 741268899Sbapt 742268899Sbapt http://svnweb.freebsd.org/base/vendor/CSRG/dist/usr.bin/yacc/ 743268899Sbapt http://svnweb.freebsd.org/base/head/usr.bin/yacc/ 744268899Sbapt http://svnweb.freebsd.org/base/vendor/byacc/ 745268899Sbapt 746268899Sbapt The original 1.9 sources (on which I based development) used 500 for 747268899Sbapt stacksize; the BSD Lite sources (a year or two later) used 10000. 748268899Sbapt 749268899Sbapt This is a change to default values; the YYMAXDEPTH and YYSTACKSIZE 750268899Sbapt symbols have "always" been overridable by applications, but rarely 751268899Sbapt needed to do this. RedHat began using the FreeBSD source in 2000, 752268899Sbapt and switched to this source in 2007 using the 20050813 snapshot. 753268899Sbapt 754268899Sbapt RedHat #743343 misattributed the change in default stacksize to 755268899Sbapt a regression in byacc, but did not report the issue upstream. 756268899Sbapt 757268899Sbapt * package/debian/changelog, VERSION, package/byacc.spec: bump 758268899Sbapt 759268899Sbapt2013-09-07 Thomas E. Dickey <tom@invisible-island.net> 760268899Sbapt 761268899Sbapt * config.sub: update to 2013-09-15 762268899Sbapt 763268899Sbapt * config.guess: update to 2013-06-10 764268899Sbapt 765251143Sbapt2013-03-04 Thomas E. Dickey <tom@invisible-island.net> 766251143Sbapt 767251143Sbapt * package/debian/changelog, VERSION, package/byacc.spec: bump 768251143Sbapt 769251143Sbapt * aclocal.m4: 770251143Sbapt adapt tweak from Dave Becket to work around long-ago breakage in "new" autoconf. 771251143Sbapt 772251143Sbapt * output.c: 773251143Sbapt fix bogus #include if "-i" is given but not "-d" (report by Richard Mitton). 774251143Sbapt also while testing that, found a case where the union_file is unused; added 775251143Sbapt a check for address that. 776251143Sbapt 777251143Sbapt * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: regen 778251143Sbapt 779251143Sbapt * test/ftp.y: fix most compiler warnings for "make check_make" 780251143Sbapt 781251143Sbapt * test/calc1.tab.c: regen 782251143Sbapt 783251143Sbapt * test/calc1.y: fix most compiler warnings for "make check_make" 784251143Sbapt 785251143Sbapt * 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: 786251143Sbapt regen 787251143Sbapt 788251143Sbapt * skeleton.c: quiet a gcc conversion-warning in yygrowstack() 789251143Sbapt 790251143Sbapt * configure: regen 791251143Sbapt 792251143Sbapt * aclocal.m4: 793251143Sbapt another fix for CF_GCC_VERSION to handle Debian's modification of gcc message. 794251143Sbapt 795251143Sbapt2013-02-10 Thomas E. Dickey <tom@invisible-island.net> 796251143Sbapt 797268899Sbapt * config.sub, config.guess: update to 2013-02-04 798251143Sbapt 799251143Sbapt2012-10-03 Thomas E. Dickey <tom@invisible-island.net> 800251143Sbapt 801251143Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 802251143Sbapt 803251143Sbapt * configure: regen 804251143Sbapt 805251143Sbapt * configure.in: moved AC_PROG_CC_STDC call into CF_PROG_CC 806251143Sbapt 807251143Sbapt * aclocal.m4: 808251143Sbapt moved AC_PROG_CC_STDC call into CF_PROG_CC and (for other uses than byacc) 809251143Sbapt the CF_PROG_CC macro provides the CF_ANSI_CC_REQD for the 2.13 flavor. 810251143Sbapt 811251143Sbapt * aclocal.m4, configure.in: 812251143Sbapt Arian's change dropped my check for misused $CC variable - restore that with 813251143Sbapt alternate macro CF_PROG_CC. 814251143Sbapt 815251143Sbapt2012-10-03 Adrian.Bunk 816251143Sbapt 817251143Sbapt * aclocal.m4: 818251143Sbapt suggested patch: drop CF_ANSI_CC_REQD, CF_ANSI_CC_CHECK, CF_PROG_EXT since 819251143Sbapt they are not needed. 820251143Sbapt 821251143Sbapt2012-10-03 Thomas E. Dickey <tom@invisible-island.net> 822251143Sbapt 823251143Sbapt * aclocal.m4: 824251143Sbapt split-out CF_CC_ENV_FLAGS from CF_ANSI_CC_CHECK to avoid losing it in 825251143Sbapt Adrian's suggested changes. 826251143Sbapt 827251143Sbapt * aclocal.m4: 828251143Sbapt CF_CLANG_COMPILER - check if the given compiler is really clang. 829251143Sbapt 830251143Sbapt * aclocal.m4: 831251143Sbapt add check for clang to CF_GCC_WARNINGS. modify CF_GCC_WARNINGS to work around 832251143Sbapt old gcc warning: ncurses change to (try to) use gnatgcc exposed gnatgcc 2.8.1 833251143Sbapt on my Sarge system (versus 3.3.5 for the normal gcc). The 2.8.1's 834251143Sbapt pointer-arithmetic checks fell afoul of gcc's misuse of void* in string.h; work 835251143Sbapt around by excluding that check for pre-3.x compilers. 836251143Sbapt 837251143Sbapt * aclocal.m4: 838251143Sbapt modify CF_GCC_ATTRIBUTES so that autoheader is able to see the definitions 839251143Sbapt provided by this macro. use AC_DEFINE_UNQUOTED() in CF_GCC_ATTRIBUTES rather 840251143Sbapt than appending to confdefs.h, since long-ago concern about the ability to 841251143Sbapt pass-through parameterized macros appears to be not a problem, testing with 842251143Sbapt 2.13 and 2.52 843251143Sbapt 844251143Sbapt2012-10-03 Adrian.Bunk 845251143Sbapt 846251143Sbapt * aclocal.m4: 847251143Sbapt add parameter to AC_DEFINE_UNQUOTED() to allow it to be recognized by 848251143Sbapt autoheader, updated macros: 849251143Sbapt CF_CHECK_CACHE 850251143Sbapt CF_DISABLE_LEAKS 851251143Sbapt CF_MKSTEMP 852251143Sbapt CF_MIXEDCASE_FILENAMES 853251143Sbapt CF_NO_LEAKS_OPTION 854251143Sbapt 855251143Sbapt2012-10-03 Thomas E. Dickey <tom@invisible-island.net> 856251143Sbapt 857251143Sbapt * aclocal.m4: 858251143Sbapt move existence-check for mkstemp out of the AC_TRY_RUN, to help with 859251143Sbapt cross-compiles 860251143Sbapt 861251143Sbapt2012-10-02 Thomas E. Dickey <tom@invisible-island.net> 862251143Sbapt 863251143Sbapt * config_h.in: 864251143Sbapt Adrian Bunk request - replace this with the output from autoheader 865251143Sbapt 866251143Sbapt2012-09-29 Adrian.Bunk 867251143Sbapt 868251143Sbapt * configure.in: 869251143Sbapt suggested change: replace CF_ANSI_CC_REQD by AC_PROG_CC_STDC (since no 870251143Sbapt check is needed anymore for standard C compilers), drop AC_CONST (same 871251143Sbapt reason), modify AC_OUTPUT to rely upon template generated by autoheader. 872251143Sbapt bump requirement to autoconf 2.52.20011201 and drop check for CF_PROG_EXT 873251143Sbapt as being obsolete with autoconf 2.52x 874251143Sbapt 875251143Sbapt * configure.in, main.c: drop check for atexit, because it is standard C 876251143Sbapt 877251143Sbapt * makefile.in: add assignment for datarootdir variable. 878251143Sbapt 879240517Sbapt2012-05-26 Thomas E. Dickey <tom@invisible-island.net> 880240517Sbapt 881240517Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 882240517Sbapt 883240517Sbapt * reader.c: 884240517Sbapt some versions of gcc may warn that bp is not set in mark_symbol, e.g., 885240517Sbapt if GCC_NORETURN is not handled; appease the compiler. 886240517Sbapt 887240517Sbapt * reader.c: 888240517Sbapt use the declared types Assoc_t and Value_t in some places where compiler only 889240517Sbapt cared about char versus short. 890240517Sbapt 891240517Sbapt * reader.c: 892240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 893240517Sbapt (no object change) 894240517Sbapt 895240517Sbapt * defs.h: 896240517Sbapt add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD 897240517Sbapt packagers to build without configure script. Also remove duplicate declaration 898240517Sbapt of pure_parser variable (prompted by patch by Baptiste Daroussin). 899240517Sbapt 900240517Sbapt Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and 901240517Sbapt REALLOC macros. 902240517Sbapt 903240517Sbapt * symtab.c: 904240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 905240517Sbapt (no object change) 906240517Sbapt 907240517Sbapt2012-05-25 Thomas E. Dickey <tom@invisible-island.net> 908240517Sbapt 909240517Sbapt * output.c, main.c, verbose.c, mkpar.c, lr0.c: 910240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 911240517Sbapt (no object change) 912240517Sbapt 913234949Sbapt2012-01-15 Thomas E. Dickey <tom@invisible-island.net> 914234949Sbapt 915234949Sbapt * package/debian/copyright: bump 916234949Sbapt 917234949Sbapt * test/run_make.sh: workaround for breakage due to GNU make 3.82 918234949Sbapt 919234949Sbapt * test/run_make.sh: 920234949Sbapt tested with Solaris 10 (bison 1.875) and added scripting to exercise 921234949Sbapt the /usr/ccs/bin/yacc executable 922234949Sbapt 923234949Sbapt * test/grammar.tab.c: regen 924234949Sbapt 925234949Sbapt * test/grammar.y: modify to also build with Solaris yacc 926234949Sbapt 927234949Sbapt * VERSION, package/debian/changelog, package/byacc.spec: bump 928234949Sbapt 929268899Sbapt * test/yacc/calc1.output: reference output for testing 930268899Sbapt 931234949Sbapt * test/calc1.output, test/calc1.tab.c: regen 932234949Sbapt 933234949Sbapt * test/calc1.y: 934234949Sbapt undo the change made to appease bison, since it was only a warning. 935234949Sbapt 936234949Sbapt * test/pure_calc.tab.c, test/pure_error.tab.c: regen 937234949Sbapt 938234949Sbapt * test/run_make.sh: another fix for running from top-level directory 939234949Sbapt 940234949Sbapt * makefile.in: 941234949Sbapt ensure that check_make rule depends on having byacc built. 942234949Sbapt 943234949Sbapt * test/run_make.sh: fixes for building from parent directory 944234949Sbapt 945234949Sbapt * test/pure_error.y, test/pure_calc.y: bison-fixes 946234949Sbapt 947234949Sbapt * 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: 948234949Sbapt regen 949234949Sbapt 950268899Sbapt * test/code_debug.y: RCS_BASE 951268899Sbapt 952234949Sbapt * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y: 953234949Sbapt byacc already declares yyerror 954234949Sbapt 955234949Sbapt * test/pure_error.y, test/pure_calc.y: 956234949Sbapt modified to help make the files build with bison 957234949Sbapt 958234949Sbapt * test/run_make.sh: 959234949Sbapt supply a "%pure-parser" directive when bison needs it. 960234949Sbapt 961234949Sbapt * test/code_calc.code.c: regen 962234949Sbapt 963234949Sbapt * test/code_calc.y: modified to help make the files build with bison 964234949Sbapt 965234949Sbapt * yacc.1: 966234949Sbapt in testing, found that %expect did not work as documented for bison. 967234949Sbapt do not recommend it for portable code. 968234949Sbapt 969234949Sbapt * test/run_make.sh: workaround breakage in bison's %expect directive 970234949Sbapt 971234949Sbapt * test/grammar.y: modified to help make the files build with bison 972234949Sbapt 973234949Sbapt * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen 974234949Sbapt 975234949Sbapt * test/calc1.y: quiet a spurious warning from bison 2.3 976234949Sbapt 977234949Sbapt * test/calc1.tab.c: regen 978234949Sbapt 979234949Sbapt * test/calc1.y: modified to help make the files build with bison 980234949Sbapt 981234949Sbapt * yacc.1: comment on "-y" and "-P" options. 982234949Sbapt 983234949Sbapt * yacc.1: comment on portability 984234949Sbapt 985234949Sbapt * 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: 986234949Sbapt regen 987234949Sbapt 988234949Sbapt * test/ftp.y: modified to help make the files build with bison 989234949Sbapt (bison's "-y" option is of no use in providing "yacc" compatibility) 990234949Sbapt 991234949Sbapt * test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 992234949Sbapt regen 993234949Sbapt 994234949Sbapt * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y: 995234949Sbapt modified to help make the files build with bison 996234949Sbapt 997234949Sbapt * test/calc.tab.c: regen 998234949Sbapt 999234949Sbapt * test/calc.y: modified to help make the files build with bison 1000234949Sbapt 1001234949Sbapt * test/error.tab.c: regen 1002234949Sbapt 1003234949Sbapt * test/error.y: modified to help make the files build with bison 1004234949Sbapt 1005234949Sbapt * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen 1006234949Sbapt 1007234949Sbapt * test/run_make.sh: 1008234949Sbapt check for older bisons which (2.3 for instance) do not support pure parsers 1009234949Sbapt 1010234949Sbapt * test/code_error.y, test/calc3.y, test/calc2.y: 1011234949Sbapt modified to help make the files build with bison 1012234949Sbapt 1013234949Sbapt * test/run_test.sh: use $opt2 in filenames of the generated files 1014234949Sbapt 1015234949Sbapt * 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: 1016234949Sbapt regen 1017234949Sbapt 1018234949Sbapt2012-01-14 Thomas E. Dickey <tom@invisible-island.net> 1019234949Sbapt 1020234949Sbapt * 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: 1021234949Sbapt regen 1022234949Sbapt 1023234949Sbapt * output.c: Several changes: 1024234949Sbapt a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex. 1025234949Sbapt b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL, 1026234949Sbapt using YYLEX_PARAM_TYPE and YYLEX_PARAM. 1027234949Sbapt c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL, 1028234949Sbapt to help with redefinitions. 1029234949Sbapt 1030234949Sbapt * test/pure_calc.tab.c: 1031234949Sbapt modified to help make the files build with bison 1032234949Sbapt 1033234949Sbapt * test/run_make.sh: 1034234949Sbapt start work on followup, to check if the generated files build with bison. 1035234949Sbapt 1036234949Sbapt * test/pure_calc.y, test/pure_error.tab.c: 1037234949Sbapt modified to help make the files build with bison 1038234949Sbapt 1039234949Sbapt * test/calc3.tab.c: regen 1040234949Sbapt 1041234949Sbapt * 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: 1042234949Sbapt RCS_BASE 1043234949Sbapt 1044268899Sbapt * 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: 1045268899Sbapt reference output for testing 1046268899Sbapt 1047234949Sbapt * test/run_test.sh: generate/test with "-s" option applied. 1048234949Sbapt 1049234949Sbapt2012-01-13 Thomas E. Dickey <tom@invisible-island.net> 1050234949Sbapt 1051234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1052234949Sbapt 1053234949Sbapt * yacc.1: improve documentation of -s option 1054234949Sbapt 1055234949Sbapt * yacc.1: note that yacc ignores -y 1056234949Sbapt 1057234949Sbapt * main.c: add -s option to usage message. 1058234949Sbapt 1059268899Sbapt * test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h: 1060234949Sbapt RCS_BASE 1061234949Sbapt 1062268899Sbapt * test/yacc/quote_calc3.output, test/yacc/quote_calc4.output, test/yacc/quote_calc4.tab.h: 1063268899Sbapt reference output for testing 1064268899Sbapt 1065268899Sbapt * test/quote_calc3.y, test/quote_calc.tab.h: RCS_BASE 1066268899Sbapt 1067268899Sbapt * test/yacc/quote_calc.tab.h: reference output for testing 1068268899Sbapt 1069268899Sbapt * 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: 1070268899Sbapt RCS_BASE 1071268899Sbapt 1072268899Sbapt * test/yacc/quote_calc.output, test/yacc/quote_calc2.output, test/yacc/quote_calc2.tab.h, test/yacc/quote_calc3.tab.h: 1073268899Sbapt reference output for testing 1074268899Sbapt 1075268899Sbapt * test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y: RCS_BASE 1076268899Sbapt 1077234949Sbapt * configure: regen 1078234949Sbapt 1079234949Sbapt * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE 1080234949Sbapt 1081234949Sbapt2011-12-19 Thomas E. Dickey <tom@invisible-island.net> 1082234949Sbapt 1083234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1084234949Sbapt 1085234949Sbapt * yacc.1, output.c, main.c, defs.h: 1086234949Sbapt add "-s" option to suppress generating #define's based on string contents 1087234949Sbapt in a %token statement. For instance 1088234949Sbapt %token EQLS "Equals" 1089234949Sbapt would generate 1090234949Sbapt #define EQLS 256 1091234949Sbapt #define Equals 257 1092234949Sbapt Simply suppressing the second #define makes the behavior closer to yacc. 1093234949Sbapt (report by Paulo Andrade). 1094234949Sbapt 1095234949Sbapt2011-09-08 Thomas E. Dickey <tom@invisible-island.net> 1096234949Sbapt 1097234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1098234949Sbapt 1099234949Sbapt * output.c: 1100234949Sbapt fix some more interaction between -i and -d flags to ensure YYERRCODE 1101234949Sbapt and YYSTYPE are declared, tested with cproto. 1102234949Sbapt 1103234949Sbapt2011-09-07 Thomas E. Dickey <tom@invisible-island.net> 1104234949Sbapt 1105234949Sbapt * yacc.1: document "-i" option. 1106234949Sbapt 1107234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1108234949Sbapt 1109234949Sbapt * output.c: fix an interaction between -i and -d 1110234949Sbapt 1111234949Sbapt * 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: 1112234949Sbapt regen - changes for "-i" option move the global/impure variables near the 1113234949Sbapt macros that may add a prefix, etc. 1114234949Sbapt 1115234949Sbapt * skeleton.c, output.c, defs.h: changes to support "-i" option. 1116234949Sbapt 1117234949Sbapt2011-09-06 Thomas E. Dickey <tom@invisible-island.net> 1118234949Sbapt 1119234949Sbapt * reader.c: pass explicit file-pointer to write_section() 1120234949Sbapt 1121234949Sbapt * main.c: 1122234949Sbapt add "-i" option, to generate interface-file (suggested by Denis M. Wilson) 1123234949Sbapt 1124234949Sbapt2011-09-05 Thomas E. Dickey <tom@invisible-island.net> 1125234949Sbapt 1126234949Sbapt * configure: regen 1127234949Sbapt 1128234949Sbapt * aclocal.m4: 1129234949Sbapt resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC) 1130234949Sbapt and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks) 1131234949Sbapt 1132234949Sbapt * defs.h, error.c, reader.c: 1133234949Sbapt add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson) 1134234949Sbapt 1135234949Sbapt2011-04-01 Thomas E. Dickey <tom@invisible-island.net> 1136234949Sbapt 1137268899Sbapt * config.sub: update to 2011-04-01 1138234949Sbapt 1139234949Sbapt2011-02-02 Thomas E. Dickey <tom@invisible-island.net> 1140234949Sbapt 1141268899Sbapt * config.guess: update to 2011-01-01 1142234949Sbapt 1143234949Sbapt2010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1144234949Sbapt 1145234949Sbapt * defs.h, skeleton.c: 1146234949Sbapt add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas) 1147234949Sbapt 1148234949Sbapt * defs.h: 1149234949Sbapt mark all of the error-functions as non-returning (report by Christos Zoulas) 1150234949Sbapt 1151234949Sbapt * 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: 1152234949Sbapt regen 1153234949Sbapt 1154234949Sbapt * skeleton.c: 1155234949Sbapt use only realloc() rather than realloc+malloc, agree that systems needing this 1156234949Sbapt are very rare (prompted by NetBSD change). 1157234949Sbapt 1158234949Sbapt * test/ftp.tab.c: regen 1159234949Sbapt 1160234949Sbapt2010-12-29 Christos.Zoulas 1161234949Sbapt 1162234949Sbapt * test/ftp.y: 1163234949Sbapt improve example, which was stuck in 19XX and assumed file sizes were longs. 1164234949Sbapt 1165234949Sbapt2010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1166234949Sbapt 1167234949Sbapt * 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: 1168234949Sbapt regen 1169234949Sbapt 1170234949Sbapt * 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: 1171234949Sbapt use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror 1172234949Sbapt 1173234949Sbapt * skeleton.c: 1174234949Sbapt remove explicit prototype for yylex() via YYLEX_DECL() macro, since that 1175234949Sbapt would prevent declaring yylex() static (request by Christos Zoulas). 1176234949Sbapt 1177234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1178234949Sbapt 1179234949Sbapt2010-12-29 Christos.Zoulas 1180234949Sbapt 1181234949Sbapt * output.c: correct definition for YYERROR_DECL() 1182234949Sbapt 1183234949Sbapt2010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1184234949Sbapt 1185234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1186234949Sbapt 1187234949Sbapt2010-12-26 Thomas E. Dickey <tom@invisible-island.net> 1188234949Sbapt 1189234949Sbapt * defs.h, main.c: 1190234949Sbapt change return-type of allocate() to avoid warnings of alignment problems 1191234949Sbapt 1192234949Sbapt * main.c: Solaris declares chmod() in <sys/stat.h> 1193234949Sbapt 1194234949Sbapt * configure: regen 1195234949Sbapt 1196234949Sbapt * main.c: ifdef'd use of fcntl.h 1197234949Sbapt 1198234949Sbapt * configure.in: add configure checks for fcntl.h, atexit and mkstemp 1199234949Sbapt 1200234949Sbapt * main.c: for cases where mkstemp() is not available, use tempnam/open 1201234949Sbapt 1202234949Sbapt * aclocal.m4: add CF_MKSTEMP 1203234949Sbapt 1204234949Sbapt * aclocal.m4: 1205234949Sbapt improve quoting, deprecate ${name-value} in favor of standard ${name:-value} 1206234949Sbapt 1207234949Sbapt2010-12-25 Thomas E. Dickey <tom@invisible-island.net> 1208234949Sbapt 1209234949Sbapt * main.c: 1210234949Sbapt start revising use of tmpfile(), to make this work with MinGW. Start by 1211234949Sbapt implementing a mkstemp() alternative - noting that mkstemp() also is broken 1212234949Sbapt for MinGW. 1213234949Sbapt 1214234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1215234949Sbapt 1216234949Sbapt2010-11-27 Thomas E. Dickey <tom@invisible-island.net> 1217234949Sbapt 1218234949Sbapt * package/byacc.spec, package/debian/changelog, VERSION: bump 1219234949Sbapt 1220234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1221234949Sbapt 1222234949Sbapt * output.c: 1223234949Sbapt corrected use of %parse-param value in yyerror(); it doesn't use &yylval 1224234949Sbapt (report by Clifford Yapp) 1225234949Sbapt 1226234949Sbapt2010-11-26 Thomas E. Dickey <tom@invisible-island.net> 1227234949Sbapt 1228234949Sbapt * skeleton.c: typo 1229234949Sbapt 1230234949Sbapt * output.c: 1231234949Sbapt correct line-numbering when "-r" option is used; the 'outline' variable 1232234949Sbapt should only be incremented when writing to the code-file. 1233234949Sbapt 1234234949Sbapt * test/code_calc.code.c, test/code_error.code.c: regen 1235234949Sbapt 1236234949Sbapt * yacc.1: bump date 1237234949Sbapt 1238234949Sbapt * yacc.1: comment on -b option vs -r 1239234949Sbapt 1240234949Sbapt * 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: 1241234949Sbapt regen 1242234949Sbapt 1243234949Sbapt * output.c: 1244234949Sbapt improve on YYERROR_DECL(), adding dummy params which can be used for the 1245234949Sbapt actual function declaration. Also add YYERROR_CALL(). The two macros 1246234949Sbapt simplify maintaining sets of grammars which may/may not be pure. 1247234949Sbapt 1248234949Sbapt * 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: 1249234949Sbapt regen 1250234949Sbapt 1251234949Sbapt * output.c: generate yyerror() calls in output.c 1252234949Sbapt This is for compatibility with bison, which passes the yylval to yyerror 1253234949Sbapt when the %parse-param feature is used. 1254234949Sbapt 1255234949Sbapt * skeleton.c, defs.h: generate yyerror() calls in output.c 1256234949Sbapt 1257234949Sbapt * output.c: simplified a little, using putc_code() and putl_code() 1258234949Sbapt 1259268899Sbapt * test/yacc/calc1.tab.h: reference output for testing 1260268899Sbapt 1261234949Sbapt * test/calc1.tab.h: regen 1262234949Sbapt 1263234949Sbapt * reader.c: 1264234949Sbapt improve ifdef for YYSTYPE union declaration (report by Clifford Yapp) 1265234949Sbapt 1266234949Sbapt * reader.c: 1267234949Sbapt accept underscore as a replacement for dash in command names, e.g., 1268234949Sbapt "%pure_parser" vs "%pure-parser". 1269234949Sbapt 1270234949Sbapt * test/calc1.tab.c: regen 1271234949Sbapt 1272234949Sbapt * output.c, reader.c: 1273234949Sbapt also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp) 1274234949Sbapt 1275234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1276234949Sbapt 1277234949Sbapt2010-11-24 Thomas E. Dickey <tom@invisible-island.net> 1278234949Sbapt 1279234949Sbapt * main.c, defs.h, symtab.c, error.c: reduce global variables 1280234949Sbapt 1281234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1282234949Sbapt 1283234949Sbapt * reader.c: 1284234949Sbapt amend fix for Redhat #112617 to still call default_action_warning() for 1285234949Sbapt empty rules (report by Bruce Cran). 1286234949Sbapt 1287234949Sbapt2010-11-22 Thomas E. Dickey <tom@invisible-island.net> 1288234949Sbapt 1289234949Sbapt * output.c: 1290234949Sbapt add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp). 1291234949Sbapt 1292234949Sbapt * test/calc1.tab.c: regen 1293234949Sbapt 1294234949Sbapt * test/calc1.y: cleanup compiler warnings 1295234949Sbapt 1296234949Sbapt * test/grammar.y: add "%expect" 1297234949Sbapt 1298234949Sbapt * test/calc1.tab.h: regen 1299234949Sbapt 1300234949Sbapt * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE 1301234949Sbapt 1302234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1303234949Sbapt 1304234949Sbapt * test/calc1.y: 1305234949Sbapt advanced example from Steve Johnson's paper, uses unions 1306234949Sbapt 1307234949Sbapt * test/calc3.y, test/calc2.y: init 'base', so examples can run 1308234949Sbapt 1309234949Sbapt * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++ 1310234949Sbapt 1311234949Sbapt * output.c: compensate for fix in reader.c 1312234949Sbapt 1313234949Sbapt * reader.c: 1314234949Sbapt add/use putc_both() and puts_both(), incidentally fixing a place where 1315234949Sbapt a union copied to the union_file may be missing the end of the last line. 1316234949Sbapt 1317234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1318234949Sbapt 1319234949Sbapt2010-09-28 Thomas E. Dickey <tom@invisible-island.net> 1320234949Sbapt 1321268899Sbapt * config.guess: update to 2010-09-24 1322234949Sbapt 1323234949Sbapt2010-09-10 Thomas E. Dickey <tom@invisible-island.net> 1324234949Sbapt 1325268899Sbapt * config.sub: update to 2010-09-11 1326234949Sbapt 1327234949Sbapt2010-06-10 Thomas E. Dickey <tom@invisible-island.net> 1328234949Sbapt 1329234949Sbapt * yacc.1, package/debian/changelog, package/byacc.spec, VERSION: 1330234949Sbapt bump to 2010/06/10 1331234949Sbapt 1332234949Sbapt2010-06-09 Thomas E. Dickey <tom@invisible-island.net> 1333234949Sbapt 1334234949Sbapt * reader.c: free declarations in leak-testing code. 1335234949Sbapt 1336234949Sbapt * main.c: close code_file if -r option used, for leak-testing 1337234949Sbapt 1338234949Sbapt * defs.h, reader.c: 1339234949Sbapt improve %lex-param / %parse-param implementation by allowing for arrays to 1340234949Sbapt be passed as parameters, e.g., "int regs[26]". 1341234949Sbapt 1342268899Sbapt * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h: 1343234949Sbapt RCS_BASE 1344234949Sbapt 1345268899Sbapt * test/yacc/calc3.output, test/yacc/calc3.tab.h: 1346268899Sbapt reference output for testing 1347268899Sbapt 1348268899Sbapt * test/calc2.tab.c, test/calc2.y, test/calc2.tab.h: RCS_BASE 1349268899Sbapt 1350268899Sbapt * test/yacc/calc2.tab.h: reference output for testing 1351268899Sbapt 1352268899Sbapt * test/calc2.output: RCS_BASE 1353268899Sbapt 1354268899Sbapt * test/yacc/calc2.output: reference output for testing 1355268899Sbapt 1356234949Sbapt * output.c: 1357234949Sbapt improve %lex-param / %parse-param implementation by allowing for arrays to 1358234949Sbapt be passed as parameters, e.g., "int regs[26]". 1359234949Sbapt 1360234949Sbapt * test/calc.tab.c, test/calc.y: 1361234949Sbapt test-cases and reference files for %lex-param / %parse-param 1362234949Sbapt 1363234949Sbapt * makefile.in: add docs-rule, for html/pdf/txt form of manpage 1364234949Sbapt 1365234949Sbapt * configure: regen 1366234949Sbapt 1367234949Sbapt * aclocal.m4: add CF_XOPEN_SOURCE, etc. 1368234949Sbapt 1369234949Sbapt * configure.in: 1370234949Sbapt use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89 1371234949Sbapt 1372234949Sbapt * 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: 1373234949Sbapt fix warnings from clang --analyze 1374234949Sbapt 1375234949Sbapt2010-06-08 Thomas E. Dickey <tom@invisible-island.net> 1376234949Sbapt 1377234949Sbapt * output.c: fix to build with c89, etc. 1378234949Sbapt 1379234949Sbapt * reader.c: gcc warning 1380234949Sbapt 1381234949Sbapt * 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: 1382234949Sbapt modified test-cases to allow them to compile, to validate pure-parser changes. 1383234949Sbapt updated reference files to match. 1384234949Sbapt 1385234949Sbapt * output.c: 1386234949Sbapt move call for output_stype() earlier since it is used in pure-parser declarations 1387234949Sbapt 1388234949Sbapt * test/grammar.tab.c, test/grammar.y: 1389234949Sbapt modified test-cases to allow them to compile, to validate pure-parser changes. 1390234949Sbapt updated reference files to match. 1391234949Sbapt 1392234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1393234949Sbapt regen 1394234949Sbapt 1395234949Sbapt * yacc.1: document %lex-param and %parse-param 1396234949Sbapt 1397234949Sbapt * test/run_lint.sh, test/run_make.sh: RCS_BASE 1398234949Sbapt 1399234949Sbapt * test/run_test.sh: 1400234949Sbapt further modify to allow build-directory to be in a different location by 1401234949Sbapt passing this directory's location as a parameter to the script. 1402234949Sbapt 1403234949Sbapt * makefile.in: 1404234949Sbapt add check_make and check_lint rules to help validate the generated files 1405234949Sbapt in the test-directory 1406234949Sbapt 1407234949Sbapt2010-06-07 Thomas E. Dickey <tom@invisible-island.net> 1408234949Sbapt 1409234949Sbapt * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE 1410234949Sbapt 1411234949Sbapt * test/run_test.sh: 1412234949Sbapt provide for testing -r and -P options by checking if the ".y" filename 1413234949Sbapt begins with "code_" or "pure_", respectively. 1414234949Sbapt 1415268899Sbapt * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h: 1416234949Sbapt RCS_BASE 1417234949Sbapt 1418268899Sbapt * test/yacc/code_error.tab.h: reference output for testing 1419268899Sbapt 1420268899Sbapt * test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h: 1421268899Sbapt RCS_BASE 1422268899Sbapt 1423268899Sbapt * test/yacc/code_calc.tab.h: reference output for testing 1424268899Sbapt 1425268899Sbapt * test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h: 1426268899Sbapt RCS_BASE 1427268899Sbapt 1428268899Sbapt * test/yacc/pure_calc.output, test/yacc/pure_calc.tab.h, test/yacc/pure_error.output, test/yacc/pure_error.tab.h: 1429268899Sbapt reference output for testing 1430268899Sbapt 1431268899Sbapt * test/code_calc.output, test/code_error.output: RCS_BASE 1432268899Sbapt 1433268899Sbapt * test/yacc/code_calc.output, test/yacc/code_error.output: 1434268899Sbapt reference output for testing 1435268899Sbapt 1436234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen 1437234949Sbapt 1438234949Sbapt * test/run_test.sh: 1439234949Sbapt changes to support running "make check" in a separate build-tree 1440234949Sbapt 1441234949Sbapt * main.c: add "-P" to usage message 1442234949Sbapt 1443234949Sbapt * reader.c: use UCH() macro to hide casts. 1444234949Sbapt 1445234949Sbapt2010-06-07 Andres.Mejia 1446234949Sbapt 1447234949Sbapt * main.c, output.c, reader.c, defs.h, skeleton.c: 1448234949Sbapt Fix the output order of the generated parse code file. This allows for 1449234949Sbapt the use of YYPARSE_PARAM, by having the output that checks for 1450234949Sbapt YYPARSE_PARAM to be defined come after the C code block in the 1451234949Sbapt definitions section of a yacc file. 1452234949Sbapt 1453234949Sbapt Implement support for YYLEX_PARAM, similar to bison. This is useful for 1454234949Sbapt support for building reentrant lexers with flex. 1455234949Sbapt 1456234949Sbapt Fix a compatibility issue with bison's pure-parser option. Bison 1457234949Sbapt defines yylex as sending at least one parameter, &yylval, as the first 1458234949Sbapt parameter and doesn't seem to have an easy way to remove that parameter. 1459234949Sbapt This on the other hand is rather convenient to support saving to yylval 1460234949Sbapt from flex when building reentrant lexers and parsers. 1461234949Sbapt 1462234949Sbapt Add support for the %parse-param and %lex-param directives used in 1463234949Sbapt bison. This change bears some similarity to NetBSD's changes to byacc 1464234949Sbapt at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html 1465234949Sbapt 1466234949Sbapt Bison allows for POSIX yacc emulation via a yacc directive in the yacc 1467234949Sbapt file, and also via a command line switch. Implement this feature as a 1468234949Sbapt no-op for byacc, since byacc is designed to be POSIX yacc compatible 1469234949Sbapt anyway. This allows for better compatibility with yacc sources written 1470234949Sbapt for bison. 1471234949Sbapt 1472234949Sbapt2010-06-07 Thomas E. Dickey <tom@invisible-island.net> 1473234949Sbapt 1474234949Sbapt * VERSION: bump to 2010/06/07 1475234949Sbapt 1476234949Sbapt2010-06-06 Thomas E. Dickey <tom@invisible-island.net> 1477234949Sbapt 1478234949Sbapt * test/calc.tab.c, configure: regen 1479234949Sbapt 1480234949Sbapt * skeleton.c: 1481234949Sbapt move #include's down into the generated code, to allow user-defined code 1482234949Sbapt to override feature definitions, particularly with stdlib.h (request by 1483234949Sbapt Marcus Kool). 1484234949Sbapt 1485234949Sbapt * lr0.c, error.c, reader.c, defs.h: 1486234949Sbapt strict gcc 3.4.6 warnings on 64-bit platform 1487234949Sbapt 1488234949Sbapt * aclocal.m4, configure.in: add check for lint 1489234949Sbapt 1490234949Sbapt * makefile.in: add lint rule 1491234949Sbapt 1492234949Sbapt * defs.h, closure.c, lr0.c, warshall.c, main.c: 1493234949Sbapt fix gcc warnings, mostly for 64-bit platform 1494234949Sbapt 1495234949Sbapt * aclocal.m4: 1496234949Sbapt add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc 1497234949Sbapt 1498234949Sbapt * makefile.in: add etags/TAGS if available 1499234949Sbapt 1500234949Sbapt * configure.in: add configure check for actual ctags and etags programs 1501234949Sbapt 1502234949Sbapt * package/debian/copyright: add copyright notices for non-PD files 1503234949Sbapt 1504234949Sbapt * package/debian/changelog: 1505234949Sbapt incorporated scripts in upstream to use for test-builds 1506234949Sbapt 1507234949Sbapt * makefile.in: drop mkdirs.sh, just use "mkdir -p" 1508234949Sbapt 1509234949Sbapt * AUTHORS: nicknames for some contributors (see CHANGES for details) 1510234949Sbapt 1511234949Sbapt * package/byacc.spec: RPM file for byacc 1512234949Sbapt 1513234949Sbapt * VERSION: bump to 2010/06/06 1514234949Sbapt 1515234949Sbapt * aclocal.m4: add copyright notice, from "my-autoconf" macros 1516234949Sbapt http://invisible-island.net/autoconf/autoconf.html 1517234949Sbapt 1518234949Sbapt * package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS: 1519234949Sbapt PERMIT FILE 1520234949Sbapt 1521234949Sbapt * aclocal.m4: resync with my-autoconf. summary of changes: 1522234949Sbapt a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter 1523234949Sbapt b) CF_DISABLE_ECHO, change indent-convention for substituted makefile 1524234949Sbapt c) CF_GCC_VERSION, ignore stderr 1525234949Sbapt d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc 1526234949Sbapt 1527234949Sbapt2010-04-20 Thomas E. Dickey <tom@invisible-island.net> 1528234949Sbapt 1529234949Sbapt * 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: 1530234949Sbapt scripts from Debian package 1531234949Sbapt 1532234949Sbapt2010-02-16 Thomas E. Dickey <tom@invisible-island.net> 1533234949Sbapt 1534234949Sbapt * yacc.1: document -P and bison-extensions 1535234949Sbapt 1536234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1537234949Sbapt regen 1538234949Sbapt 1539234949Sbapt * output.c: implement %pure-parser 1540234949Sbapt 1541234949Sbapt * skeleton.c: 1542234949Sbapt implement %pure-parser, like bison. To help with this, changed the stack 1543234949Sbapt variables, putting them into a struct. 1544234949Sbapt 1545234949Sbapt * reader.c: implement %pure-parser 1546234949Sbapt 1547234949Sbapt * defs.h: modified skeleton to support %pure-parser feature 1548234949Sbapt 1549234949Sbapt * main.c: add -P option to set %pure-parser 1550234949Sbapt 1551234949Sbapt * output.c: 1552234949Sbapt make -r and -p options work together. The -r option splits the generated 1553234949Sbapt parser into code/table files; for this case we cannot use static data. 1554234949Sbapt Also, we have to repeat the #define's used for prefix (-p) as well as the 1555234949Sbapt redeclaration of yyparse(). Finally, allow any of the prefixed names to 1556234949Sbapt be overridden, e.g., by passing a -D option to the compiler. Make that 1557234949Sbapt a little more readable by putting a blank line before each chunk. 1558234949Sbapt 1559234949Sbapt * defs.h: add definitions for %pure-parser 1560234949Sbapt 1561234949Sbapt * skeleton.c: 1562234949Sbapt put blank line before/after the redeclaration of yyparse() 1563234949Sbapt 1564234949Sbapt * output.c: allow for other program redefining yylex() 1565234949Sbapt 1566234949Sbapt * skeleton.c: 1567234949Sbapt split-off xdecls[] array, to move declaration of yyparse() after #define's 1568234949Sbapt 1569234949Sbapt * defs.h: split-out xdecls[] 1570234949Sbapt 1571234949Sbapt * VERSION: bump 1572234949Sbapt 1573234949Sbapt * configure: regen 1574234949Sbapt 1575234949Sbapt * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS 1576234949Sbapt 1577234949Sbapt * aclocal.m4: 1578234949Sbapt resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes. 1579234949Sbapt 1580234949Sbapt2010-02-16 Ostap.Cherkashi 1581234949Sbapt 1582234949Sbapt * skeleton.c: fix a memory leak in the generated skeleton 1583234949Sbapt 1584234949Sbapt2010-01-01 Thomas E. Dickey <tom@invisible-island.net> 1585234949Sbapt 1586234949Sbapt * package/debian/source/format: scripts from Debian package 1587234949Sbapt 1588234949Sbapt2009-12-31 Thomas E. Dickey <tom@invisible-island.net> 1589234949Sbapt 1590268899Sbapt * config.guess: update to 2009-12-30 1591234949Sbapt 1592268899Sbapt * config.sub: update to 2009-12-31 1593234949Sbapt 1594234949Sbapt2009-10-27 Thomas E. Dickey <tom@invisible-island.net> 1595234949Sbapt 1596234949Sbapt * VERSION: 20091027 1597234949Sbapt 1598234949Sbapt * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c: 1599234949Sbapt strict compiler warnings 1600234949Sbapt 1601234949Sbapt2009-10-26 Thomas E. Dickey <tom@invisible-island.net> 1602234949Sbapt 1603234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1604234949Sbapt resync 1605234949Sbapt 1606234949Sbapt * main.c, defs.h: introduce some typedefs for portability, etc. 1607234949Sbapt 1608234949Sbapt * makefile.in: 1609234949Sbapt don't remove "*.log" in mostlyclean rule since it interferes with regression 1610234949Sbapt script. 1611234949Sbapt 1612234949Sbapt * configure: regen 1613234949Sbapt 1614234949Sbapt * aclocal.m4: resync with my-autoconf 1615234949Sbapt 1616234949Sbapt2009-08-25 Thomas E. Dickey <tom@invisible-island.net> 1617234949Sbapt 1618268899Sbapt * config.guess, config.sub: update to 2009-08-19 1619234949Sbapt 1620234949Sbapt2009-02-21 Thomas E. Dickey <tom@invisible-island.net> 1621234949Sbapt 1622234949Sbapt * VERSION: bump 1623234949Sbapt 1624234949Sbapt * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25 1625234949Sbapt 1626234949Sbapt2008-12-26 Thomas E. Dickey <tom@invisible-island.net> 1627234949Sbapt 1628234949Sbapt * configure: regen with autoconf-2.52 (patched) 1629234949Sbapt 1630234949Sbapt2008-12-25 Thomas E. Dickey <tom@invisible-island.net> 1631234949Sbapt 1632234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 1633234949Sbapt regenerated 1634234949Sbapt 1635234949Sbapt2008-12-24 Thomas E. Dickey <tom@invisible-island.net> 1636234949Sbapt 1637234949Sbapt * VERSION: bump 1638234949Sbapt 1639234949Sbapt * skeleton.c: 1640234949Sbapt remove ifdef-lint from goto yyerrlab, to quiet gcc warning 1641234949Sbapt 1642234949Sbapt2008-11-26 Thomas E. Dickey <tom@invisible-island.net> 1643234949Sbapt 1644234949Sbapt * verbose.c, main.c, defs.h, mkpar.c, reader.c: 1645234949Sbapt completed implementation of "%expect" (report by Perry E. Metzger). 1646234949Sbapt add "%expect-rr", which is (unlike bison) allowable in LALR parsers. 1647234949Sbapt 1648234949Sbapt2008-11-24 Thomas E. Dickey <tom@invisible-island.net> 1649234949Sbapt 1650234949Sbapt * 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: 1651234949Sbapt change indent-style (request by Perry E. Metzger) 1652234949Sbapt 1653234949Sbapt2008-08-27 Thomas E. Dickey <tom@invisible-island.net> 1654234949Sbapt 1655234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1656234949Sbapt better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 1657234949Sbapt 1658234949Sbapt * VERSION: bump 1659234949Sbapt 1660234949Sbapt * skeleton.c: 1661234949Sbapt better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 1662234949Sbapt 1663234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c: 1664234949Sbapt change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's. 1665234949Sbapt 1666234949Sbapt * configure: regen'd 1667234949Sbapt 1668234949Sbapt * configure.in: add -Wwrite-strings to warnings 1669234949Sbapt 1670234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1671234949Sbapt add YYPARSE_PARAM and YYPARSE_PARAM_TYPE 1672234949Sbapt 1673234949Sbapt * skeleton.c: 1674234949Sbapt add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features. 1675234949Sbapt 1676234949Sbapt * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c: 1677234949Sbapt fixes for gcc -Wwrite-strings 1678234949Sbapt 1679234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1680234949Sbapt generate the tables as static-const (this is an interface change) 1681234949Sbapt 1682234949Sbapt * output.c: realign columns in start_table() 1683234949Sbapt 1684234949Sbapt * output.c: 1685234949Sbapt generate the tables as static-const (this is an interface change) 1686234949Sbapt 1687234949Sbapt * output.c: reorder functions to eliminate forward-references 1688234949Sbapt 1689234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1690234949Sbapt remove 'register' keywords 1691234949Sbapt 1692234949Sbapt2008-08-26 Thomas E. Dickey <tom@invisible-island.net> 1693234949Sbapt 1694234949Sbapt * 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: 1695234949Sbapt remove 'register' keywords 1696234949Sbapt 1697234949Sbapt2008-08-25 Thomas E. Dickey <tom@invisible-island.net> 1698234949Sbapt 1699234949Sbapt * test/ftp.tab.c: regen'd 1700234949Sbapt 1701234949Sbapt * reader.c: 1702234949Sbapt improve the left-curly fix by testing after blanks, to avoid having a 1703234949Sbapt " {" at the beginning of a line. 1704234949Sbapt 1705234949Sbapt * test/error.tab.c, test/grammar.tab.c: regen'd 1706234949Sbapt 1707234949Sbapt * output.c: 1708234949Sbapt move the remaining newline-counting into write_XXX functions. 1709234949Sbapt 1710234949Sbapt * test/calc.tab.c: regen'd 1711234949Sbapt 1712234949Sbapt * output.c: 1713234949Sbapt simplify part of the output_file formatting using new functions, e.g., 1714234949Sbapt start_int_table(), output_newline(). 1715234949Sbapt 1716234949Sbapt * reader.c: 1717234949Sbapt modify copy_action() to indent the first character, it if is is left-curly 1718234949Sbapt brace. That makes the output look more like the original, as well as makes 1719234949Sbapt it simpler to edit (not confuse editors which look for a left-curly in the 1720234949Sbapt first column as if it were the beginning of a function). 1721234949Sbapt 1722234949Sbapt * skeleton.c: minor fixes to avoid gcc -Wconversion warnings 1723234949Sbapt 1724234949Sbapt * output.c: align the #define's produced for "-p" option 1725234949Sbapt 1726234949Sbapt * test/run_test.sh: use the "-p" option for better coverage. 1727234949Sbapt 1728234949Sbapt * output.c: simplify output_prefix() with new define_prefixed() 1729234949Sbapt 1730234949Sbapt * skeleton.c: include string.h, for memset() 1731234949Sbapt change stack size to unsigned to fix gcc -Wconversion warnings. 1732234949Sbapt 1733234949Sbapt * VERSION: bump to 2008/8/25 1734234949Sbapt 1735234949Sbapt * makefile.in: add dependency on VERSION file. 1736234949Sbapt 1737234949Sbapt2008-08-24 Thomas E. Dickey <tom@invisible-island.net> 1738234949Sbapt 1739234949Sbapt * VERSION: bump 1740234949Sbapt 1741234949Sbapt * lalr.c: improved memory-leak checking by freeing data in includes[] 1742234949Sbapt 1743234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 1744234949Sbapt update to match skeleton-change 1745234949Sbapt 1746234949Sbapt * configure: regen'd 1747234949Sbapt 1748234949Sbapt * skeleton.c: Add fix for stack discussed 1749234949Sbapt http://undeadly.org/cgi?action=article&sid=20080708155228 1750234949Sbapt and applied 1751234949Sbapt http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29 1752234949Sbapt 1753234949Sbapt * aclocal.m4: resync with my-autoconf (no major changes) 1754234949Sbapt 1755234949Sbapt2008-07-24 Thomas E. Dickey <tom@invisible-island.net> 1756234949Sbapt 1757234949Sbapt * package/pkgsrc/Makefile, package/pkgsrc/distinfo: 1758234949Sbapt scripts from NetBSD pkgsrc, for test-builds 1759234949Sbapt 1760234949Sbapt2008-03-14 Thomas E. Dickey <tom@invisible-island.net> 1761234949Sbapt 1762234949Sbapt * config.sub: update to 2008-03-08 1763234949Sbapt 1764234949Sbapt * config.guess: update to 2008-03-12 1765234949Sbapt 1766234949Sbapt2007-05-09 Thomas E. Dickey <tom@invisible-island.net> 1767234949Sbapt 1768234949Sbapt * main.c: close graph, verbose files if opened, on exit. 1769234949Sbapt 1770234949Sbapt * main.c: 1771234949Sbapt audit memory leaks - valgrind reported some memory still in use on exit. 1772234949Sbapt 1773234949Sbapt * lalr.c, output.c, reader.c, mkpar.c, lr0.c: 1774234949Sbapt add hook for auditing memory leaks 1775234949Sbapt 1776234949Sbapt * defs.h: add hooks for auditing memory leaks 1777234949Sbapt 1778234949Sbapt * configure: regen'd 1779234949Sbapt 1780234949Sbapt * configure.in: 1781234949Sbapt use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind, 1782234949Sbapt --with-dbmalloc and --with-dmalloc 1783234949Sbapt 1784234949Sbapt * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND 1785234949Sbapt 1786234949Sbapt * aclocal.m4: improve version-checking in CF_GCC_VERSION 1787234949Sbapt rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro 1788234949Sbapt 1789234949Sbapt * VERSION: 2007/5/9 1790234949Sbapt 1791234949Sbapt * main.c: file_prefix did not always have a trailing null. 1792234949Sbapt 1793234949Sbapt2007-03-25 Thomas E. Dickey <tom@invisible-island.net> 1794234949Sbapt 1795234949Sbapt * mkdirs.sh: improved version for "make -j" 1796234949Sbapt 1797234949Sbapt2006-12-22 Thomas E. Dickey <tom@invisible-island.net> 1798234949Sbapt 1799268899Sbapt * config.guess: update to 2006/12/22 1800234949Sbapt 1801234949Sbapt2006-12-08 Thomas E. Dickey <tom@invisible-island.net> 1802234949Sbapt 1803268899Sbapt * config.sub: update to 2006/12/08 1804234949Sbapt 1805234949Sbapt2005-08-13 Thomas E. Dickey <tom@invisible-island.net> 1806234949Sbapt 1807234949Sbapt * main.c: add -V to usage message 1808234949Sbapt 1809234949Sbapt * makefile.in: remove -t option from ctags 1810234949Sbapt 1811234949Sbapt * VERSION: 2005/8/13 1812234949Sbapt 1813234949Sbapt2005-08-13 schmitz 1814234949Sbapt 1815234949Sbapt * main.c: Sylvain Schmitz: 1816234949Sbapt modify the '-o' option to work like bison's, which sets the file-prefix. 1817234949Sbapt 1818234949Sbapt2005-08-13 Matt.Kraai 1819234949Sbapt 1820234949Sbapt * output.c: 1821234949Sbapt Debian #322858 (don't close union_file, which contained data). 1822234949Sbapt This feature is used in groff. 1823234949Sbapt 1824234949Sbapt2005-08-13 Thomas E. Dickey <tom@invisible-island.net> 1825234949Sbapt 1826234949Sbapt * configure: regenerated 1827234949Sbapt 1828234949Sbapt * aclocal.m4: improve checks for Intel compiler warnings 1829234949Sbapt 1830234949Sbapt2005-06-25 Thomas E. Dickey <tom@invisible-island.net> 1831234949Sbapt 1832268899Sbapt * config.sub: update to 2005/6/2 1833234949Sbapt 1834268899Sbapt * config.guess: update to 2005/5/27 1835234949Sbapt 1836234949Sbapt2005-05-05 Thomas E. Dickey <tom@invisible-island.net> 1837234949Sbapt 1838234949Sbapt * defs.h: add a fallback for GCC_UNUSED 1839234949Sbapt 1840234949Sbapt2005-05-04 Thomas E. Dickey <tom@invisible-island.net> 1841234949Sbapt 1842234949Sbapt * makefile.in: add "." to include-path to pickup config.h 1843234949Sbapt 1844234949Sbapt * reader.c: 1845234949Sbapt apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617. 1846234949Sbapt 1847234949Sbapt * output.c: 1848234949Sbapt correct a limit check in pack_vector() - report/analysis by William Evans 1849234949Sbapt 1850234949Sbapt * main.c: 1851234949Sbapt exit after printing version. Otherwise "yacc -V" will exit with an erro 1852234949Sbapt after printing the usage message. 1853234949Sbapt 1854234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1855234949Sbapt regenerated after skeleton-changes 1856234949Sbapt 1857234949Sbapt * skeleton.c: replace a few -1's with YYEMPTY 1858234949Sbapt 1859234949Sbapt * skeleton.c: 1860234949Sbapt delete yynewerror (no one uses it any more, and it just makes compiler warnings) 1861234949Sbapt 1862234949Sbapt * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD 1863234949Sbapt 1864234949Sbapt * test/run_test.sh: 1865234949Sbapt filter out lines with YYPATCH, since that will change with each update 1866234949Sbapt 1867234949Sbapt * yacc.1: add -V option 1868234949Sbapt 1869234949Sbapt * main.c: add -V option to print the version. 1870234949Sbapt simplify option-parsing by moving the duplicate logic for setting flags into 1871234949Sbapt new function setflag(). 1872234949Sbapt 1873234949Sbapt * skeleton.c: 1874234949Sbapt move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers). 1875234949Sbapt add YYPATCH here so it can be tested by applications. 1876234949Sbapt 1877234949Sbapt * defs.h: 1878234949Sbapt add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and 1879234949Sbapt YYPATCH symbols. 1880234949Sbapt 1881234949Sbapt * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c: 1882234949Sbapt reduce externs by making static the procedures that are not referenced outside 1883234949Sbapt the module in which they are defined. 1884234949Sbapt 1885234949Sbapt * makefile.in: 1886234949Sbapt the VERSION file holds the patch-date. Define YYPATCH, so this will be 1887234949Sbapt compiled into the skeleton. 1888234949Sbapt 1889234949Sbapt * VERSION: patch-level for byacc 1890234949Sbapt 1891234949Sbapt * main.c: 1892234949Sbapt add "-o" to usage message. It is too long for a single line; rewrite usage() 1893234949Sbapt to show one option per line. 1894234949Sbapt 1895234949Sbapt2005-05-03 Thomas E. Dickey <tom@invisible-island.net> 1896234949Sbapt 1897234949Sbapt * main.c: add -o option, to work with scripts that assume bison. 1898234949Sbapt simplify create_file_names() with a macro. 1899234949Sbapt simplify done() with a macro. 1900234949Sbapt adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by 1901234949Sbapt onintr(), do not flush output via exit(), but use _exit() instead. 1902234949Sbapt 1903234949Sbapt * defs.h: remove unnecessary externs for main.c 1904234949Sbapt 1905234949Sbapt * yacc.1: add -o option 1906234949Sbapt 1907234949Sbapt * graph.c: remove unused parameter 1908234949Sbapt 1909234949Sbapt * mkpar.c, defs.h, reader.c: 1910234949Sbapt add support for "%expect", a bison feature from FreeBSD sources 1911234949Sbapt 1912234949Sbapt * 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: 1913234949Sbapt indent'd 1914234949Sbapt 1915234949Sbapt * configure: regenerated for 2005/5/5 1916234949Sbapt 1917234949Sbapt * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER) 1918234949Sbapt 1919234949Sbapt2005-04-27 schmitz 1920234949Sbapt 1921234949Sbapt * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1: 1922234949Sbapt Sylvain Schmitz <schmitz@i3s.unice.fr>: 1923234949Sbapt add graphical output of the LALR(1) automaton for graphviz, 1924234949Sbapt associated with command-line option `-g' 1925234949Sbapt 1926234949Sbapt2005-04-16 Thomas E. Dickey <tom@invisible-island.net> 1927234949Sbapt 1928268899Sbapt * config.sub: update to 2005/2/10 1929234949Sbapt 1930268899Sbapt * config.guess: update to 2005/3/24 1931234949Sbapt 1932234949Sbapt2005-04-13 Thomas E. Dickey <tom@invisible-island.net> 1933234949Sbapt 1934234949Sbapt * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds 1935234949Sbapt 1936234949Sbapt2005-03-21 Thomas E. Dickey <tom@invisible-island.net> 1937234949Sbapt 1938234949Sbapt * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds 1939234949Sbapt 1940234949Sbapt2004-03-28 Thomas E. Dickey <tom@invisible-island.net> 1941234949Sbapt 1942234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1943234949Sbapt updates due to adding yyparse() prototype 1944234949Sbapt 1945234949Sbapt * configure: RCS_BASE 1946234949Sbapt 1947234949Sbapt * configure.in: 1948234949Sbapt add AC_ARG_PROGRAM to make --program-prefix, etc., work. 1949234949Sbapt 1950234949Sbapt * makefile.in: first cut of script to support --program-prefix 1951234949Sbapt 1952234949Sbapt * configure.in: 1953234949Sbapt reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52 1954234949Sbapt 1955234949Sbapt * makefile.in: modify so DESTDIR works 1956234949Sbapt 1957234949Sbapt * makefile.in: use EXEEXT and OBJEXT 1958234949Sbapt 1959234949Sbapt * configure.in: use CF_PROG_EXT 1960234949Sbapt generate a config.h 1961234949Sbapt 1962234949Sbapt * defs.h: make this use the generated config.h 1963234949Sbapt 1964234949Sbapt * skeleton.c: add a forward-reference for yyparse() 1965234949Sbapt 1966234949Sbapt * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT 1967234949Sbapt 1968234949Sbapt * yacc.1: remove the discussion of TMPDIR since it is obsolete 1969234949Sbapt 1970234949Sbapt * skeleton.c: fix a couple of minor compiler-warnings in the skeleton 1971234949Sbapt 1972234949Sbapt * defs.h: remove action_file_name, etc., since we use tmpfile() now. 1973234949Sbapt 1974234949Sbapt * main.c: 1975234949Sbapt use tmpfile() for opening the working files. This quiets a warning 1976234949Sbapt advising the use of mkstemp(). 1977234949Sbapt 1978234949Sbapt * output.c: 1979234949Sbapt Do not close temporary-files here, since they are opened with tmpfile(). 1980234949Sbapt Just rewind them, and they're ready to read back the data stored in them. 1981234949Sbapt 1982234949Sbapt * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE 1983234949Sbapt 1984268899Sbapt * test/yacc/grammar.output, test/yacc/grammar.tab.h: 1985268899Sbapt reference output for testing 1986268899Sbapt 1987234949Sbapt * makefile.in: turn on "make check" rule 1988234949Sbapt 1989268899Sbapt * test/calc.output: RCS_BASE 1990234949Sbapt 1991268899Sbapt * test/yacc/calc.output: reference output for testing 1992268899Sbapt 1993268899Sbapt * test/run_test.sh, test/calc.tab.h: RCS_BASE 1994268899Sbapt 1995268899Sbapt * test/yacc/calc.tab.h: reference output for testing 1996268899Sbapt 1997234949Sbapt * test/ftp.tab.c: yyparse() is now yyparse(void) 1998234949Sbapt 1999234949Sbapt * test/calc.tab.c: RCS_BASE 2000234949Sbapt 2001234949Sbapt * test/error.tab.c: yyparse() is now yyparse(void) 2002234949Sbapt 2003234949Sbapt * test/README: RCS_BASE 2004234949Sbapt 2005234949Sbapt * yacc.1: various typography fixes prompted by Debian #100947 2006234949Sbapt 2007234949Sbapt * aclocal.m4, makefile.in, configure.in: RCS_BASE 2008234949Sbapt 2009234949Sbapt * README: updated to note that this is not the original 2010234949Sbapt 2011234949Sbapt2004-03-24 Thomas E. Dickey <tom@invisible-island.net> 2012234949Sbapt 2013234949Sbapt * test/grammar.y: RCS_BASE 2014234949Sbapt 2015234949Sbapt2004-02-23 Thomas E. Dickey <tom@invisible-island.net> 2016234949Sbapt 2017234949Sbapt * config.sub: RCS_BASE 2018234949Sbapt 2019234949Sbapt2004-02-17 Thomas E. Dickey <tom@invisible-island.net> 2020234949Sbapt 2021234949Sbapt * config.guess: RCS_BASE 2022234949Sbapt 2023234949Sbapt2003-11-29 Thomas E. Dickey <tom@invisible-island.net> 2024234949Sbapt 2025234949Sbapt * install-sh: improved quoting 2026234949Sbapt 2027234949Sbapt2002-06-29 Thomas E. Dickey <tom@invisible-island.net> 2028234949Sbapt 2029234949Sbapt * mkdirs.sh: 2030234949Sbapt don't use character range, since some locales don't work as expected 2031234949Sbapt 2032234949Sbapt2001-06-22 Thomas E. Dickey <tom@invisible-island.net> 2033234949Sbapt 2034234949Sbapt * install-sh: RCS_BASE 2035234949Sbapt 2036234949Sbapt2000-11-20 Thomas E. Dickey <tom@invisible-island.net> 2037234949Sbapt 2038234949Sbapt * test/calc.y: RCS_BASE 2039234949Sbapt 2040234949Sbapt * test/code_calc.y, test/pure_calc.y: copy of calc.y 2041234949Sbapt 2042234949Sbapt * vmsbuild.com: original version 2043234949Sbapt 2044234949Sbapt2000-02-23 Thomas E. Dickey <dickey@invisible-island.net> 2045234949Sbapt 2046234949Sbapt * test/RCS, RCS: PERMIT FILE 2047234949Sbapt 2048234949Sbapt2000-02-14 Thomas E. Dickey <tom@invisible-island.net> 2049234949Sbapt 2050234949Sbapt * main.c: fix for VMS port - making pathname for temp-file 2051234949Sbapt 2052234949Sbapt * descrip.mms: original version 2053234949Sbapt 2054234949Sbapt2000-02-13 Thomas E. Dickey <tom@invisible-island.net> 2055234949Sbapt 2056234949Sbapt * 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: 2057234949Sbapt ansify 2058234949Sbapt 2059234949Sbapt1999-11-30 Thomas E. Dickey <tom@invisible-island.net> 2060234949Sbapt 2061234949Sbapt * mkdirs.sh: RCS_BASE 2062234949Sbapt 2063234949Sbapt1995-01-01 Thomas E. Dickey <tom@invisible-island.net> 2064234949Sbapt 2065234949Sbapt * config_h.in: RCS_BASE 2066234949Sbapt 2067234949Sbapt1993-12-23 unknown 2068234949Sbapt 2069234949Sbapt * README.DOS, main.c: MSDOS-port 2070234949Sbapt 2071234949Sbapt1993-12-22 unknown 2072234949Sbapt 2073234949Sbapt * reader.c, defs.h: MSDOS-port 2074234949Sbapt 2075234949Sbapt1993-03-02 unknown 2076234949Sbapt 2077234949Sbapt * README: original version 2078234949Sbapt 2079234949Sbapt1993-02-22 unknown 2080234949Sbapt 2081268899Sbapt * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE 2082234949Sbapt 2083268899Sbapt1993-02-22 Thomas E. Dickey <tom@invisible-island.net> 2084268899Sbapt 2085268899Sbapt * test/yacc/error.output, test/yacc/error.tab.h: 2086268899Sbapt reference output for testing 2087268899Sbapt 2088268899Sbapt1993-02-22 unknown 2089268899Sbapt 2090268899Sbapt * test/error.output, test/error.tab.c, test/error.tab.h: RCS_BASE 2091268899Sbapt 2092234949Sbapt * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES: 2093234949Sbapt original version 2094234949Sbapt 2095234949Sbapt1992-10-12 unknown 2096234949Sbapt 2097234949Sbapt * yacc.1: original version 2098234949Sbapt 2099234949Sbapt1992-10-11 unknown 2100234949Sbapt 2101234949Sbapt * defs.h: original version 2102234949Sbapt 2103234949Sbapt1991-01-20 unknown 2104234949Sbapt 2105234949Sbapt * mkpar.c, verbose.c: original version 2106234949Sbapt 2107234949Sbapt1991-01-14 unknown 2108234949Sbapt 2109234949Sbapt * lr0.c, Makefile, Makefile.old: original version 2110234949Sbapt 2111234949Sbapt1990-07-16 unknown 2112234949Sbapt 2113234949Sbapt * NEW_FEATURES: original version 2114234949Sbapt 2115234949Sbapt1990-06-03 unknown 2116234949Sbapt 2117234949Sbapt * ACKNOWLEDGEMENTS: original version 2118234949Sbapt 2119234949Sbapt1990-02-05 unknown 2120234949Sbapt 2121234949Sbapt * symtab.c, lalr.c, error.c: original version 2122234949Sbapt 2123234949Sbapt1990-01-16 Thomas E. Dickey <tom@invisible-island.net> 2124234949Sbapt 2125234949Sbapt * test/code_error.y, test/pure_error.y: RCS_BASE 2126234949Sbapt 2127234949Sbapt1990-01-16 unknown 2128234949Sbapt 2129234949Sbapt * test/error.y: RCS_BASE 2130234949Sbapt 2131234949Sbapt1989-11-22 unknown 2132234949Sbapt 2133234949Sbapt * NO_WARRANTY: original version 2134234949Sbapt 2135234949Sbapt1989-09-23 unknown 2136234949Sbapt 2137234949Sbapt * test/ftp.y: RCS_BASE 2138234949Sbapt 2139