CHANGES revision 272655
12014-10-05 Thomas E. Dickey <tom@invisible-island.net> 2 3 * main.c: 4 make change to umask before calling mkstemp, as suggested in Coverity #56902 5 6 * reader.c: 7 adjust logic in copy_action to avoid potential null-pointer dereference 8 (Coverity #56901) 9 10 * reader.c: 11 adjust logic to avoid potential null-pointer dereference in compile_args 12 (Coverity #63407) 13 14 * reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408) 15 16 * yacc.1: document changes made with respect to %parse-param 17 18 * output.c: 19 add parameters from %parse-param to destructor. The order of the parameters 20 is intentionally inconsistent with yyparse/yyerror, for "compatibility" with 21 bison. 22 23 * test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c: 24 regen 25 26 * output.c: 27 use puts_param_types/puts_param_names to output lex_param data. 28 29 * test/btyacc/ok_syntax1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/rename_debug.c: 30 regen 31 32 * btyaccpar.c: add casts, change types to fix strict compiler warnings 33 34 * test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c: 35 regen 36 37 * output.c: gcc-warning 38 39 * test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c: regen 40 41 * output.c: fix limit when merging real/workaround tables 42 43 * output.c: 44 for btyacc, it is possible to have no conflicts - but in that case, the 45 "ctable" was not generated at all, while the skeleton uses the table. 46 The most straightforward (workaround) is generating a dummy table which 47 rejects any state. 48 49 * test/btyacc_destroy3.y, test/btyacc_destroy2.y, test/btyacc_destroy1.y: 50 fix "make check_make" 51 52 * test/yacc/calc3.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/calc2.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c: 53 regen 54 55 * reader.c: 56 trim blanks from interim value in copy_param() to handle special case when 57 a space precedes a comma. 58 59 * output.c: 60 use two new functions, puts_param_types and puts_param_names, to improve 61 format of the parse_param list (by trimming space after "*") as well as 62 correcting the output of the comma-separated names (only the last name 63 was output). 64 65 * test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c: 66 regen 67 68 * reader.c: 69 modify copy_param() to handle resulting comma-separated list. Before, it 70 only expected a single parameter. 71 722014-10-04 Thomas E. Dickey <tom@invisible-island.net> 73 74 * reader.c: split-out save_param() from copy_param() 75 76 * reader.c: trim_blanks() did not always convert spaces - fix. 77 78 * reader.c: fix some minor regressions with error-reporting 79 80 * aclocal.m4: update CF_XOPEN_SOURCE for Unixware change from lynx 81 82 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 83 bump 84 85 * reader.c: 86 modify copy_param() to accept multiple parameters, each in curly braces like 87 recent bison, as well as honoring bison's undocumented feature to accept the 88 parameters as a comma-separated list. 89 90 * test/btyacc/btyacc_destroy3.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.error, test/btyacc/btyacc_destroy3.output, test/btyacc/btyacc_destroy3.tab.h, test/btyacc/btyacc_destroy2.error, test/btyacc/btyacc_destroy2.output, test/btyacc/btyacc_destroy2.tab.h: 91 RCS_BASE 92 932014-10-03 Thomas E. Dickey <tom@invisible-island.net> 94 95 * test/btyacc/btyacc_demo2.error, test/btyacc/btyacc_demo2.output, test/btyacc/btyacc_demo2.tab.c, test/btyacc/btyacc_demo2.tab.h, test/btyacc/btyacc_destroy1.error, test/btyacc/btyacc_destroy1.output, test/btyacc/btyacc_destroy1.tab.h, test/btyacc_destroy3.y, test/btyacc_destroy1.y, test/btyacc_destroy2.y: 96 RCS_BASE 97 982014-10-02 Thomas E. Dickey <tom@invisible-island.net> 99 100 * main.c, reader.c, defs.h: 101 use calloc in get_line() when allocating line to ensure it is fully initialized, 102 fixes a later uninitialized value in copy_param() (FreeBSD #193499). 103 1042014-09-17 Thomas E. Dickey <tom@invisible-island.net> 105 106 * closure.c, lalr.c, output.c, defs.h: 107 rephrase odd addressing to fix Coverity #48848, #38950, #38860, not actually 108 a bug. 109 1102014-09-01 Thomas E. Dickey <tom@invisible-island.net> 111 112 * config.sub: update to 2014-07-28 113 1142014-07-27 Thomas E. Dickey <tom@invisible-island.net> 115 116 * configure: regen 117 118 * aclocal.m4: modified to support port to Minix3.2 119 120 * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 121 bump 122 1232014-07-15 Thomas E. Dickey <tom@invisible-island.net> 124 125 * aclocal.m4: resync with my-autoconf (no change to configure script) 126 127 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 128 bump 129 130 * test/run_test.sh: 131 make top-level "make check" work again, by adding another step to filtering 132 the test results. 133 1342014-07-14 Thomas E. Dickey <tom@invisible-island.net> 135 136 * test/run_test.sh: changes from Garrett Cooper's patch: 137 a) ensure that the script returns an error-code if there are differences 138 b) escape "." character in left side of sed expression for $YACC 139 c) ensure that $ifBTYACC has a value 140 141 * test/btyacc/big_b.output, test/btyacc/big_l.output, test/btyacc/help.output, test/btyacc/no_b_opt.output, test/btyacc/no_output2.output, test/btyacc/no_p_opt.output, test/btyacc/nostdin.output: 142 regen (reminder by Garrett Cooper) 143 1442014-07-14 Garrett.Cooper 145 146 * test/btyacc/err_inherit1.error, test/btyacc/err_inherit2.error, test/btyacc/err_inherit3.error, test/btyacc/err_inherit4.error, test/btyacc/err_inherit5.error, test/btyacc/err_syntax1.error, test/btyacc/err_syntax10.error, test/btyacc/err_syntax11.error, test/btyacc/err_syntax12.error, test/btyacc/err_syntax13.error, test/btyacc/err_syntax14.error, test/btyacc/err_syntax15.error, test/btyacc/err_syntax16.error, test/btyacc/err_syntax17.error, test/btyacc/err_syntax18.error, test/btyacc/err_syntax19.error, test/btyacc/err_syntax2.error, test/btyacc/err_syntax21.error, test/btyacc/err_syntax22.error, test/btyacc/err_syntax23.error, test/btyacc/err_syntax24.error, test/btyacc/err_syntax25.error, test/btyacc/err_syntax26.error, test/btyacc/err_syntax27.error, test/btyacc/err_syntax3.error, test/btyacc/err_syntax4.error, test/btyacc/err_syntax5.error, test/btyacc/err_syntax6.error, test/btyacc/err_syntax7.error, test/btyacc/err_syntax7a.error, test/btyacc/err_syntax7b.error, test/btyacc/err_syntax8.error, test/btyacc/err_syntax8a.error, test/btyacc/err_syntax9.error, test/yacc/err_syntax1.error, test/yacc/err_syntax10.error, test/yacc/err_syntax11.error, test/yacc/err_syntax12.error, test/yacc/err_syntax13.error, test/yacc/err_syntax14.error, test/yacc/err_syntax15.error, test/yacc/err_syntax16.error, test/yacc/err_syntax17.error, test/yacc/err_syntax18.error, test/yacc/err_syntax19.error, test/yacc/err_syntax2.error, test/yacc/err_syntax21.error, test/yacc/err_syntax22.error, test/yacc/err_syntax23.error, test/yacc/err_syntax24.error, test/yacc/err_syntax25.error, test/yacc/err_syntax26.error, test/yacc/err_syntax27.error, test/yacc/err_syntax3.error, test/yacc/err_syntax4.error, test/yacc/err_syntax5.error, test/yacc/err_syntax6.error, test/yacc/err_syntax7.error, test/yacc/err_syntax7a.error, test/yacc/err_syntax7b.error, test/yacc/err_syntax8.error, test/yacc/err_syntax8a.error, test/yacc/err_syntax9.error: 147 regen 148 1492014-05-27 Tom.Shields 150 151 * main.c: remove obsolete -D option from usage message 152 1532014-05-27 Thomas E. Dickey <tom@invisible-island.net> 154 155 * VERSION, package/byacc.spec, package/debian/changelog, test/yacc/big_b.output, test/yacc/big_l.output, test/yacc/help.output, test/yacc/no_b_opt.output, test/yacc/no_output2.output, test/yacc/no_p_opt.output, test/yacc/nostdin.output: 156 bump 157 1582014-04-22 Thomas E. Dickey <tom@invisible-island.net> 159 160 * mstring.c: 161 use vsnprintf() to ensure that msprintf's buffer is large enough. 162 163 * main.c, defs.h: add mstring_leaks() 164 165 * configure: regen 166 167 * output.c: fix a complementary warning 168 169 * mstring.c: introduce vsnprintf 170 171 * configure.in, config_h.in: add check for vsnprintf 172 173 * output.c: quiet a type-conversion warning 174 175 * mstring.c: fix a potential memory leak on ENOMEM 176 quiet a couple of type-conversion warnings 177 178 * defs.h: add/use GCC_PRINTFLIKE for msprintf() 179 1802014-04-22 Tom.Shields 181 182 * README.BTYACC: 183 drop "NOTES-btyacc-Changes" and "NOTES-btyacc-Disposition", merging relevant 184 content into README.BTYACC 185 1862014-04-22 Thomas E. Dickey <tom@invisible-island.net> 187 188 * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 189 bump 190 1912014-04-19 Thomas E. Dickey <tom@invisible-island.net> 192 193 * config.sub: 2014-04-03 194 195 * config.guess: 2014-03-23 196 1972014-04-09 Rick.Spates 198 199 * main.c, defs.h: patch to allow DEBUG build with WIN32 system 200 2012014-04-09 Thomas E. Dickey <tom@invisible-island.net> 202 203 * output.c, reader.c: gcc warnings 204 205 * reader.c: fix const-cast warnings 206 207 * 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: 208 fix a few clang --analyze warnings; one was a case where output_ctable emitted 209 an empty table (which should be an error). 210 211 * reader.c: appease clang --analyze 212 213 * defs.h: mark two functions as no-return. 214 215 * package/debian/changelog: reason for release 216 217 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 218 bump 219 220 * makefile.in: use $LINT_OPTS from environment via configure script 221 222 * 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: 223 tweaks to make generated files from ok_syntax1.y compile with check_make rule 224 225 * 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: 226 reference output for testing 227 228 * test/run_test.sh: 229 retain the renaming done for code_debug.y so that check_make will work. 230 231 * test/yacc/rename_debug.error, test/yacc/rename_debug.h, test/yacc/rename_debug.i, test/yacc/rename_debug.output: 232 reference output for testing 233 234 * test/btyacc/ok_syntax1.error: RCS_BASE 235 236 * 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: 237 regen 238 239 * yacc.1: 240 clarify relationship of btyacc features to default configuration. 241 2422014-04-08 Thomas E. Dickey <tom@invisible-island.net> 243 244 * 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: 245 reference output for testing 246 247 * test/ok_syntax1.y: RCS_BASE 248 249 * test/yacc/ok_syntax1.error: reference output for testing 250 251 * 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: 252 exercise -L/-B options 253 254 * 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: 255 use a better renaming of the YYPATCH definition (none of the test-cases rely 256 upon it, but redefinition in the "make check_make" rule is a problem). 257 258 * 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: 259 undid temporary reordering in reader() by Tom Shields to align with byacc outputs 260 261 * test/run_test.sh: remove a repeated test-case 262 263 * mstring.c: minor reformatting to make coverage analysis simpler 264 2652014-04-07 Thomas E. Dickey <tom@invisible-island.net> 266 267 * test/run_test.sh: tidy 268 269 * 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: 270 reference output for testing 271 272 * test/run_test.sh: 273 add special checks for flags which depend on writable/existing files 274 275 * 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: 276 reference output for testing 277 278 * main.c: 279 change CREATE_FILE_NAMES() to use local function rather than inline code, 280 to simplify coverage analysis. 281 282 * 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: 283 reference output for testing 284 285 * test/err_syntax27.y: testcase for missing_brace() 286 287 * error.c: ifdef'd non-btyacc function 288 289 * lr0.c: ifdef'd debug-code 290 291 * yaccpar.skel: use YYINT's to replace short's as in btyaccpar.skel 292 293 * 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: 294 2010/11/26 simplification of output.c using putc_code() and putl_code() 295 omitted an adjustment of the #line value used for code-file. Fix that. 296 Also, amend 2005/05/04 change to run_test.sh to retain a dummy line for 297 YYPATCH #define's to make test-outputs easier to compare #line's (report 298 by Tom Shields) 299 3002014-04-06 Thomas E. Dickey <tom@invisible-island.net> 301 302 * reader.c: fix for valgrind 303 (the calloc's are intentional - valgrind reported use of uninitialized memory) 304 305 * lr0.c, output.c: fix for valgrind 306 307 * 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: 308 RCS_BASE 309 310 * test/yacc/code_debug.c, test/yacc/code_debug.h: 311 exercise the -i option 312 313 * test/yacc/code_debug.i: reference output for testing 314 315 * test/run_test.sh: exercise the -i option 316 317 * test/yacc/code_debug.c: reference output for testing 318 319 * test/run_test.sh: exercise the "-o" option 320 321 * test/yacc/code_debug.error, test/yacc/code_debug.h, test/yacc/code_debug.output: 322 reference output for testing 323 324 * output.c: don't call exit() without giving a chance to cleanup. 325 326 * mstring.c: ifdef'd functions not used in byacc 327 328 * btyaccpar.c: generated from btyaccpar.skel 329 330 * yaccpar.c: generated from yaccpar.skel 331 332 * skel2c: 333 change the generated-by comment to show which version of this script (and 334 which version of the given skeleton file) were used to produce the C-file. 335 336 * configure: regen 337 338 * makefile.in: 339 add rules to generate byacc and btyacc parser skeleton files independently 340 341 * aclocal.m4: CF_PROG_AWK - add to byacc's configure script 342 CF_INTEL_COMPILER 343 cleanup the -no-gcc option which was leftover from testing - prcs does 344 not build with this option. 345 CF_MAKE_DOCS 346 protect $2 from substitution, for luit's "$(manext)" 347 CF_XOPEN_SOURCE 348 for Solaris (tested with gcc/g++ 3.4.3 on Solaris 10 and gcc/g++ 4.5.2 349 on Solaris 11), suppress the followup check for defining _XOPEN_SOURCE 350 because it is not needed, as well as because g++ 4.7.3 (no package, 351 used in Sage for Solaris 10) has some unspecified header breakage which 352 is triggered by the duplicate definition. 353 354 * configure.in: 355 modify so skeleton-source is determined by configure options rather than by 356 having developer rename yaccpar.skel.old to yaccpar.skel 357 358 * descrip.mms: rename skeleton 359 360 * vmsbuild.com: 361 fwiw, renamed the skeleton for consistency with makefile 362 363 * skel2c, skeleton.c: resync skeleton and its generating files 364 365 * yaccpar.skel: 366 renamed yaccpar.skel.old to yaccpar.skel, to allow using makefile suffix rules 367 368 * yaccpar.skel.old: resync skeleton and its generating files 369 370 * test/run_make.sh: improve cleanup after error recovery 371 372 * 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: 373 use improvement from Tom Shield's btyacc changes, getting rid of special cases for generating two yyerror calls in skeleton 374 375 * output.c: simplify output_yyerror_decl() 376 377 * 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: 378 add second "const" to string-table declarations, from Tom Shield's btyacc changes 379 380 * 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: 381 discard unnecessary call on write_code_lineno() from Tom Shield's changes 382 383 * 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: 384 use YYINT typedef from Tom Shield's btyacc changes to replace explicit "short" 385 386 * test/yacc/code_calc.code.c, test/yacc/code_error.code.c, output.c: 387 use fix from Tom Shield's btyacc changes: remove redundant extern-declaration for YYPARSE_DECL() 388 389 * 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: 390 discard unnecessary call on write_code_lineno() from Tom Shield's changes 391 392 * 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: 393 use fix from Tom Shield's btyacc changes: prefix-definitions went to the 394 output (.tab.c) file in a case where they should have gone to the code 395 (.code.c) file. Remove now-redundant call to output_prefix(). 396 397 * main.c: do the same for help-message 398 399 * main.c: use OUTPUT_SUFFIX symbol in an overlooked case 400 401 * test/run_make.sh: 402 modify to avoid use of VPATH, which has no standard implementation 403 4042014-04-05 Thomas E. Dickey <tom@invisible-island.net> 405 406 * 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: 407 discard a change which merged CountLines() with explicit comparisons against 408 code_file because that adds extra to the #line values 409 410 * 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: 411 add Tom Shield's change to allow definition of YYSTYPE_IS_DECLARED symbol to 412 override fallback typedef for YYSTYPE when that symbol is undefined 413 414 * 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: 415 minor tweak to coding style - use parenthesis for "defined" operator's parameter 416 417 * 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: 418 regen to make YYMAXTOKEN and YYUNDFTOKEN adjacent 419 420 * 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: 421 regen after adding the YYUNDFTOKEN symbol 422 423 * output.c: 424 integrate Tom Shield's btyacc changes which introduce the YYUNDFTOKEN symbol 425 (I changed order of output to keep this adjacent to YYMAXTOKEN) 426 427 * reader.c: 428 merge all but one small change from Tom Shield's btyacc changes - that 429 changes the order of code-file in the tests. 430 431 * test/btyacc/btyacc_demo.tab.c: regen 432 433 * test/btyacc_demo.y: fix prototypes 434 4352014-04-04 Thomas E. Dickey <tom@invisible-island.net> 436 437 * reader.c, defs.h, main.c: 438 more merging of Tom Shield's btyacc changes. In the merge, I moved the 439 symbol_pval inside the btyacc ifdef's and added some more btyacc ifdefs 440 4412014-04-03 Thomas E. Dickey <tom@invisible-island.net> 442 443 * reader.c: 444 merge-in 3/4 of btyacc's changes, deferring those which change test-outputs. 445 Tom Shield's changes split-out copy_string() and copy_comment() functions 446 to simplify some logic, as well as adding btyacc-only chunks 447 448 * makefile.in: build mstring.o, needed for changes in reader.c 449 450 * output.c: 451 merge-in all of btyacc's changes which do not change byacc's test-output. 452 Some of the merge uses ifdef-changes which I applied to ongoing resync, 453 e.g., the introduction of PER_STATE. 454 4552014-04-02 Thomas E. Dickey <tom@invisible-island.net> 456 457 * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c: regen 458 459 * output.c: fix typo 460 461 * output.c, reader.c: 462 merge in some chunks of reader and output files which do not affect byacc tests 463 464 * test/yacc/calc2.tab.c, test/yacc/calc3.tab.c: regen 465 466 * 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: 467 incorporate YYENOMEM and YYEOF symbols from btyacc 468 469 * output.c: merge chunk from btyacc changes for header-guards 470 471 * btyaccpar.skel: RCS_BASE 472 473 * yaccpar.skel: comment-out yysccsid[], for FreeBSD build-issues 474 remove GCC_UNUSED to reduce name-pollution as well as being simpler 475 476 * main.c: 477 move a btyacc symbol outside ifdef to work around current state of merge 478 479 * defs.h: 480 add USE_HEADER_GUARDS to defer whether to modify byacc's header-output 481 482 * test/run_make.sh: 483 do not try to compile files used for testing syntax-errors, since they are 484 likely to be incomplete 485 4862014-04-02 Tom.Shields 487 488 * main.c: changes for btyacc 489 4902014-04-01 Thomas E. Dickey <tom@invisible-island.net> 491 492 * reader.c: 493 integrate change by Tom Shields to use bsearch rather than successive 494 calls to matchec() 495 496 * defs.h: typedef __compar_fn_t is unnecessary 497 498 * 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: 499 omit the GCC_UNUSED, as noted by Tom Shields not really essential 500 5012014-04-01 Tom.Shields 502 503 * verbose.c: changes for btyacc, ifdef'd 504 5052014-04-01 Thomas E. Dickey <tom@invisible-island.net> 506 507 * mkpar.c: eliminate most of the ifdef's using macros 508 5092014-04-01 Tom.Shields 510 511 * mkpar.c: merge btyacc changes (ifdef'd - no change to byacc) 512 513 * error.c: 514 new functions used for reporting errors from the btyacc configuration 515 (I reordered some, and ifdef'd the new ones -TD) 516 5172014-03-31 Thomas E. Dickey <tom@invisible-island.net> 518 519 * test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c: 520 omit the GCC_UNUSED, as noted by Tom Shields not really essential 521 522 * 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: 523 regen 524 5252014-03-29 Thomas E. Dickey <tom@invisible-island.net> 526 527 * 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: 528 comment-out yysccsid in the banner because it produces unnecessary compiler 529 warnings. The suggested alternative (using #pragma ident) in the preceding 530 comment is also obsolete; remove that comment (request by Gleb Smirnoff). 531 532 * test/run_test.sh: 533 for yacc, ignore the inherit testcases, since they are btyacc-specific 534 5352014-03-28 Thomas E. Dickey <tom@invisible-island.net> 536 537 * 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: 538 reference output for testing 539 540 * test/run_lint.sh, test/run_make.sh, test/run_test.sh: 541 moving #define's out of makefile broke check for yacc vs btyacc (fix) 542 5432014-03-28 Tom.Shields 544 545 * 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: 546 reference output for testing 547 548 * defs.h: new functions/variables for btyacc 549 (I reordered and ifdef'd -TD) 550 551 * test/inherit0.y, test/inherit1.y: testcase for btyacc 552 5532014-03-27 Tom.Shields 554 555 * test/err_inherit5.y, test/err_inherit4.y, test/err_inherit3.y, test/err_inherit2.y, test/err_inherit1.y, test/inherit2.y: 556 testcase for btyacc 557 5582014-03-25 Tom.Shields 559 560 * symtab.c: extra initialization needed for btyacc 561 (I ifdef'd -TD) 562 563 * yacc.1: document -L/-B features from btyacc 564 5652014-03-25 Thomas E. Dickey <tom@invisible-island.net> 566 567 * yacc.1: typo 568 569 * configure: regen 570 571 * configure.in: 572 modified new options to act like those in my other configure-scripts, e.g., 573 showing what option is being tested, and the resulting value. Put the 574 definitions in config.h rather than in the makefile. 575 5762014-03-25 Tom.Shields 577 578 * makefile.in: add/use LINTFLAGS variable 579 make all of the objects (not just skeleton) rebuild if makefile changes 580 modify check-rule to reflect updates to run_test.sh vs subdirectory 581 582 * mstring.c: byacc-btyacc-20140323 583 5842014-03-25 Thomas E. Dickey <tom@invisible-island.net> 585 586 * test/btyacc/RCS, test/yacc/RCS: PERMIT FILE 587 588 * config_h.in: updated with autoheader-252 589 5902014-03-25 Tom.Shields 591 592 * README.BTYACC: byacc-btyacc-20140323 593 5942014-03-24 Tom.Shields 595 596 * 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: 597 reference output for testing 598 5992014-03-24 Thomas E. Dickey <tom@invisible-island.net> 600 601 * defs.h: fix compiler warnings due to mputc() 602 6032014-03-23 Tom.Shields 604 605 * test/btyacc_demo.y: testcase for btyacc 606 607 * test/btyacc/varsyntax_calc1.error, test/btyacc/varsyntax_calc1.output, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h: 608 reference output for testing 609 610 * test/varsyntax_calc1.y, test/btyacc_calc1.y: testcase for btyacc 611 6122014-03-23 Thomas E. Dickey <tom@invisible-island.net> 613 614 * 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: 615 reference output for testing 616 617 * test/err_syntax26.y: testcase for missing_brace() 618 619 * 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: 620 reference output for testing 621 622 * test/err_syntax25.y: testcase for over_unionized() 623 624 * 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: 625 reference output for testing 626 627 * test/err_syntax24.y: testcase for default_action_warning() 628 6292014-03-23 Tom.Shields 630 631 * 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: 632 reference output for testing 633 6342014-03-23 Thomas E. Dickey <tom@invisible-island.net> 635 636 * 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: 637 reference output for testing 638 639 * test/err_syntax23.y: testcase for untyped_lhs() 640 6412014-03-23 Tom.Shields 642 643 * test/run_test.sh: 644 move test-outputs into subdirectories to keep btyacc/yacc results separate 645 6462014-03-23 Thomas E. Dickey <tom@invisible-island.net> 647 648 * 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: 649 reference output for testing 650 651 * test/err_syntax22.y: testcase for untyped_rhs() 652 653 * 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: 654 reference output for testing 655 656 * test/err_syntax20.y: testcase for undefined_symbol_warning() 657 658 * test/err_syntax21.y: testcase for unknown_rhs() 659 660 * 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: 661 reference output for testing 662 663 * test/err_syntax19.y: testcase for dollar_error() 664 665 * 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: 666 reference output for testing 667 668 * test/err_syntax18.y: testcase for dollar_warning() 669 670 * 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: 671 reference output for testing 672 673 * test/err_syntax17.y: testcase for unterminated_action() 674 6752014-03-22 Thomas E. Dickey <tom@invisible-island.net> 676 677 * 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: 678 reference output for testing 679 680 * test/err_syntax16.y: testcase for terminal_lhs() 681 682 * 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: 683 reference output for testing 684 685 * test/err_syntax15.y: testcase for no_grammar() 686 687 * 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: 688 reference output for testing 689 690 * test/err_syntax14.y: 691 testcase for restarted_warning() and undefined_goal() 692 693 * 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: 694 reference output for testing 695 696 * test/err_syntax13.y: testcase for terminal_start() 697 698 * 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: 699 reference output for testing 700 701 * test/err_syntax12.y: testcase for revalued_warning() 702 703 * 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: 704 reference output for testing 705 706 * test/err_syntax11.y: testcase for reprec_warning() 707 708 * 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: 709 reference output for testing 710 711 * test/err_syntax10.y: testcase for retyped_warning() 712 7132014-03-21 Thomas E. Dickey <tom@invisible-island.net> 714 715 * 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: 716 reference output for testing 717 718 * test/err_syntax9.y: testcase for tokenized_start() 719 720 * 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: 721 reference output for testing 722 723 * test/err_syntax8a.y, test/err_syntax8.y: testcase for used_reserved() 724 725 * 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: 726 reference output for testing 727 728 * test/err_syntax7b.y, test/err_syntax7a.y, test/err_syntax7.y: 729 testcase for illegal_character() 730 731 * 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: 732 reference output for testing 733 734 * test/err_syntax6.y: testcase for illegal_tag() 735 736 * 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: 737 reference output for testing 738 739 * test/err_syntax5.y: testcase for unterminated_union() 740 741 * 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: 742 reference output for testing 743 744 * test/err_syntax4.y: testcase for unterminated_text() 745 746 * 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: 747 reference output for testing 748 749 * test/err_syntax3.y: testcase for unterminated_string() 750 751 * 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: 752 reference output for testing 753 754 * test/err_syntax2.y: testcase for unterminated_comment() 755 756 * test/err_syntax1.error, test/yacc/err_syntax1.error: 757 reference output for testing 758 759 * test/err_syntax1.y: 760 test-case with syntax error (and nonprinting character) 761 762 * 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: 763 reference output for testing 764 765 * test/run_test.sh: 766 save stderr to reference files, to capture shift/reduce messages as well 767 as syntax-error messages 768 769 * 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: 770 reference output for testing 771 772 * test/run_test.sh: generate a ".dot" file for the grammar file 773 774 * test/grammar.dot: RCS_BASE 775 776 * test/yacc/grammar.dot: reference output for testing 777 7782014-03-19 Tom.Shields 779 780 * output.c: rename MAXSHORT to MAXYYINT 781 7822014-03-18 Tom.Shields 783 784 * yaccpar.skel: skeleton with btyacc additions 785 786 * NOTES-btyacc-Changes: byacc-btyacc-20140323 787 788 * test/btyacc/btyacc_calc1.output, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h: 789 reference output for testing 790 791 * test/run_make.sh: 792 move test-outputs into subdirectories to keep btyacc/yacc results separate 793 794 * 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: 795 reference output for testing 796 797 * defs.h: 798 several changes to help decouple the use of 'short' as the type of value 799 used in yacc parsers. 800 801 * NOTES-btyacc-Disposition: byacc-btyacc-20140323 802 8032014-03-17 Tom.Shields 804 805 * skel2c, yaccpar.skel, yaccpar.skel.old: RCS_BASE 806 807 * test/run_lint.sh: 808 move test-outputs into subdirectories to keep btyacc/yacc results separate 809 810 * configure.in: add --with-max-table-size and --enable-btyacc options 811 8122014-03-16 Tom.Shields 813 814 * main.c: use Value_t rather than short 815 8162014-03-11 Tom.Shields 817 818 * test/empty.y: testcase for btyacc 819 8202014-03-10 Tom.Shields 821 822 * test/calc3.y, test/calc2.y: fix unused-variable warning 823 8242014-02-18 Tom.Shields 825 826 * lr0.c, graph.c: use Value_t rather than short 827 828 * closure.c: use Value_t rather than short 829 ifdef'd forward-reference prototypes to match ifdef'ing of the actual functions 830 831 * lalr.c: rename MAXSHORT to MAXYYINT 832 8332014-01-01 Thomas E. Dickey <tom@invisible-island.net> 834 835 * yacc.1: document %token-table, improve presentation of double-quotes 836 837 * VERSION, package/byacc.spec, package/debian/changelog: bump 838 839 * 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: 840 reference output for testing 841 842 * 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: 843 regen 844 845 * output.c, skeleton.c: 846 amend the last change so that yytname is #define'd as needed rather than 847 permanent - to avoid breaking cproto for instance. 848 8492014-01-01 Christos.Zoulas 850 851 * output.c, defs.h, main.c, reader.c, skeleton.c: 852 changes to build ntpd using byacc: 853 - rename yyname[] to yytname[] 854 - add YYTRANSLATE() macro 855 - recognize bison's %token-table declaration 856 8572014-01-01 Thomas E. Dickey <tom@invisible-island.net> 858 859 * configure: regen 860 861 * yacc.1: s/EE/XE/ to work around groff bug on Debian 6 862 863 * makefile.in: use CF_MAKE_DOCS 864 865 * aclocal.m4: add CF_MAKE_DOCS 866 867 * configure.in: use CF_MAKE_DOCS 868 8692013-12-26 Thomas E. Dickey <tom@invisible-island.net> 870 871 * config.guess: 2013-11-29 872 8732013-11-19 Thomas E. Dickey <tom@invisible-island.net> 874 875 * aclocal.m4: resync with my-autoconf (fixes for clang and mingw) 876 8772013-10-25 Thomas E. Dickey <tom@invisible-island.net> 878 879 * config.sub: 2013-10-01 880 8812013-09-25 Thomas E. Dickey <tom@invisible-island.net> 882 883 * reader.c: fix two loop-limits found by clang 3.3 --analyze 884 885 * configure: regen 886 887 * aclocal.m4: 888 tweaks to CF_MIXEDCASE_FILENAMES and CF_XOPEN_SOURCE for msys from ncurses 889 890 * package/mingw-byacc.spec: RCS_BASE 891 892 * 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: 893 regen 894 895 * skeleton.c: 896 Increase default stack-size to match FreeBSD version noted as from 897 "BSD 4.4 Lite Usr.bin Sources". See 898 899 http://svnweb.freebsd.org/base/vendor/CSRG/dist/usr.bin/yacc/ 900 http://svnweb.freebsd.org/base/head/usr.bin/yacc/ 901 http://svnweb.freebsd.org/base/vendor/byacc/ 902 903 The original 1.9 sources (on which I based development) used 500 for 904 stacksize; the BSD Lite sources (a year or two later) used 10000. 905 906 This is a change to default values; the YYMAXDEPTH and YYSTACKSIZE 907 symbols have "always" been overridable by applications, but rarely 908 needed to do this. RedHat began using the FreeBSD source in 2000, 909 and switched to this source in 2007 using the 20050813 snapshot. 910 911 RedHat #743343 misattributed the change in default stacksize to 912 a regression in byacc, but did not report the issue upstream. 913 914 * package/debian/changelog, VERSION, package/byacc.spec: bump 915 9162013-09-07 Thomas E. Dickey <tom@invisible-island.net> 917 918 * config.sub: update to 2013-09-15 919 920 * config.guess: update to 2013-06-10 921 9222013-03-04 Thomas E. Dickey <tom@invisible-island.net> 923 924 * package/debian/changelog, VERSION, package/byacc.spec: bump 925 926 * aclocal.m4: 927 adapt tweak from Dave Becket to work around long-ago breakage in "new" autoconf. 928 929 * output.c: 930 fix bogus #include if "-i" is given but not "-d" (report by Richard Mitton). 931 also while testing that, found a case where the union_file is unused; added 932 a check for address that. 933 934 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: regen 935 936 * test/ftp.y: fix most compiler warnings for "make check_make" 937 938 * test/calc1.tab.c: regen 939 940 * test/calc1.y: fix most compiler warnings for "make check_make" 941 942 * 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: 943 regen 944 945 * skeleton.c: quiet a gcc conversion-warning in yygrowstack() 946 947 * configure: regen 948 949 * aclocal.m4: 950 another fix for CF_GCC_VERSION to handle Debian's modification of gcc message. 951 9522013-02-10 Thomas E. Dickey <tom@invisible-island.net> 953 954 * config.sub, config.guess: update to 2013-02-04 955 9562012-10-03 Thomas E. Dickey <tom@invisible-island.net> 957 958 * package/debian/changelog, package/byacc.spec, VERSION: bump 959 960 * configure: regen 961 962 * configure.in: moved AC_PROG_CC_STDC call into CF_PROG_CC 963 964 * aclocal.m4: 965 moved AC_PROG_CC_STDC call into CF_PROG_CC and (for other uses than byacc) 966 the CF_PROG_CC macro provides the CF_ANSI_CC_REQD for the 2.13 flavor. 967 968 * aclocal.m4, configure.in: 969 Arian's change dropped my check for misused $CC variable - restore that with 970 alternate macro CF_PROG_CC. 971 9722012-10-03 Adrian.Bunk 973 974 * aclocal.m4: 975 suggested patch: drop CF_ANSI_CC_REQD, CF_ANSI_CC_CHECK, CF_PROG_EXT since 976 they are not needed. 977 9782012-10-03 Thomas E. Dickey <tom@invisible-island.net> 979 980 * aclocal.m4: 981 split-out CF_CC_ENV_FLAGS from CF_ANSI_CC_CHECK to avoid losing it in 982 Adrian's suggested changes. 983 984 * aclocal.m4: 985 CF_CLANG_COMPILER - check if the given compiler is really clang. 986 987 * aclocal.m4: 988 add check for clang to CF_GCC_WARNINGS. modify CF_GCC_WARNINGS to work around 989 old gcc warning: ncurses change to (try to) use gnatgcc exposed gnatgcc 2.8.1 990 on my Sarge system (versus 3.3.5 for the normal gcc). The 2.8.1's 991 pointer-arithmetic checks fell afoul of gcc's misuse of void* in string.h; work 992 around by excluding that check for pre-3.x compilers. 993 994 * aclocal.m4: 995 modify CF_GCC_ATTRIBUTES so that autoheader is able to see the definitions 996 provided by this macro. use AC_DEFINE_UNQUOTED() in CF_GCC_ATTRIBUTES rather 997 than appending to confdefs.h, since long-ago concern about the ability to 998 pass-through parameterized macros appears to be not a problem, testing with 999 2.13 and 2.52 1000 10012012-10-03 Adrian.Bunk 1002 1003 * aclocal.m4: 1004 add parameter to AC_DEFINE_UNQUOTED() to allow it to be recognized by 1005 autoheader, updated macros: 1006 CF_CHECK_CACHE 1007 CF_DISABLE_LEAKS 1008 CF_MKSTEMP 1009 CF_MIXEDCASE_FILENAMES 1010 CF_NO_LEAKS_OPTION 1011 10122012-10-03 Thomas E. Dickey <tom@invisible-island.net> 1013 1014 * aclocal.m4: 1015 move existence-check for mkstemp out of the AC_TRY_RUN, to help with 1016 cross-compiles 1017 10182012-10-02 Thomas E. Dickey <tom@invisible-island.net> 1019 1020 * config_h.in: 1021 Adrian Bunk request - replace this with the output from autoheader 1022 10232012-09-29 Adrian.Bunk 1024 1025 * configure.in: 1026 suggested change: replace CF_ANSI_CC_REQD by AC_PROG_CC_STDC (since no 1027 check is needed anymore for standard C compilers), drop AC_CONST (same 1028 reason), modify AC_OUTPUT to rely upon template generated by autoheader. 1029 bump requirement to autoconf 2.52.20011201 and drop check for CF_PROG_EXT 1030 as being obsolete with autoconf 2.52x 1031 1032 * configure.in, main.c: drop check for atexit, because it is standard C 1033 1034 * makefile.in: add assignment for datarootdir variable. 1035 10362012-05-26 Thomas E. Dickey <tom@invisible-island.net> 1037 1038 * package/debian/changelog, package/byacc.spec, VERSION: bump 1039 1040 * reader.c: 1041 some versions of gcc may warn that bp is not set in mark_symbol, e.g., 1042 if GCC_NORETURN is not handled; appease the compiler. 1043 1044 * reader.c: 1045 use the declared types Assoc_t and Value_t in some places where compiler only 1046 cared about char versus short. 1047 1048 * reader.c: 1049 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1050 (no object change) 1051 1052 * defs.h: 1053 add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD 1054 packagers to build without configure script. Also remove duplicate declaration 1055 of pure_parser variable (prompted by patch by Baptiste Daroussin). 1056 1057 Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and 1058 REALLOC macros. 1059 1060 * symtab.c: 1061 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1062 (no object change) 1063 10642012-05-25 Thomas E. Dickey <tom@invisible-island.net> 1065 1066 * output.c, main.c, verbose.c, mkpar.c, lr0.c: 1067 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1068 (no object change) 1069 10702012-01-15 Thomas E. Dickey <tom@invisible-island.net> 1071 1072 * package/debian/copyright: bump 1073 1074 * test/run_make.sh: workaround for breakage due to GNU make 3.82 1075 1076 * test/run_make.sh: 1077 tested with Solaris 10 (bison 1.875) and added scripting to exercise 1078 the /usr/ccs/bin/yacc executable 1079 1080 * test/grammar.tab.c: regen 1081 1082 * test/grammar.y: modify to also build with Solaris yacc 1083 1084 * VERSION, package/debian/changelog, package/byacc.spec: bump 1085 1086 * test/yacc/calc1.output: reference output for testing 1087 1088 * test/calc1.output, test/calc1.tab.c: regen 1089 1090 * test/calc1.y: 1091 undo the change made to appease bison, since it was only a warning. 1092 1093 * test/pure_calc.tab.c, test/pure_error.tab.c: regen 1094 1095 * test/run_make.sh: another fix for running from top-level directory 1096 1097 * makefile.in: 1098 ensure that check_make rule depends on having byacc built. 1099 1100 * test/run_make.sh: fixes for building from parent directory 1101 1102 * test/pure_error.y, test/pure_calc.y: bison-fixes 1103 1104 * 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: 1105 regen 1106 1107 * test/code_debug.y: RCS_BASE 1108 1109 * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y: 1110 byacc already declares yyerror 1111 1112 * test/pure_error.y, test/pure_calc.y: 1113 modified to help make the files build with bison 1114 1115 * test/run_make.sh: 1116 supply a "%pure-parser" directive when bison needs it. 1117 1118 * test/code_calc.code.c: regen 1119 1120 * test/code_calc.y: modified to help make the files build with bison 1121 1122 * yacc.1: 1123 in testing, found that %expect did not work as documented for bison. 1124 do not recommend it for portable code. 1125 1126 * test/run_make.sh: workaround breakage in bison's %expect directive 1127 1128 * test/grammar.y: modified to help make the files build with bison 1129 1130 * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen 1131 1132 * test/calc1.y: quiet a spurious warning from bison 2.3 1133 1134 * test/calc1.tab.c: regen 1135 1136 * test/calc1.y: modified to help make the files build with bison 1137 1138 * yacc.1: comment on "-y" and "-P" options. 1139 1140 * yacc.1: comment on portability 1141 1142 * 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: 1143 regen 1144 1145 * test/ftp.y: modified to help make the files build with bison 1146 (bison's "-y" option is of no use in providing "yacc" compatibility) 1147 1148 * test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 1149 regen 1150 1151 * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y: 1152 modified to help make the files build with bison 1153 1154 * test/calc.tab.c: regen 1155 1156 * test/calc.y: modified to help make the files build with bison 1157 1158 * test/error.tab.c: regen 1159 1160 * test/error.y: modified to help make the files build with bison 1161 1162 * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen 1163 1164 * test/run_make.sh: 1165 check for older bisons which (2.3 for instance) do not support pure parsers 1166 1167 * test/code_error.y, test/calc3.y, test/calc2.y: 1168 modified to help make the files build with bison 1169 1170 * test/run_test.sh: use $opt2 in filenames of the generated files 1171 1172 * 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: 1173 regen 1174 11752012-01-14 Thomas E. Dickey <tom@invisible-island.net> 1176 1177 * 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: 1178 regen 1179 1180 * output.c: Several changes: 1181 a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex. 1182 b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL, 1183 using YYLEX_PARAM_TYPE and YYLEX_PARAM. 1184 c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL, 1185 to help with redefinitions. 1186 1187 * test/pure_calc.tab.c: 1188 modified to help make the files build with bison 1189 1190 * test/run_make.sh: 1191 start work on followup, to check if the generated files build with bison. 1192 1193 * test/pure_calc.y, test/pure_error.tab.c: 1194 modified to help make the files build with bison 1195 1196 * test/calc3.tab.c: regen 1197 1198 * 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: 1199 RCS_BASE 1200 1201 * 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: 1202 reference output for testing 1203 1204 * test/run_test.sh: generate/test with "-s" option applied. 1205 12062012-01-13 Thomas E. Dickey <tom@invisible-island.net> 1207 1208 * package/debian/changelog, package/byacc.spec, VERSION: bump 1209 1210 * yacc.1: improve documentation of -s option 1211 1212 * yacc.1: note that yacc ignores -y 1213 1214 * main.c: add -s option to usage message. 1215 1216 * test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h: 1217 RCS_BASE 1218 1219 * test/yacc/quote_calc3.output, test/yacc/quote_calc4.output, test/yacc/quote_calc4.tab.h: 1220 reference output for testing 1221 1222 * test/quote_calc3.y, test/quote_calc.tab.h: RCS_BASE 1223 1224 * test/yacc/quote_calc.tab.h: reference output for testing 1225 1226 * 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: 1227 RCS_BASE 1228 1229 * test/yacc/quote_calc.output, test/yacc/quote_calc2.output, test/yacc/quote_calc2.tab.h, test/yacc/quote_calc3.tab.h: 1230 reference output for testing 1231 1232 * test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y: RCS_BASE 1233 1234 * configure: regen 1235 1236 * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE 1237 12382011-12-19 Thomas E. Dickey <tom@invisible-island.net> 1239 1240 * package/debian/changelog, package/byacc.spec, VERSION: bump 1241 1242 * yacc.1, output.c, main.c, defs.h: 1243 add "-s" option to suppress generating #define's based on string contents 1244 in a %token statement. For instance 1245 %token EQLS "Equals" 1246 would generate 1247 #define EQLS 256 1248 #define Equals 257 1249 Simply suppressing the second #define makes the behavior closer to yacc. 1250 (report by Paulo Andrade). 1251 12522011-09-08 Thomas E. Dickey <tom@invisible-island.net> 1253 1254 * package/debian/changelog, package/byacc.spec, VERSION: bump 1255 1256 * output.c: 1257 fix some more interaction between -i and -d flags to ensure YYERRCODE 1258 and YYSTYPE are declared, tested with cproto. 1259 12602011-09-07 Thomas E. Dickey <tom@invisible-island.net> 1261 1262 * yacc.1: document "-i" option. 1263 1264 * package/debian/changelog, package/byacc.spec, VERSION: bump 1265 1266 * output.c: fix an interaction between -i and -d 1267 1268 * 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: 1269 regen - changes for "-i" option move the global/impure variables near the 1270 macros that may add a prefix, etc. 1271 1272 * skeleton.c, output.c, defs.h: changes to support "-i" option. 1273 12742011-09-06 Thomas E. Dickey <tom@invisible-island.net> 1275 1276 * reader.c: pass explicit file-pointer to write_section() 1277 1278 * main.c: 1279 add "-i" option, to generate interface-file (suggested by Denis M. Wilson) 1280 12812011-09-05 Thomas E. Dickey <tom@invisible-island.net> 1282 1283 * configure: regen 1284 1285 * aclocal.m4: 1286 resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC) 1287 and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks) 1288 1289 * defs.h, error.c, reader.c: 1290 add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson) 1291 12922011-04-01 Thomas E. Dickey <tom@invisible-island.net> 1293 1294 * config.sub: update to 2011-04-01 1295 12962011-02-02 Thomas E. Dickey <tom@invisible-island.net> 1297 1298 * config.guess: update to 2011-01-01 1299 13002010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1301 1302 * defs.h, skeleton.c: 1303 add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas) 1304 1305 * defs.h: 1306 mark all of the error-functions as non-returning (report by Christos Zoulas) 1307 1308 * 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: 1309 regen 1310 1311 * skeleton.c: 1312 use only realloc() rather than realloc+malloc, agree that systems needing this 1313 are very rare (prompted by NetBSD change). 1314 1315 * test/ftp.tab.c: regen 1316 13172010-12-29 Christos.Zoulas 1318 1319 * test/ftp.y: 1320 improve example, which was stuck in 19XX and assumed file sizes were longs. 1321 13222010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1323 1324 * 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: 1325 regen 1326 1327 * 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: 1328 use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror 1329 1330 * skeleton.c: 1331 remove explicit prototype for yylex() via YYLEX_DECL() macro, since that 1332 would prevent declaring yylex() static (request by Christos Zoulas). 1333 1334 * test/calc2.tab.c, test/calc3.tab.c: regen 1335 13362010-12-29 Christos.Zoulas 1337 1338 * output.c: correct definition for YYERROR_DECL() 1339 13402010-12-29 Thomas E. Dickey <tom@invisible-island.net> 1341 1342 * package/debian/changelog, package/byacc.spec, VERSION: bump 1343 13442010-12-26 Thomas E. Dickey <tom@invisible-island.net> 1345 1346 * defs.h, main.c: 1347 change return-type of allocate() to avoid warnings of alignment problems 1348 1349 * main.c: Solaris declares chmod() in <sys/stat.h> 1350 1351 * configure: regen 1352 1353 * main.c: ifdef'd use of fcntl.h 1354 1355 * configure.in: add configure checks for fcntl.h, atexit and mkstemp 1356 1357 * main.c: for cases where mkstemp() is not available, use tempnam/open 1358 1359 * aclocal.m4: add CF_MKSTEMP 1360 1361 * aclocal.m4: 1362 improve quoting, deprecate ${name-value} in favor of standard ${name:-value} 1363 13642010-12-25 Thomas E. Dickey <tom@invisible-island.net> 1365 1366 * main.c: 1367 start revising use of tmpfile(), to make this work with MinGW. Start by 1368 implementing a mkstemp() alternative - noting that mkstemp() also is broken 1369 for MinGW. 1370 1371 * package/debian/changelog, package/byacc.spec, VERSION: bump 1372 13732010-11-27 Thomas E. Dickey <tom@invisible-island.net> 1374 1375 * package/byacc.spec, package/debian/changelog, VERSION: bump 1376 1377 * test/calc2.tab.c, test/calc3.tab.c: regen 1378 1379 * output.c: 1380 corrected use of %parse-param value in yyerror(); it doesn't use &yylval 1381 (report by Clifford Yapp) 1382 13832010-11-26 Thomas E. Dickey <tom@invisible-island.net> 1384 1385 * skeleton.c: typo 1386 1387 * output.c: 1388 correct line-numbering when "-r" option is used; the 'outline' variable 1389 should only be incremented when writing to the code-file. 1390 1391 * test/code_calc.code.c, test/code_error.code.c: regen 1392 1393 * yacc.1: bump date 1394 1395 * yacc.1: comment on -b option vs -r 1396 1397 * 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: 1398 regen 1399 1400 * output.c: 1401 improve on YYERROR_DECL(), adding dummy params which can be used for the 1402 actual function declaration. Also add YYERROR_CALL(). The two macros 1403 simplify maintaining sets of grammars which may/may not be pure. 1404 1405 * 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: 1406 regen 1407 1408 * output.c: generate yyerror() calls in output.c 1409 This is for compatibility with bison, which passes the yylval to yyerror 1410 when the %parse-param feature is used. 1411 1412 * skeleton.c, defs.h: generate yyerror() calls in output.c 1413 1414 * output.c: simplified a little, using putc_code() and putl_code() 1415 1416 * test/yacc/calc1.tab.h: reference output for testing 1417 1418 * test/calc1.tab.h: regen 1419 1420 * reader.c: 1421 improve ifdef for YYSTYPE union declaration (report by Clifford Yapp) 1422 1423 * reader.c: 1424 accept underscore as a replacement for dash in command names, e.g., 1425 "%pure_parser" vs "%pure-parser". 1426 1427 * test/calc1.tab.c: regen 1428 1429 * output.c, reader.c: 1430 also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp) 1431 1432 * package/debian/changelog, package/byacc.spec, VERSION: bump 1433 14342010-11-24 Thomas E. Dickey <tom@invisible-island.net> 1435 1436 * main.c, defs.h, symtab.c, error.c: reduce global variables 1437 1438 * package/debian/changelog, package/byacc.spec, VERSION: bump 1439 1440 * reader.c: 1441 amend fix for Redhat #112617 to still call default_action_warning() for 1442 empty rules (report by Bruce Cran). 1443 14442010-11-22 Thomas E. Dickey <tom@invisible-island.net> 1445 1446 * output.c: 1447 add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp). 1448 1449 * test/calc1.tab.c: regen 1450 1451 * test/calc1.y: cleanup compiler warnings 1452 1453 * test/grammar.y: add "%expect" 1454 1455 * test/calc1.tab.h: regen 1456 1457 * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE 1458 1459 * test/calc2.tab.c, test/calc3.tab.c: regen 1460 1461 * test/calc1.y: 1462 advanced example from Steve Johnson's paper, uses unions 1463 1464 * test/calc3.y, test/calc2.y: init 'base', so examples can run 1465 1466 * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++ 1467 1468 * output.c: compensate for fix in reader.c 1469 1470 * reader.c: 1471 add/use putc_both() and puts_both(), incidentally fixing a place where 1472 a union copied to the union_file may be missing the end of the last line. 1473 1474 * package/debian/changelog, package/byacc.spec, VERSION: bump 1475 14762010-09-28 Thomas E. Dickey <tom@invisible-island.net> 1477 1478 * config.guess: update to 2010-09-24 1479 14802010-09-10 Thomas E. Dickey <tom@invisible-island.net> 1481 1482 * config.sub: update to 2010-09-11 1483 14842010-06-10 Thomas E. Dickey <tom@invisible-island.net> 1485 1486 * yacc.1, package/debian/changelog, package/byacc.spec, VERSION: 1487 bump to 2010/06/10 1488 14892010-06-09 Thomas E. Dickey <tom@invisible-island.net> 1490 1491 * reader.c: free declarations in leak-testing code. 1492 1493 * main.c: close code_file if -r option used, for leak-testing 1494 1495 * defs.h, reader.c: 1496 improve %lex-param / %parse-param implementation by allowing for arrays to 1497 be passed as parameters, e.g., "int regs[26]". 1498 1499 * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h: 1500 RCS_BASE 1501 1502 * test/yacc/calc3.output, test/yacc/calc3.tab.h: 1503 reference output for testing 1504 1505 * test/calc2.tab.c, test/calc2.y, test/calc2.tab.h: RCS_BASE 1506 1507 * test/yacc/calc2.tab.h: reference output for testing 1508 1509 * test/calc2.output: RCS_BASE 1510 1511 * test/yacc/calc2.output: reference output for testing 1512 1513 * output.c: 1514 improve %lex-param / %parse-param implementation by allowing for arrays to 1515 be passed as parameters, e.g., "int regs[26]". 1516 1517 * test/calc.tab.c, test/calc.y: 1518 test-cases and reference files for %lex-param / %parse-param 1519 1520 * makefile.in: add docs-rule, for html/pdf/txt form of manpage 1521 1522 * configure: regen 1523 1524 * aclocal.m4: add CF_XOPEN_SOURCE, etc. 1525 1526 * configure.in: 1527 use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89 1528 1529 * 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: 1530 fix warnings from clang --analyze 1531 15322010-06-08 Thomas E. Dickey <tom@invisible-island.net> 1533 1534 * output.c: fix to build with c89, etc. 1535 1536 * reader.c: gcc warning 1537 1538 * 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: 1539 modified test-cases to allow them to compile, to validate pure-parser changes. 1540 updated reference files to match. 1541 1542 * output.c: 1543 move call for output_stype() earlier since it is used in pure-parser declarations 1544 1545 * test/grammar.tab.c, test/grammar.y: 1546 modified test-cases to allow them to compile, to validate pure-parser changes. 1547 updated reference files to match. 1548 1549 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1550 regen 1551 1552 * yacc.1: document %lex-param and %parse-param 1553 1554 * test/run_lint.sh, test/run_make.sh: RCS_BASE 1555 1556 * test/run_test.sh: 1557 further modify to allow build-directory to be in a different location by 1558 passing this directory's location as a parameter to the script. 1559 1560 * makefile.in: 1561 add check_make and check_lint rules to help validate the generated files 1562 in the test-directory 1563 15642010-06-07 Thomas E. Dickey <tom@invisible-island.net> 1565 1566 * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE 1567 1568 * test/run_test.sh: 1569 provide for testing -r and -P options by checking if the ".y" filename 1570 begins with "code_" or "pure_", respectively. 1571 1572 * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h: 1573 RCS_BASE 1574 1575 * test/yacc/code_error.tab.h: reference output for testing 1576 1577 * test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h: 1578 RCS_BASE 1579 1580 * test/yacc/code_calc.tab.h: reference output for testing 1581 1582 * test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h: 1583 RCS_BASE 1584 1585 * test/yacc/pure_calc.output, test/yacc/pure_calc.tab.h, test/yacc/pure_error.output, test/yacc/pure_error.tab.h: 1586 reference output for testing 1587 1588 * test/code_calc.output, test/code_error.output: RCS_BASE 1589 1590 * test/yacc/code_calc.output, test/yacc/code_error.output: 1591 reference output for testing 1592 1593 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen 1594 1595 * test/run_test.sh: 1596 changes to support running "make check" in a separate build-tree 1597 1598 * main.c: add "-P" to usage message 1599 1600 * reader.c: use UCH() macro to hide casts. 1601 16022010-06-07 Andres.Mejia 1603 1604 * main.c, output.c, reader.c, defs.h, skeleton.c: 1605 Fix the output order of the generated parse code file. This allows for 1606 the use of YYPARSE_PARAM, by having the output that checks for 1607 YYPARSE_PARAM to be defined come after the C code block in the 1608 definitions section of a yacc file. 1609 1610 Implement support for YYLEX_PARAM, similar to bison. This is useful for 1611 support for building reentrant lexers with flex. 1612 1613 Fix a compatibility issue with bison's pure-parser option. Bison 1614 defines yylex as sending at least one parameter, &yylval, as the first 1615 parameter and doesn't seem to have an easy way to remove that parameter. 1616 This on the other hand is rather convenient to support saving to yylval 1617 from flex when building reentrant lexers and parsers. 1618 1619 Add support for the %parse-param and %lex-param directives used in 1620 bison. This change bears some similarity to NetBSD's changes to byacc 1621 at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html 1622 1623 Bison allows for POSIX yacc emulation via a yacc directive in the yacc 1624 file, and also via a command line switch. Implement this feature as a 1625 no-op for byacc, since byacc is designed to be POSIX yacc compatible 1626 anyway. This allows for better compatibility with yacc sources written 1627 for bison. 1628 16292010-06-07 Thomas E. Dickey <tom@invisible-island.net> 1630 1631 * VERSION: bump to 2010/06/07 1632 16332010-06-06 Thomas E. Dickey <tom@invisible-island.net> 1634 1635 * test/calc.tab.c, configure: regen 1636 1637 * skeleton.c: 1638 move #include's down into the generated code, to allow user-defined code 1639 to override feature definitions, particularly with stdlib.h (request by 1640 Marcus Kool). 1641 1642 * lr0.c, error.c, reader.c, defs.h: 1643 strict gcc 3.4.6 warnings on 64-bit platform 1644 1645 * aclocal.m4, configure.in: add check for lint 1646 1647 * makefile.in: add lint rule 1648 1649 * defs.h, closure.c, lr0.c, warshall.c, main.c: 1650 fix gcc warnings, mostly for 64-bit platform 1651 1652 * aclocal.m4: 1653 add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc 1654 1655 * makefile.in: add etags/TAGS if available 1656 1657 * configure.in: add configure check for actual ctags and etags programs 1658 1659 * package/debian/copyright: add copyright notices for non-PD files 1660 1661 * package/debian/changelog: 1662 incorporated scripts in upstream to use for test-builds 1663 1664 * makefile.in: drop mkdirs.sh, just use "mkdir -p" 1665 1666 * AUTHORS: nicknames for some contributors (see CHANGES for details) 1667 1668 * package/byacc.spec: RPM file for byacc 1669 1670 * VERSION: bump to 2010/06/06 1671 1672 * aclocal.m4: add copyright notice, from "my-autoconf" macros 1673 http://invisible-island.net/autoconf/autoconf.html 1674 1675 * package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS: 1676 PERMIT FILE 1677 1678 * aclocal.m4: resync with my-autoconf. summary of changes: 1679 a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter 1680 b) CF_DISABLE_ECHO, change indent-convention for substituted makefile 1681 c) CF_GCC_VERSION, ignore stderr 1682 d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc 1683 16842010-04-20 Thomas E. Dickey <tom@invisible-island.net> 1685 1686 * 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: 1687 scripts from Debian package 1688 16892010-02-16 Thomas E. Dickey <tom@invisible-island.net> 1690 1691 * yacc.1: document -P and bison-extensions 1692 1693 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1694 regen 1695 1696 * output.c: implement %pure-parser 1697 1698 * skeleton.c: 1699 implement %pure-parser, like bison. To help with this, changed the stack 1700 variables, putting them into a struct. 1701 1702 * reader.c: implement %pure-parser 1703 1704 * defs.h: modified skeleton to support %pure-parser feature 1705 1706 * main.c: add -P option to set %pure-parser 1707 1708 * output.c: 1709 make -r and -p options work together. The -r option splits the generated 1710 parser into code/table files; for this case we cannot use static data. 1711 Also, we have to repeat the #define's used for prefix (-p) as well as the 1712 redeclaration of yyparse(). Finally, allow any of the prefixed names to 1713 be overridden, e.g., by passing a -D option to the compiler. Make that 1714 a little more readable by putting a blank line before each chunk. 1715 1716 * defs.h: add definitions for %pure-parser 1717 1718 * skeleton.c: 1719 put blank line before/after the redeclaration of yyparse() 1720 1721 * output.c: allow for other program redefining yylex() 1722 1723 * skeleton.c: 1724 split-off xdecls[] array, to move declaration of yyparse() after #define's 1725 1726 * defs.h: split-out xdecls[] 1727 1728 * VERSION: bump 1729 1730 * configure: regen 1731 1732 * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS 1733 1734 * aclocal.m4: 1735 resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes. 1736 17372010-02-16 Ostap.Cherkashi 1738 1739 * skeleton.c: fix a memory leak in the generated skeleton 1740 17412010-01-01 Thomas E. Dickey <tom@invisible-island.net> 1742 1743 * package/debian/source/format: scripts from Debian package 1744 17452009-12-31 Thomas E. Dickey <tom@invisible-island.net> 1746 1747 * config.guess: update to 2009-12-30 1748 1749 * config.sub: update to 2009-12-31 1750 17512009-10-27 Thomas E. Dickey <tom@invisible-island.net> 1752 1753 * VERSION: 20091027 1754 1755 * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c: 1756 strict compiler warnings 1757 17582009-10-26 Thomas E. Dickey <tom@invisible-island.net> 1759 1760 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1761 resync 1762 1763 * main.c, defs.h: introduce some typedefs for portability, etc. 1764 1765 * makefile.in: 1766 don't remove "*.log" in mostlyclean rule since it interferes with regression 1767 script. 1768 1769 * configure: regen 1770 1771 * aclocal.m4: resync with my-autoconf 1772 17732009-08-25 Thomas E. Dickey <tom@invisible-island.net> 1774 1775 * config.guess, config.sub: update to 2009-08-19 1776 17772009-02-21 Thomas E. Dickey <tom@invisible-island.net> 1778 1779 * VERSION: bump 1780 1781 * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25 1782 17832008-12-26 Thomas E. Dickey <tom@invisible-island.net> 1784 1785 * configure: regen with autoconf-2.52 (patched) 1786 17872008-12-25 Thomas E. Dickey <tom@invisible-island.net> 1788 1789 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 1790 regenerated 1791 17922008-12-24 Thomas E. Dickey <tom@invisible-island.net> 1793 1794 * VERSION: bump 1795 1796 * skeleton.c: 1797 remove ifdef-lint from goto yyerrlab, to quiet gcc warning 1798 17992008-11-26 Thomas E. Dickey <tom@invisible-island.net> 1800 1801 * verbose.c, main.c, defs.h, mkpar.c, reader.c: 1802 completed implementation of "%expect" (report by Perry E. Metzger). 1803 add "%expect-rr", which is (unlike bison) allowable in LALR parsers. 1804 18052008-11-24 Thomas E. Dickey <tom@invisible-island.net> 1806 1807 * 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: 1808 change indent-style (request by Perry E. Metzger) 1809 18102008-08-27 Thomas E. Dickey <tom@invisible-island.net> 1811 1812 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1813 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 1814 1815 * VERSION: bump 1816 1817 * skeleton.c: 1818 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 1819 1820 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c: 1821 change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's. 1822 1823 * configure: regen'd 1824 1825 * configure.in: add -Wwrite-strings to warnings 1826 1827 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 1828 add YYPARSE_PARAM and YYPARSE_PARAM_TYPE 1829 1830 * skeleton.c: 1831 add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features. 1832 1833 * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c: 1834 fixes for gcc -Wwrite-strings 1835 1836 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1837 generate the tables as static-const (this is an interface change) 1838 1839 * output.c: realign columns in start_table() 1840 1841 * output.c: 1842 generate the tables as static-const (this is an interface change) 1843 1844 * output.c: reorder functions to eliminate forward-references 1845 1846 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1847 remove 'register' keywords 1848 18492008-08-26 Thomas E. Dickey <tom@invisible-island.net> 1850 1851 * 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: 1852 remove 'register' keywords 1853 18542008-08-25 Thomas E. Dickey <tom@invisible-island.net> 1855 1856 * test/ftp.tab.c: regen'd 1857 1858 * reader.c: 1859 improve the left-curly fix by testing after blanks, to avoid having a 1860 " {" at the beginning of a line. 1861 1862 * test/error.tab.c, test/grammar.tab.c: regen'd 1863 1864 * output.c: 1865 move the remaining newline-counting into write_XXX functions. 1866 1867 * test/calc.tab.c: regen'd 1868 1869 * output.c: 1870 simplify part of the output_file formatting using new functions, e.g., 1871 start_int_table(), output_newline(). 1872 1873 * reader.c: 1874 modify copy_action() to indent the first character, it if is is left-curly 1875 brace. That makes the output look more like the original, as well as makes 1876 it simpler to edit (not confuse editors which look for a left-curly in the 1877 first column as if it were the beginning of a function). 1878 1879 * skeleton.c: minor fixes to avoid gcc -Wconversion warnings 1880 1881 * output.c: align the #define's produced for "-p" option 1882 1883 * test/run_test.sh: use the "-p" option for better coverage. 1884 1885 * output.c: simplify output_prefix() with new define_prefixed() 1886 1887 * skeleton.c: include string.h, for memset() 1888 change stack size to unsigned to fix gcc -Wconversion warnings. 1889 1890 * VERSION: bump to 2008/8/25 1891 1892 * makefile.in: add dependency on VERSION file. 1893 18942008-08-24 Thomas E. Dickey <tom@invisible-island.net> 1895 1896 * VERSION: bump 1897 1898 * lalr.c: improved memory-leak checking by freeing data in includes[] 1899 1900 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 1901 update to match skeleton-change 1902 1903 * configure: regen'd 1904 1905 * skeleton.c: Add fix for stack discussed 1906 http://undeadly.org/cgi?action=article&sid=20080708155228 1907 and applied 1908 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29 1909 1910 * aclocal.m4: resync with my-autoconf (no major changes) 1911 19122008-07-24 Thomas E. Dickey <tom@invisible-island.net> 1913 1914 * package/pkgsrc/Makefile, package/pkgsrc/distinfo: 1915 scripts from NetBSD pkgsrc, for test-builds 1916 19172008-03-14 Thomas E. Dickey <tom@invisible-island.net> 1918 1919 * config.sub: update to 2008-03-08 1920 1921 * config.guess: update to 2008-03-12 1922 19232007-05-09 Thomas E. Dickey <tom@invisible-island.net> 1924 1925 * main.c: close graph, verbose files if opened, on exit. 1926 1927 * main.c: 1928 audit memory leaks - valgrind reported some memory still in use on exit. 1929 1930 * lalr.c, output.c, reader.c, mkpar.c, lr0.c: 1931 add hook for auditing memory leaks 1932 1933 * defs.h: add hooks for auditing memory leaks 1934 1935 * configure: regen'd 1936 1937 * configure.in: 1938 use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind, 1939 --with-dbmalloc and --with-dmalloc 1940 1941 * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND 1942 1943 * aclocal.m4: improve version-checking in CF_GCC_VERSION 1944 rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro 1945 1946 * VERSION: 2007/5/9 1947 1948 * main.c: file_prefix did not always have a trailing null. 1949 19502007-03-25 Thomas E. Dickey <tom@invisible-island.net> 1951 1952 * mkdirs.sh: improved version for "make -j" 1953 19542006-12-22 Thomas E. Dickey <tom@invisible-island.net> 1955 1956 * config.guess: update to 2006/12/22 1957 19582006-12-08 Thomas E. Dickey <tom@invisible-island.net> 1959 1960 * config.sub: update to 2006/12/08 1961 19622005-08-13 Thomas E. Dickey <tom@invisible-island.net> 1963 1964 * main.c: add -V to usage message 1965 1966 * makefile.in: remove -t option from ctags 1967 1968 * VERSION: 2005/8/13 1969 19702005-08-13 schmitz 1971 1972 * main.c: Sylvain Schmitz: 1973 modify the '-o' option to work like bison's, which sets the file-prefix. 1974 19752005-08-13 Matt.Kraai 1976 1977 * output.c: 1978 Debian #322858 (don't close union_file, which contained data). 1979 This feature is used in groff. 1980 19812005-08-13 Thomas E. Dickey <tom@invisible-island.net> 1982 1983 * configure: regenerated 1984 1985 * aclocal.m4: improve checks for Intel compiler warnings 1986 19872005-06-25 Thomas E. Dickey <tom@invisible-island.net> 1988 1989 * config.sub: update to 2005/6/2 1990 1991 * config.guess: update to 2005/5/27 1992 19932005-05-05 Thomas E. Dickey <tom@invisible-island.net> 1994 1995 * defs.h: add a fallback for GCC_UNUSED 1996 19972005-05-04 Thomas E. Dickey <tom@invisible-island.net> 1998 1999 * makefile.in: add "." to include-path to pickup config.h 2000 2001 * reader.c: 2002 apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617. 2003 2004 * output.c: 2005 correct a limit check in pack_vector() - report/analysis by William Evans 2006 2007 * main.c: 2008 exit after printing version. Otherwise "yacc -V" will exit with an erro 2009 after printing the usage message. 2010 2011 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2012 regenerated after skeleton-changes 2013 2014 * skeleton.c: replace a few -1's with YYEMPTY 2015 2016 * skeleton.c: 2017 delete yynewerror (no one uses it any more, and it just makes compiler warnings) 2018 2019 * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD 2020 2021 * test/run_test.sh: 2022 filter out lines with YYPATCH, since that will change with each update 2023 2024 * yacc.1: add -V option 2025 2026 * main.c: add -V option to print the version. 2027 simplify option-parsing by moving the duplicate logic for setting flags into 2028 new function setflag(). 2029 2030 * skeleton.c: 2031 move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers). 2032 add YYPATCH here so it can be tested by applications. 2033 2034 * defs.h: 2035 add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and 2036 YYPATCH symbols. 2037 2038 * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c: 2039 reduce externs by making static the procedures that are not referenced outside 2040 the module in which they are defined. 2041 2042 * makefile.in: 2043 the VERSION file holds the patch-date. Define YYPATCH, so this will be 2044 compiled into the skeleton. 2045 2046 * VERSION: patch-level for byacc 2047 2048 * main.c: 2049 add "-o" to usage message. It is too long for a single line; rewrite usage() 2050 to show one option per line. 2051 20522005-05-03 Thomas E. Dickey <tom@invisible-island.net> 2053 2054 * main.c: add -o option, to work with scripts that assume bison. 2055 simplify create_file_names() with a macro. 2056 simplify done() with a macro. 2057 adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by 2058 onintr(), do not flush output via exit(), but use _exit() instead. 2059 2060 * defs.h: remove unnecessary externs for main.c 2061 2062 * yacc.1: add -o option 2063 2064 * graph.c: remove unused parameter 2065 2066 * mkpar.c, defs.h, reader.c: 2067 add support for "%expect", a bison feature from FreeBSD sources 2068 2069 * 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: 2070 indent'd 2071 2072 * configure: regenerated for 2005/5/5 2073 2074 * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER) 2075 20762005-04-27 schmitz 2077 2078 * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1: 2079 Sylvain Schmitz <schmitz@i3s.unice.fr>: 2080 add graphical output of the LALR(1) automaton for graphviz, 2081 associated with command-line option `-g' 2082 20832005-04-16 Thomas E. Dickey <tom@invisible-island.net> 2084 2085 * config.sub: update to 2005/2/10 2086 2087 * config.guess: update to 2005/3/24 2088 20892005-04-13 Thomas E. Dickey <tom@invisible-island.net> 2090 2091 * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds 2092 20932005-03-21 Thomas E. Dickey <tom@invisible-island.net> 2094 2095 * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds 2096 20972004-03-28 Thomas E. Dickey <tom@invisible-island.net> 2098 2099 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2100 updates due to adding yyparse() prototype 2101 2102 * configure: RCS_BASE 2103 2104 * configure.in: 2105 add AC_ARG_PROGRAM to make --program-prefix, etc., work. 2106 2107 * makefile.in: first cut of script to support --program-prefix 2108 2109 * configure.in: 2110 reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52 2111 2112 * makefile.in: modify so DESTDIR works 2113 2114 * makefile.in: use EXEEXT and OBJEXT 2115 2116 * configure.in: use CF_PROG_EXT 2117 generate a config.h 2118 2119 * defs.h: make this use the generated config.h 2120 2121 * skeleton.c: add a forward-reference for yyparse() 2122 2123 * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT 2124 2125 * yacc.1: remove the discussion of TMPDIR since it is obsolete 2126 2127 * skeleton.c: fix a couple of minor compiler-warnings in the skeleton 2128 2129 * defs.h: remove action_file_name, etc., since we use tmpfile() now. 2130 2131 * main.c: 2132 use tmpfile() for opening the working files. This quiets a warning 2133 advising the use of mkstemp(). 2134 2135 * output.c: 2136 Do not close temporary-files here, since they are opened with tmpfile(). 2137 Just rewind them, and they're ready to read back the data stored in them. 2138 2139 * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE 2140 2141 * test/yacc/grammar.output, test/yacc/grammar.tab.h: 2142 reference output for testing 2143 2144 * makefile.in: turn on "make check" rule 2145 2146 * test/calc.output: RCS_BASE 2147 2148 * test/yacc/calc.output: reference output for testing 2149 2150 * test/run_test.sh, test/calc.tab.h: RCS_BASE 2151 2152 * test/yacc/calc.tab.h: reference output for testing 2153 2154 * test/ftp.tab.c: yyparse() is now yyparse(void) 2155 2156 * test/calc.tab.c: RCS_BASE 2157 2158 * test/error.tab.c: yyparse() is now yyparse(void) 2159 2160 * test/README: RCS_BASE 2161 2162 * yacc.1: various typography fixes prompted by Debian #100947 2163 2164 * aclocal.m4, makefile.in, configure.in: RCS_BASE 2165 2166 * README: updated to note that this is not the original 2167 21682004-03-24 Thomas E. Dickey <tom@invisible-island.net> 2169 2170 * test/grammar.y: RCS_BASE 2171 21722004-02-23 Thomas E. Dickey <tom@invisible-island.net> 2173 2174 * config.sub: RCS_BASE 2175 21762004-02-17 Thomas E. Dickey <tom@invisible-island.net> 2177 2178 * config.guess: RCS_BASE 2179 21802003-11-29 Thomas E. Dickey <tom@invisible-island.net> 2181 2182 * install-sh: improved quoting 2183 21842002-06-29 Thomas E. Dickey <tom@invisible-island.net> 2185 2186 * mkdirs.sh: 2187 don't use character range, since some locales don't work as expected 2188 21892001-06-22 Thomas E. Dickey <tom@invisible-island.net> 2190 2191 * install-sh: RCS_BASE 2192 21932000-11-20 Thomas E. Dickey <tom@invisible-island.net> 2194 2195 * test/calc.y: RCS_BASE 2196 2197 * test/code_calc.y, test/pure_calc.y: copy of calc.y 2198 2199 * vmsbuild.com: original version 2200 22012000-02-23 Thomas E. Dickey <dickey@invisible-island.net> 2202 2203 * test/RCS, RCS: PERMIT FILE 2204 22052000-02-14 Thomas E. Dickey <tom@invisible-island.net> 2206 2207 * main.c: fix for VMS port - making pathname for temp-file 2208 2209 * descrip.mms: original version 2210 22112000-02-13 Thomas E. Dickey <tom@invisible-island.net> 2212 2213 * 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: 2214 ansify 2215 22161999-11-30 Thomas E. Dickey <tom@invisible-island.net> 2217 2218 * mkdirs.sh: RCS_BASE 2219 22201995-01-01 Thomas E. Dickey <tom@invisible-island.net> 2221 2222 * config_h.in: RCS_BASE 2223 22241993-12-23 unknown 2225 2226 * README.DOS, main.c: MSDOS-port 2227 22281993-12-22 unknown 2229 2230 * reader.c, defs.h: MSDOS-port 2231 22321993-03-02 unknown 2233 2234 * README: original version 2235 22361993-02-22 unknown 2237 2238 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE 2239 22401993-02-22 Thomas E. Dickey <tom@invisible-island.net> 2241 2242 * test/yacc/error.output, test/yacc/error.tab.h: 2243 reference output for testing 2244 22451993-02-22 unknown 2246 2247 * test/error.output, test/error.tab.c, test/error.tab.h: RCS_BASE 2248 2249 * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES: 2250 original version 2251 22521992-10-12 unknown 2253 2254 * yacc.1: original version 2255 22561992-10-11 unknown 2257 2258 * defs.h: original version 2259 22601991-01-20 unknown 2261 2262 * mkpar.c, verbose.c: original version 2263 22641991-01-14 unknown 2265 2266 * lr0.c, Makefile, Makefile.old: original version 2267 22681990-07-16 unknown 2269 2270 * NEW_FEATURES: original version 2271 22721990-06-03 unknown 2273 2274 * ACKNOWLEDGEMENTS: original version 2275 22761990-02-05 unknown 2277 2278 * symtab.c, lalr.c, error.c: original version 2279 22801990-01-16 Thomas E. Dickey <tom@invisible-island.net> 2281 2282 * test/code_error.y, test/pure_error.y: RCS_BASE 2283 22841990-01-16 unknown 2285 2286 * test/error.y: RCS_BASE 2287 22881989-11-22 unknown 2289 2290 * NO_WARRANTY: original version 2291 22921989-09-23 unknown 2293 2294 * test/ftp.y: RCS_BASE 2295 2296