CHANGES revision 240517
1240517Sbapt2012-05-26  Thomas E. Dickey  <tom@invisible-island.net>
2240517Sbapt
3240517Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
4240517Sbapt
5240517Sbapt	* reader.c:
6240517Sbapt	some versions of gcc may warn that bp is not set in mark_symbol, e.g.,
7240517Sbapt	if GCC_NORETURN is not handled; appease the compiler.
8240517Sbapt
9240517Sbapt	* reader.c:
10240517Sbapt	use the declared types Assoc_t and Value_t in some places where compiler only
11240517Sbapt	cared about char versus short.
12240517Sbapt
13240517Sbapt	* reader.c:
14240517Sbapt	use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
15240517Sbapt	(no object change)
16240517Sbapt
17240517Sbapt	* defs.h:
18240517Sbapt	add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD
19240517Sbapt	packagers to build without configure script.  Also remove duplicate declaration
20240517Sbapt	of pure_parser variable (prompted by patch by Baptiste Daroussin).
21240517Sbapt
22240517Sbapt	Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and
23240517Sbapt	REALLOC macros.
24240517Sbapt
25240517Sbapt	* symtab.c:
26240517Sbapt	use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
27240517Sbapt	(no object change)
28240517Sbapt
29240517Sbapt2012-05-25  Thomas E. Dickey  <tom@invisible-island.net>
30240517Sbapt
31240517Sbapt	* output.c, main.c, verbose.c, mkpar.c, lr0.c:
32240517Sbapt	use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
33240517Sbapt	(no object change)
34240517Sbapt
35234949Sbapt2012-01-15  Thomas E. Dickey  <tom@invisible-island.net>
36234949Sbapt
37234949Sbapt	* package/debian/copyright: bump
38234949Sbapt
39234949Sbapt	* test/run_make.sh: workaround for breakage due to GNU make 3.82
40234949Sbapt
41234949Sbapt	* test/run_make.sh:
42234949Sbapt	tested with Solaris 10 (bison 1.875) and added scripting to exercise
43234949Sbapt	the /usr/ccs/bin/yacc executable
44234949Sbapt
45234949Sbapt	* test/grammar.tab.c: regen
46234949Sbapt
47234949Sbapt	* test/grammar.y: modify to also build with Solaris yacc
48234949Sbapt
49234949Sbapt	* VERSION, package/debian/changelog, package/byacc.spec: bump
50234949Sbapt
51234949Sbapt	* test/calc1.output, test/calc1.tab.c: regen
52234949Sbapt
53234949Sbapt	* test/calc1.y:
54234949Sbapt	undo the change made to appease bison, since it was only a warning.
55234949Sbapt
56234949Sbapt	* test/pure_calc.tab.c, test/pure_error.tab.c: regen
57234949Sbapt
58234949Sbapt	* test/run_make.sh: another fix for running from top-level directory
59234949Sbapt
60234949Sbapt	* makefile.in:
61234949Sbapt	ensure that check_make rule depends on having byacc built.
62234949Sbapt
63234949Sbapt	* test/run_make.sh: fixes for building from parent directory
64234949Sbapt
65234949Sbapt	* test/pure_error.y, test/pure_calc.y: bison-fixes
66234949Sbapt
67234949Sbapt	* 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:
68234949Sbapt	regen
69234949Sbapt
70234949Sbapt	* test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y:
71234949Sbapt	byacc already declares yyerror
72234949Sbapt
73234949Sbapt	* test/pure_error.y, test/pure_calc.y:
74234949Sbapt	modified to help make the files build with bison
75234949Sbapt
76234949Sbapt	* test/run_make.sh:
77234949Sbapt	supply a "%pure-parser" directive when bison needs it.
78234949Sbapt
79234949Sbapt	* test/code_calc.code.c: regen
80234949Sbapt
81234949Sbapt	* test/code_calc.y: modified to help make the files build with bison
82234949Sbapt
83234949Sbapt	* yacc.1:
84234949Sbapt	in testing, found that %expect did not work as documented for bison.
85234949Sbapt	do not recommend it for portable code.
86234949Sbapt
87234949Sbapt	* test/run_make.sh: workaround breakage in bison's %expect directive
88234949Sbapt
89234949Sbapt	* test/grammar.y: modified to help make the files build with bison
90234949Sbapt
91234949Sbapt	* test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen
92234949Sbapt
93234949Sbapt	* test/calc1.y: quiet a spurious warning from bison 2.3
94234949Sbapt
95234949Sbapt	* test/calc1.tab.c: regen
96234949Sbapt
97234949Sbapt	* test/calc1.y: modified to help make the files build with bison
98234949Sbapt
99234949Sbapt	* yacc.1: comment on "-y" and "-P" options.
100234949Sbapt
101234949Sbapt	* yacc.1: comment on portability
102234949Sbapt
103234949Sbapt	* 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:
104234949Sbapt	regen
105234949Sbapt
106234949Sbapt	* test/ftp.y: modified to help make the files build with bison
107234949Sbapt	(bison's "-y" option is of no use in providing "yacc" compatibility)
108234949Sbapt
109234949Sbapt	* test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c:
110234949Sbapt	regen
111234949Sbapt
112234949Sbapt	* test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y:
113234949Sbapt	modified to help make the files build with bison
114234949Sbapt
115234949Sbapt	* test/calc.tab.c: regen
116234949Sbapt
117234949Sbapt	* test/calc.y: modified to help make the files build with bison
118234949Sbapt
119234949Sbapt	* test/error.tab.c: regen
120234949Sbapt
121234949Sbapt	* test/error.y: modified to help make the files build with bison
122234949Sbapt
123234949Sbapt	* test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen
124234949Sbapt
125234949Sbapt	* test/run_make.sh:
126234949Sbapt	check for older bisons which (2.3 for instance) do not support pure parsers
127234949Sbapt
128234949Sbapt	* test/code_error.y, test/calc3.y, test/calc2.y:
129234949Sbapt	modified to help make the files build with bison
130234949Sbapt
131234949Sbapt	* test/run_test.sh: use $opt2 in filenames of the generated files
132234949Sbapt
133234949Sbapt	* 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:
134234949Sbapt	regen
135234949Sbapt
136234949Sbapt2012-01-14  Thomas E. Dickey  <tom@invisible-island.net>
137234949Sbapt
138234949Sbapt	* 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:
139234949Sbapt	regen
140234949Sbapt
141234949Sbapt	* output.c: Several changes:
142234949Sbapt		a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex.
143234949Sbapt		b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL,
144234949Sbapt		   using YYLEX_PARAM_TYPE and YYLEX_PARAM.
145234949Sbapt		c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL,
146234949Sbapt		   to help with redefinitions.
147234949Sbapt
148234949Sbapt	* test/pure_calc.tab.c:
149234949Sbapt	modified to help make the files build with bison
150234949Sbapt
151234949Sbapt	* test/run_make.sh:
152234949Sbapt	start work on followup, to check if the generated files build with bison.
153234949Sbapt
154234949Sbapt	* test/pure_calc.y, test/pure_error.tab.c:
155234949Sbapt	modified to help make the files build with bison
156234949Sbapt
157234949Sbapt	* test/calc3.tab.c: regen
158234949Sbapt
159234949Sbapt	* 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:
160234949Sbapt	RCS_BASE
161234949Sbapt
162234949Sbapt	* test/run_test.sh: generate/test with "-s" option applied.
163234949Sbapt
164234949Sbapt2012-01-13  Thomas E. Dickey  <tom@invisible-island.net>
165234949Sbapt
166234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
167234949Sbapt
168234949Sbapt	* yacc.1: improve documentation of -s option
169234949Sbapt
170234949Sbapt	* yacc.1: note that yacc ignores -y
171234949Sbapt
172234949Sbapt	* main.c: add -s option to usage message.
173234949Sbapt
174234949Sbapt	* test/quote_calc3.output, test/quote_calc3.tab.c, test/quote_calc4.output, test/quote_calc4.tab.c, test/quote_calc4.tab.h, test/quote_calc3.y, test/quote_calc.tab.h, 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, test/quote_calc4.y, test/quote_calc.y, test/quote_calc2.y:
175234949Sbapt	RCS_BASE
176234949Sbapt
177234949Sbapt	* configure: regen
178234949Sbapt
179234949Sbapt	* aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE
180234949Sbapt
181234949Sbapt2011-12-19  Thomas E. Dickey  <tom@invisible-island.net>
182234949Sbapt
183234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
184234949Sbapt
185234949Sbapt	* yacc.1, output.c, main.c, defs.h:
186234949Sbapt	add "-s" option to suppress generating #define's based on string contents
187234949Sbapt	in a %token statement.  For instance
188234949Sbapt		%token EQLS "Equals"
189234949Sbapt	would generate
190234949Sbapt		#define EQLS 256
191234949Sbapt		#define Equals 257
192234949Sbapt	Simply suppressing the second #define makes the behavior closer to yacc.
193234949Sbapt	(report by Paulo Andrade).
194234949Sbapt
195234949Sbapt2011-09-08  Thomas E. Dickey  <tom@invisible-island.net>
196234949Sbapt
197234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
198234949Sbapt
199234949Sbapt	* output.c:
200234949Sbapt	fix some more interaction between -i and -d flags to ensure YYERRCODE
201234949Sbapt	and YYSTYPE are declared, tested with cproto.
202234949Sbapt
203234949Sbapt2011-09-07  Thomas E. Dickey  <tom@invisible-island.net>
204234949Sbapt
205234949Sbapt	* yacc.1: document "-i" option.
206234949Sbapt
207234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
208234949Sbapt
209234949Sbapt	* output.c: fix an interaction between -i and -d
210234949Sbapt
211234949Sbapt	* 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:
212234949Sbapt	regen - changes for "-i" option move the global/impure variables near the
213234949Sbapt	macros that may add a prefix, etc.
214234949Sbapt
215234949Sbapt	* skeleton.c, output.c, defs.h: changes to support "-i" option.
216234949Sbapt
217234949Sbapt2011-09-06  Thomas E. Dickey  <tom@invisible-island.net>
218234949Sbapt
219234949Sbapt	* reader.c: pass explicit file-pointer to write_section()
220234949Sbapt
221234949Sbapt	* main.c:
222234949Sbapt	add "-i" option, to generate interface-file (suggested by Denis M. Wilson)
223234949Sbapt
224234949Sbapt2011-09-05  Thomas E. Dickey  <tom@invisible-island.net>
225234949Sbapt
226234949Sbapt	* configure: regen
227234949Sbapt
228234949Sbapt	* aclocal.m4:
229234949Sbapt	resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC)
230234949Sbapt	and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks)
231234949Sbapt
232234949Sbapt	* defs.h, error.c, reader.c:
233234949Sbapt	add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson)
234234949Sbapt
235234949Sbapt2011-04-01  Thomas E. Dickey  <tom@invisible-island.net>
236234949Sbapt
237234949Sbapt	* config.sub: 2011-04-01
238234949Sbapt
239234949Sbapt2011-02-02  Thomas E. Dickey  <tom@invisible-island.net>
240234949Sbapt
241234949Sbapt	* config.guess: 2011-01-01
242234949Sbapt
243234949Sbapt2010-12-29  Thomas E. Dickey  <tom@invisible-island.net>
244234949Sbapt
245234949Sbapt	* defs.h, skeleton.c:
246234949Sbapt	add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas)
247234949Sbapt
248234949Sbapt	* defs.h:
249234949Sbapt	mark all of the error-functions as non-returning (report by Christos Zoulas)
250234949Sbapt
251234949Sbapt	* 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:
252234949Sbapt	regen
253234949Sbapt
254234949Sbapt	* skeleton.c:
255234949Sbapt	use only realloc() rather than realloc+malloc, agree that systems needing this
256234949Sbapt	are very rare (prompted by NetBSD change).
257234949Sbapt
258234949Sbapt	* test/ftp.tab.c: regen
259234949Sbapt
260234949Sbapt2010-12-29  Christos.Zoulas
261234949Sbapt
262234949Sbapt	* test/ftp.y:
263234949Sbapt	improve example, which was stuck in 19XX and assumed file sizes were longs.
264234949Sbapt
265234949Sbapt2010-12-29  Thomas E. Dickey  <tom@invisible-island.net>
266234949Sbapt
267234949Sbapt	* 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:
268234949Sbapt	regen
269234949Sbapt
270234949Sbapt	* 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:
271234949Sbapt	use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror
272234949Sbapt
273234949Sbapt	* skeleton.c:
274234949Sbapt	remove explicit prototype for yylex() via YYLEX_DECL() macro, since that
275234949Sbapt	would prevent declaring yylex() static (request by Christos Zoulas).
276234949Sbapt
277234949Sbapt	* test/calc2.tab.c, test/calc3.tab.c: regen
278234949Sbapt
279234949Sbapt2010-12-29  Christos.Zoulas
280234949Sbapt
281234949Sbapt	* output.c: correct definition for YYERROR_DECL()
282234949Sbapt
283234949Sbapt2010-12-29  Thomas E. Dickey  <tom@invisible-island.net>
284234949Sbapt
285234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
286234949Sbapt
287234949Sbapt2010-12-26  Thomas E. Dickey  <tom@invisible-island.net>
288234949Sbapt
289234949Sbapt	* defs.h, main.c:
290234949Sbapt	change return-type of allocate() to avoid warnings of alignment problems
291234949Sbapt
292234949Sbapt	* main.c: Solaris declares chmod() in <sys/stat.h>
293234949Sbapt
294234949Sbapt	* configure: regen
295234949Sbapt
296234949Sbapt	* main.c: ifdef'd use of fcntl.h
297234949Sbapt
298234949Sbapt	* configure.in: add configure checks for fcntl.h, atexit and mkstemp
299234949Sbapt
300234949Sbapt	* main.c: for cases where mkstemp() is not available, use tempnam/open
301234949Sbapt
302234949Sbapt	* aclocal.m4: add CF_MKSTEMP
303234949Sbapt
304234949Sbapt	* aclocal.m4:
305234949Sbapt	improve quoting, deprecate ${name-value} in favor of standard ${name:-value}
306234949Sbapt
307234949Sbapt2010-12-25  Thomas E. Dickey  <tom@invisible-island.net>
308234949Sbapt
309234949Sbapt	* main.c:
310234949Sbapt	start revising use of tmpfile(), to make this work with MinGW.  Start by
311234949Sbapt	implementing a mkstemp() alternative - noting that mkstemp() also is broken
312234949Sbapt	for MinGW.
313234949Sbapt
314234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
315234949Sbapt
316234949Sbapt2010-11-27  Thomas E. Dickey  <tom@invisible-island.net>
317234949Sbapt
318234949Sbapt	* package/byacc.spec, package/debian/changelog, VERSION: bump
319234949Sbapt
320234949Sbapt	* test/calc2.tab.c, test/calc3.tab.c: regen
321234949Sbapt
322234949Sbapt	* output.c:
323234949Sbapt	corrected use of %parse-param value in yyerror(); it doesn't use &yylval
324234949Sbapt	(report by Clifford Yapp)
325234949Sbapt
326234949Sbapt2010-11-26  Thomas E. Dickey  <tom@invisible-island.net>
327234949Sbapt
328234949Sbapt	* skeleton.c: typo
329234949Sbapt
330234949Sbapt	* output.c:
331234949Sbapt	correct line-numbering when "-r" option is used; the 'outline' variable
332234949Sbapt	should only be incremented when writing to the code-file.
333234949Sbapt
334234949Sbapt	* test/code_calc.code.c, test/code_error.code.c: regen
335234949Sbapt
336234949Sbapt	* yacc.1: bump date
337234949Sbapt
338234949Sbapt	* yacc.1: comment on -b option vs -r
339234949Sbapt
340234949Sbapt	* 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:
341234949Sbapt	regen
342234949Sbapt
343234949Sbapt	* output.c:
344234949Sbapt	improve on YYERROR_DECL(), adding dummy params which can be used for the
345234949Sbapt	actual function declaration.  Also add YYERROR_CALL().  The two macros
346234949Sbapt	simplify maintaining sets of grammars which may/may not be pure.
347234949Sbapt
348234949Sbapt	* 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:
349234949Sbapt	regen
350234949Sbapt
351234949Sbapt	* output.c: generate yyerror() calls in output.c
352234949Sbapt	This is for compatibility with bison, which passes the yylval to yyerror
353234949Sbapt	when the %parse-param feature is used.
354234949Sbapt
355234949Sbapt	* skeleton.c, defs.h: generate yyerror() calls in output.c
356234949Sbapt
357234949Sbapt	* output.c: simplified a little, using putc_code() and putl_code()
358234949Sbapt
359234949Sbapt	* test/calc1.tab.h: regen
360234949Sbapt
361234949Sbapt	* reader.c:
362234949Sbapt	improve ifdef for YYSTYPE union declaration (report by Clifford Yapp)
363234949Sbapt
364234949Sbapt	* reader.c:
365234949Sbapt	accept underscore as a replacement for dash in command names, e.g.,
366234949Sbapt	"%pure_parser" vs "%pure-parser".
367234949Sbapt
368234949Sbapt	* test/calc1.tab.c: regen
369234949Sbapt
370234949Sbapt	* output.c, reader.c:
371234949Sbapt	also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp)
372234949Sbapt
373234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
374234949Sbapt
375234949Sbapt2010-11-24  Thomas E. Dickey  <tom@invisible-island.net>
376234949Sbapt
377234949Sbapt	* main.c, defs.h, symtab.c, error.c: reduce global variables
378234949Sbapt
379234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
380234949Sbapt
381234949Sbapt	* reader.c:
382234949Sbapt	amend fix for Redhat #112617 to still call default_action_warning() for
383234949Sbapt	empty rules (report by Bruce Cran).
384234949Sbapt
385234949Sbapt2010-11-22  Thomas E. Dickey  <tom@invisible-island.net>
386234949Sbapt
387234949Sbapt	* output.c:
388234949Sbapt	add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp).
389234949Sbapt
390234949Sbapt	* test/calc1.tab.c: regen
391234949Sbapt
392234949Sbapt	* test/calc1.y: cleanup compiler warnings
393234949Sbapt
394234949Sbapt	* test/grammar.y: add "%expect"
395234949Sbapt
396234949Sbapt	* test/calc1.tab.h: regen
397234949Sbapt
398234949Sbapt	* test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE
399234949Sbapt
400234949Sbapt	* test/calc2.tab.c, test/calc3.tab.c: regen
401234949Sbapt
402234949Sbapt	* test/calc1.y:
403234949Sbapt	advanced example from Steve Johnson's paper, uses unions
404234949Sbapt
405234949Sbapt	* test/calc3.y, test/calc2.y: init 'base', so examples can run
406234949Sbapt
407234949Sbapt	* test/ftp.tab.c, test/ftp.y: tweaks to compile with g++
408234949Sbapt
409234949Sbapt	* output.c: compensate for fix in reader.c
410234949Sbapt
411234949Sbapt	* reader.c:
412234949Sbapt	add/use putc_both() and puts_both(), incidentally fixing a place where
413234949Sbapt	a union copied to the union_file may be missing the end of the last line.
414234949Sbapt
415234949Sbapt	* package/debian/changelog, package/byacc.spec, VERSION: bump
416234949Sbapt
417234949Sbapt2010-09-28  Thomas E. Dickey  <tom@invisible-island.net>
418234949Sbapt
419234949Sbapt	* config.guess: 2010-09-24
420234949Sbapt
421234949Sbapt2010-09-10  Thomas E. Dickey  <tom@invisible-island.net>
422234949Sbapt
423234949Sbapt	* config.sub: 2010-09-11
424234949Sbapt
425234949Sbapt2010-06-10  Thomas E. Dickey  <tom@invisible-island.net>
426234949Sbapt
427234949Sbapt	* yacc.1, package/debian/changelog, package/byacc.spec, VERSION:
428234949Sbapt	bump to 2010/06/10
429234949Sbapt
430234949Sbapt2010-06-09  Thomas E. Dickey  <tom@invisible-island.net>
431234949Sbapt
432234949Sbapt	* reader.c: free declarations in leak-testing code.
433234949Sbapt
434234949Sbapt	* main.c: close code_file if -r option used, for leak-testing
435234949Sbapt
436234949Sbapt	* defs.h, reader.c:
437234949Sbapt	improve %lex-param / %parse-param implementation by allowing for arrays to
438234949Sbapt	be passed as parameters, e.g., "int regs[26]".
439234949Sbapt
440234949Sbapt	* test/calc3.tab.c, test/calc3.y, test/calc3.output, test/calc3.tab.h, test/calc2.tab.c, test/calc2.y, test/calc2.tab.h, test/calc2.output:
441234949Sbapt	RCS_BASE
442234949Sbapt
443234949Sbapt	* output.c:
444234949Sbapt	improve %lex-param / %parse-param implementation by allowing for arrays to
445234949Sbapt	be passed as parameters, e.g., "int regs[26]".
446234949Sbapt
447234949Sbapt	* test/calc.tab.c, test/calc.y:
448234949Sbapt	test-cases and reference files for %lex-param / %parse-param
449234949Sbapt
450234949Sbapt	* makefile.in: add docs-rule, for html/pdf/txt form of manpage
451234949Sbapt
452234949Sbapt	* configure: regen
453234949Sbapt
454234949Sbapt	* aclocal.m4: add CF_XOPEN_SOURCE, etc.
455234949Sbapt
456234949Sbapt	* configure.in:
457234949Sbapt	use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89
458234949Sbapt
459234949Sbapt	* 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:
460234949Sbapt	fix warnings from clang --analyze
461234949Sbapt
462234949Sbapt2010-06-08  Thomas E. Dickey  <tom@invisible-island.net>
463234949Sbapt
464234949Sbapt	* output.c: fix to build with c89, etc.
465234949Sbapt
466234949Sbapt	* reader.c: gcc warning
467234949Sbapt
468234949Sbapt	* 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:
469234949Sbapt	modified test-cases to allow them to compile, to validate pure-parser changes.
470234949Sbapt	updated reference files to match.
471234949Sbapt
472234949Sbapt	* output.c:
473234949Sbapt	move call for output_stype() earlier since it is used in pure-parser declarations
474234949Sbapt
475234949Sbapt	* test/grammar.tab.c, test/grammar.y:
476234949Sbapt	modified test-cases to allow them to compile, to validate pure-parser changes.
477234949Sbapt	updated reference files to match.
478234949Sbapt
479234949Sbapt	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
480234949Sbapt	regen
481234949Sbapt
482234949Sbapt	* yacc.1: document %lex-param and %parse-param
483234949Sbapt
484234949Sbapt	* test/run_lint.sh, test/run_make.sh: RCS_BASE
485234949Sbapt
486234949Sbapt	* test/run_test.sh:
487234949Sbapt	further modify to allow build-directory to be in a different location by
488234949Sbapt	passing this directory's location as a parameter to the script.
489234949Sbapt
490234949Sbapt	* makefile.in:
491234949Sbapt	add check_make and check_lint rules to help validate the generated files
492234949Sbapt	in the test-directory
493234949Sbapt
494234949Sbapt2010-06-07  Thomas E. Dickey  <tom@invisible-island.net>
495234949Sbapt
496234949Sbapt	* test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE
497234949Sbapt
498234949Sbapt	* test/run_test.sh:
499234949Sbapt	provide for testing -r and -P options by checking if the ".y" filename
500234949Sbapt	begins with "code_" or "pure_", respectively.
501234949Sbapt
502234949Sbapt	* test/code_error.code.c, test/code_error.tab.c, test/code_error.tab.h, test/code_calc.code.c, test/code_calc.tab.c, test/code_calc.tab.h, test/pure_calc.output, test/pure_calc.tab.h, test/pure_error.output, test/pure_error.tab.h, test/code_calc.output, test/code_error.output:
503234949Sbapt	RCS_BASE
504234949Sbapt
505234949Sbapt	* test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen
506234949Sbapt
507234949Sbapt	* test/run_test.sh:
508234949Sbapt	changes to support running "make check" in a separate build-tree
509234949Sbapt
510234949Sbapt	* main.c: add "-P" to usage message
511234949Sbapt
512234949Sbapt	* reader.c: use UCH() macro to hide casts.
513234949Sbapt
514234949Sbapt2010-06-07  Andres.Mejia
515234949Sbapt
516234949Sbapt	* main.c, output.c, reader.c, defs.h, skeleton.c:
517234949Sbapt	Fix the output order of the generated parse code file.  This allows for
518234949Sbapt	the use of YYPARSE_PARAM, by having the output that checks for
519234949Sbapt	YYPARSE_PARAM to be defined come after the C code block in the
520234949Sbapt	definitions section of a yacc file.
521234949Sbapt
522234949Sbapt	Implement support for YYLEX_PARAM, similar to bison.  This is useful for
523234949Sbapt	support for building reentrant lexers with flex.
524234949Sbapt
525234949Sbapt	Fix a compatibility issue with bison's pure-parser option.  Bison
526234949Sbapt	defines yylex as sending at least one parameter, &yylval, as the first
527234949Sbapt	parameter and doesn't seem to have an easy way to remove that parameter.
528234949Sbapt	This on the other hand is rather convenient to support saving to yylval
529234949Sbapt	from flex when building reentrant lexers and parsers.
530234949Sbapt
531234949Sbapt	Add support for the %parse-param and %lex-param directives used in
532234949Sbapt	bison.  This change bears some similarity to NetBSD's changes to byacc
533234949Sbapt	at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html
534234949Sbapt
535234949Sbapt	Bison allows for POSIX yacc emulation via a yacc directive in the yacc
536234949Sbapt	file, and also via a command line switch.  Implement this feature as a
537234949Sbapt	no-op for byacc, since byacc is designed to be POSIX yacc compatible
538234949Sbapt	anyway.  This allows for better compatibility with yacc sources written
539234949Sbapt	for bison.
540234949Sbapt
541234949Sbapt2010-06-07  Thomas E. Dickey  <tom@invisible-island.net>
542234949Sbapt
543234949Sbapt	* VERSION: bump to 2010/06/07
544234949Sbapt
545234949Sbapt2010-06-06  Thomas E. Dickey  <tom@invisible-island.net>
546234949Sbapt
547234949Sbapt	* test/calc.tab.c, configure: regen
548234949Sbapt
549234949Sbapt	* skeleton.c:
550234949Sbapt	move #include's down into the generated code, to allow user-defined code
551234949Sbapt	to override feature definitions, particularly with stdlib.h (request by
552234949Sbapt	Marcus Kool).
553234949Sbapt
554234949Sbapt	* lr0.c, error.c, reader.c, defs.h:
555234949Sbapt	strict gcc 3.4.6 warnings on 64-bit platform
556234949Sbapt
557234949Sbapt	* aclocal.m4, configure.in: add check for lint
558234949Sbapt
559234949Sbapt	* makefile.in: add lint rule
560234949Sbapt
561234949Sbapt	* defs.h, closure.c, lr0.c, warshall.c, main.c:
562234949Sbapt	fix gcc warnings, mostly for 64-bit platform
563234949Sbapt
564234949Sbapt	* aclocal.m4:
565234949Sbapt	add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc
566234949Sbapt
567234949Sbapt	* makefile.in: add etags/TAGS if available
568234949Sbapt
569234949Sbapt	* configure.in: add configure check for actual ctags and etags programs
570234949Sbapt
571234949Sbapt	* package/debian/copyright: add copyright notices for non-PD files
572234949Sbapt
573234949Sbapt	* package/debian/changelog:
574234949Sbapt	incorporated scripts in upstream to use for test-builds
575234949Sbapt
576234949Sbapt	* makefile.in: drop mkdirs.sh, just use "mkdir -p"
577234949Sbapt
578234949Sbapt	* AUTHORS: nicknames for some contributors (see CHANGES for details)
579234949Sbapt
580234949Sbapt	* package/byacc.spec: RPM file for byacc
581234949Sbapt
582234949Sbapt	* VERSION: bump to 2010/06/06
583234949Sbapt
584234949Sbapt	* aclocal.m4: add copyright notice, from "my-autoconf" macros
585234949Sbapt		http://invisible-island.net/autoconf/autoconf.html
586234949Sbapt
587234949Sbapt	* package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS:
588234949Sbapt	PERMIT FILE
589234949Sbapt
590234949Sbapt	* aclocal.m4: resync with my-autoconf.  summary of changes:
591234949Sbapt		a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter
592234949Sbapt		b) CF_DISABLE_ECHO, change indent-convention for substituted makefile
593234949Sbapt		c) CF_GCC_VERSION, ignore stderr
594234949Sbapt		d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc
595234949Sbapt
596234949Sbapt2010-04-20  Thomas E. Dickey  <tom@invisible-island.net>
597234949Sbapt
598234949Sbapt	* 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:
599234949Sbapt	scripts from Debian package
600234949Sbapt
601234949Sbapt2010-02-16  Thomas E. Dickey  <tom@invisible-island.net>
602234949Sbapt
603234949Sbapt	* yacc.1: document -P and bison-extensions
604234949Sbapt
605234949Sbapt	* test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
606234949Sbapt	regen
607234949Sbapt
608234949Sbapt	* output.c: implement %pure-parser
609234949Sbapt
610234949Sbapt	* skeleton.c:
611234949Sbapt	implement %pure-parser, like bison.  To help with this, changed the stack
612234949Sbapt	variables, putting them into a struct.
613234949Sbapt
614234949Sbapt	* reader.c: implement %pure-parser
615234949Sbapt
616234949Sbapt	* defs.h: modified skeleton to support %pure-parser feature
617234949Sbapt
618234949Sbapt	* main.c: add -P option to set %pure-parser
619234949Sbapt
620234949Sbapt	* output.c:
621234949Sbapt	make -r and -p options work together.  The -r option splits the generated
622234949Sbapt	parser into code/table files; for this case we cannot use static data.
623234949Sbapt	Also, we have to repeat the #define's used for prefix (-p) as well as the
624234949Sbapt	redeclaration of yyparse().  Finally, allow any of the prefixed names to
625234949Sbapt	be overridden, e.g., by passing a -D option to the compiler.  Make that
626234949Sbapt	a little more readable by putting a blank line before each chunk.
627234949Sbapt
628234949Sbapt	* defs.h: add definitions for %pure-parser
629234949Sbapt
630234949Sbapt	* skeleton.c:
631234949Sbapt	put blank line before/after the redeclaration of yyparse()
632234949Sbapt
633234949Sbapt	* output.c: allow for other program redefining yylex()
634234949Sbapt
635234949Sbapt	* skeleton.c:
636234949Sbapt	split-off xdecls[] array, to move declaration of yyparse() after #define's
637234949Sbapt
638234949Sbapt	* defs.h: split-out xdecls[]
639234949Sbapt
640234949Sbapt	* VERSION: bump
641234949Sbapt
642234949Sbapt	* configure: regen
643234949Sbapt
644234949Sbapt	* aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS
645234949Sbapt
646234949Sbapt	* aclocal.m4:
647234949Sbapt	resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes.
648234949Sbapt
649234949Sbapt2010-02-16  Ostap.Cherkashi
650234949Sbapt
651234949Sbapt	* skeleton.c: fix a memory leak in the generated skeleton
652234949Sbapt
653234949Sbapt2010-01-01  Thomas E. Dickey  <tom@invisible-island.net>
654234949Sbapt
655234949Sbapt	* package/debian/source/format: scripts from Debian package
656234949Sbapt
657234949Sbapt2009-12-31  Thomas E. Dickey  <tom@invisible-island.net>
658234949Sbapt
659234949Sbapt	* config.guess: 2009-12-30
660234949Sbapt
661234949Sbapt	* config.sub: 2009-12-31
662234949Sbapt
663234949Sbapt2009-10-27  Thomas E. Dickey  <tom@invisible-island.net>
664234949Sbapt
665234949Sbapt	* VERSION: 20091027
666234949Sbapt
667234949Sbapt	* output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c:
668234949Sbapt	strict compiler warnings
669234949Sbapt
670234949Sbapt2009-10-26  Thomas E. Dickey  <tom@invisible-island.net>
671234949Sbapt
672234949Sbapt	* test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
673234949Sbapt	resync
674234949Sbapt
675234949Sbapt	* main.c, defs.h: introduce some typedefs for portability, etc.
676234949Sbapt
677234949Sbapt	* makefile.in:
678234949Sbapt	don't remove "*.log" in mostlyclean rule since it interferes with regression
679234949Sbapt	script.
680234949Sbapt
681234949Sbapt	* configure: regen
682234949Sbapt
683234949Sbapt	* aclocal.m4: resync with my-autoconf
684234949Sbapt
685234949Sbapt2009-08-25  Thomas E. Dickey  <tom@invisible-island.net>
686234949Sbapt
687234949Sbapt	* config.guess, config.sub: 2009-08-19
688234949Sbapt
689234949Sbapt2009-02-21  Thomas E. Dickey  <tom@invisible-island.net>
690234949Sbapt
691234949Sbapt	* VERSION: bump
692234949Sbapt
693234949Sbapt	* output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25
694234949Sbapt
695234949Sbapt2008-12-26  Thomas E. Dickey  <tom@invisible-island.net>
696234949Sbapt
697234949Sbapt	* configure: regen with autoconf-2.52 (patched)
698234949Sbapt
699234949Sbapt2008-12-25  Thomas E. Dickey  <tom@invisible-island.net>
700234949Sbapt
701234949Sbapt	* test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
702234949Sbapt	regenerated
703234949Sbapt
704234949Sbapt2008-12-24  Thomas E. Dickey  <tom@invisible-island.net>
705234949Sbapt
706234949Sbapt	* VERSION: bump
707234949Sbapt
708234949Sbapt	* skeleton.c:
709234949Sbapt	remove ifdef-lint from goto yyerrlab, to quiet gcc warning
710234949Sbapt
711234949Sbapt2008-11-26  Thomas E. Dickey  <tom@invisible-island.net>
712234949Sbapt
713234949Sbapt	* verbose.c, main.c, defs.h, mkpar.c, reader.c:
714234949Sbapt	completed implementation of "%expect" (report by Perry E. Metzger).
715234949Sbapt	add "%expect-rr", which is (unlike bison) allowable in LALR parsers.
716234949Sbapt
717234949Sbapt2008-11-24  Thomas E. Dickey  <tom@invisible-island.net>
718234949Sbapt
719234949Sbapt	* 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:
720234949Sbapt	change indent-style (request by Perry E. Metzger)
721234949Sbapt
722234949Sbapt2008-08-27  Thomas E. Dickey  <tom@invisible-island.net>
723234949Sbapt
724234949Sbapt	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
725234949Sbapt	better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
726234949Sbapt
727234949Sbapt	* VERSION: bump
728234949Sbapt
729234949Sbapt	* skeleton.c:
730234949Sbapt	better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
731234949Sbapt
732234949Sbapt	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c:
733234949Sbapt	change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's.
734234949Sbapt
735234949Sbapt	* configure: regen'd
736234949Sbapt
737234949Sbapt	* configure.in: add -Wwrite-strings to warnings
738234949Sbapt
739234949Sbapt	* test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
740234949Sbapt	add YYPARSE_PARAM and YYPARSE_PARAM_TYPE
741234949Sbapt
742234949Sbapt	* skeleton.c:
743234949Sbapt	add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features.
744234949Sbapt
745234949Sbapt	* main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c:
746234949Sbapt	fixes for gcc -Wwrite-strings
747234949Sbapt
748234949Sbapt	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
749234949Sbapt	generate the tables as static-const (this is an interface change)
750234949Sbapt
751234949Sbapt	* output.c: realign columns in start_table()
752234949Sbapt
753234949Sbapt	* output.c:
754234949Sbapt	generate the tables as static-const (this is an interface change)
755234949Sbapt
756234949Sbapt	* output.c: reorder functions to eliminate forward-references
757234949Sbapt
758234949Sbapt	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
759234949Sbapt	remove 'register' keywords
760234949Sbapt
761234949Sbapt2008-08-26  Thomas E. Dickey  <tom@invisible-island.net>
762234949Sbapt
763234949Sbapt	* 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:
764234949Sbapt	remove 'register' keywords
765234949Sbapt
766234949Sbapt2008-08-25  Thomas E. Dickey  <tom@invisible-island.net>
767234949Sbapt
768234949Sbapt	* test/ftp.tab.c: regen'd
769234949Sbapt
770234949Sbapt	* reader.c:
771234949Sbapt	improve the left-curly fix by testing after blanks, to avoid having a
772234949Sbapt	" {" at the beginning of a line.
773234949Sbapt
774234949Sbapt	* test/error.tab.c, test/grammar.tab.c: regen'd
775234949Sbapt
776234949Sbapt	* output.c:
777234949Sbapt	move the remaining newline-counting into write_XXX functions.
778234949Sbapt
779234949Sbapt	* test/calc.tab.c: regen'd
780234949Sbapt
781234949Sbapt	* output.c:
782234949Sbapt	simplify part of the output_file formatting using new functions, e.g.,
783234949Sbapt	start_int_table(), output_newline().
784234949Sbapt
785234949Sbapt	* reader.c:
786234949Sbapt	modify copy_action() to indent the first character, it if is is left-curly
787234949Sbapt	brace.  That makes the output look more like the original, as well as makes
788234949Sbapt	it simpler to edit (not confuse editors which look for a left-curly in the
789234949Sbapt	first column as if it were the beginning of a function).
790234949Sbapt
791234949Sbapt	* skeleton.c: minor fixes to avoid gcc -Wconversion warnings
792234949Sbapt
793234949Sbapt	* output.c: align the #define's produced for "-p" option
794234949Sbapt
795234949Sbapt	* test/run_test.sh: use the "-p" option for better coverage.
796234949Sbapt
797234949Sbapt	* output.c: simplify output_prefix() with new define_prefixed()
798234949Sbapt
799234949Sbapt	* skeleton.c: include string.h, for memset()
800234949Sbapt	change stack size to unsigned to fix gcc -Wconversion warnings.
801234949Sbapt
802234949Sbapt	* VERSION: bump to 2008/8/25
803234949Sbapt
804234949Sbapt	* makefile.in: add dependency on VERSION file.
805234949Sbapt
806234949Sbapt2008-08-24  Thomas E. Dickey  <tom@invisible-island.net>
807234949Sbapt
808234949Sbapt	* VERSION: bump
809234949Sbapt
810234949Sbapt	* lalr.c: improved memory-leak checking by freeing data in includes[]
811234949Sbapt
812234949Sbapt	* test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
813234949Sbapt	update to match skeleton-change
814234949Sbapt
815234949Sbapt	* configure: regen'd
816234949Sbapt
817234949Sbapt	* skeleton.c: Add fix for stack discussed
818234949Sbapt		http://undeadly.org/cgi?action=article&sid=20080708155228
819234949Sbapt	and applied
820234949Sbapt		http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29
821234949Sbapt
822234949Sbapt	* aclocal.m4: resync with my-autoconf (no major changes)
823234949Sbapt
824234949Sbapt2008-07-24  Thomas E. Dickey  <tom@invisible-island.net>
825234949Sbapt
826234949Sbapt	* package/pkgsrc/Makefile, package/pkgsrc/distinfo:
827234949Sbapt	scripts from NetBSD pkgsrc, for test-builds
828234949Sbapt
829234949Sbapt2008-03-14  Thomas E. Dickey  <tom@invisible-island.net>
830234949Sbapt
831234949Sbapt	* config.sub: update to 2008-03-08
832234949Sbapt
833234949Sbapt	* config.guess: update to 2008-03-12
834234949Sbapt
835234949Sbapt2007-05-09  Thomas E. Dickey  <tom@invisible-island.net>
836234949Sbapt
837234949Sbapt	* main.c: close graph, verbose files if opened, on exit.
838234949Sbapt
839234949Sbapt	* main.c:
840234949Sbapt	audit memory leaks - valgrind reported some memory still in use on exit.
841234949Sbapt
842234949Sbapt	* lalr.c, output.c, reader.c, mkpar.c, lr0.c:
843234949Sbapt	add hook for auditing memory leaks
844234949Sbapt
845234949Sbapt	* defs.h: add hooks for auditing memory leaks
846234949Sbapt
847234949Sbapt	* configure: regen'd
848234949Sbapt
849234949Sbapt	* configure.in:
850234949Sbapt	use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind,
851234949Sbapt	--with-dbmalloc and --with-dmalloc
852234949Sbapt
853234949Sbapt	* aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND
854234949Sbapt
855234949Sbapt	* aclocal.m4: improve version-checking in CF_GCC_VERSION
856234949Sbapt	rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro
857234949Sbapt
858234949Sbapt	* VERSION: 2007/5/9
859234949Sbapt
860234949Sbapt	* main.c: file_prefix did not always have a trailing null.
861234949Sbapt
862234949Sbapt2007-03-25  Thomas E. Dickey  <tom@invisible-island.net>
863234949Sbapt
864234949Sbapt	* mkdirs.sh: improved version for "make -j"
865234949Sbapt
866234949Sbapt2006-12-22  Thomas E. Dickey  <tom@invisible-island.net>
867234949Sbapt
868234949Sbapt	* config.guess: 2006/12/22
869234949Sbapt
870234949Sbapt2006-12-08  Thomas E. Dickey  <tom@invisible-island.net>
871234949Sbapt
872234949Sbapt	* config.sub: 2006/12/08
873234949Sbapt
874234949Sbapt2005-08-13  Thomas E. Dickey  <tom@invisible-island.net>
875234949Sbapt
876234949Sbapt	* main.c: add -V to usage message
877234949Sbapt
878234949Sbapt	* makefile.in: remove -t option from ctags
879234949Sbapt
880234949Sbapt	* VERSION: 2005/8/13
881234949Sbapt
882234949Sbapt2005-08-13  schmitz
883234949Sbapt
884234949Sbapt	* main.c: Sylvain Schmitz:
885234949Sbapt	modify the '-o' option to work like bison's, which sets the file-prefix.
886234949Sbapt
887234949Sbapt2005-08-13  Matt.Kraai
888234949Sbapt
889234949Sbapt	* output.c:
890234949Sbapt	Debian #322858 (don't close union_file, which contained data).
891234949Sbapt	This feature is used in groff.
892234949Sbapt
893234949Sbapt2005-08-13  Thomas E. Dickey  <tom@invisible-island.net>
894234949Sbapt
895234949Sbapt	* configure: regenerated
896234949Sbapt
897234949Sbapt	* aclocal.m4: improve checks for Intel compiler warnings
898234949Sbapt
899234949Sbapt2005-06-25  Thomas E. Dickey  <tom@invisible-island.net>
900234949Sbapt
901234949Sbapt	* config.sub: 2005/6/2
902234949Sbapt
903234949Sbapt	* config.guess: 2005/5/27
904234949Sbapt
905234949Sbapt2005-05-05  Thomas E. Dickey  <tom@invisible-island.net>
906234949Sbapt
907234949Sbapt	* defs.h: add a fallback for GCC_UNUSED
908234949Sbapt
909234949Sbapt2005-05-04  Thomas E. Dickey  <tom@invisible-island.net>
910234949Sbapt
911234949Sbapt	* makefile.in: add "." to include-path to pickup config.h
912234949Sbapt
913234949Sbapt	* reader.c:
914234949Sbapt	apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617.
915234949Sbapt
916234949Sbapt	* output.c:
917234949Sbapt	correct a limit check in pack_vector() - report/analysis by William Evans
918234949Sbapt
919234949Sbapt	* main.c:
920234949Sbapt	exit after printing version.  Otherwise "yacc -V" will exit with an erro
921234949Sbapt	after printing the usage message.
922234949Sbapt
923234949Sbapt	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
924234949Sbapt	regenerated after skeleton-changes
925234949Sbapt
926234949Sbapt	* skeleton.c: replace a few -1's with YYEMPTY
927234949Sbapt
928234949Sbapt	* skeleton.c:
929234949Sbapt	delete yynewerror (no one uses it any more, and it just makes compiler warnings)
930234949Sbapt
931234949Sbapt	* skeleton.c: adapt yygrowstack() and related definitions from FreeBSD
932234949Sbapt
933234949Sbapt	* test/run_test.sh:
934234949Sbapt	filter out lines with YYPATCH, since that will change with each update
935234949Sbapt
936234949Sbapt	* yacc.1: add -V option
937234949Sbapt
938234949Sbapt	* main.c: add -V option to print the version.
939234949Sbapt	simplify option-parsing by moving the duplicate logic for setting flags into
940234949Sbapt	new function setflag().
941234949Sbapt
942234949Sbapt	* skeleton.c:
943234949Sbapt	move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers).
944234949Sbapt	add YYPATCH here so it can be tested by applications.
945234949Sbapt
946234949Sbapt	* defs.h:
947234949Sbapt	add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and
948234949Sbapt	YYPATCH symbols.
949234949Sbapt
950234949Sbapt	* lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c:
951234949Sbapt	reduce externs by making static the procedures that are not referenced outside
952234949Sbapt	the module in which they are defined.
953234949Sbapt
954234949Sbapt	* makefile.in:
955234949Sbapt	the VERSION file holds the patch-date.  Define YYPATCH, so this will be
956234949Sbapt	compiled into the skeleton.
957234949Sbapt
958234949Sbapt	* VERSION: patch-level for byacc
959234949Sbapt
960234949Sbapt	* main.c:
961234949Sbapt	add "-o" to usage message.  It is too long for a single line; rewrite usage()
962234949Sbapt	to show one option per line.
963234949Sbapt
964234949Sbapt2005-05-03  Thomas E. Dickey  <tom@invisible-island.net>
965234949Sbapt
966234949Sbapt	* main.c: add -o option, to work with scripts that assume bison.
967234949Sbapt	simplify create_file_names() with a macro.
968234949Sbapt	simplify done() with a macro.
969234949Sbapt	adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by
970234949Sbapt	onintr(), do not flush output via exit(), but use _exit() instead.
971234949Sbapt
972234949Sbapt	* defs.h: remove unnecessary externs for main.c
973234949Sbapt
974234949Sbapt	* yacc.1: add -o option
975234949Sbapt
976234949Sbapt	* graph.c: remove unused parameter
977234949Sbapt
978234949Sbapt	* mkpar.c, defs.h, reader.c:
979234949Sbapt	add support for "%expect", a bison feature from FreeBSD sources
980234949Sbapt
981234949Sbapt	* 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:
982234949Sbapt	indent'd
983234949Sbapt
984234949Sbapt	* configure: regenerated for 2005/5/5
985234949Sbapt
986234949Sbapt	* aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER)
987234949Sbapt
988234949Sbapt2005-04-27  schmitz
989234949Sbapt
990234949Sbapt	* defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1:
991234949Sbapt	Sylvain Schmitz <schmitz@i3s.unice.fr>:
992234949Sbapt	add graphical output of the LALR(1) automaton for graphviz,
993234949Sbapt	associated with command-line option `-g'
994234949Sbapt
995234949Sbapt2005-04-16  Thomas E. Dickey  <tom@invisible-island.net>
996234949Sbapt
997234949Sbapt	* config.sub: 2005/2/10
998234949Sbapt
999234949Sbapt	* config.guess: 2005/3/24
1000234949Sbapt
1001234949Sbapt2005-04-13  Thomas E. Dickey  <tom@invisible-island.net>
1002234949Sbapt
1003234949Sbapt	* package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds
1004234949Sbapt
1005234949Sbapt2005-03-21  Thomas E. Dickey  <tom@invisible-island.net>
1006234949Sbapt
1007234949Sbapt	* package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds
1008234949Sbapt
1009234949Sbapt2004-03-28  Thomas E. Dickey  <tom@invisible-island.net>
1010234949Sbapt
1011234949Sbapt	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
1012234949Sbapt	updates due to adding yyparse() prototype
1013234949Sbapt
1014234949Sbapt	* configure: RCS_BASE
1015234949Sbapt
1016234949Sbapt	* configure.in:
1017234949Sbapt	add AC_ARG_PROGRAM to make --program-prefix, etc., work.
1018234949Sbapt
1019234949Sbapt	* makefile.in: first cut of script to support --program-prefix
1020234949Sbapt
1021234949Sbapt	* configure.in:
1022234949Sbapt	reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52
1023234949Sbapt
1024234949Sbapt	* makefile.in: modify so DESTDIR works
1025234949Sbapt
1026234949Sbapt	* makefile.in: use EXEEXT and OBJEXT
1027234949Sbapt
1028234949Sbapt	* configure.in: use CF_PROG_EXT
1029234949Sbapt	generate a config.h
1030234949Sbapt
1031234949Sbapt	* defs.h: make this use the generated config.h
1032234949Sbapt
1033234949Sbapt	* skeleton.c: add a forward-reference for yyparse()
1034234949Sbapt
1035234949Sbapt	* aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT
1036234949Sbapt
1037234949Sbapt	* yacc.1: remove the discussion of TMPDIR since it is obsolete
1038234949Sbapt
1039234949Sbapt	* skeleton.c: fix a couple of minor compiler-warnings in the skeleton
1040234949Sbapt
1041234949Sbapt	* defs.h: remove action_file_name, etc., since we use tmpfile() now.
1042234949Sbapt
1043234949Sbapt	* main.c:
1044234949Sbapt	use tmpfile() for opening the working files.  This quiets a warning
1045234949Sbapt	advising the use of mkstemp().
1046234949Sbapt
1047234949Sbapt	* output.c:
1048234949Sbapt	Do not close temporary-files here, since they are opened with tmpfile().
1049234949Sbapt	Just rewind them, and they're ready to read back the data stored in them.
1050234949Sbapt
1051234949Sbapt	* test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE
1052234949Sbapt
1053234949Sbapt	* makefile.in: turn on "make check" rule
1054234949Sbapt
1055234949Sbapt	* test/calc.output, test/run_test.sh, test/calc.tab.h: RCS_BASE
1056234949Sbapt
1057234949Sbapt	* test/ftp.tab.c: yyparse() is now yyparse(void)
1058234949Sbapt
1059234949Sbapt	* test/calc.tab.c: RCS_BASE
1060234949Sbapt
1061234949Sbapt	* test/error.tab.c: yyparse() is now yyparse(void)
1062234949Sbapt
1063234949Sbapt	* test/README: RCS_BASE
1064234949Sbapt
1065234949Sbapt	* yacc.1: various typography fixes prompted by Debian #100947
1066234949Sbapt
1067234949Sbapt	* aclocal.m4, makefile.in, configure.in: RCS_BASE
1068234949Sbapt
1069234949Sbapt	* README: updated to note that this is not the original
1070234949Sbapt
1071234949Sbapt2004-03-24  Thomas E. Dickey  <tom@invisible-island.net>
1072234949Sbapt
1073234949Sbapt	* test/grammar.y: RCS_BASE
1074234949Sbapt
1075234949Sbapt2004-02-23  Thomas E. Dickey  <tom@invisible-island.net>
1076234949Sbapt
1077234949Sbapt	* config.sub: RCS_BASE
1078234949Sbapt
1079234949Sbapt2004-02-17  Thomas E. Dickey  <tom@invisible-island.net>
1080234949Sbapt
1081234949Sbapt	* config.guess: RCS_BASE
1082234949Sbapt
1083234949Sbapt2003-11-29  Thomas E. Dickey  <tom@invisible-island.net>
1084234949Sbapt
1085234949Sbapt	* install-sh: improved quoting
1086234949Sbapt
1087234949Sbapt2002-06-29  Thomas E. Dickey  <tom@invisible-island.net>
1088234949Sbapt
1089234949Sbapt	* mkdirs.sh:
1090234949Sbapt	don't use character range, since some locales don't work as expected
1091234949Sbapt
1092234949Sbapt2001-06-22  Thomas E. Dickey  <tom@invisible-island.net>
1093234949Sbapt
1094234949Sbapt	* install-sh: RCS_BASE
1095234949Sbapt
1096234949Sbapt2000-11-20  Thomas E. Dickey  <tom@invisible-island.net>
1097234949Sbapt
1098234949Sbapt	* test/calc.y: RCS_BASE
1099234949Sbapt
1100234949Sbapt	* test/code_calc.y, test/pure_calc.y: copy of calc.y
1101234949Sbapt
1102234949Sbapt	* vmsbuild.com: original version
1103234949Sbapt
1104234949Sbapt2000-02-23  Thomas E. Dickey  <dickey@invisible-island.net>
1105234949Sbapt
1106234949Sbapt	* test/RCS, RCS: PERMIT FILE
1107234949Sbapt
1108234949Sbapt2000-02-14  Thomas E. Dickey  <tom@invisible-island.net>
1109234949Sbapt
1110234949Sbapt	* main.c: fix for VMS port - making pathname for temp-file
1111234949Sbapt
1112234949Sbapt	* descrip.mms: original version
1113234949Sbapt
1114234949Sbapt2000-02-13  Thomas E. Dickey  <tom@invisible-island.net>
1115234949Sbapt
1116234949Sbapt	* 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:
1117234949Sbapt	ansify
1118234949Sbapt
1119234949Sbapt1999-11-30  Thomas E. Dickey  <tom@invisible-island.net>
1120234949Sbapt
1121234949Sbapt	* mkdirs.sh: RCS_BASE
1122234949Sbapt
1123234949Sbapt1995-01-01  Thomas E. Dickey  <tom@invisible-island.net>
1124234949Sbapt
1125234949Sbapt	* config_h.in: RCS_BASE
1126234949Sbapt
1127234949Sbapt1993-12-23  unknown
1128234949Sbapt
1129234949Sbapt	* README.DOS, main.c: MSDOS-port
1130234949Sbapt
1131234949Sbapt1993-12-22  unknown
1132234949Sbapt
1133234949Sbapt	* reader.c, defs.h: MSDOS-port
1134234949Sbapt
1135234949Sbapt1993-03-02  unknown
1136234949Sbapt
1137234949Sbapt	* README: original version
1138234949Sbapt
1139234949Sbapt1993-02-22  unknown
1140234949Sbapt
1141234949Sbapt	* test/ftp.output, test/ftp.tab.c, test/ftp.tab.h, test/error.output, test/error.tab.c, test/error.tab.h:
1142234949Sbapt	RCS_BASE
1143234949Sbapt
1144234949Sbapt	* skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES:
1145234949Sbapt	original version
1146234949Sbapt
1147234949Sbapt1992-10-12  unknown
1148234949Sbapt
1149234949Sbapt	* yacc.1: original version
1150234949Sbapt
1151234949Sbapt1992-10-11  unknown
1152234949Sbapt
1153234949Sbapt	* defs.h: original version
1154234949Sbapt
1155234949Sbapt1991-01-20  unknown
1156234949Sbapt
1157234949Sbapt	* mkpar.c, verbose.c: original version
1158234949Sbapt
1159234949Sbapt1991-01-14  unknown
1160234949Sbapt
1161234949Sbapt	* lr0.c, Makefile, Makefile.old: original version
1162234949Sbapt
1163234949Sbapt1990-07-16  unknown
1164234949Sbapt
1165234949Sbapt	* NEW_FEATURES: original version
1166234949Sbapt
1167234949Sbapt1990-06-03  unknown
1168234949Sbapt
1169234949Sbapt	* ACKNOWLEDGEMENTS: original version
1170234949Sbapt
1171234949Sbapt1990-02-05  unknown
1172234949Sbapt
1173234949Sbapt	* symtab.c, lalr.c, error.c: original version
1174234949Sbapt
1175234949Sbapt1990-01-16  Thomas E. Dickey  <tom@invisible-island.net>
1176234949Sbapt
1177234949Sbapt	* test/code_error.y, test/pure_error.y: RCS_BASE
1178234949Sbapt
1179234949Sbapt1990-01-16  unknown
1180234949Sbapt
1181234949Sbapt	* test/error.y: RCS_BASE
1182234949Sbapt
1183234949Sbapt1989-11-22  unknown
1184234949Sbapt
1185234949Sbapt	* NO_WARRANTY: original version
1186234949Sbapt
1187234949Sbapt1989-09-23  unknown
1188234949Sbapt
1189234949Sbapt	* test/ftp.y: RCS_BASE
1190234949Sbapt
1191