1319349Sjkim2017-02-01 Thomas E. Dickey <dickey@invisible-island.net> 2319349Sjkim 3319349Sjkim * 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: 4319349Sjkim RCS_BASE 5319349Sjkim 6319349Sjkim * package/debian/copyright: update copyright 7319349Sjkim 8319349Sjkim * reader.c, defs.h, main.c: 9319349Sjkim avoid using regex.h since some low-end platforms do not have this 10319349Sjkim 11319349Sjkim * test/expr.oxout.y: RCS_BASE 12319349Sjkim 13319349Sjkim * configure: regen 14319349Sjkim 15319349Sjkim * aclocal.m4: quiet a strict gcc warning in CF_MKSTEMP 16319349Sjkim 17319349Sjkim2017-02-01 Tom.Shields 18319349Sjkim 19319349Sjkim * main.c, reader.c, defs.h: 20319349Sjkim process #line directives, like bison and flex 21319349Sjkim 22319349Sjkim2017-02-01 Thomas E. Dickey <dickey@invisible-island.net> 23319349Sjkim 24319349Sjkim * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 25319349Sjkim bump 26319349Sjkim 27319349Sjkim2016-12-31 Thomas E. Dickey <dickey@invisible-island.net> 28319349Sjkim 29319349Sjkim * config.guess, config.sub: 2017-01-01 30319349Sjkim 31319297Sdelphij2016-12-02 Thomas E. Dickey <dickey@invisible-island.net> 32297276Sjkim 33319297Sdelphij * 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: 34319297Sdelphij regen 35319297Sdelphij 36319297Sdelphij * btyaccpar.skel: changes from NetBSD 37319297Sdelphij + use YYINT rather than short in btyaccpar.skel 38319297Sdelphij (some of this had already been done by Tom Shields) 39319297Sdelphij + remove some casts of malloc/realloc 40319297Sdelphij 41319297Sdelphij * yaccpar.c, yaccpar.skel, output.c: changes from NetBSD 42319297Sdelphij - Add some more bison stuff to make the mesa/gallium parser work: 43319297Sdelphij %initial-action (add missing source struct member in location) 44319297Sdelphij %debug (unimplemented) 45319297Sdelphij %error-verbose (unimplemented) 46319297Sdelphij 47319297Sdelphij This changes some existing code: 48319297Sdelphij + yylloc is now a pointer, so 49319297Sdelphij + the first parameter to YYERROR_DECL() is a pointer 50319297Sdelphij + struct YYLTYPE now has a "source" field 51319297Sdelphij 52319297Sdelphij * test/btyacc/btyacc_demo.tab.h, test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c, test/btyacc/err_inherit4.tab.h: 53319297Sdelphij regen 54319297Sdelphij 55319297Sdelphij * btyaccpar.c, btyaccpar.skel, reader.c: changes from NetBSD 56319297Sdelphij - Add some more bison stuff to make the mesa/gallium parser work: 57319297Sdelphij %initial-action (add missing source struct member in location) 58319297Sdelphij %debug (unimplemented) 59319297Sdelphij %error-verbose (unimplemented) 60319297Sdelphij 61319297Sdelphij This changes some existing code: 62319297Sdelphij + yylloc is now a pointer, so 63319297Sdelphij + the first parameter to YYERROR_DECL() is a pointer 64319297Sdelphij + struct YYLTYPE now has a "source" field 65319297Sdelphij 66319297Sdelphij * reader.c: 67319297Sdelphij fix from NetBSD: correct off-by-one when adding a null in copy_param() 68319297Sdelphij 69319297Sdelphij * reader.c: adapted from NetBSD 70319297Sdelphij - Convert *most* error fingerprints to: 71319297Sdelphij -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) 72319297Sdelphij +unterminated_arglist(const struct ainfo *a) 73319297Sdelphij - Cast new <ctype.h> args to unsigned char 74319297Sdelphij 75319297Sdelphij * defs.h: changes from NetBSD 76319297Sdelphij - Add some more bison stuff to make the mesa/gallium parser work: 77319297Sdelphij %initial-action (add missing source struct member in location) 78319297Sdelphij %debug (unimplemented) 79319297Sdelphij %error-verbose (unimplemented) 80319297Sdelphij 81319297Sdelphij This changes some existing code: 82319297Sdelphij + yylloc is now a pointer, so 83319297Sdelphij + the first parameter to YYERROR_DECL() is a pointer 84319297Sdelphij + struct YYLTYPE now has a "source" field 85319297Sdelphij 86319297Sdelphij * defs.h: adapted from NetBSD 87319297Sdelphij - Convert *most* error fingerprints to: 88319297Sdelphij -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) 89319297Sdelphij +unterminated_arglist(const struct ainfo *a) 90319297Sdelphij - Cast new <ctype.h> args to unsigned char 91319297Sdelphij 92319297Sdelphij * main.c: changes from NetBSD 93319297Sdelphij - Add some more bison stuff to make the mesa/gallium parser work: 94319297Sdelphij %initial-action (add missing source struct member in location) 95319297Sdelphij %debug (unimplemented) 96319297Sdelphij %error-verbose (unimplemented) 97319297Sdelphij 98319297Sdelphij This changes some existing code: 99319297Sdelphij + yylloc is now a pointer, so 100319297Sdelphij + the first parameter to YYERROR_DECL() is a pointer 101319297Sdelphij + struct YYLTYPE now has a "source" field 102319297Sdelphij 103319297Sdelphij * error.c: adapted from NetBSD 104319297Sdelphij - Convert *most* error fingerprints to: 105319297Sdelphij -unterminated_arglist(int a_lineno, char *a_line, char *a_cptr) 106319297Sdelphij +unterminated_arglist(const struct ainfo *a) 107319297Sdelphij - Cast new <ctype.h> args to unsigned char 108319297Sdelphij 109319297Sdelphij * mstring.c: adapted change from NetBSD to add casts for ctype macros 110319297Sdelphij 111319297Sdelphij * test/btyacc/btyacc_demo.tab.h, test/btyacc/err_inherit4.tab.h: regen 112319297Sdelphij 113319297Sdelphij * output.c: reorder to eliminate a forward-reference 114319297Sdelphij 115319297Sdelphij2016-12-02 Tom.Shields 116319297Sdelphij 117319297Sdelphij * output.c: 118319297Sdelphij modify output to enable compilation of a lexer generated by flex (using 119319297Sdelphij "%option bison-bridge" and "%option bison-locations") to be used with a parser 120319297Sdelphij generated by b(t)yacc (using directives "%locations" and "%pure-parser"). 121319297Sdelphij 122319297Sdelphij2016-12-02 Thomas E. Dickey <dickey@invisible-island.net> 123319297Sdelphij 124319297Sdelphij * configure: regen 125319297Sdelphij 126319297Sdelphij * aclocal.m4: Improved autoconf macros 127319297Sdelphij CF_CC_ENV_FLAGS 128319297Sdelphij + improve split between compiler and options, prompted by report where user 129319297Sdelphij had "ccache" before the compiler 130319297Sdelphij + leave non-preprocessor options in "$CC" (but still copy them to "$CFLAGS" 131319297Sdelphij since that's where they should be) 132319297Sdelphij CF_GNU_SOURCE,v 133319297Sdelphij + recent glibc (Debian 2.23-4 for example) has misordered ifdef/checks for new 134319297Sdelphij symbol _DEFAULT_SOURCE, producing warning messages when only _GNU_SOURCE is 135319297Sdelphij defined. Add a followup check to define _DEFAULT_SOURCE. 136319297Sdelphij CF_XOPEN_SOURCE 137319297Sdelphij + add "uclinux" to list of Linux's (patch by Yann E. Morin) 138319297Sdelphij + use _GNU_SOURCE for cygwin headers 139319297Sdelphij + build-fixes for OS/2 140319297Sdelphij 141319297Sdelphij * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 142319297Sdelphij bump 143319297Sdelphij 144319297Sdelphij2016-11-20 Thomas E. Dickey <dickey@invisible-island.net> 145319297Sdelphij 146319297Sdelphij * config.sub: 2016-11-19 147319297Sdelphij 148319297Sdelphij * config.guess: 2016-10-02 149319297Sdelphij 150319297Sdelphij2016-06-06 Thomas E. Dickey <dickey@invisible-island.net> 151319297Sdelphij 152319297Sdelphij * configure: regen 153319297Sdelphij 154319297Sdelphij * aclocal.m4: improved autoconf macros: 155319297Sdelphij CF_CC_ENV_FLAGS - don't limit the check to -I, -U and -D options, since the 156319297Sdelphij added options can include various compiler options before and after 157319297Sdelphij preprocessor options. 158319297Sdelphij CF_PROG_LINT - add cpplint to programs to use; drop ad hoc tdlint and alint. 159319297Sdelphij 160319297Sdelphij * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 161319297Sdelphij bump 162319297Sdelphij 163319297Sdelphij * lalr.c: indented 164319297Sdelphij 165319297Sdelphij * btyaccpar.c: regen 166319297Sdelphij 167319297Sdelphij * skel2c: 168319297Sdelphij adjust whitespace so that generated skeleton will follow the same format 169319297Sdelphij as other code 170319297Sdelphij 171319297Sdelphij * mkpar.c, verbose.c, lr0.c, reader.c, error.c, output.c: indented 172319297Sdelphij 173319297Sdelphij * reader.c: fix two compiler warnings 174319297Sdelphij 175319297Sdelphij * 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: 176319297Sdelphij regen 177319297Sdelphij 178319297Sdelphij2016-06-06 Tom.Shields 179319297Sdelphij 180319297Sdelphij * btyaccpar.skel, yaccpar.skel: 181319297Sdelphij small fix for an edge case of initialized data in Chris Dodd's btyacc changes: 182319297Sdelphij "Avoid crash when input pops up an Action error at the first token" 183319297Sdelphij 184319297Sdelphij2016-06-01 Thomas E. Dickey <dickey@invisible-island.net> 185319297Sdelphij 186319297Sdelphij * 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: 187319297Sdelphij regen 188319297Sdelphij 189319297Sdelphij2016-06-01 Tom.Shields 190319297Sdelphij 191319297Sdelphij * btyaccpar.skel, defs.h, error.c, output.c, reader.c, test/code_calc.y, test/err_inherit4.y, test/run_make.sh, yaccpar.skel: 192319297Sdelphij fixes for issues in btyacc (report by Francis Andre): 193319297Sdelphij 194319297Sdelphij + correction to the placement of the #line directive for a %union specification 195319297Sdelphij 196319297Sdelphij + recovery of a set of casts originally added into btyaccpar.c rather than into 197319297Sdelphij btyaccpar.skel, and so are lost whenever building from scratch 198319297Sdelphij 199319297Sdelphij + Chris Dodd's btyacc improved handling of inherited attributes to eliminate 200319297Sdelphij implicit empty copy rules that are not necessary, and thereby avoiding the 201319297Sdelphij introduction of extra parsing ambiguity 202319297Sdelphij 203319297Sdelphij + Chris Dodd's added support for @-N syntax to reference inherited position 204319297Sdelphij information 205319297Sdelphij 206319297Sdelphij + correction to bad interaction between %token-table and YYDEBUG, where YYDEBUG 207319297Sdelphij was required to be defined in order to compile the generated code 208319297Sdelphij 209319297Sdelphij + correction to yyname[] access in code included with YYDEBUG defined for 210319297Sdelphij single character symbols not recognized (e.g., input containing '&' character 211319297Sdelphij where grammar doesn't define that as a symbol) - map to existing 212319297Sdelphij "illegal-symbol" entry in byname[] 213319297Sdelphij 214319297Sdelphij + fixes to test/run_make.sh: skip test-err_* files; in the bison test phase 215319297Sdelphij skip additional files that contain features not supported by bison and 216319297Sdelphij inhibit new bison warning messages 217319297Sdelphij 218319297Sdelphij + minor changes to btyaccpar.skel & yaccpar.skel so they are more similar in 219319297Sdelphij their commonality; makes it easier to maintain the pair of files using 220319297Sdelphij vimdiff 221319297Sdelphij 222319297Sdelphij + changes to a couple of test cases for coverage of #3, #4 and #5 above 223319297Sdelphij 224319297Sdelphij2016-06-01 Thomas E. Dickey <dickey@invisible-island.net> 225319297Sdelphij 226319297Sdelphij * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 227319297Sdelphij bump 228319297Sdelphij 229319297Sdelphij2016-03-24 Thomas E. Dickey <dickey@invisible-island.net> 230319297Sdelphij 231297276Sjkim * reader.c: unused variable 232297276Sjkim 233297276Sjkim * package/pkgsrc/Makefile, package/debian/copyright: bump 234297276Sjkim 235297276Sjkim2016-03-24 Jung-uk.Kim 236297276Sjkim 237297276Sjkim * main.c: 238297276Sjkim correct logic for finding output suffix in the "-o" option, which matched 239297276Sjkim the first occurrence of ".c" in the name in 2005-08-13 changes rather than 240297276Sjkim at the end of the filename (patch by Jung-uk Kim) 241297276Sjkim 242319297Sdelphij2016-03-24 Thomas E. Dickey <dickey@invisible-island.net> 243297276Sjkim 244297276Sjkim * aclocal.m4: 245297276Sjkim update CF_WITH_MAN2HTML to use configured shell rather than /bin/sh 246297276Sjkim 247297276Sjkim * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 248297276Sjkim bump 249297276Sjkim 250319297Sdelphij2016-01-25 Thomas E. Dickey <dickey@invisible-island.net> 251297276Sjkim 252297276Sjkim * config.guess, config.sub: 2016-01-01 253297276Sjkim 254319297Sdelphij2015-07-10 Thomas E. Dickey <dickey@invisible-island.net> 255296240Sjkim 256296240Sjkim * lr0.c: fix a duplicate-free in the leak-checking 257296240Sjkim 258296240Sjkim * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 259296240Sjkim bump 260296240Sjkim 261296240Sjkim * reader.c: 262296240Sjkim make cache-size clearer (prompted by discussion with Pedro Giffuni, 263296240Sjkim Oliver Pinter) 264296240Sjkim 265296240Sjkim * main.c: 266296240Sjkim make relationship with format/size clearer (prompted by discussion 267296240Sjkim with Pedro Giffuni, Oliver Pinter) 268296240Sjkim 269319297Sdelphij2015-07-05 Thomas E. Dickey <dickey@invisible-island.net> 270296240Sjkim 271296240Sjkim * configure: regen 272296240Sjkim 273296240Sjkim * package/pkgsrc/Makefile, package/mingw-byacc.spec, package/debian/copyright, package/debian/changelog, package/byacc.spec, VERSION: 274296240Sjkim bump 275296240Sjkim 276296240Sjkim * aclocal.m4: resync with my-autoconf 277296240Sjkim add configure option --with-man2html 278296240Sjkim 279296240Sjkim * makefile.in: add configure options --with-man2html 280296240Sjkim 281296240Sjkim * configure.in: add configure option --with-man2html 282296240Sjkim 283319297Sdelphij2015-05-02 Thomas E. Dickey <dickey@invisible-island.net> 284296240Sjkim 285296240Sjkim * config.guess: 2015-03-04 286296240Sjkim 287296240Sjkim * config.sub: 2015-03-08 288296240Sjkim 289319297Sdelphij2014-11-28 Thomas E. Dickey <dickey@invisible-island.net> 290296240Sjkim 291296240Sjkim * lr0.c: coverity #39181: memory leak 292296240Sjkim 293296240Sjkim * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 294296240Sjkim bump 295296240Sjkim 296296240Sjkim2014-11-13 Jouk.Jansen 297296240Sjkim 298296240Sjkim * descrip.mms: 299296240Sjkim I sucessfully compiled byacc on my OpenVMS systems. However, I had to update 300296240Sjkim the descrip.mms to include some extra c-source files and some dependenxcies 301296240Sjkim so that it also works when the distribution is located on an ODS5 disk. 302296240Sjkim 303296240Sjkim The patched descrip.mms file can be found at: 304296240Sjkim http://nchrem.tnw.tudelft.nl/openvms/software2.html#BYACC 305296240Sjkim 306296240Sjkim Please feel free to insert the file in your distribution. 307296240Sjkim 308296240Sjkim Regards 309296240Sjkim Jouk. 310296240Sjkim 311319297Sdelphij2014-10-06 Thomas E. Dickey <dickey@invisible-island.net> 312272769Sbapt 313272769Sbapt * package/debian/source/format: 314272769Sbapt change to native format to work around regression in Debian packaging. 315272769Sbapt 316272769Sbapt * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 317272769Sbapt bump 318272769Sbapt 319272769Sbapt * configure: regen 320272769Sbapt 321272769Sbapt * main.c: 322272769Sbapt correct parameter for umask - for very old mkstemp's - and use type mode_t 323272769Sbapt to quiet compiler warning 324272769Sbapt 325272769Sbapt * configure.in: add configure check for mode_t 326272769Sbapt 327272769Sbapt * reader.c: 328272769Sbapt better fix for get_line, by ensuring there is enough space to null-terminate 329272769Sbapt its result (prompted by discussion with Craig Rodrigues). 330272769Sbapt 331319297Sdelphij2014-10-05 Thomas E. Dickey <dickey@invisible-island.net> 332272655Sbapt 333272655Sbapt * main.c: 334272655Sbapt make change to umask before calling mkstemp, as suggested in Coverity #56902 335272655Sbapt 336272655Sbapt * reader.c: 337272655Sbapt adjust logic in copy_action to avoid potential null-pointer dereference 338272655Sbapt (Coverity #56901) 339272655Sbapt 340272655Sbapt * reader.c: 341272655Sbapt adjust logic to avoid potential null-pointer dereference in compile_args 342272655Sbapt (Coverity #63407) 343272655Sbapt 344272655Sbapt * reader.c: eliminate strcpy into fixed-size buffer (Coverity #63408) 345272655Sbapt 346272655Sbapt * yacc.1: document changes made with respect to %parse-param 347272655Sbapt 348272655Sbapt * output.c: 349272655Sbapt add parameters from %parse-param to destructor. The order of the parameters 350272655Sbapt is intentionally inconsistent with yyparse/yyerror, for "compatibility" with 351272655Sbapt bison. 352272655Sbapt 353272655Sbapt * test/btyacc/btyacc_destroy1.tab.c, test/btyacc/btyacc_destroy2.tab.c, test/btyacc/btyacc_destroy3.tab.c: 354272655Sbapt regen 355272655Sbapt 356272655Sbapt * output.c: 357272655Sbapt use puts_param_types/puts_param_names to output lex_param data. 358272655Sbapt 359272655Sbapt * 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: 360272655Sbapt regen 361272655Sbapt 362272655Sbapt * btyaccpar.c: add casts, change types to fix strict compiler warnings 363272655Sbapt 364272655Sbapt * 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: 365272655Sbapt regen 366272655Sbapt 367272655Sbapt * output.c: gcc-warning 368272655Sbapt 369272655Sbapt * test/btyacc/code_calc.tab.c, test/btyacc/code_error.tab.c: regen 370272655Sbapt 371272655Sbapt * output.c: fix limit when merging real/workaround tables 372272655Sbapt 373272655Sbapt * output.c: 374272655Sbapt for btyacc, it is possible to have no conflicts - but in that case, the 375272655Sbapt "ctable" was not generated at all, while the skeleton uses the table. 376272655Sbapt The most straightforward (workaround) is generating a dummy table which 377272655Sbapt rejects any state. 378272655Sbapt 379272655Sbapt * test/btyacc_destroy3.y, test/btyacc_destroy2.y, test/btyacc_destroy1.y: 380272655Sbapt fix "make check_make" 381272655Sbapt 382272655Sbapt * 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: 383272655Sbapt regen 384272655Sbapt 385272655Sbapt * reader.c: 386272655Sbapt trim blanks from interim value in copy_param() to handle special case when 387272655Sbapt a space precedes a comma. 388272655Sbapt 389272655Sbapt * output.c: 390272655Sbapt use two new functions, puts_param_types and puts_param_names, to improve 391272655Sbapt format of the parse_param list (by trimming space after "*") as well as 392272655Sbapt correcting the output of the comma-separated names (only the last name 393272655Sbapt was output). 394272655Sbapt 395272655Sbapt * test/btyacc/ok_syntax1.tab.c, test/btyacc/btyacc_destroy3.tab.c, test/btyacc/calc2.tab.c, test/btyacc/calc3.tab.c: 396272655Sbapt regen 397272655Sbapt 398272655Sbapt * reader.c: 399272655Sbapt modify copy_param() to handle resulting comma-separated list. Before, it 400272655Sbapt only expected a single parameter. 401272655Sbapt 402319297Sdelphij2014-10-04 Thomas E. Dickey <dickey@invisible-island.net> 403272655Sbapt 404272655Sbapt * reader.c: split-out save_param() from copy_param() 405272655Sbapt 406272655Sbapt * reader.c: trim_blanks() did not always convert spaces - fix. 407272655Sbapt 408272655Sbapt * reader.c: fix some minor regressions with error-reporting 409272655Sbapt 410272655Sbapt * aclocal.m4: update CF_XOPEN_SOURCE for Unixware change from lynx 411272655Sbapt 412272655Sbapt * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 413272655Sbapt bump 414272655Sbapt 415272655Sbapt * reader.c: 416272655Sbapt modify copy_param() to accept multiple parameters, each in curly braces like 417272655Sbapt recent bison, as well as honoring bison's undocumented feature to accept the 418272655Sbapt parameters as a comma-separated list. 419272655Sbapt 420272655Sbapt * 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: 421272655Sbapt RCS_BASE 422272655Sbapt 423319297Sdelphij2014-10-03 Thomas E. Dickey <dickey@invisible-island.net> 424272655Sbapt 425272655Sbapt * 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: 426272655Sbapt RCS_BASE 427272655Sbapt 428319297Sdelphij2014-10-02 Thomas E. Dickey <dickey@invisible-island.net> 429272649Srodrigc 430272655Sbapt * main.c, reader.c, defs.h: 431272649Srodrigc use calloc in get_line() when allocating line to ensure it is fully initialized, 432272649Srodrigc fixes a later uninitialized value in copy_param() (FreeBSD #193499). 433272649Srodrigc 434319297Sdelphij2014-09-17 Thomas E. Dickey <dickey@invisible-island.net> 435272655Sbapt 436272655Sbapt * closure.c, lalr.c, output.c, defs.h: 437272655Sbapt rephrase odd addressing to fix Coverity #48848, #38950, #38860, not actually 438272655Sbapt a bug. 439272655Sbapt 440319297Sdelphij2014-09-01 Thomas E. Dickey <dickey@invisible-island.net> 441272655Sbapt 442272655Sbapt * config.sub: update to 2014-07-28 443272655Sbapt 444319297Sdelphij2014-07-27 Thomas E. Dickey <dickey@invisible-island.net> 445272655Sbapt 446272655Sbapt * configure: regen 447272655Sbapt 448272655Sbapt * aclocal.m4: modified to support port to Minix3.2 449272655Sbapt 450272655Sbapt * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 451272655Sbapt bump 452272655Sbapt 453319297Sdelphij2014-07-15 Thomas E. Dickey <dickey@invisible-island.net> 454268811Sbapt 455268811Sbapt * aclocal.m4: resync with my-autoconf (no change to configure script) 456268811Sbapt 457268811Sbapt * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 458268811Sbapt bump 459268811Sbapt 460268811Sbapt * test/run_test.sh: 461268811Sbapt make top-level "make check" work again, by adding another step to filtering 462268811Sbapt the test results. 463268811Sbapt 464319297Sdelphij2014-07-14 Thomas E. Dickey <dickey@invisible-island.net> 465268811Sbapt 466268811Sbapt * test/run_test.sh: changes from Garrett Cooper's patch: 467268811Sbapt a) ensure that the script returns an error-code if there are differences 468268811Sbapt b) escape "." character in left side of sed expression for $YACC 469268811Sbapt c) ensure that $ifBTYACC has a value 470268811Sbapt 471268811Sbapt * 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: 472268811Sbapt regen (reminder by Garrett Cooper) 473268811Sbapt 474268811Sbapt2014-07-14 Garrett.Cooper 475268811Sbapt 476268811Sbapt * 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: 477268811Sbapt regen 478268811Sbapt 479268811Sbapt2014-05-27 Tom.Shields 480268811Sbapt 481268811Sbapt * main.c: remove obsolete -D option from usage message 482268811Sbapt 483319297Sdelphij2014-05-27 Thomas E. Dickey <dickey@invisible-island.net> 484268811Sbapt 485268811Sbapt * 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: 486268811Sbapt bump 487268811Sbapt 488319297Sdelphij2014-04-22 Thomas E. Dickey <dickey@invisible-island.net> 489266639Sbapt 490266639Sbapt * mstring.c: 491266639Sbapt use vsnprintf() to ensure that msprintf's buffer is large enough. 492266639Sbapt 493266639Sbapt * main.c, defs.h: add mstring_leaks() 494266639Sbapt 495266639Sbapt * configure: regen 496266639Sbapt 497266639Sbapt * output.c: fix a complementary warning 498266639Sbapt 499266639Sbapt * mstring.c: introduce vsnprintf 500266639Sbapt 501266639Sbapt * configure.in, config_h.in: add check for vsnprintf 502266639Sbapt 503266639Sbapt * output.c: quiet a type-conversion warning 504266639Sbapt 505266639Sbapt * mstring.c: fix a potential memory leak on ENOMEM 506266639Sbapt quiet a couple of type-conversion warnings 507266639Sbapt 508266639Sbapt * defs.h: add/use GCC_PRINTFLIKE for msprintf() 509266639Sbapt 510266639Sbapt2014-04-22 Tom.Shields 511266639Sbapt 512266639Sbapt * README.BTYACC: 513266639Sbapt drop "NOTES-btyacc-Changes" and "NOTES-btyacc-Disposition", merging relevant 514266639Sbapt content into README.BTYACC 515266639Sbapt 516319297Sdelphij2014-04-22 Thomas E. Dickey <dickey@invisible-island.net> 517266639Sbapt 518266639Sbapt * package/pkgsrc/Makefile, VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec: 519266639Sbapt bump 520266639Sbapt 521319297Sdelphij2014-04-19 Thomas E. Dickey <dickey@invisible-island.net> 522266639Sbapt 523266639Sbapt * config.sub: 2014-04-03 524266639Sbapt 525266639Sbapt * config.guess: 2014-03-23 526266639Sbapt 527264803Sbapt2014-04-09 Rick.Spates 528264803Sbapt 529264803Sbapt * main.c, defs.h: patch to allow DEBUG build with WIN32 system 530264803Sbapt 531319297Sdelphij2014-04-09 Thomas E. Dickey <dickey@invisible-island.net> 532264803Sbapt 533264803Sbapt * output.c, reader.c: gcc warnings 534264803Sbapt 535264803Sbapt * reader.c: fix const-cast warnings 536264803Sbapt 537264803Sbapt * 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: 538264803Sbapt fix a few clang --analyze warnings; one was a case where output_ctable emitted 539264803Sbapt an empty table (which should be an error). 540264803Sbapt 541264803Sbapt * reader.c: appease clang --analyze 542264803Sbapt 543264803Sbapt * defs.h: mark two functions as no-return. 544264803Sbapt 545264803Sbapt * package/debian/changelog: reason for release 546264803Sbapt 547264803Sbapt * VERSION, package/byacc.spec, package/debian/changelog, package/mingw-byacc.spec, package/pkgsrc/Makefile: 548264803Sbapt bump 549264803Sbapt 550264803Sbapt * makefile.in: use $LINT_OPTS from environment via configure script 551264803Sbapt 552264803Sbapt * 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: 553264803Sbapt tweaks to make generated files from ok_syntax1.y compile with check_make rule 554264803Sbapt 555264803Sbapt * 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: 556264803Sbapt reference output for testing 557264803Sbapt 558264803Sbapt * test/run_test.sh: 559264803Sbapt retain the renaming done for code_debug.y so that check_make will work. 560264803Sbapt 561264803Sbapt * test/yacc/rename_debug.error, test/yacc/rename_debug.h, test/yacc/rename_debug.i, test/yacc/rename_debug.output: 562264803Sbapt reference output for testing 563264803Sbapt 564264803Sbapt * test/btyacc/ok_syntax1.error: RCS_BASE 565264803Sbapt 566264803Sbapt * 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: 567264803Sbapt regen 568264803Sbapt 569264803Sbapt * yacc.1: 570264803Sbapt clarify relationship of btyacc features to default configuration. 571264803Sbapt 572319297Sdelphij2014-04-08 Thomas E. Dickey <dickey@invisible-island.net> 573264803Sbapt 574264803Sbapt * 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: 575264803Sbapt reference output for testing 576264803Sbapt 577264803Sbapt * test/ok_syntax1.y: RCS_BASE 578264803Sbapt 579264803Sbapt * test/yacc/ok_syntax1.error: reference output for testing 580264803Sbapt 581264803Sbapt * 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: 582264803Sbapt exercise -L/-B options 583264803Sbapt 584264803Sbapt * 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: 585264803Sbapt use a better renaming of the YYPATCH definition (none of the test-cases rely 586264803Sbapt upon it, but redefinition in the "make check_make" rule is a problem). 587264803Sbapt 588264803Sbapt * 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: 589264803Sbapt undid temporary reordering in reader() by Tom Shields to align with byacc outputs 590264803Sbapt 591264803Sbapt * test/run_test.sh: remove a repeated test-case 592264803Sbapt 593264803Sbapt * mstring.c: minor reformatting to make coverage analysis simpler 594264803Sbapt 595319297Sdelphij2014-04-07 Thomas E. Dickey <dickey@invisible-island.net> 596264803Sbapt 597264803Sbapt * test/run_test.sh: tidy 598264803Sbapt 599264803Sbapt * 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: 600264803Sbapt reference output for testing 601264803Sbapt 602264803Sbapt * test/run_test.sh: 603264803Sbapt add special checks for flags which depend on writable/existing files 604264803Sbapt 605264803Sbapt * 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: 606264803Sbapt reference output for testing 607264803Sbapt 608264803Sbapt * main.c: 609264803Sbapt change CREATE_FILE_NAMES() to use local function rather than inline code, 610264803Sbapt to simplify coverage analysis. 611264803Sbapt 612264803Sbapt * 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: 613264803Sbapt reference output for testing 614264803Sbapt 615264803Sbapt * test/err_syntax27.y: testcase for missing_brace() 616264803Sbapt 617264803Sbapt * error.c: ifdef'd non-btyacc function 618264803Sbapt 619264803Sbapt * lr0.c: ifdef'd debug-code 620264803Sbapt 621264803Sbapt * yaccpar.skel: use YYINT's to replace short's as in btyaccpar.skel 622264803Sbapt 623264803Sbapt * 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: 624264803Sbapt 2010/11/26 simplification of output.c using putc_code() and putl_code() 625264803Sbapt omitted an adjustment of the #line value used for code-file. Fix that. 626264803Sbapt Also, amend 2005/05/04 change to run_test.sh to retain a dummy line for 627264803Sbapt YYPATCH #define's to make test-outputs easier to compare #line's (report 628264803Sbapt by Tom Shields) 629264803Sbapt 630319297Sdelphij2014-04-06 Thomas E. Dickey <dickey@invisible-island.net> 631264803Sbapt 632264803Sbapt * reader.c: fix for valgrind 633264803Sbapt (the calloc's are intentional - valgrind reported use of uninitialized memory) 634264803Sbapt 635264803Sbapt * lr0.c, output.c: fix for valgrind 636264803Sbapt 637264803Sbapt * 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: 638264803Sbapt RCS_BASE 639264803Sbapt 640264803Sbapt * test/yacc/code_debug.c, test/yacc/code_debug.h: 641264803Sbapt exercise the -i option 642264803Sbapt 643264803Sbapt * test/yacc/code_debug.i: reference output for testing 644264803Sbapt 645264803Sbapt * test/run_test.sh: exercise the -i option 646264803Sbapt 647264803Sbapt * test/yacc/code_debug.c: reference output for testing 648264803Sbapt 649264803Sbapt * test/run_test.sh: exercise the "-o" option 650264803Sbapt 651264803Sbapt * test/yacc/code_debug.error, test/yacc/code_debug.h, test/yacc/code_debug.output: 652264803Sbapt reference output for testing 653264803Sbapt 654264803Sbapt * output.c: don't call exit() without giving a chance to cleanup. 655264803Sbapt 656264803Sbapt * mstring.c: ifdef'd functions not used in byacc 657264803Sbapt 658264803Sbapt * btyaccpar.c: generated from btyaccpar.skel 659264803Sbapt 660264803Sbapt * yaccpar.c: generated from yaccpar.skel 661264803Sbapt 662264803Sbapt * skel2c: 663264803Sbapt change the generated-by comment to show which version of this script (and 664264803Sbapt which version of the given skeleton file) were used to produce the C-file. 665264803Sbapt 666264803Sbapt * configure: regen 667264803Sbapt 668264803Sbapt * makefile.in: 669264803Sbapt add rules to generate byacc and btyacc parser skeleton files independently 670264803Sbapt 671264803Sbapt * aclocal.m4: CF_PROG_AWK - add to byacc's configure script 672264803Sbapt CF_INTEL_COMPILER 673264803Sbapt cleanup the -no-gcc option which was leftover from testing - prcs does 674264803Sbapt not build with this option. 675264803Sbapt CF_MAKE_DOCS 676264803Sbapt protect $2 from substitution, for luit's "$(manext)" 677264803Sbapt CF_XOPEN_SOURCE 678264803Sbapt for Solaris (tested with gcc/g++ 3.4.3 on Solaris 10 and gcc/g++ 4.5.2 679264803Sbapt on Solaris 11), suppress the followup check for defining _XOPEN_SOURCE 680264803Sbapt because it is not needed, as well as because g++ 4.7.3 (no package, 681264803Sbapt used in Sage for Solaris 10) has some unspecified header breakage which 682264803Sbapt is triggered by the duplicate definition. 683264803Sbapt 684264803Sbapt * configure.in: 685264803Sbapt modify so skeleton-source is determined by configure options rather than by 686264803Sbapt having developer rename yaccpar.skel.old to yaccpar.skel 687264803Sbapt 688264803Sbapt * descrip.mms: rename skeleton 689264803Sbapt 690264803Sbapt * vmsbuild.com: 691264803Sbapt fwiw, renamed the skeleton for consistency with makefile 692264803Sbapt 693264803Sbapt * skel2c, skeleton.c: resync skeleton and its generating files 694264803Sbapt 695264803Sbapt * yaccpar.skel: 696264803Sbapt renamed yaccpar.skel.old to yaccpar.skel, to allow using makefile suffix rules 697264803Sbapt 698264803Sbapt * yaccpar.skel.old: resync skeleton and its generating files 699264803Sbapt 700264803Sbapt * test/run_make.sh: improve cleanup after error recovery 701264803Sbapt 702264803Sbapt * 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: 703264803Sbapt use improvement from Tom Shield's btyacc changes, getting rid of special cases for generating two yyerror calls in skeleton 704264803Sbapt 705264803Sbapt * output.c: simplify output_yyerror_decl() 706264803Sbapt 707264803Sbapt * 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: 708264803Sbapt add second "const" to string-table declarations, from Tom Shield's btyacc changes 709264803Sbapt 710264803Sbapt * 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: 711264803Sbapt discard unnecessary call on write_code_lineno() from Tom Shield's changes 712264803Sbapt 713264803Sbapt * 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: 714264803Sbapt use YYINT typedef from Tom Shield's btyacc changes to replace explicit "short" 715264803Sbapt 716264803Sbapt * test/yacc/code_calc.code.c, test/yacc/code_error.code.c, output.c: 717264803Sbapt use fix from Tom Shield's btyacc changes: remove redundant extern-declaration for YYPARSE_DECL() 718264803Sbapt 719264803Sbapt * 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: 720264803Sbapt discard unnecessary call on write_code_lineno() from Tom Shield's changes 721264803Sbapt 722264803Sbapt * 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: 723264803Sbapt use fix from Tom Shield's btyacc changes: prefix-definitions went to the 724264803Sbapt output (.tab.c) file in a case where they should have gone to the code 725264803Sbapt (.code.c) file. Remove now-redundant call to output_prefix(). 726264803Sbapt 727264803Sbapt * main.c: do the same for help-message 728264803Sbapt 729264803Sbapt * main.c: use OUTPUT_SUFFIX symbol in an overlooked case 730264803Sbapt 731264803Sbapt * test/run_make.sh: 732264803Sbapt modify to avoid use of VPATH, which has no standard implementation 733264803Sbapt 734319297Sdelphij2014-04-05 Thomas E. Dickey <dickey@invisible-island.net> 735264803Sbapt 736264803Sbapt * 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: 737264803Sbapt discard a change which merged CountLines() with explicit comparisons against 738264803Sbapt code_file because that adds extra to the #line values 739264803Sbapt 740264803Sbapt * 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: 741264803Sbapt add Tom Shield's change to allow definition of YYSTYPE_IS_DECLARED symbol to 742264803Sbapt override fallback typedef for YYSTYPE when that symbol is undefined 743264803Sbapt 744264803Sbapt * 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: 745264803Sbapt minor tweak to coding style - use parenthesis for "defined" operator's parameter 746264803Sbapt 747264803Sbapt * 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: 748264803Sbapt regen to make YYMAXTOKEN and YYUNDFTOKEN adjacent 749264803Sbapt 750264803Sbapt * 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: 751264803Sbapt regen after adding the YYUNDFTOKEN symbol 752264803Sbapt 753264803Sbapt * output.c: 754264803Sbapt integrate Tom Shield's btyacc changes which introduce the YYUNDFTOKEN symbol 755264803Sbapt (I changed order of output to keep this adjacent to YYMAXTOKEN) 756264803Sbapt 757264803Sbapt * reader.c: 758264803Sbapt merge all but one small change from Tom Shield's btyacc changes - that 759264803Sbapt changes the order of code-file in the tests. 760264803Sbapt 761264803Sbapt * test/btyacc/btyacc_demo.tab.c: regen 762264803Sbapt 763264803Sbapt * test/btyacc_demo.y: fix prototypes 764264803Sbapt 765319297Sdelphij2014-04-04 Thomas E. Dickey <dickey@invisible-island.net> 766264803Sbapt 767264803Sbapt * reader.c, defs.h, main.c: 768264803Sbapt more merging of Tom Shield's btyacc changes. In the merge, I moved the 769264803Sbapt symbol_pval inside the btyacc ifdef's and added some more btyacc ifdefs 770264803Sbapt 771319297Sdelphij2014-04-03 Thomas E. Dickey <dickey@invisible-island.net> 772264803Sbapt 773264803Sbapt * reader.c: 774264803Sbapt merge-in 3/4 of btyacc's changes, deferring those which change test-outputs. 775264803Sbapt Tom Shield's changes split-out copy_string() and copy_comment() functions 776264803Sbapt to simplify some logic, as well as adding btyacc-only chunks 777264803Sbapt 778264803Sbapt * makefile.in: build mstring.o, needed for changes in reader.c 779264803Sbapt 780264803Sbapt * output.c: 781264803Sbapt merge-in all of btyacc's changes which do not change byacc's test-output. 782264803Sbapt Some of the merge uses ifdef-changes which I applied to ongoing resync, 783264803Sbapt e.g., the introduction of PER_STATE. 784264803Sbapt 785319297Sdelphij2014-04-02 Thomas E. Dickey <dickey@invisible-island.net> 786264803Sbapt 787264803Sbapt * test/btyacc/pure_calc.tab.c, test/btyacc/pure_error.tab.c: regen 788264803Sbapt 789264803Sbapt * output.c: fix typo 790264803Sbapt 791264803Sbapt * output.c, reader.c: 792264803Sbapt merge in some chunks of reader and output files which do not affect byacc tests 793264803Sbapt 794264803Sbapt * test/yacc/calc2.tab.c, test/yacc/calc3.tab.c: regen 795264803Sbapt 796264803Sbapt * 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: 797264803Sbapt incorporate YYENOMEM and YYEOF symbols from btyacc 798264803Sbapt 799264803Sbapt * output.c: merge chunk from btyacc changes for header-guards 800264803Sbapt 801264803Sbapt * btyaccpar.skel: RCS_BASE 802264803Sbapt 803264803Sbapt * yaccpar.skel: comment-out yysccsid[], for FreeBSD build-issues 804264803Sbapt remove GCC_UNUSED to reduce name-pollution as well as being simpler 805264803Sbapt 806264803Sbapt * main.c: 807264803Sbapt move a btyacc symbol outside ifdef to work around current state of merge 808264803Sbapt 809264803Sbapt * defs.h: 810264803Sbapt add USE_HEADER_GUARDS to defer whether to modify byacc's header-output 811264803Sbapt 812264803Sbapt * test/run_make.sh: 813264803Sbapt do not try to compile files used for testing syntax-errors, since they are 814264803Sbapt likely to be incomplete 815264803Sbapt 816264803Sbapt2014-04-02 Tom.Shields 817264803Sbapt 818264803Sbapt * main.c: changes for btyacc 819264803Sbapt 820319297Sdelphij2014-04-01 Thomas E. Dickey <dickey@invisible-island.net> 821264803Sbapt 822264803Sbapt * reader.c: 823264803Sbapt integrate change by Tom Shields to use bsearch rather than successive 824264803Sbapt calls to matchec() 825264803Sbapt 826264803Sbapt * defs.h: typedef __compar_fn_t is unnecessary 827264803Sbapt 828264803Sbapt * 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: 829264803Sbapt omit the GCC_UNUSED, as noted by Tom Shields not really essential 830264803Sbapt 831264803Sbapt2014-04-01 Tom.Shields 832264803Sbapt 833264803Sbapt * verbose.c: changes for btyacc, ifdef'd 834264803Sbapt 835319297Sdelphij2014-04-01 Thomas E. Dickey <dickey@invisible-island.net> 836264803Sbapt 837264803Sbapt * mkpar.c: eliminate most of the ifdef's using macros 838264803Sbapt 839264803Sbapt2014-04-01 Tom.Shields 840264803Sbapt 841264803Sbapt * mkpar.c: merge btyacc changes (ifdef'd - no change to byacc) 842264803Sbapt 843264803Sbapt * error.c: 844264803Sbapt new functions used for reporting errors from the btyacc configuration 845264803Sbapt (I reordered some, and ifdef'd the new ones -TD) 846264803Sbapt 847319297Sdelphij2014-03-31 Thomas E. Dickey <dickey@invisible-island.net> 848264803Sbapt 849264803Sbapt * test/btyacc/code_calc.code.c, test/btyacc/code_error.code.c: 850264803Sbapt omit the GCC_UNUSED, as noted by Tom Shields not really essential 851264803Sbapt 852264803Sbapt * 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: 853264803Sbapt regen 854264803Sbapt 855319297Sdelphij2014-03-29 Thomas E. Dickey <dickey@invisible-island.net> 856264803Sbapt 857264803Sbapt * 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: 858264803Sbapt comment-out yysccsid in the banner because it produces unnecessary compiler 859264803Sbapt warnings. The suggested alternative (using #pragma ident) in the preceding 860264803Sbapt comment is also obsolete; remove that comment (request by Gleb Smirnoff). 861264803Sbapt 862264803Sbapt * test/run_test.sh: 863264803Sbapt for yacc, ignore the inherit testcases, since they are btyacc-specific 864264803Sbapt 865319297Sdelphij2014-03-28 Thomas E. Dickey <dickey@invisible-island.net> 866264803Sbapt 867264803Sbapt * 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: 868264803Sbapt reference output for testing 869264803Sbapt 870264803Sbapt * test/run_lint.sh, test/run_make.sh, test/run_test.sh: 871264803Sbapt moving #define's out of makefile broke check for yacc vs btyacc (fix) 872264803Sbapt 873264803Sbapt2014-03-28 Tom.Shields 874264803Sbapt 875264803Sbapt * 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: 876264803Sbapt reference output for testing 877264803Sbapt 878264803Sbapt * defs.h: new functions/variables for btyacc 879264803Sbapt (I reordered and ifdef'd -TD) 880264803Sbapt 881264803Sbapt * test/inherit0.y, test/inherit1.y: testcase for btyacc 882264803Sbapt 883264803Sbapt2014-03-27 Tom.Shields 884264803Sbapt 885264803Sbapt * test/err_inherit5.y, test/err_inherit4.y, test/err_inherit3.y, test/err_inherit2.y, test/err_inherit1.y, test/inherit2.y: 886264803Sbapt testcase for btyacc 887264803Sbapt 888264803Sbapt2014-03-25 Tom.Shields 889264803Sbapt 890264803Sbapt * symtab.c: extra initialization needed for btyacc 891264803Sbapt (I ifdef'd -TD) 892264803Sbapt 893264803Sbapt * yacc.1: document -L/-B features from btyacc 894264803Sbapt 895319297Sdelphij2014-03-25 Thomas E. Dickey <dickey@invisible-island.net> 896264803Sbapt 897264803Sbapt * yacc.1: typo 898264803Sbapt 899264803Sbapt * configure: regen 900264803Sbapt 901264803Sbapt * configure.in: 902264803Sbapt modified new options to act like those in my other configure-scripts, e.g., 903264803Sbapt showing what option is being tested, and the resulting value. Put the 904264803Sbapt definitions in config.h rather than in the makefile. 905264803Sbapt 906264803Sbapt2014-03-25 Tom.Shields 907264803Sbapt 908264803Sbapt * makefile.in: add/use LINTFLAGS variable 909264803Sbapt make all of the objects (not just skeleton) rebuild if makefile changes 910264803Sbapt modify check-rule to reflect updates to run_test.sh vs subdirectory 911264803Sbapt 912264803Sbapt * mstring.c: byacc-btyacc-20140323 913264803Sbapt 914319297Sdelphij2014-03-25 Thomas E. Dickey <dickey@invisible-island.net> 915264803Sbapt 916264803Sbapt * test/btyacc/RCS, test/yacc/RCS: PERMIT FILE 917264803Sbapt 918264803Sbapt * config_h.in: updated with autoheader-252 919264803Sbapt 920264803Sbapt2014-03-25 Tom.Shields 921264803Sbapt 922264803Sbapt * README.BTYACC: byacc-btyacc-20140323 923264803Sbapt 924264803Sbapt2014-03-24 Tom.Shields 925264803Sbapt 926264803Sbapt * 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: 927264803Sbapt reference output for testing 928264803Sbapt 929319297Sdelphij2014-03-24 Thomas E. Dickey <dickey@invisible-island.net> 930264803Sbapt 931264803Sbapt * defs.h: fix compiler warnings due to mputc() 932264803Sbapt 933264803Sbapt2014-03-23 Tom.Shields 934264803Sbapt 935264803Sbapt * test/btyacc_demo.y: testcase for btyacc 936264803Sbapt 937264803Sbapt * test/btyacc/varsyntax_calc1.error, test/btyacc/varsyntax_calc1.output, test/btyacc/varsyntax_calc1.tab.c, test/btyacc/varsyntax_calc1.tab.h: 938264803Sbapt reference output for testing 939264803Sbapt 940264803Sbapt * test/varsyntax_calc1.y, test/btyacc_calc1.y: testcase for btyacc 941264803Sbapt 942319297Sdelphij2014-03-23 Thomas E. Dickey <dickey@invisible-island.net> 943264803Sbapt 944264803Sbapt * 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: 945264803Sbapt reference output for testing 946264803Sbapt 947264803Sbapt * test/err_syntax26.y: testcase for missing_brace() 948264803Sbapt 949264803Sbapt * 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: 950264803Sbapt reference output for testing 951264803Sbapt 952264803Sbapt * test/err_syntax25.y: testcase for over_unionized() 953264803Sbapt 954264803Sbapt * 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: 955264803Sbapt reference output for testing 956264803Sbapt 957264803Sbapt * test/err_syntax24.y: testcase for default_action_warning() 958264803Sbapt 959264803Sbapt2014-03-23 Tom.Shields 960264803Sbapt 961264803Sbapt * 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: 962264803Sbapt reference output for testing 963264803Sbapt 964319297Sdelphij2014-03-23 Thomas E. Dickey <dickey@invisible-island.net> 965264803Sbapt 966264803Sbapt * 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: 967264803Sbapt reference output for testing 968264803Sbapt 969264803Sbapt * test/err_syntax23.y: testcase for untyped_lhs() 970264803Sbapt 971264803Sbapt2014-03-23 Tom.Shields 972264803Sbapt 973264803Sbapt * test/run_test.sh: 974264803Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 975264803Sbapt 976319297Sdelphij2014-03-23 Thomas E. Dickey <dickey@invisible-island.net> 977264803Sbapt 978264803Sbapt * 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: 979264803Sbapt reference output for testing 980264803Sbapt 981264803Sbapt * test/err_syntax22.y: testcase for untyped_rhs() 982264803Sbapt 983264803Sbapt * 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: 984264803Sbapt reference output for testing 985264803Sbapt 986264803Sbapt * test/err_syntax20.y: testcase for undefined_symbol_warning() 987264803Sbapt 988264803Sbapt * test/err_syntax21.y: testcase for unknown_rhs() 989264803Sbapt 990264803Sbapt * 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: 991264803Sbapt reference output for testing 992264803Sbapt 993264803Sbapt * test/err_syntax19.y: testcase for dollar_error() 994264803Sbapt 995264803Sbapt * 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: 996264803Sbapt reference output for testing 997264803Sbapt 998264803Sbapt * test/err_syntax18.y: testcase for dollar_warning() 999264803Sbapt 1000264803Sbapt * 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: 1001264803Sbapt reference output for testing 1002264803Sbapt 1003264803Sbapt * test/err_syntax17.y: testcase for unterminated_action() 1004264803Sbapt 1005319297Sdelphij2014-03-22 Thomas E. Dickey <dickey@invisible-island.net> 1006264803Sbapt 1007264803Sbapt * 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: 1008264803Sbapt reference output for testing 1009264803Sbapt 1010264803Sbapt * test/err_syntax16.y: testcase for terminal_lhs() 1011264803Sbapt 1012264803Sbapt * 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: 1013264803Sbapt reference output for testing 1014264803Sbapt 1015264803Sbapt * test/err_syntax15.y: testcase for no_grammar() 1016264803Sbapt 1017264803Sbapt * 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: 1018264803Sbapt reference output for testing 1019264803Sbapt 1020264803Sbapt * test/err_syntax14.y: 1021264803Sbapt testcase for restarted_warning() and undefined_goal() 1022264803Sbapt 1023264803Sbapt * 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: 1024264803Sbapt reference output for testing 1025264803Sbapt 1026264803Sbapt * test/err_syntax13.y: testcase for terminal_start() 1027264803Sbapt 1028264803Sbapt * 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: 1029264803Sbapt reference output for testing 1030264803Sbapt 1031264803Sbapt * test/err_syntax12.y: testcase for revalued_warning() 1032264803Sbapt 1033264803Sbapt * 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: 1034264803Sbapt reference output for testing 1035264803Sbapt 1036264803Sbapt * test/err_syntax11.y: testcase for reprec_warning() 1037264803Sbapt 1038264803Sbapt * 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: 1039264803Sbapt reference output for testing 1040264803Sbapt 1041264803Sbapt * test/err_syntax10.y: testcase for retyped_warning() 1042264803Sbapt 1043319297Sdelphij2014-03-21 Thomas E. Dickey <dickey@invisible-island.net> 1044264803Sbapt 1045264803Sbapt * 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: 1046264803Sbapt reference output for testing 1047264803Sbapt 1048264803Sbapt * test/err_syntax9.y: testcase for tokenized_start() 1049264803Sbapt 1050264803Sbapt * 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: 1051264803Sbapt reference output for testing 1052264803Sbapt 1053264803Sbapt * test/err_syntax8a.y, test/err_syntax8.y: testcase for used_reserved() 1054264803Sbapt 1055264803Sbapt * 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: 1056264803Sbapt reference output for testing 1057264803Sbapt 1058264803Sbapt * test/err_syntax7b.y, test/err_syntax7a.y, test/err_syntax7.y: 1059264803Sbapt testcase for illegal_character() 1060264803Sbapt 1061264803Sbapt * 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: 1062264803Sbapt reference output for testing 1063264803Sbapt 1064264803Sbapt * test/err_syntax6.y: testcase for illegal_tag() 1065264803Sbapt 1066264803Sbapt * 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: 1067264803Sbapt reference output for testing 1068264803Sbapt 1069264803Sbapt * test/err_syntax5.y: testcase for unterminated_union() 1070264803Sbapt 1071264803Sbapt * 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: 1072264803Sbapt reference output for testing 1073264803Sbapt 1074264803Sbapt * test/err_syntax4.y: testcase for unterminated_text() 1075264803Sbapt 1076264803Sbapt * 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: 1077264803Sbapt reference output for testing 1078264803Sbapt 1079264803Sbapt * test/err_syntax3.y: testcase for unterminated_string() 1080264803Sbapt 1081264803Sbapt * 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: 1082264803Sbapt reference output for testing 1083264803Sbapt 1084264803Sbapt * test/err_syntax2.y: testcase for unterminated_comment() 1085264803Sbapt 1086264803Sbapt * test/err_syntax1.error, test/yacc/err_syntax1.error: 1087264803Sbapt reference output for testing 1088264803Sbapt 1089264803Sbapt * test/err_syntax1.y: 1090264803Sbapt test-case with syntax error (and nonprinting character) 1091264803Sbapt 1092264803Sbapt * 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: 1093264803Sbapt reference output for testing 1094264803Sbapt 1095264803Sbapt * test/run_test.sh: 1096264803Sbapt save stderr to reference files, to capture shift/reduce messages as well 1097264803Sbapt as syntax-error messages 1098264803Sbapt 1099264803Sbapt * 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: 1100264803Sbapt reference output for testing 1101264803Sbapt 1102264803Sbapt * test/run_test.sh: generate a ".dot" file for the grammar file 1103264803Sbapt 1104264803Sbapt * test/grammar.dot: RCS_BASE 1105264803Sbapt 1106264803Sbapt * test/yacc/grammar.dot: reference output for testing 1107264803Sbapt 1108264803Sbapt2014-03-19 Tom.Shields 1109264803Sbapt 1110264803Sbapt * output.c: rename MAXSHORT to MAXYYINT 1111264803Sbapt 1112264803Sbapt2014-03-18 Tom.Shields 1113264803Sbapt 1114264803Sbapt * yaccpar.skel: skeleton with btyacc additions 1115264803Sbapt 1116264803Sbapt * NOTES-btyacc-Changes: byacc-btyacc-20140323 1117264803Sbapt 1118264803Sbapt * test/btyacc/btyacc_calc1.output, test/btyacc/btyacc_calc1.tab.c, test/btyacc/btyacc_calc1.tab.h: 1119264803Sbapt reference output for testing 1120264803Sbapt 1121264803Sbapt * test/run_make.sh: 1122264803Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 1123264803Sbapt 1124264803Sbapt * 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: 1125264803Sbapt reference output for testing 1126264803Sbapt 1127264803Sbapt * defs.h: 1128264803Sbapt several changes to help decouple the use of 'short' as the type of value 1129264803Sbapt used in yacc parsers. 1130264803Sbapt 1131264803Sbapt * NOTES-btyacc-Disposition: byacc-btyacc-20140323 1132264803Sbapt 1133264803Sbapt2014-03-17 Tom.Shields 1134264803Sbapt 1135264803Sbapt * skel2c, yaccpar.skel, yaccpar.skel.old: RCS_BASE 1136264803Sbapt 1137264803Sbapt * test/run_lint.sh: 1138264803Sbapt move test-outputs into subdirectories to keep btyacc/yacc results separate 1139264803Sbapt 1140264803Sbapt * configure.in: add --with-max-table-size and --enable-btyacc options 1141264803Sbapt 1142264803Sbapt2014-03-16 Tom.Shields 1143264803Sbapt 1144264803Sbapt * main.c: use Value_t rather than short 1145264803Sbapt 1146264803Sbapt2014-03-11 Tom.Shields 1147264803Sbapt 1148264803Sbapt * test/empty.y: testcase for btyacc 1149264803Sbapt 1150264803Sbapt2014-03-10 Tom.Shields 1151264803Sbapt 1152264803Sbapt * test/calc3.y, test/calc2.y: fix unused-variable warning 1153264803Sbapt 1154264803Sbapt2014-02-18 Tom.Shields 1155264803Sbapt 1156264803Sbapt * lr0.c, graph.c: use Value_t rather than short 1157264803Sbapt 1158264803Sbapt * closure.c: use Value_t rather than short 1159264803Sbapt ifdef'd forward-reference prototypes to match ifdef'ing of the actual functions 1160264803Sbapt 1161264803Sbapt * lalr.c: rename MAXSHORT to MAXYYINT 1162264803Sbapt 1163319297Sdelphij2014-01-01 Thomas E. Dickey <dickey@invisible-island.net> 1164260445Sbapt 1165260445Sbapt * yacc.1: document %token-table, improve presentation of double-quotes 1166260445Sbapt 1167260445Sbapt * VERSION, package/byacc.spec, package/debian/changelog: bump 1168260445Sbapt 1169264803Sbapt * 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: 1170264803Sbapt reference output for testing 1171264803Sbapt 1172260445Sbapt * 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: 1173260445Sbapt regen 1174260445Sbapt 1175260445Sbapt * output.c, skeleton.c: 1176260445Sbapt amend the last change so that yytname is #define'd as needed rather than 1177260445Sbapt permanent - to avoid breaking cproto for instance. 1178260445Sbapt 1179260445Sbapt2014-01-01 Christos.Zoulas 1180260445Sbapt 1181260445Sbapt * output.c, defs.h, main.c, reader.c, skeleton.c: 1182260445Sbapt changes to build ntpd using byacc: 1183260445Sbapt - rename yyname[] to yytname[] 1184260445Sbapt - add YYTRANSLATE() macro 1185260445Sbapt - recognize bison's %token-table declaration 1186260445Sbapt 1187319297Sdelphij2014-01-01 Thomas E. Dickey <dickey@invisible-island.net> 1188260445Sbapt 1189260445Sbapt * configure: regen 1190260445Sbapt 1191260445Sbapt * yacc.1: s/EE/XE/ to work around groff bug on Debian 6 1192260445Sbapt 1193260445Sbapt * makefile.in: use CF_MAKE_DOCS 1194260445Sbapt 1195260445Sbapt * aclocal.m4: add CF_MAKE_DOCS 1196260445Sbapt 1197260445Sbapt * configure.in: use CF_MAKE_DOCS 1198260445Sbapt 1199319297Sdelphij2013-12-26 Thomas E. Dickey <dickey@invisible-island.net> 1200260445Sbapt 1201260445Sbapt * config.guess: 2013-11-29 1202260445Sbapt 1203319297Sdelphij2013-11-19 Thomas E. Dickey <dickey@invisible-island.net> 1204260445Sbapt 1205260445Sbapt * aclocal.m4: resync with my-autoconf (fixes for clang and mingw) 1206260445Sbapt 1207319297Sdelphij2013-10-25 Thomas E. Dickey <dickey@invisible-island.net> 1208260445Sbapt 1209260445Sbapt * config.sub: 2013-10-01 1210260445Sbapt 1211319297Sdelphij2013-09-25 Thomas E. Dickey <dickey@invisible-island.net> 1212257315Sbapt 1213257315Sbapt * reader.c: fix two loop-limits found by clang 3.3 --analyze 1214257315Sbapt 1215257315Sbapt * configure: regen 1216257315Sbapt 1217257315Sbapt * aclocal.m4: 1218257315Sbapt tweaks to CF_MIXEDCASE_FILENAMES and CF_XOPEN_SOURCE for msys from ncurses 1219257315Sbapt 1220257315Sbapt * package/mingw-byacc.spec: RCS_BASE 1221257315Sbapt 1222257315Sbapt * 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: 1223257315Sbapt regen 1224257315Sbapt 1225257315Sbapt * skeleton.c: 1226257315Sbapt Increase default stack-size to match FreeBSD version noted as from 1227257315Sbapt "BSD 4.4 Lite Usr.bin Sources". See 1228257315Sbapt 1229257315Sbapt http://svnweb.freebsd.org/base/vendor/CSRG/dist/usr.bin/yacc/ 1230257315Sbapt http://svnweb.freebsd.org/base/head/usr.bin/yacc/ 1231257315Sbapt http://svnweb.freebsd.org/base/vendor/byacc/ 1232257315Sbapt 1233257315Sbapt The original 1.9 sources (on which I based development) used 500 for 1234257315Sbapt stacksize; the BSD Lite sources (a year or two later) used 10000. 1235257315Sbapt 1236257315Sbapt This is a change to default values; the YYMAXDEPTH and YYSTACKSIZE 1237257315Sbapt symbols have "always" been overridable by applications, but rarely 1238257315Sbapt needed to do this. RedHat began using the FreeBSD source in 2000, 1239257315Sbapt and switched to this source in 2007 using the 20050813 snapshot. 1240257315Sbapt 1241257315Sbapt RedHat #743343 misattributed the change in default stacksize to 1242257315Sbapt a regression in byacc, but did not report the issue upstream. 1243257315Sbapt 1244257315Sbapt * package/debian/changelog, VERSION, package/byacc.spec: bump 1245257315Sbapt 1246319297Sdelphij2013-09-07 Thomas E. Dickey <dickey@invisible-island.net> 1247257315Sbapt 1248257315Sbapt * config.sub: update to 2013-09-15 1249257315Sbapt 1250257315Sbapt * config.guess: update to 2013-06-10 1251257315Sbapt 1252319297Sdelphij2013-03-04 Thomas E. Dickey <dickey@invisible-island.net> 1253251143Sbapt 1254251143Sbapt * package/debian/changelog, VERSION, package/byacc.spec: bump 1255251143Sbapt 1256251143Sbapt * aclocal.m4: 1257251143Sbapt adapt tweak from Dave Becket to work around long-ago breakage in "new" autoconf. 1258251143Sbapt 1259251143Sbapt * output.c: 1260251143Sbapt fix bogus #include if "-i" is given but not "-d" (report by Richard Mitton). 1261251143Sbapt also while testing that, found a case where the union_file is unused; added 1262251143Sbapt a check for address that. 1263251143Sbapt 1264251143Sbapt * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: regen 1265251143Sbapt 1266251143Sbapt * test/ftp.y: fix most compiler warnings for "make check_make" 1267251143Sbapt 1268251143Sbapt * test/calc1.tab.c: regen 1269251143Sbapt 1270251143Sbapt * test/calc1.y: fix most compiler warnings for "make check_make" 1271251143Sbapt 1272251143Sbapt * 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: 1273251143Sbapt regen 1274251143Sbapt 1275251143Sbapt * skeleton.c: quiet a gcc conversion-warning in yygrowstack() 1276251143Sbapt 1277251143Sbapt * configure: regen 1278251143Sbapt 1279251143Sbapt * aclocal.m4: 1280251143Sbapt another fix for CF_GCC_VERSION to handle Debian's modification of gcc message. 1281251143Sbapt 1282319297Sdelphij2013-02-10 Thomas E. Dickey <dickey@invisible-island.net> 1283251143Sbapt 1284257315Sbapt * config.sub, config.guess: update to 2013-02-04 1285251143Sbapt 1286319297Sdelphij2012-10-03 Thomas E. Dickey <dickey@invisible-island.net> 1287251143Sbapt 1288251143Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1289251143Sbapt 1290251143Sbapt * configure: regen 1291251143Sbapt 1292251143Sbapt * configure.in: moved AC_PROG_CC_STDC call into CF_PROG_CC 1293251143Sbapt 1294251143Sbapt * aclocal.m4: 1295251143Sbapt moved AC_PROG_CC_STDC call into CF_PROG_CC and (for other uses than byacc) 1296251143Sbapt the CF_PROG_CC macro provides the CF_ANSI_CC_REQD for the 2.13 flavor. 1297251143Sbapt 1298251143Sbapt * aclocal.m4, configure.in: 1299251143Sbapt Arian's change dropped my check for misused $CC variable - restore that with 1300251143Sbapt alternate macro CF_PROG_CC. 1301251143Sbapt 1302251143Sbapt2012-10-03 Adrian.Bunk 1303251143Sbapt 1304251143Sbapt * aclocal.m4: 1305251143Sbapt suggested patch: drop CF_ANSI_CC_REQD, CF_ANSI_CC_CHECK, CF_PROG_EXT since 1306251143Sbapt they are not needed. 1307251143Sbapt 1308319297Sdelphij2012-10-03 Thomas E. Dickey <dickey@invisible-island.net> 1309251143Sbapt 1310251143Sbapt * aclocal.m4: 1311251143Sbapt split-out CF_CC_ENV_FLAGS from CF_ANSI_CC_CHECK to avoid losing it in 1312251143Sbapt Adrian's suggested changes. 1313251143Sbapt 1314251143Sbapt * aclocal.m4: 1315251143Sbapt CF_CLANG_COMPILER - check if the given compiler is really clang. 1316251143Sbapt 1317251143Sbapt * aclocal.m4: 1318251143Sbapt add check for clang to CF_GCC_WARNINGS. modify CF_GCC_WARNINGS to work around 1319251143Sbapt old gcc warning: ncurses change to (try to) use gnatgcc exposed gnatgcc 2.8.1 1320251143Sbapt on my Sarge system (versus 3.3.5 for the normal gcc). The 2.8.1's 1321251143Sbapt pointer-arithmetic checks fell afoul of gcc's misuse of void* in string.h; work 1322251143Sbapt around by excluding that check for pre-3.x compilers. 1323251143Sbapt 1324251143Sbapt * aclocal.m4: 1325251143Sbapt modify CF_GCC_ATTRIBUTES so that autoheader is able to see the definitions 1326251143Sbapt provided by this macro. use AC_DEFINE_UNQUOTED() in CF_GCC_ATTRIBUTES rather 1327251143Sbapt than appending to confdefs.h, since long-ago concern about the ability to 1328251143Sbapt pass-through parameterized macros appears to be not a problem, testing with 1329251143Sbapt 2.13 and 2.52 1330251143Sbapt 1331251143Sbapt2012-10-03 Adrian.Bunk 1332251143Sbapt 1333251143Sbapt * aclocal.m4: 1334251143Sbapt add parameter to AC_DEFINE_UNQUOTED() to allow it to be recognized by 1335251143Sbapt autoheader, updated macros: 1336251143Sbapt CF_CHECK_CACHE 1337251143Sbapt CF_DISABLE_LEAKS 1338251143Sbapt CF_MKSTEMP 1339251143Sbapt CF_MIXEDCASE_FILENAMES 1340251143Sbapt CF_NO_LEAKS_OPTION 1341251143Sbapt 1342319297Sdelphij2012-10-03 Thomas E. Dickey <dickey@invisible-island.net> 1343251143Sbapt 1344251143Sbapt * aclocal.m4: 1345251143Sbapt move existence-check for mkstemp out of the AC_TRY_RUN, to help with 1346251143Sbapt cross-compiles 1347251143Sbapt 1348319297Sdelphij2012-10-02 Thomas E. Dickey <dickey@invisible-island.net> 1349251143Sbapt 1350251143Sbapt * config_h.in: 1351251143Sbapt Adrian Bunk request - replace this with the output from autoheader 1352251143Sbapt 1353251143Sbapt2012-09-29 Adrian.Bunk 1354251143Sbapt 1355251143Sbapt * configure.in: 1356251143Sbapt suggested change: replace CF_ANSI_CC_REQD by AC_PROG_CC_STDC (since no 1357251143Sbapt check is needed anymore for standard C compilers), drop AC_CONST (same 1358251143Sbapt reason), modify AC_OUTPUT to rely upon template generated by autoheader. 1359251143Sbapt bump requirement to autoconf 2.52.20011201 and drop check for CF_PROG_EXT 1360251143Sbapt as being obsolete with autoconf 2.52x 1361251143Sbapt 1362251143Sbapt * configure.in, main.c: drop check for atexit, because it is standard C 1363251143Sbapt 1364251143Sbapt * makefile.in: add assignment for datarootdir variable. 1365251143Sbapt 1366319297Sdelphij2012-05-26 Thomas E. Dickey <dickey@invisible-island.net> 1367240517Sbapt 1368240517Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1369240517Sbapt 1370240517Sbapt * reader.c: 1371240517Sbapt some versions of gcc may warn that bp is not set in mark_symbol, e.g., 1372240517Sbapt if GCC_NORETURN is not handled; appease the compiler. 1373240517Sbapt 1374240517Sbapt * reader.c: 1375240517Sbapt use the declared types Assoc_t and Value_t in some places where compiler only 1376240517Sbapt cared about char versus short. 1377240517Sbapt 1378240517Sbapt * reader.c: 1379240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1380240517Sbapt (no object change) 1381240517Sbapt 1382240517Sbapt * defs.h: 1383240517Sbapt add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD 1384240517Sbapt packagers to build without configure script. Also remove duplicate declaration 1385240517Sbapt of pure_parser variable (prompted by patch by Baptiste Daroussin). 1386240517Sbapt 1387240517Sbapt Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and 1388240517Sbapt REALLOC macros. 1389240517Sbapt 1390240517Sbapt * symtab.c: 1391240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1392240517Sbapt (no object change) 1393240517Sbapt 1394319297Sdelphij2012-05-25 Thomas E. Dickey <dickey@invisible-island.net> 1395240517Sbapt 1396240517Sbapt * output.c, main.c, verbose.c, mkpar.c, lr0.c: 1397240517Sbapt use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation 1398240517Sbapt (no object change) 1399240517Sbapt 1400319297Sdelphij2012-01-15 Thomas E. Dickey <dickey@invisible-island.net> 1401234949Sbapt 1402234949Sbapt * package/debian/copyright: bump 1403234949Sbapt 1404234949Sbapt * test/run_make.sh: workaround for breakage due to GNU make 3.82 1405234949Sbapt 1406234949Sbapt * test/run_make.sh: 1407234949Sbapt tested with Solaris 10 (bison 1.875) and added scripting to exercise 1408234949Sbapt the /usr/ccs/bin/yacc executable 1409234949Sbapt 1410234949Sbapt * test/grammar.tab.c: regen 1411234949Sbapt 1412234949Sbapt * test/grammar.y: modify to also build with Solaris yacc 1413234949Sbapt 1414234949Sbapt * VERSION, package/debian/changelog, package/byacc.spec: bump 1415234949Sbapt 1416264803Sbapt * test/yacc/calc1.output: reference output for testing 1417264803Sbapt 1418234949Sbapt * test/calc1.output, test/calc1.tab.c: regen 1419234949Sbapt 1420234949Sbapt * test/calc1.y: 1421234949Sbapt undo the change made to appease bison, since it was only a warning. 1422234949Sbapt 1423234949Sbapt * test/pure_calc.tab.c, test/pure_error.tab.c: regen 1424234949Sbapt 1425234949Sbapt * test/run_make.sh: another fix for running from top-level directory 1426234949Sbapt 1427234949Sbapt * makefile.in: 1428234949Sbapt ensure that check_make rule depends on having byacc built. 1429234949Sbapt 1430234949Sbapt * test/run_make.sh: fixes for building from parent directory 1431234949Sbapt 1432234949Sbapt * test/pure_error.y, test/pure_calc.y: bison-fixes 1433234949Sbapt 1434234949Sbapt * 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: 1435234949Sbapt regen 1436234949Sbapt 1437264803Sbapt * test/code_debug.y: RCS_BASE 1438264803Sbapt 1439234949Sbapt * test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y: 1440234949Sbapt byacc already declares yyerror 1441234949Sbapt 1442234949Sbapt * test/pure_error.y, test/pure_calc.y: 1443234949Sbapt modified to help make the files build with bison 1444234949Sbapt 1445234949Sbapt * test/run_make.sh: 1446234949Sbapt supply a "%pure-parser" directive when bison needs it. 1447234949Sbapt 1448234949Sbapt * test/code_calc.code.c: regen 1449234949Sbapt 1450234949Sbapt * test/code_calc.y: modified to help make the files build with bison 1451234949Sbapt 1452234949Sbapt * yacc.1: 1453234949Sbapt in testing, found that %expect did not work as documented for bison. 1454234949Sbapt do not recommend it for portable code. 1455234949Sbapt 1456234949Sbapt * test/run_make.sh: workaround breakage in bison's %expect directive 1457234949Sbapt 1458234949Sbapt * test/grammar.y: modified to help make the files build with bison 1459234949Sbapt 1460234949Sbapt * test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen 1461234949Sbapt 1462234949Sbapt * test/calc1.y: quiet a spurious warning from bison 2.3 1463234949Sbapt 1464234949Sbapt * test/calc1.tab.c: regen 1465234949Sbapt 1466234949Sbapt * test/calc1.y: modified to help make the files build with bison 1467234949Sbapt 1468234949Sbapt * yacc.1: comment on "-y" and "-P" options. 1469234949Sbapt 1470234949Sbapt * yacc.1: comment on portability 1471234949Sbapt 1472234949Sbapt * 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: 1473234949Sbapt regen 1474234949Sbapt 1475234949Sbapt * test/ftp.y: modified to help make the files build with bison 1476234949Sbapt (bison's "-y" option is of no use in providing "yacc" compatibility) 1477234949Sbapt 1478234949Sbapt * test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c: 1479234949Sbapt regen 1480234949Sbapt 1481234949Sbapt * test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y: 1482234949Sbapt modified to help make the files build with bison 1483234949Sbapt 1484234949Sbapt * test/calc.tab.c: regen 1485234949Sbapt 1486234949Sbapt * test/calc.y: modified to help make the files build with bison 1487234949Sbapt 1488234949Sbapt * test/error.tab.c: regen 1489234949Sbapt 1490234949Sbapt * test/error.y: modified to help make the files build with bison 1491234949Sbapt 1492234949Sbapt * test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen 1493234949Sbapt 1494234949Sbapt * test/run_make.sh: 1495234949Sbapt check for older bisons which (2.3 for instance) do not support pure parsers 1496234949Sbapt 1497234949Sbapt * test/code_error.y, test/calc3.y, test/calc2.y: 1498234949Sbapt modified to help make the files build with bison 1499234949Sbapt 1500234949Sbapt * test/run_test.sh: use $opt2 in filenames of the generated files 1501234949Sbapt 1502234949Sbapt * 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: 1503234949Sbapt regen 1504234949Sbapt 1505319297Sdelphij2012-01-14 Thomas E. Dickey <dickey@invisible-island.net> 1506234949Sbapt 1507234949Sbapt * 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: 1508234949Sbapt regen 1509234949Sbapt 1510234949Sbapt * output.c: Several changes: 1511234949Sbapt a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex. 1512234949Sbapt b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL, 1513234949Sbapt using YYLEX_PARAM_TYPE and YYLEX_PARAM. 1514234949Sbapt c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL, 1515234949Sbapt to help with redefinitions. 1516234949Sbapt 1517234949Sbapt * test/pure_calc.tab.c: 1518234949Sbapt modified to help make the files build with bison 1519234949Sbapt 1520234949Sbapt * test/run_make.sh: 1521234949Sbapt start work on followup, to check if the generated files build with bison. 1522234949Sbapt 1523234949Sbapt * test/pure_calc.y, test/pure_error.tab.c: 1524234949Sbapt modified to help make the files build with bison 1525234949Sbapt 1526234949Sbapt * test/calc3.tab.c: regen 1527234949Sbapt 1528234949Sbapt * 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: 1529234949Sbapt RCS_BASE 1530234949Sbapt 1531264803Sbapt * 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: 1532264803Sbapt reference output for testing 1533264803Sbapt 1534234949Sbapt * test/run_test.sh: generate/test with "-s" option applied. 1535234949Sbapt 1536319297Sdelphij2012-01-13 Thomas E. Dickey <dickey@invisible-island.net> 1537234949Sbapt 1538234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1539234949Sbapt 1540234949Sbapt * yacc.1: improve documentation of -s option 1541234949Sbapt 1542234949Sbapt * yacc.1: note that yacc ignores -y 1543234949Sbapt 1544234949Sbapt * main.c: add -s option to usage message. 1545234949Sbapt 1546264803Sbapt * test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h: 1547234949Sbapt RCS_BASE 1548234949Sbapt 1549264803Sbapt * test/yacc/quote_calc3.output, test/yacc/quote_calc4.output, test/yacc/quote_calc4.tab.h: 1550264803Sbapt reference output for testing 1551264803Sbapt 1552264803Sbapt * test/quote_calc3.y, test/quote_calc.tab.h: RCS_BASE 1553264803Sbapt 1554264803Sbapt * test/yacc/quote_calc.tab.h: reference output for testing 1555264803Sbapt 1556264803Sbapt * 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: 1557264803Sbapt RCS_BASE 1558264803Sbapt 1559264803Sbapt * test/yacc/quote_calc.output, test/yacc/quote_calc2.output, test/yacc/quote_calc2.tab.h, test/yacc/quote_calc3.tab.h: 1560264803Sbapt reference output for testing 1561264803Sbapt 1562264803Sbapt * test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y: RCS_BASE 1563264803Sbapt 1564234949Sbapt * configure: regen 1565234949Sbapt 1566234949Sbapt * aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE 1567234949Sbapt 1568319297Sdelphij2011-12-19 Thomas E. Dickey <dickey@invisible-island.net> 1569234949Sbapt 1570234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1571234949Sbapt 1572234949Sbapt * yacc.1, output.c, main.c, defs.h: 1573234949Sbapt add "-s" option to suppress generating #define's based on string contents 1574234949Sbapt in a %token statement. For instance 1575234949Sbapt %token EQLS "Equals" 1576234949Sbapt would generate 1577234949Sbapt #define EQLS 256 1578234949Sbapt #define Equals 257 1579234949Sbapt Simply suppressing the second #define makes the behavior closer to yacc. 1580234949Sbapt (report by Paulo Andrade). 1581234949Sbapt 1582319297Sdelphij2011-09-08 Thomas E. Dickey <dickey@invisible-island.net> 1583234949Sbapt 1584234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1585234949Sbapt 1586234949Sbapt * output.c: 1587234949Sbapt fix some more interaction between -i and -d flags to ensure YYERRCODE 1588234949Sbapt and YYSTYPE are declared, tested with cproto. 1589234949Sbapt 1590319297Sdelphij2011-09-07 Thomas E. Dickey <dickey@invisible-island.net> 1591234949Sbapt 1592234949Sbapt * yacc.1: document "-i" option. 1593234949Sbapt 1594234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1595234949Sbapt 1596234949Sbapt * output.c: fix an interaction between -i and -d 1597234949Sbapt 1598234949Sbapt * 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: 1599234949Sbapt regen - changes for "-i" option move the global/impure variables near the 1600234949Sbapt macros that may add a prefix, etc. 1601234949Sbapt 1602234949Sbapt * skeleton.c, output.c, defs.h: changes to support "-i" option. 1603234949Sbapt 1604319297Sdelphij2011-09-06 Thomas E. Dickey <dickey@invisible-island.net> 1605234949Sbapt 1606234949Sbapt * reader.c: pass explicit file-pointer to write_section() 1607234949Sbapt 1608234949Sbapt * main.c: 1609234949Sbapt add "-i" option, to generate interface-file (suggested by Denis M. Wilson) 1610234949Sbapt 1611319297Sdelphij2011-09-05 Thomas E. Dickey <dickey@invisible-island.net> 1612234949Sbapt 1613234949Sbapt * configure: regen 1614234949Sbapt 1615234949Sbapt * aclocal.m4: 1616234949Sbapt resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC) 1617234949Sbapt and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks) 1618234949Sbapt 1619234949Sbapt * defs.h, error.c, reader.c: 1620234949Sbapt add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson) 1621234949Sbapt 1622319297Sdelphij2011-04-01 Thomas E. Dickey <dickey@invisible-island.net> 1623234949Sbapt 1624257315Sbapt * config.sub: update to 2011-04-01 1625234949Sbapt 1626319297Sdelphij2011-02-02 Thomas E. Dickey <dickey@invisible-island.net> 1627234949Sbapt 1628257315Sbapt * config.guess: update to 2011-01-01 1629234949Sbapt 1630319297Sdelphij2010-12-29 Thomas E. Dickey <dickey@invisible-island.net> 1631234949Sbapt 1632234949Sbapt * defs.h, skeleton.c: 1633234949Sbapt add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas) 1634234949Sbapt 1635234949Sbapt * defs.h: 1636234949Sbapt mark all of the error-functions as non-returning (report by Christos Zoulas) 1637234949Sbapt 1638234949Sbapt * 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: 1639234949Sbapt regen 1640234949Sbapt 1641234949Sbapt * skeleton.c: 1642234949Sbapt use only realloc() rather than realloc+malloc, agree that systems needing this 1643234949Sbapt are very rare (prompted by NetBSD change). 1644234949Sbapt 1645234949Sbapt * test/ftp.tab.c: regen 1646234949Sbapt 1647234949Sbapt2010-12-29 Christos.Zoulas 1648234949Sbapt 1649234949Sbapt * test/ftp.y: 1650234949Sbapt improve example, which was stuck in 19XX and assumed file sizes were longs. 1651234949Sbapt 1652319297Sdelphij2010-12-29 Thomas E. Dickey <dickey@invisible-island.net> 1653234949Sbapt 1654234949Sbapt * 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: 1655234949Sbapt regen 1656234949Sbapt 1657234949Sbapt * 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: 1658234949Sbapt use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror 1659234949Sbapt 1660234949Sbapt * skeleton.c: 1661234949Sbapt remove explicit prototype for yylex() via YYLEX_DECL() macro, since that 1662234949Sbapt would prevent declaring yylex() static (request by Christos Zoulas). 1663234949Sbapt 1664234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1665234949Sbapt 1666234949Sbapt2010-12-29 Christos.Zoulas 1667234949Sbapt 1668234949Sbapt * output.c: correct definition for YYERROR_DECL() 1669234949Sbapt 1670319297Sdelphij2010-12-29 Thomas E. Dickey <dickey@invisible-island.net> 1671234949Sbapt 1672234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1673234949Sbapt 1674319297Sdelphij2010-12-26 Thomas E. Dickey <dickey@invisible-island.net> 1675234949Sbapt 1676234949Sbapt * defs.h, main.c: 1677234949Sbapt change return-type of allocate() to avoid warnings of alignment problems 1678234949Sbapt 1679234949Sbapt * main.c: Solaris declares chmod() in <sys/stat.h> 1680234949Sbapt 1681234949Sbapt * configure: regen 1682234949Sbapt 1683234949Sbapt * main.c: ifdef'd use of fcntl.h 1684234949Sbapt 1685234949Sbapt * configure.in: add configure checks for fcntl.h, atexit and mkstemp 1686234949Sbapt 1687234949Sbapt * main.c: for cases where mkstemp() is not available, use tempnam/open 1688234949Sbapt 1689234949Sbapt * aclocal.m4: add CF_MKSTEMP 1690234949Sbapt 1691234949Sbapt * aclocal.m4: 1692234949Sbapt improve quoting, deprecate ${name-value} in favor of standard ${name:-value} 1693234949Sbapt 1694319297Sdelphij2010-12-25 Thomas E. Dickey <dickey@invisible-island.net> 1695234949Sbapt 1696234949Sbapt * main.c: 1697234949Sbapt start revising use of tmpfile(), to make this work with MinGW. Start by 1698234949Sbapt implementing a mkstemp() alternative - noting that mkstemp() also is broken 1699234949Sbapt for MinGW. 1700234949Sbapt 1701234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1702234949Sbapt 1703319297Sdelphij2010-11-27 Thomas E. Dickey <dickey@invisible-island.net> 1704234949Sbapt 1705234949Sbapt * package/byacc.spec, package/debian/changelog, VERSION: bump 1706234949Sbapt 1707234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1708234949Sbapt 1709234949Sbapt * output.c: 1710234949Sbapt corrected use of %parse-param value in yyerror(); it doesn't use &yylval 1711234949Sbapt (report by Clifford Yapp) 1712234949Sbapt 1713319297Sdelphij2010-11-26 Thomas E. Dickey <dickey@invisible-island.net> 1714234949Sbapt 1715234949Sbapt * skeleton.c: typo 1716234949Sbapt 1717234949Sbapt * output.c: 1718234949Sbapt correct line-numbering when "-r" option is used; the 'outline' variable 1719234949Sbapt should only be incremented when writing to the code-file. 1720234949Sbapt 1721234949Sbapt * test/code_calc.code.c, test/code_error.code.c: regen 1722234949Sbapt 1723234949Sbapt * yacc.1: bump date 1724234949Sbapt 1725234949Sbapt * yacc.1: comment on -b option vs -r 1726234949Sbapt 1727234949Sbapt * 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: 1728234949Sbapt regen 1729234949Sbapt 1730234949Sbapt * output.c: 1731234949Sbapt improve on YYERROR_DECL(), adding dummy params which can be used for the 1732234949Sbapt actual function declaration. Also add YYERROR_CALL(). The two macros 1733234949Sbapt simplify maintaining sets of grammars which may/may not be pure. 1734234949Sbapt 1735234949Sbapt * 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: 1736234949Sbapt regen 1737234949Sbapt 1738234949Sbapt * output.c: generate yyerror() calls in output.c 1739234949Sbapt This is for compatibility with bison, which passes the yylval to yyerror 1740234949Sbapt when the %parse-param feature is used. 1741234949Sbapt 1742234949Sbapt * skeleton.c, defs.h: generate yyerror() calls in output.c 1743234949Sbapt 1744234949Sbapt * output.c: simplified a little, using putc_code() and putl_code() 1745234949Sbapt 1746264803Sbapt * test/yacc/calc1.tab.h: reference output for testing 1747264803Sbapt 1748234949Sbapt * test/calc1.tab.h: regen 1749234949Sbapt 1750234949Sbapt * reader.c: 1751234949Sbapt improve ifdef for YYSTYPE union declaration (report by Clifford Yapp) 1752234949Sbapt 1753234949Sbapt * reader.c: 1754234949Sbapt accept underscore as a replacement for dash in command names, e.g., 1755234949Sbapt "%pure_parser" vs "%pure-parser". 1756234949Sbapt 1757234949Sbapt * test/calc1.tab.c: regen 1758234949Sbapt 1759234949Sbapt * output.c, reader.c: 1760234949Sbapt also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp) 1761234949Sbapt 1762234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1763234949Sbapt 1764319297Sdelphij2010-11-24 Thomas E. Dickey <dickey@invisible-island.net> 1765234949Sbapt 1766234949Sbapt * main.c, defs.h, symtab.c, error.c: reduce global variables 1767234949Sbapt 1768234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1769234949Sbapt 1770234949Sbapt * reader.c: 1771234949Sbapt amend fix for Redhat #112617 to still call default_action_warning() for 1772234949Sbapt empty rules (report by Bruce Cran). 1773234949Sbapt 1774319297Sdelphij2010-11-22 Thomas E. Dickey <dickey@invisible-island.net> 1775234949Sbapt 1776234949Sbapt * output.c: 1777234949Sbapt add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp). 1778234949Sbapt 1779234949Sbapt * test/calc1.tab.c: regen 1780234949Sbapt 1781234949Sbapt * test/calc1.y: cleanup compiler warnings 1782234949Sbapt 1783234949Sbapt * test/grammar.y: add "%expect" 1784234949Sbapt 1785234949Sbapt * test/calc1.tab.h: regen 1786234949Sbapt 1787234949Sbapt * test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE 1788234949Sbapt 1789234949Sbapt * test/calc2.tab.c, test/calc3.tab.c: regen 1790234949Sbapt 1791234949Sbapt * test/calc1.y: 1792234949Sbapt advanced example from Steve Johnson's paper, uses unions 1793234949Sbapt 1794234949Sbapt * test/calc3.y, test/calc2.y: init 'base', so examples can run 1795234949Sbapt 1796234949Sbapt * test/ftp.tab.c, test/ftp.y: tweaks to compile with g++ 1797234949Sbapt 1798234949Sbapt * output.c: compensate for fix in reader.c 1799234949Sbapt 1800234949Sbapt * reader.c: 1801234949Sbapt add/use putc_both() and puts_both(), incidentally fixing a place where 1802234949Sbapt a union copied to the union_file may be missing the end of the last line. 1803234949Sbapt 1804234949Sbapt * package/debian/changelog, package/byacc.spec, VERSION: bump 1805234949Sbapt 1806319297Sdelphij2010-09-28 Thomas E. Dickey <dickey@invisible-island.net> 1807234949Sbapt 1808257315Sbapt * config.guess: update to 2010-09-24 1809234949Sbapt 1810319297Sdelphij2010-09-10 Thomas E. Dickey <dickey@invisible-island.net> 1811234949Sbapt 1812257315Sbapt * config.sub: update to 2010-09-11 1813234949Sbapt 1814319297Sdelphij2010-06-10 Thomas E. Dickey <dickey@invisible-island.net> 1815234949Sbapt 1816234949Sbapt * yacc.1, package/debian/changelog, package/byacc.spec, VERSION: 1817234949Sbapt bump to 2010/06/10 1818234949Sbapt 1819319297Sdelphij2010-06-09 Thomas E. Dickey <dickey@invisible-island.net> 1820234949Sbapt 1821234949Sbapt * reader.c: free declarations in leak-testing code. 1822234949Sbapt 1823234949Sbapt * main.c: close code_file if -r option used, for leak-testing 1824234949Sbapt 1825234949Sbapt * defs.h, reader.c: 1826234949Sbapt improve %lex-param / %parse-param implementation by allowing for arrays to 1827234949Sbapt be passed as parameters, e.g., "int regs[26]". 1828234949Sbapt 1829264803Sbapt * test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h: 1830234949Sbapt RCS_BASE 1831234949Sbapt 1832264803Sbapt * test/yacc/calc3.output, test/yacc/calc3.tab.h: 1833264803Sbapt reference output for testing 1834264803Sbapt 1835264803Sbapt * test/calc2.tab.c, test/calc2.y, test/calc2.tab.h: RCS_BASE 1836264803Sbapt 1837264803Sbapt * test/yacc/calc2.tab.h: reference output for testing 1838264803Sbapt 1839264803Sbapt * test/calc2.output: RCS_BASE 1840264803Sbapt 1841264803Sbapt * test/yacc/calc2.output: reference output for testing 1842264803Sbapt 1843234949Sbapt * output.c: 1844234949Sbapt improve %lex-param / %parse-param implementation by allowing for arrays to 1845234949Sbapt be passed as parameters, e.g., "int regs[26]". 1846234949Sbapt 1847234949Sbapt * test/calc.tab.c, test/calc.y: 1848234949Sbapt test-cases and reference files for %lex-param / %parse-param 1849234949Sbapt 1850234949Sbapt * makefile.in: add docs-rule, for html/pdf/txt form of manpage 1851234949Sbapt 1852234949Sbapt * configure: regen 1853234949Sbapt 1854234949Sbapt * aclocal.m4: add CF_XOPEN_SOURCE, etc. 1855234949Sbapt 1856234949Sbapt * configure.in: 1857234949Sbapt use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89 1858234949Sbapt 1859234949Sbapt * 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: 1860234949Sbapt fix warnings from clang --analyze 1861234949Sbapt 1862319297Sdelphij2010-06-08 Thomas E. Dickey <dickey@invisible-island.net> 1863234949Sbapt 1864234949Sbapt * output.c: fix to build with c89, etc. 1865234949Sbapt 1866234949Sbapt * reader.c: gcc warning 1867234949Sbapt 1868234949Sbapt * 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: 1869234949Sbapt modified test-cases to allow them to compile, to validate pure-parser changes. 1870234949Sbapt updated reference files to match. 1871234949Sbapt 1872234949Sbapt * output.c: 1873234949Sbapt move call for output_stype() earlier since it is used in pure-parser declarations 1874234949Sbapt 1875234949Sbapt * test/grammar.tab.c, test/grammar.y: 1876234949Sbapt modified test-cases to allow them to compile, to validate pure-parser changes. 1877234949Sbapt updated reference files to match. 1878234949Sbapt 1879234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 1880234949Sbapt regen 1881234949Sbapt 1882234949Sbapt * yacc.1: document %lex-param and %parse-param 1883234949Sbapt 1884234949Sbapt * test/run_lint.sh, test/run_make.sh: RCS_BASE 1885234949Sbapt 1886234949Sbapt * test/run_test.sh: 1887234949Sbapt further modify to allow build-directory to be in a different location by 1888234949Sbapt passing this directory's location as a parameter to the script. 1889234949Sbapt 1890234949Sbapt * makefile.in: 1891234949Sbapt add check_make and check_lint rules to help validate the generated files 1892234949Sbapt in the test-directory 1893234949Sbapt 1894319297Sdelphij2010-06-07 Thomas E. Dickey <dickey@invisible-island.net> 1895234949Sbapt 1896234949Sbapt * test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE 1897234949Sbapt 1898234949Sbapt * test/run_test.sh: 1899234949Sbapt provide for testing -r and -P options by checking if the ".y" filename 1900234949Sbapt begins with "code_" or "pure_", respectively. 1901234949Sbapt 1902264803Sbapt * test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h: 1903234949Sbapt RCS_BASE 1904234949Sbapt 1905264803Sbapt * test/yacc/code_error.tab.h: reference output for testing 1906264803Sbapt 1907264803Sbapt * test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h: 1908264803Sbapt RCS_BASE 1909264803Sbapt 1910264803Sbapt * test/yacc/code_calc.tab.h: reference output for testing 1911264803Sbapt 1912264803Sbapt * test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h: 1913264803Sbapt RCS_BASE 1914264803Sbapt 1915264803Sbapt * test/yacc/pure_calc.output, test/yacc/pure_calc.tab.h, test/yacc/pure_error.output, test/yacc/pure_error.tab.h: 1916264803Sbapt reference output for testing 1917264803Sbapt 1918264803Sbapt * test/code_calc.output, test/code_error.output: RCS_BASE 1919264803Sbapt 1920264803Sbapt * test/yacc/code_calc.output, test/yacc/code_error.output: 1921264803Sbapt reference output for testing 1922264803Sbapt 1923234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen 1924234949Sbapt 1925234949Sbapt * test/run_test.sh: 1926234949Sbapt changes to support running "make check" in a separate build-tree 1927234949Sbapt 1928234949Sbapt * main.c: add "-P" to usage message 1929234949Sbapt 1930234949Sbapt * reader.c: use UCH() macro to hide casts. 1931234949Sbapt 1932234949Sbapt2010-06-07 Andres.Mejia 1933234949Sbapt 1934234949Sbapt * main.c, output.c, reader.c, defs.h, skeleton.c: 1935234949Sbapt Fix the output order of the generated parse code file. This allows for 1936234949Sbapt the use of YYPARSE_PARAM, by having the output that checks for 1937234949Sbapt YYPARSE_PARAM to be defined come after the C code block in the 1938234949Sbapt definitions section of a yacc file. 1939234949Sbapt 1940234949Sbapt Implement support for YYLEX_PARAM, similar to bison. This is useful for 1941234949Sbapt support for building reentrant lexers with flex. 1942234949Sbapt 1943234949Sbapt Fix a compatibility issue with bison's pure-parser option. Bison 1944234949Sbapt defines yylex as sending at least one parameter, &yylval, as the first 1945234949Sbapt parameter and doesn't seem to have an easy way to remove that parameter. 1946234949Sbapt This on the other hand is rather convenient to support saving to yylval 1947234949Sbapt from flex when building reentrant lexers and parsers. 1948234949Sbapt 1949234949Sbapt Add support for the %parse-param and %lex-param directives used in 1950234949Sbapt bison. This change bears some similarity to NetBSD's changes to byacc 1951234949Sbapt at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html 1952234949Sbapt 1953234949Sbapt Bison allows for POSIX yacc emulation via a yacc directive in the yacc 1954234949Sbapt file, and also via a command line switch. Implement this feature as a 1955234949Sbapt no-op for byacc, since byacc is designed to be POSIX yacc compatible 1956234949Sbapt anyway. This allows for better compatibility with yacc sources written 1957234949Sbapt for bison. 1958234949Sbapt 1959319297Sdelphij2010-06-07 Thomas E. Dickey <dickey@invisible-island.net> 1960234949Sbapt 1961234949Sbapt * VERSION: bump to 2010/06/07 1962234949Sbapt 1963319297Sdelphij2010-06-06 Thomas E. Dickey <dickey@invisible-island.net> 1964234949Sbapt 1965234949Sbapt * test/calc.tab.c, configure: regen 1966234949Sbapt 1967234949Sbapt * skeleton.c: 1968234949Sbapt move #include's down into the generated code, to allow user-defined code 1969234949Sbapt to override feature definitions, particularly with stdlib.h (request by 1970234949Sbapt Marcus Kool). 1971234949Sbapt 1972234949Sbapt * lr0.c, error.c, reader.c, defs.h: 1973234949Sbapt strict gcc 3.4.6 warnings on 64-bit platform 1974234949Sbapt 1975234949Sbapt * aclocal.m4, configure.in: add check for lint 1976234949Sbapt 1977234949Sbapt * makefile.in: add lint rule 1978234949Sbapt 1979234949Sbapt * defs.h, closure.c, lr0.c, warshall.c, main.c: 1980234949Sbapt fix gcc warnings, mostly for 64-bit platform 1981234949Sbapt 1982234949Sbapt * aclocal.m4: 1983234949Sbapt add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc 1984234949Sbapt 1985234949Sbapt * makefile.in: add etags/TAGS if available 1986234949Sbapt 1987234949Sbapt * configure.in: add configure check for actual ctags and etags programs 1988234949Sbapt 1989234949Sbapt * package/debian/copyright: add copyright notices for non-PD files 1990234949Sbapt 1991234949Sbapt * package/debian/changelog: 1992234949Sbapt incorporated scripts in upstream to use for test-builds 1993234949Sbapt 1994234949Sbapt * makefile.in: drop mkdirs.sh, just use "mkdir -p" 1995234949Sbapt 1996234949Sbapt * AUTHORS: nicknames for some contributors (see CHANGES for details) 1997234949Sbapt 1998234949Sbapt * package/byacc.spec: RPM file for byacc 1999234949Sbapt 2000234949Sbapt * VERSION: bump to 2010/06/06 2001234949Sbapt 2002234949Sbapt * aclocal.m4: add copyright notice, from "my-autoconf" macros 2003234949Sbapt http://invisible-island.net/autoconf/autoconf.html 2004234949Sbapt 2005234949Sbapt * package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS: 2006234949Sbapt PERMIT FILE 2007234949Sbapt 2008234949Sbapt * aclocal.m4: resync with my-autoconf. summary of changes: 2009234949Sbapt a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter 2010234949Sbapt b) CF_DISABLE_ECHO, change indent-convention for substituted makefile 2011234949Sbapt c) CF_GCC_VERSION, ignore stderr 2012234949Sbapt d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc 2013234949Sbapt 2014319297Sdelphij2010-04-20 Thomas E. Dickey <dickey@invisible-island.net> 2015234949Sbapt 2016234949Sbapt * 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: 2017234949Sbapt scripts from Debian package 2018234949Sbapt 2019319297Sdelphij2010-02-16 Thomas E. Dickey <dickey@invisible-island.net> 2020234949Sbapt 2021234949Sbapt * yacc.1: document -P and bison-extensions 2022234949Sbapt 2023234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 2024234949Sbapt regen 2025234949Sbapt 2026234949Sbapt * output.c: implement %pure-parser 2027234949Sbapt 2028234949Sbapt * skeleton.c: 2029234949Sbapt implement %pure-parser, like bison. To help with this, changed the stack 2030234949Sbapt variables, putting them into a struct. 2031234949Sbapt 2032234949Sbapt * reader.c: implement %pure-parser 2033234949Sbapt 2034234949Sbapt * defs.h: modified skeleton to support %pure-parser feature 2035234949Sbapt 2036234949Sbapt * main.c: add -P option to set %pure-parser 2037234949Sbapt 2038234949Sbapt * output.c: 2039234949Sbapt make -r and -p options work together. The -r option splits the generated 2040234949Sbapt parser into code/table files; for this case we cannot use static data. 2041234949Sbapt Also, we have to repeat the #define's used for prefix (-p) as well as the 2042234949Sbapt redeclaration of yyparse(). Finally, allow any of the prefixed names to 2043234949Sbapt be overridden, e.g., by passing a -D option to the compiler. Make that 2044234949Sbapt a little more readable by putting a blank line before each chunk. 2045234949Sbapt 2046234949Sbapt * defs.h: add definitions for %pure-parser 2047234949Sbapt 2048234949Sbapt * skeleton.c: 2049234949Sbapt put blank line before/after the redeclaration of yyparse() 2050234949Sbapt 2051234949Sbapt * output.c: allow for other program redefining yylex() 2052234949Sbapt 2053234949Sbapt * skeleton.c: 2054234949Sbapt split-off xdecls[] array, to move declaration of yyparse() after #define's 2055234949Sbapt 2056234949Sbapt * defs.h: split-out xdecls[] 2057234949Sbapt 2058234949Sbapt * VERSION: bump 2059234949Sbapt 2060234949Sbapt * configure: regen 2061234949Sbapt 2062234949Sbapt * aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS 2063234949Sbapt 2064234949Sbapt * aclocal.m4: 2065234949Sbapt resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes. 2066234949Sbapt 2067234949Sbapt2010-02-16 Ostap.Cherkashi 2068234949Sbapt 2069234949Sbapt * skeleton.c: fix a memory leak in the generated skeleton 2070234949Sbapt 2071319297Sdelphij2010-01-01 Thomas E. Dickey <dickey@invisible-island.net> 2072234949Sbapt 2073234949Sbapt * package/debian/source/format: scripts from Debian package 2074234949Sbapt 2075319297Sdelphij2009-12-31 Thomas E. Dickey <dickey@invisible-island.net> 2076234949Sbapt 2077257315Sbapt * config.guess: update to 2009-12-30 2078234949Sbapt 2079257315Sbapt * config.sub: update to 2009-12-31 2080234949Sbapt 2081319297Sdelphij2009-10-27 Thomas E. Dickey <dickey@invisible-island.net> 2082234949Sbapt 2083234949Sbapt * VERSION: 20091027 2084234949Sbapt 2085234949Sbapt * output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c: 2086234949Sbapt strict compiler warnings 2087234949Sbapt 2088319297Sdelphij2009-10-26 Thomas E. Dickey <dickey@invisible-island.net> 2089234949Sbapt 2090234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 2091234949Sbapt resync 2092234949Sbapt 2093234949Sbapt * main.c, defs.h: introduce some typedefs for portability, etc. 2094234949Sbapt 2095234949Sbapt * makefile.in: 2096234949Sbapt don't remove "*.log" in mostlyclean rule since it interferes with regression 2097234949Sbapt script. 2098234949Sbapt 2099234949Sbapt * configure: regen 2100234949Sbapt 2101234949Sbapt * aclocal.m4: resync with my-autoconf 2102234949Sbapt 2103319297Sdelphij2009-08-25 Thomas E. Dickey <dickey@invisible-island.net> 2104234949Sbapt 2105257315Sbapt * config.guess, config.sub: update to 2009-08-19 2106234949Sbapt 2107319297Sdelphij2009-02-21 Thomas E. Dickey <dickey@invisible-island.net> 2108234949Sbapt 2109234949Sbapt * VERSION: bump 2110234949Sbapt 2111234949Sbapt * output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25 2112234949Sbapt 2113319297Sdelphij2008-12-26 Thomas E. Dickey <dickey@invisible-island.net> 2114234949Sbapt 2115234949Sbapt * configure: regen with autoconf-2.52 (patched) 2116234949Sbapt 2117319297Sdelphij2008-12-25 Thomas E. Dickey <dickey@invisible-island.net> 2118234949Sbapt 2119234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 2120234949Sbapt regenerated 2121234949Sbapt 2122319297Sdelphij2008-12-24 Thomas E. Dickey <dickey@invisible-island.net> 2123234949Sbapt 2124234949Sbapt * VERSION: bump 2125234949Sbapt 2126234949Sbapt * skeleton.c: 2127234949Sbapt remove ifdef-lint from goto yyerrlab, to quiet gcc warning 2128234949Sbapt 2129319297Sdelphij2008-11-26 Thomas E. Dickey <dickey@invisible-island.net> 2130234949Sbapt 2131234949Sbapt * verbose.c, main.c, defs.h, mkpar.c, reader.c: 2132234949Sbapt completed implementation of "%expect" (report by Perry E. Metzger). 2133234949Sbapt add "%expect-rr", which is (unlike bison) allowable in LALR parsers. 2134234949Sbapt 2135319297Sdelphij2008-11-24 Thomas E. Dickey <dickey@invisible-island.net> 2136234949Sbapt 2137234949Sbapt * 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: 2138234949Sbapt change indent-style (request by Perry E. Metzger) 2139234949Sbapt 2140319297Sdelphij2008-08-27 Thomas E. Dickey <dickey@invisible-island.net> 2141234949Sbapt 2142234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2143234949Sbapt better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 2144234949Sbapt 2145234949Sbapt * VERSION: bump 2146234949Sbapt 2147234949Sbapt * skeleton.c: 2148234949Sbapt better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro 2149234949Sbapt 2150234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c: 2151234949Sbapt change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's. 2152234949Sbapt 2153234949Sbapt * configure: regen'd 2154234949Sbapt 2155234949Sbapt * configure.in: add -Wwrite-strings to warnings 2156234949Sbapt 2157234949Sbapt * test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c: 2158234949Sbapt add YYPARSE_PARAM and YYPARSE_PARAM_TYPE 2159234949Sbapt 2160234949Sbapt * skeleton.c: 2161234949Sbapt add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features. 2162234949Sbapt 2163234949Sbapt * main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c: 2164234949Sbapt fixes for gcc -Wwrite-strings 2165234949Sbapt 2166234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2167234949Sbapt generate the tables as static-const (this is an interface change) 2168234949Sbapt 2169234949Sbapt * output.c: realign columns in start_table() 2170234949Sbapt 2171234949Sbapt * output.c: 2172234949Sbapt generate the tables as static-const (this is an interface change) 2173234949Sbapt 2174234949Sbapt * output.c: reorder functions to eliminate forward-references 2175234949Sbapt 2176234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2177234949Sbapt remove 'register' keywords 2178234949Sbapt 2179319297Sdelphij2008-08-26 Thomas E. Dickey <dickey@invisible-island.net> 2180234949Sbapt 2181234949Sbapt * 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: 2182234949Sbapt remove 'register' keywords 2183234949Sbapt 2184319297Sdelphij2008-08-25 Thomas E. Dickey <dickey@invisible-island.net> 2185234949Sbapt 2186234949Sbapt * test/ftp.tab.c: regen'd 2187234949Sbapt 2188234949Sbapt * reader.c: 2189234949Sbapt improve the left-curly fix by testing after blanks, to avoid having a 2190234949Sbapt " {" at the beginning of a line. 2191234949Sbapt 2192234949Sbapt * test/error.tab.c, test/grammar.tab.c: regen'd 2193234949Sbapt 2194234949Sbapt * output.c: 2195234949Sbapt move the remaining newline-counting into write_XXX functions. 2196234949Sbapt 2197234949Sbapt * test/calc.tab.c: regen'd 2198234949Sbapt 2199234949Sbapt * output.c: 2200234949Sbapt simplify part of the output_file formatting using new functions, e.g., 2201234949Sbapt start_int_table(), output_newline(). 2202234949Sbapt 2203234949Sbapt * reader.c: 2204234949Sbapt modify copy_action() to indent the first character, it if is is left-curly 2205234949Sbapt brace. That makes the output look more like the original, as well as makes 2206234949Sbapt it simpler to edit (not confuse editors which look for a left-curly in the 2207234949Sbapt first column as if it were the beginning of a function). 2208234949Sbapt 2209234949Sbapt * skeleton.c: minor fixes to avoid gcc -Wconversion warnings 2210234949Sbapt 2211234949Sbapt * output.c: align the #define's produced for "-p" option 2212234949Sbapt 2213234949Sbapt * test/run_test.sh: use the "-p" option for better coverage. 2214234949Sbapt 2215234949Sbapt * output.c: simplify output_prefix() with new define_prefixed() 2216234949Sbapt 2217234949Sbapt * skeleton.c: include string.h, for memset() 2218234949Sbapt change stack size to unsigned to fix gcc -Wconversion warnings. 2219234949Sbapt 2220234949Sbapt * VERSION: bump to 2008/8/25 2221234949Sbapt 2222234949Sbapt * makefile.in: add dependency on VERSION file. 2223234949Sbapt 2224319297Sdelphij2008-08-24 Thomas E. Dickey <dickey@invisible-island.net> 2225234949Sbapt 2226234949Sbapt * VERSION: bump 2227234949Sbapt 2228234949Sbapt * lalr.c: improved memory-leak checking by freeing data in includes[] 2229234949Sbapt 2230234949Sbapt * test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c: 2231234949Sbapt update to match skeleton-change 2232234949Sbapt 2233234949Sbapt * configure: regen'd 2234234949Sbapt 2235234949Sbapt * skeleton.c: Add fix for stack discussed 2236234949Sbapt http://undeadly.org/cgi?action=article&sid=20080708155228 2237234949Sbapt and applied 2238234949Sbapt http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29 2239234949Sbapt 2240234949Sbapt * aclocal.m4: resync with my-autoconf (no major changes) 2241234949Sbapt 2242319297Sdelphij2008-07-24 Thomas E. Dickey <dickey@invisible-island.net> 2243234949Sbapt 2244234949Sbapt * package/pkgsrc/Makefile, package/pkgsrc/distinfo: 2245234949Sbapt scripts from NetBSD pkgsrc, for test-builds 2246234949Sbapt 2247319297Sdelphij2008-03-14 Thomas E. Dickey <dickey@invisible-island.net> 2248234949Sbapt 2249234949Sbapt * config.sub: update to 2008-03-08 2250234949Sbapt 2251234949Sbapt * config.guess: update to 2008-03-12 2252234949Sbapt 2253319297Sdelphij2007-05-09 Thomas E. Dickey <dickey@invisible-island.net> 2254234949Sbapt 2255234949Sbapt * main.c: close graph, verbose files if opened, on exit. 2256234949Sbapt 2257234949Sbapt * main.c: 2258234949Sbapt audit memory leaks - valgrind reported some memory still in use on exit. 2259234949Sbapt 2260234949Sbapt * lalr.c, output.c, reader.c, mkpar.c, lr0.c: 2261234949Sbapt add hook for auditing memory leaks 2262234949Sbapt 2263234949Sbapt * defs.h: add hooks for auditing memory leaks 2264234949Sbapt 2265234949Sbapt * configure: regen'd 2266234949Sbapt 2267234949Sbapt * configure.in: 2268234949Sbapt use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind, 2269234949Sbapt --with-dbmalloc and --with-dmalloc 2270234949Sbapt 2271234949Sbapt * aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND 2272234949Sbapt 2273234949Sbapt * aclocal.m4: improve version-checking in CF_GCC_VERSION 2274234949Sbapt rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro 2275234949Sbapt 2276234949Sbapt * VERSION: 2007/5/9 2277234949Sbapt 2278234949Sbapt * main.c: file_prefix did not always have a trailing null. 2279234949Sbapt 2280319297Sdelphij2007-03-25 Thomas E. Dickey <dickey@invisible-island.net> 2281234949Sbapt 2282234949Sbapt * mkdirs.sh: improved version for "make -j" 2283234949Sbapt 2284319297Sdelphij2006-12-22 Thomas E. Dickey <dickey@invisible-island.net> 2285234949Sbapt 2286257315Sbapt * config.guess: update to 2006/12/22 2287234949Sbapt 2288319297Sdelphij2006-12-08 Thomas E. Dickey <dickey@invisible-island.net> 2289234949Sbapt 2290257315Sbapt * config.sub: update to 2006/12/08 2291234949Sbapt 2292319297Sdelphij2005-08-13 Thomas E. Dickey <dickey@invisible-island.net> 2293234949Sbapt 2294234949Sbapt * main.c: add -V to usage message 2295234949Sbapt 2296234949Sbapt * makefile.in: remove -t option from ctags 2297234949Sbapt 2298234949Sbapt * VERSION: 2005/8/13 2299234949Sbapt 2300234949Sbapt2005-08-13 schmitz 2301234949Sbapt 2302234949Sbapt * main.c: Sylvain Schmitz: 2303234949Sbapt modify the '-o' option to work like bison's, which sets the file-prefix. 2304234949Sbapt 2305234949Sbapt2005-08-13 Matt.Kraai 2306234949Sbapt 2307234949Sbapt * output.c: 2308234949Sbapt Debian #322858 (don't close union_file, which contained data). 2309234949Sbapt This feature is used in groff. 2310234949Sbapt 2311319297Sdelphij2005-08-13 Thomas E. Dickey <dickey@invisible-island.net> 2312234949Sbapt 2313234949Sbapt * configure: regenerated 2314234949Sbapt 2315234949Sbapt * aclocal.m4: improve checks for Intel compiler warnings 2316234949Sbapt 2317319297Sdelphij2005-06-25 Thomas E. Dickey <dickey@invisible-island.net> 2318234949Sbapt 2319257315Sbapt * config.sub: update to 2005/6/2 2320234949Sbapt 2321257315Sbapt * config.guess: update to 2005/5/27 2322234949Sbapt 2323319297Sdelphij2005-05-05 Thomas E. Dickey <dickey@invisible-island.net> 2324234949Sbapt 2325234949Sbapt * defs.h: add a fallback for GCC_UNUSED 2326234949Sbapt 2327319297Sdelphij2005-05-04 Thomas E. Dickey <dickey@invisible-island.net> 2328234949Sbapt 2329234949Sbapt * makefile.in: add "." to include-path to pickup config.h 2330234949Sbapt 2331234949Sbapt * reader.c: 2332234949Sbapt apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617. 2333234949Sbapt 2334234949Sbapt * output.c: 2335234949Sbapt correct a limit check in pack_vector() - report/analysis by William Evans 2336234949Sbapt 2337234949Sbapt * main.c: 2338234949Sbapt exit after printing version. Otherwise "yacc -V" will exit with an erro 2339234949Sbapt after printing the usage message. 2340234949Sbapt 2341234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2342234949Sbapt regenerated after skeleton-changes 2343234949Sbapt 2344234949Sbapt * skeleton.c: replace a few -1's with YYEMPTY 2345234949Sbapt 2346234949Sbapt * skeleton.c: 2347234949Sbapt delete yynewerror (no one uses it any more, and it just makes compiler warnings) 2348234949Sbapt 2349234949Sbapt * skeleton.c: adapt yygrowstack() and related definitions from FreeBSD 2350234949Sbapt 2351234949Sbapt * test/run_test.sh: 2352234949Sbapt filter out lines with YYPATCH, since that will change with each update 2353234949Sbapt 2354234949Sbapt * yacc.1: add -V option 2355234949Sbapt 2356234949Sbapt * main.c: add -V option to print the version. 2357234949Sbapt simplify option-parsing by moving the duplicate logic for setting flags into 2358234949Sbapt new function setflag(). 2359234949Sbapt 2360234949Sbapt * skeleton.c: 2361234949Sbapt move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers). 2362234949Sbapt add YYPATCH here so it can be tested by applications. 2363234949Sbapt 2364234949Sbapt * defs.h: 2365234949Sbapt add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and 2366234949Sbapt YYPATCH symbols. 2367234949Sbapt 2368234949Sbapt * lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c: 2369234949Sbapt reduce externs by making static the procedures that are not referenced outside 2370234949Sbapt the module in which they are defined. 2371234949Sbapt 2372234949Sbapt * makefile.in: 2373234949Sbapt the VERSION file holds the patch-date. Define YYPATCH, so this will be 2374234949Sbapt compiled into the skeleton. 2375234949Sbapt 2376234949Sbapt * VERSION: patch-level for byacc 2377234949Sbapt 2378234949Sbapt * main.c: 2379234949Sbapt add "-o" to usage message. It is too long for a single line; rewrite usage() 2380234949Sbapt to show one option per line. 2381234949Sbapt 2382319297Sdelphij2005-05-03 Thomas E. Dickey <dickey@invisible-island.net> 2383234949Sbapt 2384234949Sbapt * main.c: add -o option, to work with scripts that assume bison. 2385234949Sbapt simplify create_file_names() with a macro. 2386234949Sbapt simplify done() with a macro. 2387234949Sbapt adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by 2388234949Sbapt onintr(), do not flush output via exit(), but use _exit() instead. 2389234949Sbapt 2390234949Sbapt * defs.h: remove unnecessary externs for main.c 2391234949Sbapt 2392234949Sbapt * yacc.1: add -o option 2393234949Sbapt 2394234949Sbapt * graph.c: remove unused parameter 2395234949Sbapt 2396234949Sbapt * mkpar.c, defs.h, reader.c: 2397234949Sbapt add support for "%expect", a bison feature from FreeBSD sources 2398234949Sbapt 2399234949Sbapt * 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: 2400234949Sbapt indent'd 2401234949Sbapt 2402234949Sbapt * configure: regenerated for 2005/5/5 2403234949Sbapt 2404234949Sbapt * aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER) 2405234949Sbapt 2406234949Sbapt2005-04-27 schmitz 2407234949Sbapt 2408234949Sbapt * defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1: 2409234949Sbapt Sylvain Schmitz <schmitz@i3s.unice.fr>: 2410234949Sbapt add graphical output of the LALR(1) automaton for graphviz, 2411234949Sbapt associated with command-line option `-g' 2412234949Sbapt 2413319297Sdelphij2005-04-16 Thomas E. Dickey <dickey@invisible-island.net> 2414234949Sbapt 2415257315Sbapt * config.sub: update to 2005/2/10 2416234949Sbapt 2417257315Sbapt * config.guess: update to 2005/3/24 2418234949Sbapt 2419319297Sdelphij2005-04-13 Thomas E. Dickey <dickey@invisible-island.net> 2420234949Sbapt 2421234949Sbapt * package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds 2422234949Sbapt 2423319297Sdelphij2005-03-21 Thomas E. Dickey <dickey@invisible-island.net> 2424234949Sbapt 2425234949Sbapt * package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds 2426234949Sbapt 2427319297Sdelphij2004-03-28 Thomas E. Dickey <dickey@invisible-island.net> 2428234949Sbapt 2429234949Sbapt * test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: 2430234949Sbapt updates due to adding yyparse() prototype 2431234949Sbapt 2432234949Sbapt * configure: RCS_BASE 2433234949Sbapt 2434234949Sbapt * configure.in: 2435234949Sbapt add AC_ARG_PROGRAM to make --program-prefix, etc., work. 2436234949Sbapt 2437234949Sbapt * makefile.in: first cut of script to support --program-prefix 2438234949Sbapt 2439234949Sbapt * configure.in: 2440234949Sbapt reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52 2441234949Sbapt 2442234949Sbapt * makefile.in: modify so DESTDIR works 2443234949Sbapt 2444234949Sbapt * makefile.in: use EXEEXT and OBJEXT 2445234949Sbapt 2446234949Sbapt * configure.in: use CF_PROG_EXT 2447234949Sbapt generate a config.h 2448234949Sbapt 2449234949Sbapt * defs.h: make this use the generated config.h 2450234949Sbapt 2451234949Sbapt * skeleton.c: add a forward-reference for yyparse() 2452234949Sbapt 2453234949Sbapt * aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT 2454234949Sbapt 2455234949Sbapt * yacc.1: remove the discussion of TMPDIR since it is obsolete 2456234949Sbapt 2457234949Sbapt * skeleton.c: fix a couple of minor compiler-warnings in the skeleton 2458234949Sbapt 2459234949Sbapt * defs.h: remove action_file_name, etc., since we use tmpfile() now. 2460234949Sbapt 2461234949Sbapt * main.c: 2462234949Sbapt use tmpfile() for opening the working files. This quiets a warning 2463234949Sbapt advising the use of mkstemp(). 2464234949Sbapt 2465234949Sbapt * output.c: 2466234949Sbapt Do not close temporary-files here, since they are opened with tmpfile(). 2467234949Sbapt Just rewind them, and they're ready to read back the data stored in them. 2468234949Sbapt 2469234949Sbapt * test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE 2470234949Sbapt 2471264803Sbapt * test/yacc/grammar.output, test/yacc/grammar.tab.h: 2472264803Sbapt reference output for testing 2473264803Sbapt 2474234949Sbapt * makefile.in: turn on "make check" rule 2475234949Sbapt 2476264803Sbapt * test/calc.output: RCS_BASE 2477234949Sbapt 2478264803Sbapt * test/yacc/calc.output: reference output for testing 2479264803Sbapt 2480264803Sbapt * test/run_test.sh, test/calc.tab.h: RCS_BASE 2481264803Sbapt 2482264803Sbapt * test/yacc/calc.tab.h: reference output for testing 2483264803Sbapt 2484234949Sbapt * test/ftp.tab.c: yyparse() is now yyparse(void) 2485234949Sbapt 2486234949Sbapt * test/calc.tab.c: RCS_BASE 2487234949Sbapt 2488234949Sbapt * test/error.tab.c: yyparse() is now yyparse(void) 2489234949Sbapt 2490234949Sbapt * test/README: RCS_BASE 2491234949Sbapt 2492234949Sbapt * yacc.1: various typography fixes prompted by Debian #100947 2493234949Sbapt 2494234949Sbapt * aclocal.m4, makefile.in, configure.in: RCS_BASE 2495234949Sbapt 2496234949Sbapt * README: updated to note that this is not the original 2497234949Sbapt 2498319297Sdelphij2004-03-24 Thomas E. Dickey <dickey@invisible-island.net> 2499234949Sbapt 2500234949Sbapt * test/grammar.y: RCS_BASE 2501234949Sbapt 2502319297Sdelphij2004-02-23 Thomas E. Dickey <dickey@invisible-island.net> 2503234949Sbapt 2504234949Sbapt * config.sub: RCS_BASE 2505234949Sbapt 2506319297Sdelphij2004-02-17 Thomas E. Dickey <dickey@invisible-island.net> 2507234949Sbapt 2508234949Sbapt * config.guess: RCS_BASE 2509234949Sbapt 2510319297Sdelphij2003-11-29 Thomas E. Dickey <dickey@invisible-island.net> 2511234949Sbapt 2512234949Sbapt * install-sh: improved quoting 2513234949Sbapt 2514319297Sdelphij2002-06-29 Thomas E. Dickey <dickey@invisible-island.net> 2515234949Sbapt 2516234949Sbapt * mkdirs.sh: 2517234949Sbapt don't use character range, since some locales don't work as expected 2518234949Sbapt 2519319297Sdelphij2001-06-22 Thomas E. Dickey <dickey@clark.net> 2520234949Sbapt 2521234949Sbapt * install-sh: RCS_BASE 2522234949Sbapt 2523319297Sdelphij2000-11-20 Thomas E. Dickey <dickey@clark.net> 2524234949Sbapt 2525234949Sbapt * test/calc.y: RCS_BASE 2526234949Sbapt 2527234949Sbapt * test/code_calc.y, test/pure_calc.y: copy of calc.y 2528234949Sbapt 2529234949Sbapt * vmsbuild.com: original version 2530234949Sbapt 2531319297Sdelphij2000-02-23 dickey@clark.net 2532234949Sbapt 2533234949Sbapt * test/RCS, RCS: PERMIT FILE 2534234949Sbapt 2535319297Sdelphij2000-02-14 Thomas E. Dickey <dickey@clark.net> 2536234949Sbapt 2537234949Sbapt * main.c: fix for VMS port - making pathname for temp-file 2538234949Sbapt 2539234949Sbapt * descrip.mms: original version 2540234949Sbapt 2541319297Sdelphij2000-02-13 Thomas E. Dickey <dickey@clark.net> 2542234949Sbapt 2543234949Sbapt * 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: 2544234949Sbapt ansify 2545234949Sbapt 2546319297Sdelphij1999-11-30 Thomas E. Dickey <dickey@clark.net> 2547234949Sbapt 2548234949Sbapt * mkdirs.sh: RCS_BASE 2549234949Sbapt 2550319297Sdelphij1995-01-01 Thomas E. Dickey <dickey@clark.net> 2551234949Sbapt 2552234949Sbapt * config_h.in: RCS_BASE 2553234949Sbapt 2554234949Sbapt1993-12-23 unknown 2555234949Sbapt 2556234949Sbapt * README.DOS, main.c: MSDOS-port 2557234949Sbapt 2558234949Sbapt1993-12-22 unknown 2559234949Sbapt 2560234949Sbapt * reader.c, defs.h: MSDOS-port 2561234949Sbapt 2562234949Sbapt1993-03-02 unknown 2563234949Sbapt 2564234949Sbapt * README: original version 2565234949Sbapt 2566234949Sbapt1993-02-22 unknown 2567234949Sbapt 2568264803Sbapt * test/ftp.output, test/ftp.tab.c, test/ftp.tab.h: RCS_BASE 2569234949Sbapt 2570319297Sdelphij1993-02-22 Thomas E. Dickey <dickey@software.org> 2571264803Sbapt 2572264803Sbapt * test/yacc/error.output, test/yacc/error.tab.h: 2573264803Sbapt reference output for testing 2574264803Sbapt 2575264803Sbapt1993-02-22 unknown 2576264803Sbapt 2577264803Sbapt * test/error.output, test/error.tab.c, test/error.tab.h: RCS_BASE 2578264803Sbapt 2579234949Sbapt * skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES: 2580234949Sbapt original version 2581234949Sbapt 2582234949Sbapt1992-10-12 unknown 2583234949Sbapt 2584234949Sbapt * yacc.1: original version 2585234949Sbapt 2586234949Sbapt1992-10-11 unknown 2587234949Sbapt 2588234949Sbapt * defs.h: original version 2589234949Sbapt 2590234949Sbapt1991-01-20 unknown 2591234949Sbapt 2592234949Sbapt * mkpar.c, verbose.c: original version 2593234949Sbapt 2594234949Sbapt1991-01-14 unknown 2595234949Sbapt 2596234949Sbapt * lr0.c, Makefile, Makefile.old: original version 2597234949Sbapt 2598234949Sbapt1990-07-16 unknown 2599234949Sbapt 2600234949Sbapt * NEW_FEATURES: original version 2601234949Sbapt 2602234949Sbapt1990-06-03 unknown 2603234949Sbapt 2604234949Sbapt * ACKNOWLEDGEMENTS: original version 2605234949Sbapt 2606234949Sbapt1990-02-05 unknown 2607234949Sbapt 2608234949Sbapt * symtab.c, lalr.c, error.c: original version 2609234949Sbapt 2610319297Sdelphij1990-01-16 Thomas E. Dickey <dickey@software.org> 2611234949Sbapt 2612234949Sbapt * test/code_error.y, test/pure_error.y: RCS_BASE 2613234949Sbapt 2614234949Sbapt1990-01-16 unknown 2615234949Sbapt 2616234949Sbapt * test/error.y: RCS_BASE 2617234949Sbapt 2618234949Sbapt1989-11-22 unknown 2619234949Sbapt 2620234949Sbapt * NO_WARRANTY: original version 2621234949Sbapt 2622234949Sbapt1989-09-23 unknown 2623234949Sbapt 2624234949Sbapt * test/ftp.y: RCS_BASE 2625234949Sbapt 2626