12017-02-01 Thomas E. Dickey <dickey@invisible-island.net> 2 3 * test/btyacc/expr.oxout.error, test/btyacc/expr.oxout.output, test/btyacc/expr.oxout.tab.c, test/btyacc/expr.oxout.tab.h, test/yacc/expr.oxout.error, test/yacc/expr.oxout.output, test/yacc/expr.oxout.tab.c, test/yacc/expr.oxout.tab.h: 4 RCS_BASE 5 6 * package/debian/copyright: update copyright 7 8 * reader.c, defs.h, main.c: 9 avoid using regex.h since some low-end platforms do not have this 10 11 * test/expr.oxout.y: RCS_BASE 12 13 * configure: regen 14 15 * aclocal.m4: quiet a strict gcc warning in CF_MKSTEMP 16 172017-02-01 Tom.Shields 18 19 * main.c, reader.c, defs.h: 20 process #line directives, like bison and flex 21 222017-02-01 Thomas E. Dickey <dickey@invisible-island.net> 23 24 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 25 bump 26 272016-12-31 Thomas E. Dickey <dickey@invisible-island.net> 28 29 * config.guess, config.sub: 2017-01-01 30 312016-12-02 Thomas E. Dickey <dickey@invisible-island.net> 32 33 * test/btyacc/quote_calc4-s.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/rename_debug.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, btyaccpar.c: 34 regen 35 36 * btyaccpar.skel: changes from NetBSD 37 + use YYINT rather than short in btyaccpar.skel 38 (some of this had already been done by Tom Shields) 39 + remove some casts of malloc/realloc 40 41 * yaccpar.c, yaccpar.skel, output.c: changes from NetBSD 42 - Add some more bison stuff to make the mesa/gallium parser work: 43 %initial-action (add missing source struct member in location) 44 %debug (unimplemented) 45 %error-verbose (unimplemented) 46 47 This changes some existing code: 48 + yylloc is now a pointer, so 49 + the first parameter to YYERROR_DECL() is a pointer 50 + struct YYLTYPE now has a "source" field 51 52 * test/btyacc/btyacc_demo.tab.h, test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c, test/btyacc/err_inherit4.tab.h: 53 regen 54 55 * btyaccpar.c, btyaccpar.skel, reader.c: changes from NetBSD 56 - Add some more bison stuff to make the mesa/gallium parser work: 57 %initial-action (add missing source struct member in location) 58 %debug (unimplemented) 59 %error-verbose (unimplemented) 60 61 This changes some existing code: 62 + yylloc is now a pointer, so 63 + the first parameter to YYERROR_DECL() is a pointer 64 + struct YYLTYPE now has a "source" field 65 66 * reader.c: 67 fix from NetBSD: correct off-by-one when adding a null in copy_param() 68 69 * reader.c: adapted from NetBSD 70 - Convert *most* error fingerprints to: 71 -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) 72 +unterminated_arglist(const struct ainfo *a) 73 - Cast new <ctype.h> args to unsigned char 74 75 * defs.h: changes from NetBSD 76 - Add some more bison stuff to make the mesa/gallium parser work: 77 %initial-action (add missing source struct member in location) 78 %debug (unimplemented) 79 %error-verbose (unimplemented) 80 81 This changes some existing code: 82 + yylloc is now a pointer, so 83 + the first parameter to YYERROR_DECL() is a pointer 84 + struct YYLTYPE now has a "source" field 85 86 * defs.h: adapted from NetBSD 87 - Convert *most* error fingerprints to: 88 -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) 89 +unterminated_arglist(const struct ainfo *a) 90 - Cast new <ctype.h> args to unsigned char 91 92 * main.c: changes from NetBSD 93 - Add some more bison stuff to make the mesa/gallium parser work: 94 %initial-action (add missing source struct member in location) 95 %debug (unimplemented) 96 %error-verbose (unimplemented) 97 98 This changes some existing code: 99 + yylloc is now a pointer, so 100 + the first parameter to YYERROR_DECL() is a pointer 101 + struct YYLTYPE now has a "source" field 102 103 * error.c: adapted from NetBSD 104 - Convert *most* error fingerprints to: 105 -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) 106 +unterminated_arglist(const struct ainfo *a) 107 - Cast new <ctype.h> args to unsigned char 108 109 * mstring.c: adapted change from NetBSD to add casts for ctype macros 110 111 * test/btyacc/btyacc_demo.tab.h, test/btyacc/err_inherit4.tab.h: regen 112 113 * output.c: reorder to eliminate a forward-reference 114 1152016-12-02 Tom.Shields 116 117 * output.c: 118 modify output to enable compilation of a lexer generated by flex (using 119 "%option bison-bridge" and "%option bison-locations") to be used with a parser 120 generated by b(t)yacc (using directives "%locations" and "%pure-parser"). 121 1222016-12-02 Thomas E. Dickey <dickey@invisible-island.net> 123 124 * configure: regen 125 126 * aclocal.m4: Improved autoconf macros 127 CF_CC_ENV_FLAGS 128 + improve split between compiler and options, prompted by report where user 129 had "ccache" before the compiler 130 + leave non-preprocessor options in "$CC" (but still copy them to "$CFLAGS" 131 since that's where they should be) 132 CF_GNU_SOURCE,v 133 + recent glibc (Debian 2.23-4 for example) has misordered ifdef/checks for new 134 symbol _DEFAULT_SOURCE, producing warning messages when only _GNU_SOURCE is 135 defined. Add a followup check to define _DEFAULT_SOURCE. 136 CF_XOPEN_SOURCE 137 + add "uclinux" to list of Linux's (patch by Yann E. Morin) 138 + use _GNU_SOURCE for cygwin headers 139 + build-fixes for OS/2 140 141 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 142 bump 143 1442016-11-20 Thomas E. Dickey <dickey@invisible-island.net> 145 146 * config.sub: 2016-11-19 147 148 * config.guess: 2016-10-02 149 1502016-06-06 Thomas E. Dickey <dickey@invisible-island.net> 151 152 * configure: regen 153 154 * aclocal.m4: improved autoconf macros: 155 CF_CC_ENV_FLAGS - don't limit the check to -I, -U and -D options, since the 156 added options can include various compiler options before and after 157 preprocessor options. 158 CF_PROG_LINT - add cpplint to programs to use; drop ad hoc tdlint and alint. 159 160 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 161 bump 162 163 * lalr.c: indented 164 165 * btyaccpar.c: regen 166 167 * skel2c: 168 adjust whitespace so that generated skeleton will follow the same format 169 as other code 170 171 * mkpar.c, verbose.c, lr0.c, reader.c, error.c, output.c: indented 172 173 * reader.c: fix two compiler warnings 174 175 * test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/rename_debug.c, btyaccpar.c, test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/rename_debug.c, yaccpar.c: 176 regen 177 1782016-06-06 Tom.Shields 179 180 * btyaccpar.skel, yaccpar.skel: 181 small fix for an edge case of initialized data in Chris Dodd's btyacc changes: 182 "Avoid crash when input pops up an Action error at the first token" 183 1842016-06-01 Thomas E. Dickey <dickey@invisible-island.net> 185 186 * test/yacc/quote_calc2-s.tab.c, test/yacc/quote_calc3-s.tab.c, test/yacc/quote_calc3.tab.c, test/yacc/quote_calc4-s.tab.c, test/yacc/quote_calc4.tab.c, test/yacc/varsyntax_calc1.tab.c, test/yacc/err_syntax18.tab.c, test/yacc/err_syntax20.tab.c, test/yacc/err_syntax24.error, test/yacc/error.tab.c, test/yacc/grammar.tab.c, test/yacc/ok_syntax1.tab.c, test/yacc/pure_calc.tab.c, test/yacc/pure_error.tab.c, test/yacc/quote_calc-s.tab.c, test/yacc/quote_calc.tab.c, test/yacc/quote_calc2.tab.c, test/yacc/calc.tab.c, test/yacc/calc1.tab.c, test/yacc/calc2.tab.c, test/yacc/calc3.tab.c, test/yacc/code_calc.code.c, test/yacc/code_calc.tab.c, test/yacc/code_calc.tab.h, test/yacc/code_error.code.c, test/yacc/empty.tab.c, test/yacc/err_syntax10.tab.c, test/yacc/err_syntax11.tab.c, test/yacc/err_syntax12.tab.c, test/yacc/rename_debug.c, yaccpar.c, test/btyacc/quote_calc-s.tab.c, test/btyacc/quote_calc.tab.c, test/btyacc/quote_calc2-s.tab.c, test/btyacc/quote_calc2.tab.c, test/btyacc/quote_calc3-s.tab.c, test/btyacc/quote_calc3.tab.c, test/btyacc/quote_calc4-s.tab.c, test/btyacc/quote_calc4.tab.c, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/err_syntax13.tab.c, test/btyacc/err_syntax14.tab.c, test/btyacc/err_syntax15.tab.c, test/btyacc/err_syntax16.tab.c, test/btyacc/err_syntax17.tab.c, test/btyacc/err_syntax18.tab.c, test/btyacc/err_syntax19.tab.c, test/btyacc/err_syntax2.tab.c, test/btyacc/err_syntax20.tab.c, test/btyacc/err_syntax21.tab.c, test/btyacc/err_syntax22.tab.c, test/btyacc/err_syntax23.tab.c, test/btyacc/err_syntax24.error, test/btyacc/err_syntax24.tab.c, test/btyacc/err_syntax25.tab.c, test/btyacc/err_syntax26.tab.c, test/btyacc/err_syntax27.tab.c, test/btyacc/err_syntax3.tab.c, test/btyacc/err_syntax4.tab.c, test/btyacc/err_syntax5.tab.c, test/btyacc/err_syntax6.tab.c, test/btyacc/err_syntax7.tab.c, test/btyacc/err_syntax7a.tab.c, test/btyacc/err_syntax7b.tab.c, test/btyacc/err_syntax8.tab.c, test/btyacc/err_syntax8a.tab.c, test/btyacc/err_syntax9.tab.c, test/btyacc/error.tab.c, test/btyacc/grammar.tab.c, test/btyacc/inherit0.tab.c, test/btyacc/inherit1.tab.c, test/btyacc/inherit2.output, test/btyacc/inherit2.tab.c, test/btyacc/ok_syntax1.tab.c, test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_demo.error, test/btyacc/btyacc_demo.output, test/btyacc/btyacc_demo.tab.c, test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc.tab.c, test/btyacc/calc1.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c, test/btyacc/code_calc.code.c, test/btyacc/code_calc.tab.c, test/btyacc/code_calc.tab.h, test/btyacc/code_error.code.c, test/btyacc/empty.tab.c, test/btyacc/err_inherit1.tab.c, test/btyacc/err_inherit2.tab.c, test/btyacc/err_inherit3.output, test/btyacc/err_inherit3.tab.c, test/btyacc/err_inherit4.output, test/btyacc/err_inherit4.tab.c, test/btyacc/err_inherit5.tab.c, test/btyacc/err_syntax1.tab.c, test/btyacc/err_syntax10.tab.c, test/btyacc/err_syntax11.tab.c, test/btyacc/err_syntax12.tab.c, test/btyacc/rename_debug.c, btyaccpar.c: 187 regen 188 1892016-06-01 Tom.Shields 190 191 * btyaccpar.skel, defs.h, error.c, output.c, reader.c, test/code_calc.y, test/err_inherit4.y, test/run_make.sh, yaccpar.skel: 192 fixes for issues in btyacc (report by Francis Andre): 193 194 + correction to the placement of the #line directive for a %union specification 195 196 + recovery of a set of casts originally added into btyaccpar.c rather than into 197 btyaccpar.skel, and so are lost whenever building from scratch 198 199 + Chris Dodd's btyacc improved handling of inherited attributes to eliminate 200 implicit empty copy rules that are not necessary, and thereby avoiding the 201 introduction of extra parsing ambiguity 202 203 + Chris Dodd's added support for @-N syntax to reference inherited position 204 information 205 206 + correction to bad interaction between %token-table and YYDEBUG, where YYDEBUG 207 was required to be defined in order to compile the generated code 208 209 + correction to yyname[] access in code included with YYDEBUG defined for 210 single character symbols not recognized (e.g., input containing '&' character 211 where grammar doesn't define that as a symbol) - map to existing 212 "illegal-symbol" entry in byname[] 213 214 + fixes to test/run_make.sh: skip test-err_* files; in the bison test phase 215 skip additional files that contain features not supported by bison and 216 inhibit new bison warning messages 217 218 + minor changes to btyaccpar.skel & yaccpar.skel so they are more similar in 219 their commonality; makes it easier to maintain the pair of files using 220 vimdiff 221 222 + changes to a couple of test cases for coverage of #3, #4 and #5 above 223 2242016-06-01 Thomas E. Dickey <dickey@invisible-island.net> 225 226 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 227 bump 228 2292016-03-24 Thomas E. Dickey <dickey@invisible-island.net> 230 231 * reader.c: unused variable 232 233 * package/pkgsrc/Makefile, package/debian/copyright: bump 234 2352016-03-24 Jung-uk.Kim 236 237 * main.c: 238 correct logic for finding output suffix in the "-o" option, which matched 239 the first occurrence of ".c" in the name in 2005-08-13 changes rather than 240 at the end of the filename (patch by Jung-uk Kim) 241 2422016-03-24 Thomas E. Dickey <dickey@invisible-island.net> 243 244 * aclocal.m4: 245 update CF_WITH_MAN2HTML to use configured shell rather than /bin/sh 246 247 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 248 bump 249 2502016-01-25 Thomas E. Dickey <dickey@invisible-island.net> 251 252 * config.guess, config.sub: 2016-01-01 253 2542015-07-10 Thomas E. Dickey <dickey@invisible-island.net> 255 256 * lr0.c: fix a duplicate-free in the leak-checking 257 258 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 259 bump 260 261 * reader.c: 262 make cache-size clearer (prompted by discussion with Pedro Giffuni, 263 Oliver Pinter) 264 265 * main.c: 266 make relationship with format/size clearer (prompted by discussion 267 with Pedro Giffuni, Oliver Pinter) 268 2692015-07-05 Thomas E. Dickey <dickey@invisible-island.net> 270 271 * configure: regen 272 273 * package/pkgsrc/Makefile, package/mingw-byacc.spec, package/debian/copyright, package/debian/changelog, package/byacc.spec, VERSION: 274 bump 275 276 * aclocal.m4: resync with my-autoconf 277 add configure option --with-man2html 278 279 * makefile.in: add configure options --with-man2html 280 281 * configure.in: add configure option --with-man2html 282 2832015-05-02 Thomas E. Dickey <dickey@invisible-island.net> 284 285 * config.guess: 2015-03-04 286 287 * config.sub: 2015-03-08 288 2892014-11-28 Thomas E. Dickey <dickey@invisible-island.net> 290 291 * lr0.c: coverity #39181: memory leak 292 293 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 294 bump 295 2962014-11-13 Jouk.Jansen 297 298 * descrip.mms: 299 I sucessfully compiled byacc on my OpenVMS systems. However, I had to update 300 the descrip.mms to include some extra c-source files and some dependenxcies 301 so that it also works when the distribution is located on an ODS5 disk. 302 303 The patched descrip.mms file can be found at: 304 http://nchrem.tnw.tudelft.nl/openvms/software2.html#BYACC 305 306 Please feel free to insert the file in your distribution. 307 308 Regards 309 Jouk. 310 3112014-10-06 Thomas E. Dickey <dickey@invisible-island.net> 312 313 * package/debian/source/format: 314 change to native format to work around regression in Debian packaging. 315 316 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 317 bump 318 319 * configure: regen 320 321 * main.c: 322 correct parameter for umask - for very old mkstemp's - and use type mode_t 323 to quiet compiler warning 324 325 * configure.in: add configure check for mode_t 326 327 * reader.c: 328 better fix for get_line, by ensuring there is enough space to null-terminate 329 its result (prompted by discussion with Craig Rodrigues). 330 3312014-10-05 Thomas E. Dickey <dickey@invisible-island.net> 332 333 * main.c: 334 make change to umask before calling mkstemp, as suggested in Coverity #56902 335 336 * reader.c: 337 adjust logic in copy_action to avoid potential null-pointer dereference 338 (Coverity #56901) 339 340 * reader.c: 341 adjust logic to avoid potential null-pointer dereference in compile_args 342 (Coverity #63407) 343 344 * reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408) 345 346 * yacc.1: document changes made with respect to %parse-param 347 348 * output.c: 349 add parameters from %parse-param to destructor. The order of the parameters 350 is intentionally inconsistent with yyparse/yyerror, for "compatibility" with 351 bison. 352 353 * test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c: 354 regen 355 356 * output.c: 357 use puts_param_types/puts_param_names to output lex_param data. 358 359 * 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: 360 regen 361 362 * btyaccpar.c: add casts, change types to fix strict compiler warnings 363 364 * 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: 365 regen 366 367 * output.c: gcc-warning 368 369 * test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c: regen 370 371 * output.c: fix limit when merging real/workaround tables 372 373 * output.c: 374 for btyacc, it is possible to have no conflicts - but in that case, the 375 "ctable" was not generated at all, while the skeleton uses the table. 376 The most straightforward (workaround) is generating a dummy table which 377 rejects any state. 378 379 * test/btyacc_destroy3.y, test/btyacc_destroy2.y, test/btyacc_destroy1.y: 380 fix "make check_make" 381 382 * 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: 383 regen 384 385 * reader.c: 386 trim blanks from interim value in copy_param() to handle special case when 387 a space precedes a comma. 388 389 * output.c: 390 use two new functions, puts_param_types and puts_param_names, to improve 391 format of the parse_param list (by trimming space after "*") as well as 392 correcting the output of the comma-separated names (only the last name 393 was output). 394 395 * test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c: 396 regen 397 398 * reader.c: 399 modify copy_param() to handle resulting comma-separated list. Before, it 400 only expected a single parameter. 401 4022014-10-04 Thomas E. Dickey <dickey@invisible-island.net> 403 404 * reader.c: split-out save_param() from copy_param() 405 406 * reader.c: trim_blanks() did not always convert spaces - fix. 407 408 * reader.c: fix some minor regressions with error-reporting 409 410 * aclocal.m4: update CF_XOPEN_SOURCE for Unixware change from lynx 411 412 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 413 bump 414 415 * reader.c: 416 modify copy_param() to accept multiple parameters, each in curly braces like 417 recent bison, as well as honoring bison's undocumented feature to accept the 418 parameters as a comma-separated list. 419 420 * 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: 421 RCS_BASE 422 4232014-10-03 Thomas E. Dickey <dickey@invisible-island.net> 424 425 * 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: 426 RCS_BASE 427 4282014-10-02 Thomas E. Dickey <dickey@invisible-island.net> 429 430 * main.c, reader.c, defs.h: 431 use calloc in get_line() when allocating line to ensure it is fully initialized, 432 fixes a later uninitialized value in copy_param() (FreeBSD #193499). 433 4342014-09-17 Thomas E. Dickey <dickey@invisible-island.net> 435 436 * closure.c, lalr.c, output.c, defs.h: 437 rephrase odd addressing to fix Coverity #48848, #38950, #38860, not actually 438 a bug. 439 4402014-09-01 Thomas E. Dickey <dickey@invisible-island.net> 441 442 * config.sub: update to 2014-07-28 443 4442014-07-27 Thomas E. Dickey <dickey@invisible-island.net> 445 446 * configure: regen 447 448 * aclocal.m4: modified to support port to Minix3.2 449 450 * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 451 bump 452 4532014-07-15 Thomas E. Dickey <dickey@invisible-island.net> 454 455 * aclocal.m4: resync with my-autoconf (no change to configure script) 456 457 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 458 bump 459 460 * test/run_test.sh: 461 make top-level "make check" work again, by adding another step to filtering 462 the test results. 463 4642014-07-14 Thomas E. Dickey <dickey@invisible-island.net> 465 466 * test/run_test.sh: changes from Garrett Cooper's patch: 467 a) ensure that the script returns an error-code if there are differences 468 b) escape "." character in left side of sed expression for $YACC 469 c) ensure that $ifBTYACC has a value 470 471 * 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: 472 regen (reminder by Garrett Cooper) 473 4742014-07-14 Garrett.Cooper 475 476 * 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: 477 regen 478 4792014-05-27 Tom.Shields 480 481 * main.c: remove obsolete -D option from usage message 482 4832014-05-27 Thomas E. Dickey <dickey@invisible-island.net> 484 485 * 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: 486 bump 487 4882014-04-22 Thomas E. Dickey <dickey@invisible-island.net> 489 490 * mstring.c: 491 use vsnprintf() to ensure that msprintf's buffer is large enough. 492 493 * main.c, defs.h: add mstring_leaks() 494 495 * configure: regen 496 497 * output.c: fix a complementary warning 498 499 * mstring.c: introduce vsnprintf 500 501 * configure.in, config_h.in: add check for vsnprintf 502 503 * output.c: quiet a type-conversion warning 504 505 * mstring.c: fix a potential memory leak on ENOMEM 506 quiet a couple of type-conversion warnings 507 508 * defs.h: add/use GCC_PRINTFLIKE for msprintf() 509 5102014-04-22 Tom.Shields 511 512 * README.BTYACC: 513 drop "NOTES-btyacc-Changes" and "NOTES-btyacc-Disposition", merging relevant 514 content into README.BTYACC 515 5162014-04-22 Thomas E. Dickey <dickey@invisible-island.net> 517 518 * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 519 bump 520 5212014-04-19 Thomas E. Dickey <dickey@invisible-island.net> 522 523 * config.sub: 2014-04-03 524 525 * config.guess: 2014-03-23 526 5272014-04-09 Rick.Spates 528 529 * main.c, defs.h: patch to allow DEBUG build with WIN32 system 530 5312014-04-09 Thomas E. Dickey <dickey@invisible-island.net> 532 533 * output.c, reader.c: gcc warnings 534 535 * reader.c: fix const-cast warnings 536 537 * 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: 538 fix a few clang --analyze warnings; one was a case where output_ctable emitted 539 an empty table (which should be an error). 540 541 * reader.c: appease clang --analyze 542 543 * defs.h: mark two functions as no-return. 544 545 * package/debian/changelog: reason for release 546 547 * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 548 bump 549 550 * makefile.in: use $LINT_OPTS from environment via configure script 551 552 * 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: 553 tweaks to make generated files from ok_syntax1.y compile with check_make rule 554 555 * 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: 556 reference output for testing 557 558 * test/run_test.sh: 559 retain the renaming done for code_debug.y so that check_make will work. 560 561 * test/yacc/rename_debug.error, test/yacc/rename_debug.h, test/yacc/rename_debug.i, test/yacc/rename_debug.output: 562 reference output for testing 563 564 * test/btyacc/ok_syntax1.error: RCS_BASE 565 566 * 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: 567 regen 568 569 * yacc.1: 570 clarify relationship of btyacc features to default configuration. 571 5722014-04-08 Thomas E. Dickey <dickey@invisible-island.net> 573 574 * 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: 575 reference output for testing 576 577 * test/ok_syntax1.y: RCS_BASE 578 579 * test/yacc/ok_syntax1.error: reference output for testing 580 581 * 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: 582 exercise -L/-B options 583 584 * 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: 585 use a better renaming of the YYPATCH definition (none of the test-cases rely 586 upon it, but redefinition in the "make check_make" rule is a problem). 587 588 * 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: 589 undid temporary reordering in reader() by Tom Shields to align with byacc outputs 590 591 * test/run_test.sh: remove a repeated test-case 592 593 * mstring.c: minor reformatting to make coverage analysis simpler 594 5952014-04-07 Thomas E. Dickey <dickey@invisible-island.net> 596 597 * test/run_test.sh: tidy 598 599 * 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: 600 reference output for testing 601 602 * test/run_test.sh: 603 add special checks for flags which depend on writable/existing files 604 605 * 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: 606 reference output for testing 607 608 * main.c: 609 change CREATE_FILE_NAMES() to use local function rather than inline code, 610 to simplify coverage analysis. 611 612 * 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: 613 reference output for testing 614 615 * test/err_syntax27.y: testcase for missing_brace() 616 617 * error.c: ifdef'd non-btyacc function 618 619 * lr0.c: ifdef'd debug-code 620 621 * yaccpar.skel: use YYINT's to replace short's as in btyaccpar.skel 622 623 * 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: 624 2010/11/26 simplification of output.c using putc_code() and putl_code() 625 omitted an adjustment of the #line value used for code-file. Fix that. 626 Also, amend 2005/05/04 change to run_test.sh to retain a dummy line for 627 YYPATCH #define's to make test-outputs easier to compare #line's (report 628 by Tom Shields) 629 6302014-04-06 Thomas E. Dickey <dickey@invisible-island.net> 631 632 * reader.c: fix for valgrind 633 (the calloc's are intentional - valgrind reported use of uninitialized memory) 634 635 * lr0.c, output.c: fix for valgrind 636 637 * 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: 638 RCS_BASE 639 640 * test/yacc/code_debug.c, test/yacc/code_debug.h: 641 exercise the -i option 642 643 * test/yacc/code_debug.i: reference output for testing 644 645 * test/run_test.sh: exercise the -i option 646 647 * test/yacc/code_debug.c: reference output for testing 648 649 * test/run_test.sh: exercise the "-o" option 650 651 * test/yacc/code_debug.error, test/yacc/code_debug.h, test/yacc/code_debug.output: 652 reference output for testing 653 654 * output.c: don't call exit() without giving a chance to cleanup. 655 656 * mstring.c: ifdef'd functions not used in byacc 657 658 * btyaccpar.c: generated from btyaccpar.skel 659 660 * yaccpar.c: generated from yaccpar.skel 661 662 * skel2c: 663 change the generated-by comment to show which version of this script (and 664 which version of the given skeleton file) were used to produce the C-file. 665 666 * configure: regen 667 668 * makefile.in: 669 add rules to generate byacc and btyacc parser skeleton files independently 670 671 * aclocal.m4: CF_PROG_AWK - add to byacc's configure script 672 CF_INTEL_COMPILER 673 cleanup the -no-gcc option which was leftover from testing - prcs does 674 not build with this option. 675 CF_MAKE_DOCS 676 protect $2 from substitution, for luit's "$(manext)" 677 CF_XOPEN_SOURCE 678 for Solaris (tested with gcc/g++ 3.4.3 on Solaris 10 and gcc/g++ 4.5.2 679 on Solaris 11), suppress the followup check for defining _XOPEN_SOURCE 680 because it is not needed, as well as because g++ 4.7.3 (no package, 681 used in Sage for Solaris 10) has some unspecified header breakage which 682 is triggered by the duplicate definition. 683 684 * configure.in: 685 modify so skeleton-source is determined by configure options rather than by 686 having developer rename yaccpar.skel.old to yaccpar.skel 687 688 * descrip.mms: rename skeleton 689 690 * vmsbuild.com: 691 fwiw, renamed the skeleton for consistency with makefile 692 693 * skel2c, skeleton.c: resync skeleton and its generating files 694 695 * yaccpar.skel: 696 renamed yaccpar.skel.old to yaccpar.skel, to allow using makefile suffix rules 697 698 * yaccpar.skel.old: resync skeleton and its generating files 699 700 * test/run_make.sh: improve cleanup after error recovery 701 702 * 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: 703 use improvement from Tom Shield's btyacc changes, getting rid of special cases for generating two yyerror calls in skeleton 704 705 * output.c: simplify output_yyerror_decl() 706 707 * 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: 708 add second "const" to string-table declarations, from Tom Shield's btyacc changes 709 710 * 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: 711 discard unnecessary call on write_code_lineno() from Tom Shield's changes 712 713 * 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: 714 use YYINT typedef from Tom Shield's btyacc changes to replace explicit "short" 715 716 * test/yacc/code_calc.code.c, test/yacc/code_error.code.c, output.c: 717 use fix from Tom Shield's btyacc changes: remove redundant extern-declaration for YYPARSE_DECL() 718 719 * 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: 720 discard unnecessary call on write_code_lineno() from Tom Shield's changes 721 722 * 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: 723 use fix from Tom Shield's btyacc changes: prefix-definitions went to the 724 output (.tab.c) file in a case where they should have gone to the code 725 (.code.c) file. Remove now-redundant call to output_prefix(). 726 727 * main.c: do the same for help-message 728 729 * main.c: use OUTPUT_SUFFIX symbol in an overlooked case 730 731 * test/run_make.sh: 732 modify to avoid use of VPATH, which has no standard implementation 733 7342014-04-05 Thomas E. Dickey <dickey@invisible-island.net> 735 736 * 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: 737 discard a change which merged CountLines() with explicit comparisons against 738 code_file because that adds extra to the #line values 739 740 * 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: 741 add Tom Shield's change to allow definition of YYSTYPE_IS_DECLARED symbol to 742 override fallback typedef for YYSTYPE when that symbol is undefined 743 744 * 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: 745 minor tweak to coding style - use parenthesis for "defined" operator's parameter 746 747 * 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: 748 regen to make YYMAXTOKEN and YYUNDFTOKEN adjacent 749 750 * 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: 751 regen after adding the YYUNDFTOKEN symbol 752 753 * output.c: 754 integrate Tom Shield's btyacc changes which introduce the YYUNDFTOKEN symbol 755 (I changed order of output to keep this adjacent to YYMAXTOKEN) 756 757 * reader.c: 758 merge all but one small change from Tom Shield's btyacc changes - that 759 changes the order of code-file in the tests. 760 761 * test/btyacc/btyacc_demo.tab.c: regen 762 763 * test/btyacc_demo.y: fix prototypes 764 7652014-04-04 Thomas E. Dickey <dickey@invisible-island.net> 766 767 * reader.c, defs.h, main.c: 768 more merging of Tom Shield's btyacc changes. In the merge, I moved the 769 symbol_pval inside the btyacc ifdef's and added some more btyacc ifdefs 770 7712014-04-03 Thomas E. Dickey <dickey@invisible-island.net> 772 773 * reader.c: 774 merge-in 3/4 of btyacc's changes, deferring those which change test-outputs. 775 Tom Shield's changes split-out copy_string() and copy_comment() functions 776 to simplify some logic, as well as adding btyacc-only chunks 777 778 * makefile.in: build mstring.o, needed for changes in reader.c 779 780 * output.c: 781 merge-in all of btyacc's changes which do not change byacc's test-output. 782 Some of the merge uses ifdef-changes which I applied to ongoing resync, 783 e.g., the introduction of PER_STATE. 784 7852014-04-02 Thomas E. Dickey <dickey@invisible-island.net> 786 787 * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c: regen 788 789 * output.c: fix typo 790 791 * output.c, reader.c: 792 merge in some chunks of reader and output files which do not affect byacc tests 793 794 * test/yacc/calc2.tab.c, test/yacc/calc3.tab.c: regen 795 796 * 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: 797 incorporate YYENOMEM and YYEOF symbols from btyacc 798 799 * output.c: merge chunk from btyacc changes for header-guards 800 801 * btyaccpar.skel: RCS_BASE 802 803 * yaccpar.skel: comment-out yysccsid[], for FreeBSD build-issues 804 remove GCC_UNUSED to reduce name-pollution as well as being simpler 805 806 * main.c: 807 move a btyacc symbol outside ifdef to work around current state of merge 808 809 * defs.h: 810 add USE_HEADER_GUARDS to defer whether to modify byacc's header-output 811 812 * test/run_make.sh: 813 do not try to compile files used for testing syntax-errors, since they are 814 likely to be incomplete 815 8162014-04-02 Tom.Shields 817 818 * main.c: changes for btyacc 819 8202014-04-01 Thomas E. Dickey <dickey@invisible-island.net> 821 822 * reader.c: 823 integrate change by Tom Shields to use bsearch rather than successive 824 calls to matchec() 825 826 * defs.h: typedef __compar_fn_t is unnecessary 827 828 * 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: 829 omit the GCC_UNUSED, as noted by Tom Shields not really essential 830 8312014-04-01 Tom.Shields 832 833 * verbose.c: changes for btyacc, ifdef'd 834 8352014-04-01 Thomas E. Dickey <dickey@invisible-island.net> 836 837 * mkpar.c: eliminate most of the ifdef's using macros 838 8392014-04-01 Tom.Shields 840 841 * mkpar.c: merge btyacc changes (ifdef'd - no change to byacc) 842 843 * error.c: 844 new functions used for reporting errors from the btyacc configuration 845 (I reordered some, and ifdef'd the new ones -TD) 846 8472014-03-31 Thomas E. Dickey <dickey@invisible-island.net> 848 849 * test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c: 850 omit the GCC_UNUSED, as noted by Tom Shields not really essential 851 852 * 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: 853 regen 854 8552014-03-29 Thomas E. Dickey <dickey@invisible-island.net> 856 857 * 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: 858 comment-out yysccsid in the banner because it produces unnecessary compiler 859 warnings. The suggested alternative (using #pragma ident) in the preceding 860 comment is also obsolete; remove that comment (request by Gleb Smirnoff). 861 862 * test/run_test.sh: 863 for yacc, ignore the inherit testcases, since they are btyacc-specific 864 8652014-03-28 Thomas E. Dickey <dickey@invisible-island.net> 866 867 * 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: 868 reference output for testing 869 870 * test/run_lint.sh, test/run_make.sh, test/run_test.sh: 871 moving #define's out of makefile broke check for yacc vs btyacc (fix) 872 8732014-03-28 Tom.Shields 874 875 * 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: 876 reference output for testing 877 878 * defs.h: new functions/variables for btyacc 879 (I reordered and ifdef'd -TD) 880 881 * test/inherit0.y, test/inherit1.y: testcase for btyacc 882 8832014-03-27 Tom.Shields 884 885 * test/err_inherit5.y, test/err_inherit4.y, test/err_inherit3.y, test/err_inherit2.y, test/err_inherit1.y, test/inherit2.y: 886 testcase for btyacc 887 8882014-03-25 Tom.Shields 889 890 * symtab.c: extra initialization needed for btyacc 891 (I ifdef'd -TD) 892 893 * yacc.1: document -L/-B features from btyacc 894 8952014-03-25 Thomas E. Dickey <dickey@invisible-island.net> 896 897 * yacc.1: typo 898 899 * configure: regen 900 901 * configure.in: 902 modified new options to act like those in my other configure-scripts, e.g., 903 showing what option is being tested, and the resulting value. Put the 904 definitions in config.h rather than in the makefile. 905 9062014-03-25 Tom.Shields 907 908 * makefile.in: add/use LINTFLAGS variable 909 make all of the objects (not just skeleton) rebuild if makefile changes 910 modify check-rule to reflect updates to run_test.sh vs subdirectory 911 912 * mstring.c: byacc-btyacc-20140323 913 9142014-03-25 Thomas E. Dickey <dickey@invisible-island.net> 915 916 * test/btyacc/RCS, test/yacc/RCS: PERMIT FILE 917 918 * config_h.in: updated with autoheader-252 919 9202014-03-25 Tom.Shields 921 922 * README.BTYACC: byacc-btyacc-20140323 923 9242014-03-24 Tom.Shields 925 926 * 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: 927 reference output for testing 928 9292014-03-24 Thomas E. Dickey <dickey@invisible-island.net> 930 931 * defs.h: fix compiler warnings due to mputc() 932 9332014-03-23 Tom.Shields 934 935 * test/btyacc_demo.y: testcase for btyacc 936 937 * test/btyacc/varsyntax_calc1.error, test/btyacc/varsyntax_calc1.output, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h: 938 reference output for testing 939 940 * test/varsyntax_calc1.y, test/btyacc_calc1.y: testcase for btyacc 941 9422014-03-23 Thomas E. Dickey <dickey@invisible-island.net> 943 944 * 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: 945 reference output for testing 946 947 * test/err_syntax26.y: testcase for missing_brace() 948 949 * 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: 950 reference output for testing 951 952 * test/err_syntax25.y: testcase for over_unionized() 953 954 * 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: 955 reference output for testing 956 957 * test/err_syntax24.y: testcase for default_action_warning() 958 9592014-03-23 Tom.Shields 960 961 * 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: 962 reference output for testing 963 9642014-03-23 Thomas E. Dickey <dickey@invisible-island.net> 965 966 * 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: 967 reference output for testing 968 969 * test/err_syntax23.y: testcase for untyped_lhs() 970 9712014-03-23 Tom.Shields 972 973 * test/run_test.sh: 974 move test-outputs into subdirectories to keep btyacc/yacc results separate 975 9762014-03-23 Thomas E. Dickey <dickey@invisible-island.net> 977 978 * 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: 979 reference output for testing 980 981 * test/err_syntax22.y: testcase for untyped_rhs() 982 983 * 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: 984 reference output for testing 985 986 * test/err_syntax20.y: testcase for undefined_symbol_warning() 987 988 * test/err_syntax21.y: testcase for unknown_rhs() 989 990 * 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: 991 reference output for testing 992 993 * test/err_syntax19.y: testcase for dollar_error() 994 995 * 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: 996 reference output for testing 997 998 * test/err_syntax18.y: testcase for dollar_warning() 999 1000 * 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: 1001 reference output for testing 1002 1003 * test/err_syntax17.y: testcase for unterminated_action() 1004 10052014-03-22 Thomas E. Dickey <dickey@invisible-island.net> 1006 1007 * 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: 1008 reference output for testing 1009 1010 * test/err_syntax16.y: testcase for terminal_lhs() 1011 1012 * 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: 1013 reference output for testing 1014 1015 * test/err_syntax15.y: testcase for no_grammar() 1016 1017 * 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: 1018 reference output for testing 1019 1020 * test/err_syntax14.y: 1021 testcase for restarted_warning() and undefined_goal() 1022 1023 * 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: 1024 reference output for testing 1025 1026 * test/err_syntax13.y: testcase for terminal_start() 1027 1028 * 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: 1029 reference output for testing 1030 1031 * test/err_syntax12.y: testcase for revalued_warning() 1032 1033 * 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: 1034 reference output for testing 1035 1036 * test/err_syntax11.y: testcase for reprec_warning() 1037 1038 * 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: 1039 reference output for testing 1040 1041 * test/err_syntax10.y: testcase for retyped_warning() 1042 10432014-03-21 Thomas E. Dickey <dickey@invisible-island.net> 1044 1045 * 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: 1046 reference output for testing 1047 1048 * test/err_syntax9.y: testcase for tokenized_start() 1049 1050 * 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: 1051 reference output for testing 1052 1053 * test/err_syntax8a.y, test/err_syntax8.y: testcase for used_reserved() 1054 1055 * 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: 1056 reference output for testing 1057 1058 * test/err_syntax7b.y, test/err_syntax7a.y, test/err_syntax7.y: 1059 testcase for illegal_character() 1060 1061 * 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: 1062 reference output for testing 1063 1064 * test/err_syntax6.y: testcase for illegal_tag() 1065 1066 * 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: 1067 reference output for testing 1068 1069 * test/err_syntax5.y: testcase for unterminated_union() 1070 1071 * 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: 1072 reference output for testing 1073 1074 * test/err_syntax4.y: testcase for unterminated_text() 1075 1076 * 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: 1077 reference output for testing 1078 1079 * test/err_syntax3.y: testcase for unterminated_string() 1080 1081 * 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: 1082 reference output for testing 1083 1084 * test/err_syntax2.y: testcase for unterminated_comment() 1085 1086 * test/err_syntax1.error, test/yacc/err_syntax1.error: 1087 reference output for testing 1088 1089 * test/err_syntax1.y: 1090 test-case with syntax error (and nonprinting character) 1091 1092 * 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: 1093 reference output for testing 1094 1095 * test/run_test.sh: 1096 save stderr to reference files, to capture shift/reduce messages as well 1097 as syntax-error messages 1098 1099 * 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: 1100 reference output for testing 1101 1102 * test/run_test.sh: generate a ".dot" file for the grammar file 1103 1104 * test/grammar.dot: RCS_BASE 1105 1106 * test/yacc/grammar.dot: reference output for testing 1107 11082014-03-19 Tom.Shields 1109 1110 * output.c: rename MAXSHORT to MAXYYINT 1111 11122014-03-18 Tom.Shields 1113 1114 * yaccpar.skel: skeleton with btyacc additions 1115 1116 * NOTES-btyacc-Changes: byacc-btyacc-20140323 1117 1118 * test/btyacc/btyacc_calc1.output, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h: 1119 reference output for testing 1120 1121 * test/run_make.sh: 1122 move test-outputs into subdirectories to keep btyacc/yacc results separate 1123 1124 * 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: 1125 reference output for testing 1126 1127 * defs.h: 1128 several changes to help decouple the use of 'short' as the type of value 1129 used in yacc parsers. 1130 1131 * NOTES-btyacc-Disposition: byacc-btyacc-20140323 1132 11332014-03-17 Tom.Shields 1134 1135 * skel2c, yaccpar.skel, yaccpar.skel.old: RCS_BASE 1136 1137 * test/run_lint.sh: 1138 move test-outputs into subdirectories to keep btyacc/yacc results separate 1139 1140 * configure.in: add --with-max-table-size and --enable-btyacc options 1141 11422014-03-16 Tom.Shields 1143 1144 * main.c: use Value_t rather than short 1145 11462014-03-11 Tom.Shields 1147 1148 * test/empty.y: testcase for btyacc 1149 11502014-03-10 Tom.Shields 1151 1152 * test/calc3.y, test/calc2.y: fix unused-variable warning 1153 11542014-02-18 Tom.Shields 1155 1156 * lr0.c, graph.c: use Value_t rather than short 1157 1158 * closure.c: use Value_t rather than short 1159 ifdef'd forward-reference prototypes to match ifdef'ing of the actual functions 1160 1161 * lalr.c: rename MAXSHORT to MAXYYINT 1162 11632014-01-01 Thomas E. Dickey <dickey@invisible-island.net> 1164 1165 * yacc.1: document %token-table, improve presentation of double-quotes 1166 1167 * VERSION, package/byacc.spec, package/debian/changelog: bump 1168 1169 * 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: 1170 reference output for testing 1171 1172 * 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: 1173 regen 1174 1175 * output.c, skeleton.c: 1176 amend the last change so that yytname is #define'd as needed rather than 1177 permanent - to avoid breaking cproto for instance. 1178 11792014-01-01 Christos.Zoulas 1180 1181 * output.c, defs.h, main.c, reader.c, skeleton.c: 1182 changes to build ntpd using byacc: 1183 - rename yyname[] to yytname[] 1184 - add YYTRANSLATE() macro 1185 - recognize bison's %token-table declaration 1186 11872014-01-01 Thomas E. Dickey <dickey@invisible-island.net> 1188 1189 * configure: regen 1190 1191 * yacc.1: s/EE/XE/ to work around groff bug on Debian 6 1192 1193 * makefile.in: use CF_MAKE_DOCS 1194 1195 * aclocal.m4: add CF_MAKE_DOCS 1196 1197 * configure.in: use CF_MAKE_DOCS 1198 11992013-12-26 Thomas E. Dickey <dickey@invisible-island.net> 1200 1201 * config.guess: 2013-11-29 1202 12032013-11-19 Thomas E. Dickey <dickey@invisible-island.net> 1204 1205 * aclocal.m4: resync with my-autoconf (fixes for clang and mingw) 1206 12072013-10-25 Thomas E. Dickey <dickey@invisible-island.net> 1208 1209 * config.sub: 2013-10-01 1210 12112013-09-25 Thomas E. Dickey <dickey@invisible-island.net> 1212 1213 * reader.c: fix two loop-limits found by clang 3.3 --analyze 1214 1215 * configure: regen 1216 1217 * aclocal.m4: 1218 tweaks to CF_MIXEDCASE_FILENAMES and CF_XOPEN_SOURCE for msys from ncurses 1219 1220 * package/mingw-byacc.spec: RCS_BASE 1221 1222 * 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: 1223 regen 1224 1225 * skeleton.c: 1226 Increase default stack-size to match FreeBSD version noted as from 1227 "BSD 4.4 Lite Usr.bin Sources". See 1228 1229 http://svnweb.freebsd.org/base/vendor/CSRG/dist/usr.bin/yacc/ 1230 http://svnweb.freebsd.org/base/head/usr.bin/yacc/ 1231 http://svnweb.freebsd.org/base/vendor/byacc/ 1232 1233 The original 1.9 sources (on which I based development) used 500 for 1234 stacksize; the BSD Lite sources (a year or two later) used 10000. 1235 1236 This is a change to default values; the YYMAXDEPTH and YYSTACKSIZE 1237 symbols have "always" been overridable by applications, but rarely 1238 needed to do this. RedHat began using the FreeBSD source in 2000, 1239 and switched to this source in 2007 using the 20050813 snapshot. 1240 1241 RedHat #743343 misattributed the change in default stacksize to 1242 a regression in byacc, but did not report the issue upstream. 1243 1244 * package/debian/changelog, VERSION, package/byacc.spec: bump 1245 12462013-09-07 Thomas E. Dickey <dickey@invisible-island.net> 1247 1248 * config.sub: update to 2013-09-15 1249 1250 * config.guess: update to 2013-06-10 1251 12522013-03-04 Thomas E. Dickey <dickey@invisible-island.net> 1253 1254 * package/debian/changelog, VERSION, package/byacc.spec: bump 1255 1256 * aclocal.m4: 1257 adapt tweak from Dave Becket to work around long-ago breakage in "new" autoconf. 1258 1259 * output.c: 1260 fix bogus #include if "-i" is given but not "-d" (report by Richard Mitton). 1261 also while testing that, found a case where the union_file is unused; added 1262 a check for address that. 1263 1264 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: regen 1265 1266 * test/ftp.y: fix most compiler warnings for "make check_make" 1267 1268 * test/calc1.tab.c: regen 1269 1270 * test/calc1.y: fix most compiler warnings for "make check_make" 1271 1272 * 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: 1273 regen 1274 1275 * skeleton.c: quiet a gcc conversion-warning in yygrowstack() 1276 1277 * configure: regen 1278 1279 * aclocal.m4: 1280 another fix for CF_GCC_VERSION to handle Debian's modification of gcc message. 1281 12822013-02-10 Thomas E. Dickey <dickey@invisible-island.net> 1283 1284 * config.sub, config.guess: update to 2013-02-04 1285 12862012-10-03 Thomas E. Dickey <dickey@invisible-island.net> 1287 1288 * package/debian/changelog, package/byacc.spec, VERSION: bump 1289 1290 * configure: regen 1291 1292 * configure.in: moved AC_PROG_CC_STDC call into CF_PROG_CC 1293 1294 * aclocal.m4: 1295 moved AC_PROG_CC_STDC call into CF_PROG_CC and (for other uses than byacc) 1296 the CF_PROG_CC macro provides the CF_ANSI_CC_REQD for the 2.13 flavor. 1297 1298 * aclocal.m4, configure.in: 1299 Arian's change dropped my check for misused $CC variable - restore that with 1300 alternate macro CF_PROG_CC. 1301 13022012-10-03 Adrian.Bunk 1303 1304 * aclocal.m4: 1305 suggested patch: drop CF_ANSI_CC_REQD, CF_ANSI_CC_CHECK, CF_PROG_EXT since 1306 they are not needed. 1307 13082012-10-03 Thomas E. Dickey <dickey@invisible-island.net> 1309 1310 * aclocal.m4: 1311 split-out CF_CC_ENV_FLAGS from CF_ANSI_CC_CHECK to avoid losing it in 1312 Adrian's suggested changes. 1313 1314 * aclocal.m4: 1315 CF_CLANG_COMPILER - check if the given compiler is really clang. 1316 1317 * aclocal.m4: 1318 add check for clang to CF_GCC_WARNINGS. modify CF_GCC_WARNINGS to work around 1319 old gcc warning: ncurses change to (try to) use gnatgcc exposed gnatgcc 2.8.1 1320 on my Sarge system (versus 3.3.5 for the normal gcc). The 2.8.1's 1321 pointer-arithmetic checks fell afoul of gcc's misuse of void* in string.h; work 1322 around by excluding that check for pre-3.x compilers. 1323 1324 * aclocal.m4: 1325 modify CF_GCC_ATTRIBUTES so that autoheader is able to see the definitions 1326 provided by this macro. use AC_DEFINE_UNQUOTED() in CF_GCC_ATTRIBUTES rather 1327 than appending to confdefs.h, since long-ago concern about the ability to 1328 pass-through parameterized macros appears to be not a problem, testing with 1329 2.13 and 2.52 1330 13312012-10-03 Adrian.Bunk 1332 1333 * aclocal.m4: 1334 add parameter to AC_DEFINE_UNQUOTED() to allow it to be recognized by 1335 autoheader, updated macros: 1336 CF_CHECK_CACHE 1337 CF_DISABLE_LEAKS 1338 CF_MKSTEMP 1339 CF_MIXEDCASE_FILENAMES 1340 CF_NO_LEAKS_OPTION 1341 13422012-10-03 Thomas E. Dickey <dickey@invisible-island.net> 1343 1344 * aclocal.m4: 1345 move existence-check for mkstemp out of the AC_TRY_RUN, to help with 1346 cross-compiles 1347 13482012-10-02 Thomas E. Dickey <dickey@invisible-island.net> 1349 1350 * config_h.in: 1351 Adrian Bunk request - replace this with the output from autoheader 1352 13532012-09-29 Adrian.Bunk 1354 1355 * configure.in: 1356 suggested change: replace CF_ANSI_CC_REQD by AC_PROG_CC_STDC (since no 1357 check is needed anymore for standard C compilers), drop AC_CONST (same 1358 reason), modify AC_OUTPUT to rely upon template generated by autoheader. 1359 bump requirement to autoconf 2.52.20011201 and drop check for CF_PROG_EXT 1360 as being obsolete with autoconf 2.52x 1361 1362 * configure.in, main.c: drop check for atexit, because it is standard C 1363 1364 * makefile.in: add assignment for datarootdir variable. 1365 13662012-05-26 Thomas E. Dickey <dickey@invisible-island.net> 1367 1368 * package/debian/changelog, package/byacc.spec, VERSION: bump 1369 1370 * reader.c: 1371 some versions of gcc may warn that bp is not set in mark_symbol, e.g., 1372 if GCC_NORETURN is not handled; appease the compiler. 1373 1374 * reader.c: 1375 use the declared types Assoc_t and Value_t in some places where compiler only 1376 cared about char versus short. 1377 1378 * reader.c: 1379 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1380 (no object change) 1381 1382 * defs.h: 1383 add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD 1384 packagers to build without configure script. Also remove duplicate declaration 1385 of pure_parser variable (prompted by patch by Baptiste Daroussin). 1386 1387 Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and 1388 REALLOC macros. 1389 1390 * symtab.c: 1391 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1392 (no object change) 1393 13942012-05-25 Thomas E. Dickey <dickey@invisible-island.net> 1395 1396 * output.c, main.c, verbose.c, mkpar.c, lr0.c: 1397 use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1398 (no object change) 1399 14002012-01-15 Thomas E. Dickey <dickey@invisible-island.net> 1401 1402 * package/debian/copyright: bump 1403 1404 * test/run_make.sh: workaround for breakage due to GNU make 3.82 1405 1406 * test/run_make.sh: 1407 tested with Solaris 10 (bison 1.875) and added scripting to exercise 1408 the /usr/ccs/bin/yacc executable 1409 1410 * test/grammar.tab.c: regen 1411 1412 * test/grammar.y: modify to also build with Solaris yacc 1413 1414 * VERSION, package/debian/changelog, package/byacc.spec: bump 1415 1416 * test/yacc/calc1.output: reference output for testing 1417 1418 * test/calc1.output, test/calc1.tab.c: regen 1419 1420 * test/calc1.y: 1421 undo the change made to appease bison, since it was only a warning. 1422 1423 * test/pure_calc.tab.c, test/pure_error.tab.c: regen 1424 1425 * test/run_make.sh: another fix for running from top-level directory 1426 1427 * makefile.in: 1428 ensure that check_make rule depends on having byacc built. 1429 1430 * test/run_make.sh: fixes for building from parent directory 1431 1432 * test/pure_error.y, test/pure_calc.y: bison-fixes 1433 1434 * 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: 1435 regen 1436 1437 * test/code_debug.y: RCS_BASE 1438 1439 * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y: 1440 byacc already declares yyerror 1441 1442 * test/pure_error.y, test/pure_calc.y: 1443 modified to help make the files build with bison 1444 1445 * test/run_make.sh: 1446 supply a "%pure-parser" directive when bison needs it. 1447 1448 * test/code_calc.code.c: regen 1449 1450 * test/code_calc.y: modified to help make the files build with bison 1451 1452 * yacc.1: 1453 in testing, found that %expect did not work as documented for bison. 1454 do not recommend it for portable code. 1455 1456 * test/run_make.sh: workaround breakage in bison's %expect directive 1457 1458 * test/grammar.y: modified to help make the files build with bison 1459 1460 * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen 1461 1462 * test/calc1.y: quiet a spurious warning from bison 2.3 1463 1464 * test/calc1.tab.c: regen 1465 1466 * test/calc1.y: modified to help make the files build with bison 1467 1468 * yacc.1: comment on "-y" and "-P" options. 1469 1470 * yacc.1: comment on portability 1471 1472 * 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: 1473 regen 1474 1475 * test/ftp.y: modified to help make the files build with bison 1476 (bison's "-y" option is of no use in providing "yacc" compatibility) 1477 1478 * test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 1479 regen 1480 1481 * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y: 1482 modified to help make the files build with bison 1483 1484 * test/calc.tab.c: regen 1485 1486 * test/calc.y: modified to help make the files build with bison 1487 1488 * test/error.tab.c: regen 1489 1490 * test/error.y: modified to help make the files build with bison 1491 1492 * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen 1493 1494 * test/run_make.sh: 1495 check for older bisons which (2.3 for instance) do not support pure parsers 1496 1497 * test/code_error.y, test/calc3.y, test/calc2.y: 1498 modified to help make the files build with bison 1499 1500 * test/run_test.sh: use $opt2 in filenames of the generated files 1501 1502 * 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: 1503 regen 1504 15052012-01-14 Thomas E. Dickey <dickey@invisible-island.net> 1506 1507 * 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: 1508 regen 1509 1510 * output.c: Several changes: 1511 a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex. 1512 b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL, 1513 using YYLEX_PARAM_TYPE and YYLEX_PARAM. 1514 c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL, 1515 to help with redefinitions. 1516 1517 * test/pure_calc.tab.c: 1518 modified to help make the files build with bison 1519 1520 * test/run_make.sh: 1521 start work on followup, to check if the generated files build with bison. 1522 1523 * test/pure_calc.y, test/pure_error.tab.c: 1524 modified to help make the files build with bison 1525 1526 * test/calc3.tab.c: regen 1527 1528 * 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: 1529 RCS_BASE 1530 1531 * 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: 1532 reference output for testing 1533 1534 * test/run_test.sh: generate/test with "-s" option applied. 1535 15362012-01-13 Thomas E. Dickey <dickey@invisible-island.net> 1537 1538 * package/debian/changelog, package/byacc.spec, VERSION: bump 1539 1540 * yacc.1: improve documentation of -s option 1541 1542 * yacc.1: note that yacc ignores -y 1543 1544 * main.c: add -s option to usage message. 1545 1546 * test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h: 1547 RCS_BASE 1548 1549 * test/yacc/quote_calc3.output, test/yacc/quote_calc4.output, test/yacc/quote_calc4.tab.h: 1550 reference output for testing 1551 1552 * test/quote_calc3.y, test/quote_calc.tab.h: RCS_BASE 1553 1554 * test/yacc/quote_calc.tab.h: reference output for testing 1555 1556 * 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: 1557 RCS_BASE 1558 1559 * test/yacc/quote_calc.output, test/yacc/quote_calc2.output, test/yacc/quote_calc2.tab.h, test/yacc/quote_calc3.tab.h: 1560 reference output for testing 1561 1562 * test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y: RCS_BASE 1563 1564 * configure: regen 1565 1566 * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE 1567 15682011-12-19 Thomas E. Dickey <dickey@invisible-island.net> 1569 1570 * package/debian/changelog, package/byacc.spec, VERSION: bump 1571 1572 * yacc.1, output.c, main.c, defs.h: 1573 add "-s" option to suppress generating #define's based on string contents 1574 in a %token statement. For instance 1575 %token EQLS "Equals" 1576 would generate 1577 #define EQLS 256 1578 #define Equals 257 1579 Simply suppressing the second #define makes the behavior closer to yacc. 1580 (report by Paulo Andrade). 1581 15822011-09-08 Thomas E. Dickey <dickey@invisible-island.net> 1583 1584 * package/debian/changelog, package/byacc.spec, VERSION: bump 1585 1586 * output.c: 1587 fix some more interaction between -i and -d flags to ensure YYERRCODE 1588 and YYSTYPE are declared, tested with cproto. 1589 15902011-09-07 Thomas E. Dickey <dickey@invisible-island.net> 1591 1592 * yacc.1: document "-i" option. 1593 1594 * package/debian/changelog, package/byacc.spec, VERSION: bump 1595 1596 * output.c: fix an interaction between -i and -d 1597 1598 * 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: 1599 regen - changes for "-i" option move the global/impure variables near the 1600 macros that may add a prefix, etc. 1601 1602 * skeleton.c, output.c, defs.h: changes to support "-i" option. 1603 16042011-09-06 Thomas E. Dickey <dickey@invisible-island.net> 1605 1606 * reader.c: pass explicit file-pointer to write_section() 1607 1608 * main.c: 1609 add "-i" option, to generate interface-file (suggested by Denis M. Wilson) 1610 16112011-09-05 Thomas E. Dickey <dickey@invisible-island.net> 1612 1613 * configure: regen 1614 1615 * aclocal.m4: 1616 resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC) 1617 and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks) 1618 1619 * defs.h, error.c, reader.c: 1620 add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson) 1621 16222011-04-01 Thomas E. Dickey <dickey@invisible-island.net> 1623 1624 * config.sub: update to 2011-04-01 1625 16262011-02-02 Thomas E. Dickey <dickey@invisible-island.net> 1627 1628 * config.guess: update to 2011-01-01 1629 16302010-12-29 Thomas E. Dickey <dickey@invisible-island.net> 1631 1632 * defs.h, skeleton.c: 1633 add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas) 1634 1635 * defs.h: 1636 mark all of the error-functions as non-returning (report by Christos Zoulas) 1637 1638 * 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: 1639 regen 1640 1641 * skeleton.c: 1642 use only realloc() rather than realloc+malloc, agree that systems needing this 1643 are very rare (prompted by NetBSD change). 1644 1645 * test/ftp.tab.c: regen 1646 16472010-12-29 Christos.Zoulas 1648 1649 * test/ftp.y: 1650 improve example, which was stuck in 19XX and assumed file sizes were longs. 1651 16522010-12-29 Thomas E. Dickey <dickey@invisible-island.net> 1653 1654 * 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: 1655 regen 1656 1657 * 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: 1658 use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror 1659 1660 * skeleton.c: 1661 remove explicit prototype for yylex() via YYLEX_DECL() macro, since that 1662 would prevent declaring yylex() static (request by Christos Zoulas). 1663 1664 * test/calc2.tab.c, test/calc3.tab.c: regen 1665 16662010-12-29 Christos.Zoulas 1667 1668 * output.c: correct definition for YYERROR_DECL() 1669 16702010-12-29 Thomas E. Dickey <dickey@invisible-island.net> 1671 1672 * package/debian/changelog, package/byacc.spec, VERSION: bump 1673 16742010-12-26 Thomas E. Dickey <dickey@invisible-island.net> 1675 1676 * defs.h, main.c: 1677 change return-type of allocate() to avoid warnings of alignment problems 1678 1679 * main.c: Solaris declares chmod() in <sys/stat.h> 1680 1681 * configure: regen 1682 1683 * main.c: ifdef'd use of fcntl.h 1684 1685 * configure.in: add configure checks for fcntl.h, atexit and mkstemp 1686 1687 * main.c: for cases where mkstemp() is not available, use tempnam/open 1688 1689 * aclocal.m4: add CF_MKSTEMP 1690 1691 * aclocal.m4: 1692 improve quoting, deprecate ${name-value} in favor of standard ${name:-value} 1693 16942010-12-25 Thomas E. Dickey <dickey@invisible-island.net> 1695 1696 * main.c: 1697 start revising use of tmpfile(), to make this work with MinGW. Start by 1698 implementing a mkstemp() alternative - noting that mkstemp() also is broken 1699 for MinGW. 1700 1701 * package/debian/changelog, package/byacc.spec, VERSION: bump 1702 17032010-11-27 Thomas E. Dickey <dickey@invisible-island.net> 1704 1705 * package/byacc.spec, package/debian/changelog, VERSION: bump 1706 1707 * test/calc2.tab.c, test/calc3.tab.c: regen 1708 1709 * output.c: 1710 corrected use of %parse-param value in yyerror(); it doesn't use &yylval 1711 (report by Clifford Yapp) 1712 17132010-11-26 Thomas E. Dickey <dickey@invisible-island.net> 1714 1715 * skeleton.c: typo 1716 1717 * output.c: 1718 correct line-numbering when "-r" option is used; the 'outline' variable 1719 should only be incremented when writing to the code-file. 1720 1721 * test/code_calc.code.c, test/code_error.code.c: regen 1722 1723 * yacc.1: bump date 1724 1725 * yacc.1: comment on -b option vs -r 1726 1727 * 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: 1728 regen 1729 1730 * output.c: 1731 improve on YYERROR_DECL(), adding dummy params which can be used for the 1732 actual function declaration. Also add YYERROR_CALL(). The two macros 1733 simplify maintaining sets of grammars which may/may not be pure. 1734 1735 * 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: 1736 regen 1737 1738 * output.c: generate yyerror() calls in output.c 1739 This is for compatibility with bison, which passes the yylval to yyerror 1740 when the %parse-param feature is used. 1741 1742 * skeleton.c, defs.h: generate yyerror() calls in output.c 1743 1744 * output.c: simplified a little, using putc_code() and putl_code() 1745 1746 * test/yacc/calc1.tab.h: reference output for testing 1747 1748 * test/calc1.tab.h: regen 1749 1750 * reader.c: 1751 improve ifdef for YYSTYPE union declaration (report by Clifford Yapp) 1752 1753 * reader.c: 1754 accept underscore as a replacement for dash in command names, e.g., 1755 "%pure_parser" vs "%pure-parser". 1756 1757 * test/calc1.tab.c: regen 1758 1759 * output.c, reader.c: 1760 also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp) 1761 1762 * package/debian/changelog, package/byacc.spec, VERSION: bump 1763 17642010-11-24 Thomas E. Dickey <dickey@invisible-island.net> 1765 1766 * main.c, defs.h, symtab.c, error.c: reduce global variables 1767 1768 * package/debian/changelog, package/byacc.spec, VERSION: bump 1769 1770 * reader.c: 1771 amend fix for Redhat #112617 to still call default_action_warning() for 1772 empty rules (report by Bruce Cran). 1773 17742010-11-22 Thomas E. Dickey <dickey@invisible-island.net> 1775 1776 * output.c: 1777 add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp). 1778 1779 * test/calc1.tab.c: regen 1780 1781 * test/calc1.y: cleanup compiler warnings 1782 1783 * test/grammar.y: add "%expect" 1784 1785 * test/calc1.tab.h: regen 1786 1787 * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE 1788 1789 * test/calc2.tab.c, test/calc3.tab.c: regen 1790 1791 * test/calc1.y: 1792 advanced example from Steve Johnson's paper, uses unions 1793 1794 * test/calc3.y, test/calc2.y: init 'base', so examples can run 1795 1796 * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++ 1797 1798 * output.c: compensate for fix in reader.c 1799 1800 * reader.c: 1801 add/use putc_both() and puts_both(), incidentally fixing a place where 1802 a union copied to the union_file may be missing the end of the last line. 1803 1804 * package/debian/changelog, package/byacc.spec, VERSION: bump 1805 18062010-09-28 Thomas E. Dickey <dickey@invisible-island.net> 1807 1808 * config.guess: update to 2010-09-24 1809 18102010-09-10 Thomas E. Dickey <dickey@invisible-island.net> 1811 1812 * config.sub: update to 2010-09-11 1813 18142010-06-10 Thomas E. Dickey <dickey@invisible-island.net> 1815 1816 * yacc.1, package/debian/changelog, package/byacc.spec, VERSION: 1817 bump to 2010/06/10 1818 18192010-06-09 Thomas E. Dickey <dickey@invisible-island.net> 1820 1821 * reader.c: free declarations in leak-testing code. 1822 1823 * main.c: close code_file if -r option used, for leak-testing 1824 1825 * defs.h, reader.c: 1826 improve %lex-param / %parse-param implementation by allowing for arrays to 1827 be passed as parameters, e.g., "int regs[26]". 1828 1829 * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h: 1830 RCS_BASE 1831 1832 * test/yacc/calc3.output, test/yacc/calc3.tab.h: 1833 reference output for testing 1834 1835 * test/calc2.tab.c, test/calc2.y, test/calc2.tab.h: RCS_BASE 1836 1837 * test/yacc/calc2.tab.h: reference output for testing 1838 1839 * test/calc2.output: RCS_BASE 1840 1841 * test/yacc/calc2.output: reference output for testing 1842 1843 * output.c: 1844 improve %lex-param / %parse-param implementation by allowing for arrays to 1845 be passed as parameters, e.g., "int regs[26]". 1846 1847 * test/calc.tab.c, test/calc.y: 1848 test-cases and reference files for %lex-param / %parse-param 1849 1850 * makefile.in: add docs-rule, for html/pdf/txt form of manpage 1851 1852 * configure: regen 1853 1854 * aclocal.m4: add CF_XOPEN_SOURCE, etc. 1855 1856 * configure.in: 1857 use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89 1858 1859 * 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: 1860 fix warnings from clang --analyze 1861 18622010-06-08 Thomas E. Dickey <dickey@invisible-island.net> 1863 1864 * output.c: fix to build with c89, etc. 1865 1866 * reader.c: gcc warning 1867 1868 * 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: 1869 modified test-cases to allow them to compile, to validate pure-parser changes. 1870 updated reference files to match. 1871 1872 * output.c: 1873 move call for output_stype() earlier since it is used in pure-parser declarations 1874 1875 * test/grammar.tab.c, test/grammar.y: 1876 modified test-cases to allow them to compile, to validate pure-parser changes. 1877 updated reference files to match. 1878 1879 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1880 regen 1881 1882 * yacc.1: document %lex-param and %parse-param 1883 1884 * test/run_lint.sh, test/run_make.sh: RCS_BASE 1885 1886 * test/run_test.sh: 1887 further modify to allow build-directory to be in a different location by 1888 passing this directory's location as a parameter to the script. 1889 1890 * makefile.in: 1891 add check_make and check_lint rules to help validate the generated files 1892 in the test-directory 1893 18942010-06-07 Thomas E. Dickey <dickey@invisible-island.net> 1895 1896 * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE 1897 1898 * test/run_test.sh: 1899 provide for testing -r and -P options by checking if the ".y" filename 1900 begins with "code_" or "pure_", respectively. 1901 1902 * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h: 1903 RCS_BASE 1904 1905 * test/yacc/code_error.tab.h: reference output for testing 1906 1907 * test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h: 1908 RCS_BASE 1909 1910 * test/yacc/code_calc.tab.h: reference output for testing 1911 1912 * test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h: 1913 RCS_BASE 1914 1915 * test/yacc/pure_calc.output, test/yacc/pure_calc.tab.h, test/yacc/pure_error.output, test/yacc/pure_error.tab.h: 1916 reference output for testing 1917 1918 * test/code_calc.output, test/code_error.output: RCS_BASE 1919 1920 * test/yacc/code_calc.output, test/yacc/code_error.output: 1921 reference output for testing 1922 1923 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen 1924 1925 * test/run_test.sh: 1926 changes to support running "make check" in a separate build-tree 1927 1928 * main.c: add "-P" to usage message 1929 1930 * reader.c: use UCH() macro to hide casts. 1931 19322010-06-07 Andres.Mejia 1933 1934 * main.c, output.c, reader.c, defs.h, skeleton.c: 1935 Fix the output order of the generated parse code file. This allows for 1936 the use of YYPARSE_PARAM, by having the output that checks for 1937 YYPARSE_PARAM to be defined come after the C code block in the 1938 definitions section of a yacc file. 1939 1940 Implement support for YYLEX_PARAM, similar to bison. This is useful for 1941 support for building reentrant lexers with flex. 1942 1943 Fix a compatibility issue with bison's pure-parser option. Bison 1944 defines yylex as sending at least one parameter, &yylval, as the first 1945 parameter and doesn't seem to have an easy way to remove that parameter. 1946 This on the other hand is rather convenient to support saving to yylval 1947 from flex when building reentrant lexers and parsers. 1948 1949 Add support for the %parse-param and %lex-param directives used in 1950 bison. This change bears some similarity to NetBSD's changes to byacc 1951 at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html 1952 1953 Bison allows for POSIX yacc emulation via a yacc directive in the yacc 1954 file, and also via a command line switch. Implement this feature as a 1955 no-op for byacc, since byacc is designed to be POSIX yacc compatible 1956 anyway. This allows for better compatibility with yacc sources written 1957 for bison. 1958 19592010-06-07 Thomas E. Dickey <dickey@invisible-island.net> 1960 1961 * VERSION: bump to 2010/06/07 1962 19632010-06-06 Thomas E. Dickey <dickey@invisible-island.net> 1964 1965 * test/calc.tab.c, configure: regen 1966 1967 * skeleton.c: 1968 move #include's down into the generated code, to allow user-defined code 1969 to override feature definitions, particularly with stdlib.h (request by 1970 Marcus Kool). 1971 1972 * lr0.c, error.c, reader.c, defs.h: 1973 strict gcc 3.4.6 warnings on 64-bit platform 1974 1975 * aclocal.m4, configure.in: add check for lint 1976 1977 * makefile.in: add lint rule 1978 1979 * defs.h, closure.c, lr0.c, warshall.c, main.c: 1980 fix gcc warnings, mostly for 64-bit platform 1981 1982 * aclocal.m4: 1983 add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc 1984 1985 * makefile.in: add etags/TAGS if available 1986 1987 * configure.in: add configure check for actual ctags and etags programs 1988 1989 * package/debian/copyright: add copyright notices for non-PD files 1990 1991 * package/debian/changelog: 1992 incorporated scripts in upstream to use for test-builds 1993 1994 * makefile.in: drop mkdirs.sh, just use "mkdir -p" 1995 1996 * AUTHORS: nicknames for some contributors (see CHANGES for details) 1997 1998 * package/byacc.spec: RPM file for byacc 1999 2000 * VERSION: bump to 2010/06/06 2001 2002 * aclocal.m4: add copyright notice, from "my-autoconf" macros 2003 http://invisible-island.net/autoconf/autoconf.html 2004 2005 * package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS: 2006 PERMIT FILE 2007 2008 * aclocal.m4: resync with my-autoconf. summary of changes: 2009 a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter 2010 b) CF_DISABLE_ECHO, change indent-convention for substituted makefile 2011 c) CF_GCC_VERSION, ignore stderr 2012 d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc 2013 20142010-04-20 Thomas E. Dickey <dickey@invisible-island.net> 2015 2016 * 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: 2017 scripts from Debian package 2018 20192010-02-16 Thomas E. Dickey <dickey@invisible-island.net> 2020 2021 * yacc.1: document -P and bison-extensions 2022 2023 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 2024 regen 2025 2026 * output.c: implement %pure-parser 2027 2028 * skeleton.c: 2029 implement %pure-parser, like bison. To help with this, changed the stack 2030 variables, putting them into a struct. 2031 2032 * reader.c: implement %pure-parser 2033 2034 * defs.h: modified skeleton to support %pure-parser feature 2035 2036 * main.c: add -P option to set %pure-parser 2037 2038 * output.c: 2039 make -r and -p options work together. The -r option splits the generated 2040 parser into code/table files; for this case we cannot use static data. 2041 Also, we have to repeat the #define's used for prefix (-p) as well as the 2042 redeclaration of yyparse(). Finally, allow any of the prefixed names to 2043 be overridden, e.g., by passing a -D option to the compiler. Make that 2044 a little more readable by putting a blank line before each chunk. 2045 2046 * defs.h: add definitions for %pure-parser 2047 2048 * skeleton.c: 2049 put blank line before/after the redeclaration of yyparse() 2050 2051 * output.c: allow for other program redefining yylex() 2052 2053 * skeleton.c: 2054 split-off xdecls[] array, to move declaration of yyparse() after #define's 2055 2056 * defs.h: split-out xdecls[] 2057 2058 * VERSION: bump 2059 2060 * configure: regen 2061 2062 * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS 2063 2064 * aclocal.m4: 2065 resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes. 2066 20672010-02-16 Ostap.Cherkashi 2068 2069 * skeleton.c: fix a memory leak in the generated skeleton 2070 20712010-01-01 Thomas E. Dickey <dickey@invisible-island.net> 2072 2073 * package/debian/source/format: scripts from Debian package 2074 20752009-12-31 Thomas E. Dickey <dickey@invisible-island.net> 2076 2077 * config.guess: update to 2009-12-30 2078 2079 * config.sub: update to 2009-12-31 2080 20812009-10-27 Thomas E. Dickey <dickey@invisible-island.net> 2082 2083 * VERSION: 20091027 2084 2085 * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c: 2086 strict compiler warnings 2087 20882009-10-26 Thomas E. Dickey <dickey@invisible-island.net> 2089 2090 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 2091 resync 2092 2093 * main.c, defs.h: introduce some typedefs for portability, etc. 2094 2095 * makefile.in: 2096 don't remove "*.log" in mostlyclean rule since it interferes with regression 2097 script. 2098 2099 * configure: regen 2100 2101 * aclocal.m4: resync with my-autoconf 2102 21032009-08-25 Thomas E. Dickey <dickey@invisible-island.net> 2104 2105 * config.guess, config.sub: update to 2009-08-19 2106 21072009-02-21 Thomas E. Dickey <dickey@invisible-island.net> 2108 2109 * VERSION: bump 2110 2111 * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25 2112 21132008-12-26 Thomas E. Dickey <dickey@invisible-island.net> 2114 2115 * configure: regen with autoconf-2.52 (patched) 2116 21172008-12-25 Thomas E. Dickey <dickey@invisible-island.net> 2118 2119 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 2120 regenerated 2121 21222008-12-24 Thomas E. Dickey <dickey@invisible-island.net> 2123 2124 * VERSION: bump 2125 2126 * skeleton.c: 2127 remove ifdef-lint from goto yyerrlab, to quiet gcc warning 2128 21292008-11-26 Thomas E. Dickey <dickey@invisible-island.net> 2130 2131 * verbose.c, main.c, defs.h, mkpar.c, reader.c: 2132 completed implementation of "%expect" (report by Perry E. Metzger). 2133 add "%expect-rr", which is (unlike bison) allowable in LALR parsers. 2134 21352008-11-24 Thomas E. Dickey <dickey@invisible-island.net> 2136 2137 * 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: 2138 change indent-style (request by Perry E. Metzger) 2139 21402008-08-27 Thomas E. Dickey <dickey@invisible-island.net> 2141 2142 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2143 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 2144 2145 * VERSION: bump 2146 2147 * skeleton.c: 2148 better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 2149 2150 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c: 2151 change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's. 2152 2153 * configure: regen'd 2154 2155 * configure.in: add -Wwrite-strings to warnings 2156 2157 * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 2158 add YYPARSE_PARAM and YYPARSE_PARAM_TYPE 2159 2160 * skeleton.c: 2161 add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features. 2162 2163 * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c: 2164 fixes for gcc -Wwrite-strings 2165 2166 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2167 generate the tables as static-const (this is an interface change) 2168 2169 * output.c: realign columns in start_table() 2170 2171 * output.c: 2172 generate the tables as static-const (this is an interface change) 2173 2174 * output.c: reorder functions to eliminate forward-references 2175 2176 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2177 remove 'register' keywords 2178 21792008-08-26 Thomas E. Dickey <dickey@invisible-island.net> 2180 2181 * 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: 2182 remove 'register' keywords 2183 21842008-08-25 Thomas E. Dickey <dickey@invisible-island.net> 2185 2186 * test/ftp.tab.c: regen'd 2187 2188 * reader.c: 2189 improve the left-curly fix by testing after blanks, to avoid having a 2190 " {" at the beginning of a line. 2191 2192 * test/error.tab.c, test/grammar.tab.c: regen'd 2193 2194 * output.c: 2195 move the remaining newline-counting into write_XXX functions. 2196 2197 * test/calc.tab.c: regen'd 2198 2199 * output.c: 2200 simplify part of the output_file formatting using new functions, e.g., 2201 start_int_table(), output_newline(). 2202 2203 * reader.c: 2204 modify copy_action() to indent the first character, it if is is left-curly 2205 brace. That makes the output look more like the original, as well as makes 2206 it simpler to edit (not confuse editors which look for a left-curly in the 2207 first column as if it were the beginning of a function). 2208 2209 * skeleton.c: minor fixes to avoid gcc -Wconversion warnings 2210 2211 * output.c: align the #define's produced for "-p" option 2212 2213 * test/run_test.sh: use the "-p" option for better coverage. 2214 2215 * output.c: simplify output_prefix() with new define_prefixed() 2216 2217 * skeleton.c: include string.h, for memset() 2218 change stack size to unsigned to fix gcc -Wconversion warnings. 2219 2220 * VERSION: bump to 2008/8/25 2221 2222 * makefile.in: add dependency on VERSION file. 2223 22242008-08-24 Thomas E. Dickey <dickey@invisible-island.net> 2225 2226 * VERSION: bump 2227 2228 * lalr.c: improved memory-leak checking by freeing data in includes[] 2229 2230 * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 2231 update to match skeleton-change 2232 2233 * configure: regen'd 2234 2235 * skeleton.c: Add fix for stack discussed 2236 http://undeadly.org/cgi?action=article&sid=20080708155228 2237 and applied 2238 http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29 2239 2240 * aclocal.m4: resync with my-autoconf (no major changes) 2241 22422008-07-24 Thomas E. Dickey <dickey@invisible-island.net> 2243 2244 * package/pkgsrc/Makefile, package/pkgsrc/distinfo: 2245 scripts from NetBSD pkgsrc, for test-builds 2246 22472008-03-14 Thomas E. Dickey <dickey@invisible-island.net> 2248 2249 * config.sub: update to 2008-03-08 2250 2251 * config.guess: update to 2008-03-12 2252 22532007-05-09 Thomas E. Dickey <dickey@invisible-island.net> 2254 2255 * main.c: close graph, verbose files if opened, on exit. 2256 2257 * main.c: 2258 audit memory leaks - valgrind reported some memory still in use on exit. 2259 2260 * lalr.c, output.c, reader.c, mkpar.c, lr0.c: 2261 add hook for auditing memory leaks 2262 2263 * defs.h: add hooks for auditing memory leaks 2264 2265 * configure: regen'd 2266 2267 * configure.in: 2268 use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind, 2269 --with-dbmalloc and --with-dmalloc 2270 2271 * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND 2272 2273 * aclocal.m4: improve version-checking in CF_GCC_VERSION 2274 rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro 2275 2276 * VERSION: 2007/5/9 2277 2278 * main.c: file_prefix did not always have a trailing null. 2279 22802007-03-25 Thomas E. Dickey <dickey@invisible-island.net> 2281 2282 * mkdirs.sh: improved version for "make -j" 2283 22842006-12-22 Thomas E. Dickey <dickey@invisible-island.net> 2285 2286 * config.guess: update to 2006/12/22 2287 22882006-12-08 Thomas E. Dickey <dickey@invisible-island.net> 2289 2290 * config.sub: update to 2006/12/08 2291 22922005-08-13 Thomas E. Dickey <dickey@invisible-island.net> 2293 2294 * main.c: add -V to usage message 2295 2296 * makefile.in: remove -t option from ctags 2297 2298 * VERSION: 2005/8/13 2299 23002005-08-13 schmitz 2301 2302 * main.c: Sylvain Schmitz: 2303 modify the '-o' option to work like bison's, which sets the file-prefix. 2304 23052005-08-13 Matt.Kraai 2306 2307 * output.c: 2308 Debian #322858 (don't close union_file, which contained data). 2309 This feature is used in groff. 2310 23112005-08-13 Thomas E. Dickey <dickey@invisible-island.net> 2312 2313 * configure: regenerated 2314 2315 * aclocal.m4: improve checks for Intel compiler warnings 2316 23172005-06-25 Thomas E. Dickey <dickey@invisible-island.net> 2318 2319 * config.sub: update to 2005/6/2 2320 2321 * config.guess: update to 2005/5/27 2322 23232005-05-05 Thomas E. Dickey <dickey@invisible-island.net> 2324 2325 * defs.h: add a fallback for GCC_UNUSED 2326 23272005-05-04 Thomas E. Dickey <dickey@invisible-island.net> 2328 2329 * makefile.in: add "." to include-path to pickup config.h 2330 2331 * reader.c: 2332 apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617. 2333 2334 * output.c: 2335 correct a limit check in pack_vector() - report/analysis by William Evans 2336 2337 * main.c: 2338 exit after printing version. Otherwise "yacc -V" will exit with an erro 2339 after printing the usage message. 2340 2341 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2342 regenerated after skeleton-changes 2343 2344 * skeleton.c: replace a few -1's with YYEMPTY 2345 2346 * skeleton.c: 2347 delete yynewerror (no one uses it any more, and it just makes compiler warnings) 2348 2349 * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD 2350 2351 * test/run_test.sh: 2352 filter out lines with YYPATCH, since that will change with each update 2353 2354 * yacc.1: add -V option 2355 2356 * main.c: add -V option to print the version. 2357 simplify option-parsing by moving the duplicate logic for setting flags into 2358 new function setflag(). 2359 2360 * skeleton.c: 2361 move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers). 2362 add YYPATCH here so it can be tested by applications. 2363 2364 * defs.h: 2365 add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and 2366 YYPATCH symbols. 2367 2368 * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c: 2369 reduce externs by making static the procedures that are not referenced outside 2370 the module in which they are defined. 2371 2372 * makefile.in: 2373 the VERSION file holds the patch-date. Define YYPATCH, so this will be 2374 compiled into the skeleton. 2375 2376 * VERSION: patch-level for byacc 2377 2378 * main.c: 2379 add "-o" to usage message. It is too long for a single line; rewrite usage() 2380 to show one option per line. 2381 23822005-05-03 Thomas E. Dickey <dickey@invisible-island.net> 2383 2384 * main.c: add -o option, to work with scripts that assume bison. 2385 simplify create_file_names() with a macro. 2386 simplify done() with a macro. 2387 adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by 2388 onintr(), do not flush output via exit(), but use _exit() instead. 2389 2390 * defs.h: remove unnecessary externs for main.c 2391 2392 * yacc.1: add -o option 2393 2394 * graph.c: remove unused parameter 2395 2396 * mkpar.c, defs.h, reader.c: 2397 add support for "%expect", a bison feature from FreeBSD sources 2398 2399 * 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: 2400 indent'd 2401 2402 * configure: regenerated for 2005/5/5 2403 2404 * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER) 2405 24062005-04-27 schmitz 2407 2408 * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1: 2409 Sylvain Schmitz <schmitz@i3s.unice.fr>: 2410 add graphical output of the LALR(1) automaton for graphviz, 2411 associated with command-line option `-g' 2412 24132005-04-16 Thomas E. Dickey <dickey@invisible-island.net> 2414 2415 * config.sub: update to 2005/2/10 2416 2417 * config.guess: update to 2005/3/24 2418 24192005-04-13 Thomas E. Dickey <dickey@invisible-island.net> 2420 2421 * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds 2422 24232005-03-21 Thomas E. Dickey <dickey@invisible-island.net> 2424 2425 * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds 2426 24272004-03-28 Thomas E. Dickey <dickey@invisible-island.net> 2428 2429 * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2430 updates due to adding yyparse() prototype 2431 2432 * configure: RCS_BASE 2433 2434 * configure.in: 2435 add AC_ARG_PROGRAM to make --program-prefix, etc., work. 2436 2437 * makefile.in: first cut of script to support --program-prefix 2438 2439 * configure.in: 2440 reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52 2441 2442 * makefile.in: modify so DESTDIR works 2443 2444 * makefile.in: use EXEEXT and OBJEXT 2445 2446 * configure.in: use CF_PROG_EXT 2447 generate a config.h 2448 2449 * defs.h: make this use the generated config.h 2450 2451 * skeleton.c: add a forward-reference for yyparse() 2452 2453 * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT 2454 2455 * yacc.1: remove the discussion of TMPDIR since it is obsolete 2456 2457 * skeleton.c: fix a couple of minor compiler-warnings in the skeleton 2458 2459 * defs.h: remove action_file_name, etc., since we use tmpfile() now. 2460 2461 * main.c: 2462 use tmpfile() for opening the working files. This quiets a warning 2463 advising the use of mkstemp(). 2464 2465 * output.c: 2466 Do not close temporary-files here, since they are opened with tmpfile(). 2467 Just rewind them, and they're ready to read back the data stored in them. 2468 2469 * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE 2470 2471 * test/yacc/grammar.output, test/yacc/grammar.tab.h: 2472 reference output for testing 2473 2474 * makefile.in: turn on "make check" rule 2475 2476 * test/calc.output: RCS_BASE 2477 2478 * test/yacc/calc.output: reference output for testing 2479 2480 * test/run_test.sh, test/calc.tab.h: RCS_BASE 2481 2482 * test/yacc/calc.tab.h: reference output for testing 2483 2484 * test/ftp.tab.c: yyparse() is now yyparse(void) 2485 2486 * test/calc.tab.c: RCS_BASE 2487 2488 * test/error.tab.c: yyparse() is now yyparse(void) 2489 2490 * test/README: RCS_BASE 2491 2492 * yacc.1: various typography fixes prompted by Debian #100947 2493 2494 * aclocal.m4, makefile.in, configure.in: RCS_BASE 2495 2496 * README: updated to note that this is not the original 2497 24982004-03-24 Thomas E. Dickey <dickey@invisible-island.net> 2499 2500 * test/grammar.y: RCS_BASE 2501 25022004-02-23 Thomas E. Dickey <dickey@invisible-island.net> 2503 2504 * config.sub: RCS_BASE 2505 25062004-02-17 Thomas E. Dickey <dickey@invisible-island.net> 2507 2508 * config.guess: RCS_BASE 2509 25102003-11-29 Thomas E. Dickey <dickey@invisible-island.net> 2511 2512 * install-sh: improved quoting 2513 25142002-06-29 Thomas E. Dickey <dickey@invisible-island.net> 2515 2516 * mkdirs.sh: 2517 don't use character range, since some locales don't work as expected 2518 25192001-06-22 Thomas E. Dickey <dickey@clark.net> 2520 2521 * install-sh: RCS_BASE 2522 25232000-11-20 Thomas E. Dickey <dickey@clark.net> 2524 2525 * test/calc.y: RCS_BASE 2526 2527 * test/code_calc.y, test/pure_calc.y: copy of calc.y 2528 2529 * vmsbuild.com: original version 2530 25312000-02-23 dickey@clark.net 2532 2533 * test/RCS, RCS: PERMIT FILE 2534 25352000-02-14 Thomas E. Dickey <dickey@clark.net> 2536 2537 * main.c: fix for VMS port - making pathname for temp-file 2538 2539 * descrip.mms: original version 2540 25412000-02-13 Thomas E. Dickey <dickey@clark.net> 2542 2543 * 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: 2544 ansify 2545 25461999-11-30 Thomas E. Dickey <dickey@clark.net> 2547 2548 * mkdirs.sh: RCS_BASE 2549 25501995-01-01 Thomas E. Dickey <dickey@clark.net> 2551 2552 * config_h.in: RCS_BASE 2553 25541993-12-23 unknown 2555 2556 * README.DOS, main.c: MSDOS-port 2557 25581993-12-22 unknown 2559 2560 * reader.c, defs.h: MSDOS-port 2561 25621993-03-02 unknown 2563 2564 * README: original version 2565 25661993-02-22 unknown 2567 2568 * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE 2569 25701993-02-22 Thomas E. Dickey <dickey@software.org> 2571 2572 * test/yacc/error.output, test/yacc/error.tab.h: 2573 reference output for testing 2574 25751993-02-22 unknown 2576 2577 * test/error.output, test/error.tab.c, test/error.tab.h: RCS_BASE 2578 2579 * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES: 2580 original version 2581 25821992-10-12 unknown 2583 2584 * yacc.1: original version 2585 25861992-10-11 unknown 2587 2588 * defs.h: original version 2589 25901991-01-20 unknown 2591 2592 * mkpar.c, verbose.c: original version 2593 25941991-01-14 unknown 2595 2596 * lr0.c, Makefile, Makefile.old: original version 2597 25981990-07-16 unknown 2599 2600 * NEW_FEATURES: original version 2601 26021990-06-03 unknown 2603 2604 * ACKNOWLEDGEMENTS: original version 2605 26061990-02-05 unknown 2607 2608 * symtab.c, lalr.c, error.c: original version 2609 26101990-01-16 Thomas E. Dickey <dickey@software.org> 2611 2612 * test/code_error.y, test/pure_error.y: RCS_BASE 2613 26141990-01-16 unknown 2615 2616 * test/error.y: RCS_BASE 2617 26181989-11-22 unknown 2619 2620 * NO_WARRANTY: original version 2621 26221989-09-23 unknown 2623 2624 * test/ftp.y: RCS_BASE 2625 2626