xref: /freebsd/contrib/byacc/CHANGES (revision 145992504973bd16cf3518af9ba5ce185fefa82a)
12012-05-26  Thomas E. Dickey  <tom@invisible-island.net>
2
3	* package/debian/changelog, package/byacc.spec, VERSION: bump
4
5	* reader.c:
6	some versions of gcc may warn that bp is not set in mark_symbol, e.g.,
7	if GCC_NORETURN is not handled; appease the compiler.
8
9	* reader.c:
10	use the declared types Assoc_t and Value_t in some places where compiler only
11	cared about char versus short.
12
13	* reader.c:
14	use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
15	(no object change)
16
17	* defs.h:
18	add fallbacks for GCC_NORETURN and GCC_UNUSED to make it simpler for *BSD
19	packagers to build without configure script.  Also remove duplicate declaration
20	of pure_parser variable (prompted by patch by Baptiste Daroussin).
21
22	Also define new TMALLOC and TREALLOC macros to simplify/replace MALLOC and
23	REALLOC macros.
24
25	* symtab.c:
26	use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
27	(no object change)
28
292012-05-25  Thomas E. Dickey  <tom@invisible-island.net>
30
31	* output.c, main.c, verbose.c, mkpar.c, lr0.c:
32	use TMALLOC() and TREALLOC() macros to simplify allocation/reallocation
33	(no object change)
34
352012-01-15  Thomas E. Dickey  <tom@invisible-island.net>
36
37	* package/debian/copyright: bump
38
39	* test/run_make.sh: workaround for breakage due to GNU make 3.82
40
41	* test/run_make.sh:
42	tested with Solaris 10 (bison 1.875) and added scripting to exercise
43	the /usr/ccs/bin/yacc executable
44
45	* test/grammar.tab.c: regen
46
47	* test/grammar.y: modify to also build with Solaris yacc
48
49	* VERSION, package/debian/changelog, package/byacc.spec: bump
50
51	* test/calc1.output, test/calc1.tab.c: regen
52
53	* test/calc1.y:
54	undo the change made to appease bison, since it was only a warning.
55
56	* test/pure_calc.tab.c, test/pure_error.tab.c: regen
57
58	* test/run_make.sh: another fix for running from top-level directory
59
60	* makefile.in:
61	ensure that check_make rule depends on having byacc built.
62
63	* test/run_make.sh: fixes for building from parent directory
64
65	* test/pure_error.y, test/pure_calc.y: bison-fixes
66
67	* 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:
68	regen
69
70	* test/calc2.y, test/calc3.y, test/code_error.y, test/ftp.y:
71	byacc already declares yyerror
72
73	* test/pure_error.y, test/pure_calc.y:
74	modified to help make the files build with bison
75
76	* test/run_make.sh:
77	supply a "%pure-parser" directive when bison needs it.
78
79	* test/code_calc.code.c: regen
80
81	* test/code_calc.y: modified to help make the files build with bison
82
83	* yacc.1:
84	in testing, found that %expect did not work as documented for bison.
85	do not recommend it for portable code.
86
87	* test/run_make.sh: workaround breakage in bison's %expect directive
88
89	* test/grammar.y: modified to help make the files build with bison
90
91	* test/calc1.output, test/calc1.tab.c, test/grammar.tab.c: regen
92
93	* test/calc1.y: quiet a spurious warning from bison 2.3
94
95	* test/calc1.tab.c: regen
96
97	* test/calc1.y: modified to help make the files build with bison
98
99	* yacc.1: comment on "-y" and "-P" options.
100
101	* yacc.1: comment on portability
102
103	* 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:
104	regen
105
106	* test/ftp.y: modified to help make the files build with bison
107	(bison's "-y" option is of no use in providing "yacc" compatibility)
108
109	* test/quote_calc2.tab.c, test/quote_calc3.tab.c, test/quote_calc4-s.tab.c, test/quote_calc4.tab.c:
110	regen
111
112	* test/code_calc.y, test/quote_calc2.y, test/quote_calc.y, test/quote_calc4.y, test/quote_calc3.y:
113	modified to help make the files build with bison
114
115	* test/calc.tab.c: regen
116
117	* test/calc.y: modified to help make the files build with bison
118
119	* test/error.tab.c: regen
120
121	* test/error.y: modified to help make the files build with bison
122
123	* test/calc2.tab.c, test/calc3.tab.c, test/code_error.code.c: regen
124
125	* test/run_make.sh:
126	check for older bisons which (2.3 for instance) do not support pure parsers
127
128	* test/code_error.y, test/calc3.y, test/calc2.y:
129	modified to help make the files build with bison
130
131	* test/run_test.sh: use $opt2 in filenames of the generated files
132
133	* 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:
134	regen
135
1362012-01-14  Thomas E. Dickey  <tom@invisible-island.net>
137
138	* 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:
139	regen
140
141	* output.c: Several changes:
142		a) add YYLEX_PARAM_TYPE, like YYPARSE_PARAM_TYPE, but for yylex.
143		b) modify definitions for YYLEX_DECL to be more like YYPARSE_DECL,
144		   using YYLEX_PARAM_TYPE and YYLEX_PARAM.
145		c) add ifdef's around #define's for YYERROR_DECL and YYERROR_CALL,
146		   to help with redefinitions.
147
148	* test/pure_calc.tab.c:
149	modified to help make the files build with bison
150
151	* test/run_make.sh:
152	start work on followup, to check if the generated files build with bison.
153
154	* test/pure_calc.y, test/pure_error.tab.c:
155	modified to help make the files build with bison
156
157	* test/calc3.tab.c: regen
158
159	* 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:
160	RCS_BASE
161
162	* test/run_test.sh: generate/test with "-s" option applied.
163
1642012-01-13  Thomas E. Dickey  <tom@invisible-island.net>
165
166	* package/debian/changelog, package/byacc.spec, VERSION: bump
167
168	* yacc.1: improve documentation of -s option
169
170	* yacc.1: note that yacc ignores -y
171
172	* main.c: add -s option to usage message.
173
174	* 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:
175	RCS_BASE
176
177	* configure: regen
178
179	* aclocal.m4: resync with my-autoconf, i.e., fixes for CF_XOPEN_SOURCE
180
1812011-12-19  Thomas E. Dickey  <tom@invisible-island.net>
182
183	* package/debian/changelog, package/byacc.spec, VERSION: bump
184
185	* yacc.1, output.c, main.c, defs.h:
186	add "-s" option to suppress generating #define's based on string contents
187	in a %token statement.  For instance
188		%token EQLS "Equals"
189	would generate
190		#define EQLS 256
191		#define Equals 257
192	Simply suppressing the second #define makes the behavior closer to yacc.
193	(report by Paulo Andrade).
194
1952011-09-08  Thomas E. Dickey  <tom@invisible-island.net>
196
197	* package/debian/changelog, package/byacc.spec, VERSION: bump
198
199	* output.c:
200	fix some more interaction between -i and -d flags to ensure YYERRCODE
201	and YYSTYPE are declared, tested with cproto.
202
2032011-09-07  Thomas E. Dickey  <tom@invisible-island.net>
204
205	* yacc.1: document "-i" option.
206
207	* package/debian/changelog, package/byacc.spec, VERSION: bump
208
209	* output.c: fix an interaction between -i and -d
210
211	* 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:
212	regen - changes for "-i" option move the global/impure variables near the
213	macros that may add a prefix, etc.
214
215	* skeleton.c, output.c, defs.h: changes to support "-i" option.
216
2172011-09-06  Thomas E. Dickey  <tom@invisible-island.net>
218
219	* reader.c: pass explicit file-pointer to write_section()
220
221	* main.c:
222	add "-i" option, to generate interface-file (suggested by Denis M. Wilson)
223
2242011-09-05  Thomas E. Dickey  <tom@invisible-island.net>
225
226	* configure: regen
227
228	* aclocal.m4:
229	resync with my-autoconf: CF_ANSI_CC_CHECK (check for $CFLAGS in $CC)
230	and CF_XOPEN_SOURCE (update aix, cygwin and netbsd checks)
231
232	* defs.h, error.c, reader.c:
233	add check for missing "}" on %parse-param and %lex-param lines (report by Denis M Wilson)
234
2352011-04-01  Thomas E. Dickey  <tom@invisible-island.net>
236
237	* config.sub: 2011-04-01
238
2392011-02-02  Thomas E. Dickey  <tom@invisible-island.net>
240
241	* config.guess: 2011-01-01
242
2432010-12-29  Thomas E. Dickey  <tom@invisible-island.net>
244
245	* defs.h, skeleton.c:
246	add const qualifier to skeleton data, per NetBSD changes (report by Christos Zoulas)
247
248	* defs.h:
249	mark all of the error-functions as non-returning (report by Christos Zoulas)
250
251	* 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:
252	regen
253
254	* skeleton.c:
255	use only realloc() rather than realloc+malloc, agree that systems needing this
256	are very rare (prompted by NetBSD change).
257
258	* test/ftp.tab.c: regen
259
2602010-12-29  Christos.Zoulas
261
262	* test/ftp.y:
263	improve example, which was stuck in 19XX and assumed file sizes were longs.
264
2652010-12-29  Thomas E. Dickey  <tom@invisible-island.net>
266
267	* 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:
268	regen
269
270	* 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:
271	use byacc's YYLEX_DECL/YYERROR_DECL symbols to prototype yylex/yyerror
272
273	* skeleton.c:
274	remove explicit prototype for yylex() via YYLEX_DECL() macro, since that
275	would prevent declaring yylex() static (request by Christos Zoulas).
276
277	* test/calc2.tab.c, test/calc3.tab.c: regen
278
2792010-12-29  Christos.Zoulas
280
281	* output.c: correct definition for YYERROR_DECL()
282
2832010-12-29  Thomas E. Dickey  <tom@invisible-island.net>
284
285	* package/debian/changelog, package/byacc.spec, VERSION: bump
286
2872010-12-26  Thomas E. Dickey  <tom@invisible-island.net>
288
289	* defs.h, main.c:
290	change return-type of allocate() to avoid warnings of alignment problems
291
292	* main.c: Solaris declares chmod() in <sys/stat.h>
293
294	* configure: regen
295
296	* main.c: ifdef'd use of fcntl.h
297
298	* configure.in: add configure checks for fcntl.h, atexit and mkstemp
299
300	* main.c: for cases where mkstemp() is not available, use tempnam/open
301
302	* aclocal.m4: add CF_MKSTEMP
303
304	* aclocal.m4:
305	improve quoting, deprecate ${name-value} in favor of standard ${name:-value}
306
3072010-12-25  Thomas E. Dickey  <tom@invisible-island.net>
308
309	* main.c:
310	start revising use of tmpfile(), to make this work with MinGW.  Start by
311	implementing a mkstemp() alternative - noting that mkstemp() also is broken
312	for MinGW.
313
314	* package/debian/changelog, package/byacc.spec, VERSION: bump
315
3162010-11-27  Thomas E. Dickey  <tom@invisible-island.net>
317
318	* package/byacc.spec, package/debian/changelog, VERSION: bump
319
320	* test/calc2.tab.c, test/calc3.tab.c: regen
321
322	* output.c:
323	corrected use of %parse-param value in yyerror(); it doesn't use &yylval
324	(report by Clifford Yapp)
325
3262010-11-26  Thomas E. Dickey  <tom@invisible-island.net>
327
328	* skeleton.c: typo
329
330	* output.c:
331	correct line-numbering when "-r" option is used; the 'outline' variable
332	should only be incremented when writing to the code-file.
333
334	* test/code_calc.code.c, test/code_error.code.c: regen
335
336	* yacc.1: bump date
337
338	* yacc.1: comment on -b option vs -r
339
340	* 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:
341	regen
342
343	* output.c:
344	improve on YYERROR_DECL(), adding dummy params which can be used for the
345	actual function declaration.  Also add YYERROR_CALL().  The two macros
346	simplify maintaining sets of grammars which may/may not be pure.
347
348	* 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:
349	regen
350
351	* output.c: generate yyerror() calls in output.c
352	This is for compatibility with bison, which passes the yylval to yyerror
353	when the %parse-param feature is used.
354
355	* skeleton.c, defs.h: generate yyerror() calls in output.c
356
357	* output.c: simplified a little, using putc_code() and putl_code()
358
359	* test/calc1.tab.h: regen
360
361	* reader.c:
362	improve ifdef for YYSTYPE union declaration (report by Clifford Yapp)
363
364	* reader.c:
365	accept underscore as a replacement for dash in command names, e.g.,
366	"%pure_parser" vs "%pure-parser".
367
368	* test/calc1.tab.c: regen
369
370	* output.c, reader.c:
371	also ifdef YYSTYPE declaration in the generated code (report by Clifford Yapp)
372
373	* package/debian/changelog, package/byacc.spec, VERSION: bump
374
3752010-11-24  Thomas E. Dickey  <tom@invisible-island.net>
376
377	* main.c, defs.h, symtab.c, error.c: reduce global variables
378
379	* package/debian/changelog, package/byacc.spec, VERSION: bump
380
381	* reader.c:
382	amend fix for Redhat #112617 to still call default_action_warning() for
383	empty rules (report by Bruce Cran).
384
3852010-11-22  Thomas E. Dickey  <tom@invisible-island.net>
386
387	* output.c:
388	add ifdef to guard against redefinition of YYSTYPE union (request by Clifford Yapp).
389
390	* test/calc1.tab.c: regen
391
392	* test/calc1.y: cleanup compiler warnings
393
394	* test/grammar.y: add "%expect"
395
396	* test/calc1.tab.h: regen
397
398	* test/calc1.output, test/calc1.tab.c, test/calc1.tab.h: RCS_BASE
399
400	* test/calc2.tab.c, test/calc3.tab.c: regen
401
402	* test/calc1.y:
403	advanced example from Steve Johnson's paper, uses unions
404
405	* test/calc3.y, test/calc2.y: init 'base', so examples can run
406
407	* test/ftp.tab.c, test/ftp.y: tweaks to compile with g++
408
409	* output.c: compensate for fix in reader.c
410
411	* reader.c:
412	add/use putc_both() and puts_both(), incidentally fixing a place where
413	a union copied to the union_file may be missing the end of the last line.
414
415	* package/debian/changelog, package/byacc.spec, VERSION: bump
416
4172010-09-28  Thomas E. Dickey  <tom@invisible-island.net>
418
419	* config.guess: 2010-09-24
420
4212010-09-10  Thomas E. Dickey  <tom@invisible-island.net>
422
423	* config.sub: 2010-09-11
424
4252010-06-10  Thomas E. Dickey  <tom@invisible-island.net>
426
427	* yacc.1, package/debian/changelog, package/byacc.spec, VERSION:
428	bump to 2010/06/10
429
4302010-06-09  Thomas E. Dickey  <tom@invisible-island.net>
431
432	* reader.c: free declarations in leak-testing code.
433
434	* main.c: close code_file if -r option used, for leak-testing
435
436	* defs.h, reader.c:
437	improve %lex-param / %parse-param implementation by allowing for arrays to
438	be passed as parameters, e.g., "int regs[26]".
439
440	* 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:
441	RCS_BASE
442
443	* output.c:
444	improve %lex-param / %parse-param implementation by allowing for arrays to
445	be passed as parameters, e.g., "int regs[26]".
446
447	* test/calc.tab.c, test/calc.y:
448	test-cases and reference files for %lex-param / %parse-param
449
450	* makefile.in: add docs-rule, for html/pdf/txt form of manpage
451
452	* configure: regen
453
454	* aclocal.m4: add CF_XOPEN_SOURCE, etc.
455
456	* configure.in:
457	use CF_XOPEN_SOURCE check to ensure that strdup is in scope, e.g., for c89
458
459	* 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:
460	fix warnings from clang --analyze
461
4622010-06-08  Thomas E. Dickey  <tom@invisible-island.net>
463
464	* output.c: fix to build with c89, etc.
465
466	* reader.c: gcc warning
467
468	* 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:
469	modified test-cases to allow them to compile, to validate pure-parser changes.
470	updated reference files to match.
471
472	* output.c:
473	move call for output_stype() earlier since it is used in pure-parser declarations
474
475	* test/grammar.tab.c, test/grammar.y:
476	modified test-cases to allow them to compile, to validate pure-parser changes.
477	updated reference files to match.
478
479	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
480	regen
481
482	* yacc.1: document %lex-param and %parse-param
483
484	* test/run_lint.sh, test/run_make.sh: RCS_BASE
485
486	* test/run_test.sh:
487	further modify to allow build-directory to be in a different location by
488	passing this directory's location as a parameter to the script.
489
490	* makefile.in:
491	add check_make and check_lint rules to help validate the generated files
492	in the test-directory
493
4942010-06-07  Thomas E. Dickey  <tom@invisible-island.net>
495
496	* test/pure_calc.tab.c, test/pure_error.tab.c: RCS_BASE
497
498	* test/run_test.sh:
499	provide for testing -r and -P options by checking if the ".y" filename
500	begins with "code_" or "pure_", respectively.
501
502	* 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:
503	RCS_BASE
504
505	* test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c: regen
506
507	* test/run_test.sh:
508	changes to support running "make check" in a separate build-tree
509
510	* main.c: add "-P" to usage message
511
512	* reader.c: use UCH() macro to hide casts.
513
5142010-06-07  Andres.Mejia
515
516	* main.c, output.c, reader.c, defs.h, skeleton.c:
517	Fix the output order of the generated parse code file.  This allows for
518	the use of YYPARSE_PARAM, by having the output that checks for
519	YYPARSE_PARAM to be defined come after the C code block in the
520	definitions section of a yacc file.
521
522	Implement support for YYLEX_PARAM, similar to bison.  This is useful for
523	support for building reentrant lexers with flex.
524
525	Fix a compatibility issue with bison's pure-parser option.  Bison
526	defines yylex as sending at least one parameter, &yylval, as the first
527	parameter and doesn't seem to have an easy way to remove that parameter.
528	This on the other hand is rather convenient to support saving to yylval
529	from flex when building reentrant lexers and parsers.
530
531	Add support for the %parse-param and %lex-param directives used in
532	bison.  This change bears some similarity to NetBSD's changes to byacc
533	at http://www.mail-archive.com/source-changes-full@netbsd.org/msg08143.html
534
535	Bison allows for POSIX yacc emulation via a yacc directive in the yacc
536	file, and also via a command line switch.  Implement this feature as a
537	no-op for byacc, since byacc is designed to be POSIX yacc compatible
538	anyway.  This allows for better compatibility with yacc sources written
539	for bison.
540
5412010-06-07  Thomas E. Dickey  <tom@invisible-island.net>
542
543	* VERSION: bump to 2010/06/07
544
5452010-06-06  Thomas E. Dickey  <tom@invisible-island.net>
546
547	* test/calc.tab.c, configure: regen
548
549	* skeleton.c:
550	move #include's down into the generated code, to allow user-defined code
551	to override feature definitions, particularly with stdlib.h (request by
552	Marcus Kool).
553
554	* lr0.c, error.c, reader.c, defs.h:
555	strict gcc 3.4.6 warnings on 64-bit platform
556
557	* aclocal.m4, configure.in: add check for lint
558
559	* makefile.in: add lint rule
560
561	* defs.h, closure.c, lr0.c, warshall.c, main.c:
562	fix gcc warnings, mostly for 64-bit platform
563
564	* aclocal.m4:
565	add macros for checking ctags/etags, e.g., to work with NetBSD pkgsrc
566
567	* makefile.in: add etags/TAGS if available
568
569	* configure.in: add configure check for actual ctags and etags programs
570
571	* package/debian/copyright: add copyright notices for non-PD files
572
573	* package/debian/changelog:
574	incorporated scripts in upstream to use for test-builds
575
576	* makefile.in: drop mkdirs.sh, just use "mkdir -p"
577
578	* AUTHORS: nicknames for some contributors (see CHANGES for details)
579
580	* package/byacc.spec: RPM file for byacc
581
582	* VERSION: bump to 2010/06/06
583
584	* aclocal.m4: add copyright notice, from "my-autoconf" macros
585		http://invisible-island.net/autoconf/autoconf.html
586
587	* package/RCS, package/debian/RCS, package/debian/source/RCS, package/pkgsrc/RCS:
588	PERMIT FILE
589
590	* aclocal.m4: resync with my-autoconf.  summary of changes:
591		a) CF_ADD_CFLAGS, etc., improve quoting of ifelse() parameter
592		b) CF_DISABLE_ECHO, change indent-convention for substituted makefile
593		c) CF_GCC_VERSION, ignore stderr
594		d) CF_GCC_WARNINGS, adjust options to work with c89 wrapper of gcc
595
5962010-04-20  Thomas E. Dickey  <tom@invisible-island.net>
597
598	* 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:
599	scripts from Debian package
600
6012010-02-16  Thomas E. Dickey  <tom@invisible-island.net>
602
603	* yacc.1: document -P and bison-extensions
604
605	* test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
606	regen
607
608	* output.c: implement %pure-parser
609
610	* skeleton.c:
611	implement %pure-parser, like bison.  To help with this, changed the stack
612	variables, putting them into a struct.
613
614	* reader.c: implement %pure-parser
615
616	* defs.h: modified skeleton to support %pure-parser feature
617
618	* main.c: add -P option to set %pure-parser
619
620	* output.c:
621	make -r and -p options work together.  The -r option splits the generated
622	parser into code/table files; for this case we cannot use static data.
623	Also, we have to repeat the #define's used for prefix (-p) as well as the
624	redeclaration of yyparse().  Finally, allow any of the prefixed names to
625	be overridden, e.g., by passing a -D option to the compiler.  Make that
626	a little more readable by putting a blank line before each chunk.
627
628	* defs.h: add definitions for %pure-parser
629
630	* skeleton.c:
631	put blank line before/after the redeclaration of yyparse()
632
633	* output.c: allow for other program redefining yylex()
634
635	* skeleton.c:
636	split-off xdecls[] array, to move declaration of yyparse() after #define's
637
638	* defs.h: split-out xdecls[]
639
640	* VERSION: bump
641
642	* configure: regen
643
644	* aclocal.m4: add CF_REMOVE_DEFINE, needed by CF_ADD_CFLAGS
645
646	* aclocal.m4:
647	resync with my-autoconf CF_ADD_CFLAGS and CF_DISABLE_ECHO changes.
648
6492010-02-16  Ostap.Cherkashi
650
651	* skeleton.c: fix a memory leak in the generated skeleton
652
6532010-01-01  Thomas E. Dickey  <tom@invisible-island.net>
654
655	* package/debian/source/format: scripts from Debian package
656
6572009-12-31  Thomas E. Dickey  <tom@invisible-island.net>
658
659	* config.guess: 2009-12-30
660
661	* config.sub: 2009-12-31
662
6632009-10-27  Thomas E. Dickey  <tom@invisible-island.net>
664
665	* VERSION: 20091027
666
667	* output.c, mkpar.c, defs.h, lalr.c, closure.c, graph.c, lr0.c, verbose.c, main.c, reader.c:
668	strict compiler warnings
669
6702009-10-26  Thomas E. Dickey  <tom@invisible-island.net>
671
672	* test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
673	resync
674
675	* main.c, defs.h: introduce some typedefs for portability, etc.
676
677	* makefile.in:
678	don't remove "*.log" in mostlyclean rule since it interferes with regression
679	script.
680
681	* configure: regen
682
683	* aclocal.m4: resync with my-autoconf
684
6852009-08-25  Thomas E. Dickey  <tom@invisible-island.net>
686
687	* config.guess, config.sub: 2009-08-19
688
6892009-02-21  Thomas E. Dickey  <tom@invisible-island.net>
690
691	* VERSION: bump
692
693	* output.c: restore "yylval" symbol, omitted in cleanup on 2008/8/25
694
6952008-12-26  Thomas E. Dickey  <tom@invisible-island.net>
696
697	* configure: regen with autoconf-2.52 (patched)
698
6992008-12-25  Thomas E. Dickey  <tom@invisible-island.net>
700
701	* test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
702	regenerated
703
7042008-12-24  Thomas E. Dickey  <tom@invisible-island.net>
705
706	* VERSION: bump
707
708	* skeleton.c:
709	remove ifdef-lint from goto yyerrlab, to quiet gcc warning
710
7112008-11-26  Thomas E. Dickey  <tom@invisible-island.net>
712
713	* verbose.c, main.c, defs.h, mkpar.c, reader.c:
714	completed implementation of "%expect" (report by Perry E. Metzger).
715	add "%expect-rr", which is (unlike bison) allowable in LALR parsers.
716
7172008-11-24  Thomas E. Dickey  <tom@invisible-island.net>
718
719	* 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:
720	change indent-style (request by Perry E. Metzger)
721
7222008-08-27  Thomas E. Dickey  <tom@invisible-island.net>
723
724	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
725	better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
726
727	* VERSION: bump
728
729	* skeleton.c:
730	better implementation of YYPARSE_PARAM, using YYPARSE_DECL() macro
731
732	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, skeleton.c:
733	change YYRECOVERING to YYRECOVERING(), for compatibility with other yacc's.
734
735	* configure: regen'd
736
737	* configure.in: add -Wwrite-strings to warnings
738
739	* test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c, test/error.tab.c:
740	add YYPARSE_PARAM and YYPARSE_PARAM_TYPE
741
742	* skeleton.c:
743	add YYPARSE_PARAM (bison) and YYPARSE_PARAM_TYPE (FreeBSD) features.
744
745	* main.c, defs.h, output.c, skeleton.c, symtab.c, error.c, reader.c:
746	fixes for gcc -Wwrite-strings
747
748	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
749	generate the tables as static-const (this is an interface change)
750
751	* output.c: realign columns in start_table()
752
753	* output.c:
754	generate the tables as static-const (this is an interface change)
755
756	* output.c: reorder functions to eliminate forward-references
757
758	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
759	remove 'register' keywords
760
7612008-08-26  Thomas E. Dickey  <tom@invisible-island.net>
762
763	* 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:
764	remove 'register' keywords
765
7662008-08-25  Thomas E. Dickey  <tom@invisible-island.net>
767
768	* test/ftp.tab.c: regen'd
769
770	* reader.c:
771	improve the left-curly fix by testing after blanks, to avoid having a
772	" {" at the beginning of a line.
773
774	* test/error.tab.c, test/grammar.tab.c: regen'd
775
776	* output.c:
777	move the remaining newline-counting into write_XXX functions.
778
779	* test/calc.tab.c: regen'd
780
781	* output.c:
782	simplify part of the output_file formatting using new functions, e.g.,
783	start_int_table(), output_newline().
784
785	* reader.c:
786	modify copy_action() to indent the first character, it if is is left-curly
787	brace.  That makes the output look more like the original, as well as makes
788	it simpler to edit (not confuse editors which look for a left-curly in the
789	first column as if it were the beginning of a function).
790
791	* skeleton.c: minor fixes to avoid gcc -Wconversion warnings
792
793	* output.c: align the #define's produced for "-p" option
794
795	* test/run_test.sh: use the "-p" option for better coverage.
796
797	* output.c: simplify output_prefix() with new define_prefixed()
798
799	* skeleton.c: include string.h, for memset()
800	change stack size to unsigned to fix gcc -Wconversion warnings.
801
802	* VERSION: bump to 2008/8/25
803
804	* makefile.in: add dependency on VERSION file.
805
8062008-08-24  Thomas E. Dickey  <tom@invisible-island.net>
807
808	* VERSION: bump
809
810	* lalr.c: improved memory-leak checking by freeing data in includes[]
811
812	* test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c, test/calc.tab.c:
813	update to match skeleton-change
814
815	* configure: regen'd
816
817	* skeleton.c: Add fix for stack discussed
818		http://undeadly.org/cgi?action=article&sid=20080708155228
819	and applied
820		http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/yacc/skeleton.c.diff?r1=1.28&r2=1.29
821
822	* aclocal.m4: resync with my-autoconf (no major changes)
823
8242008-07-24  Thomas E. Dickey  <tom@invisible-island.net>
825
826	* package/pkgsrc/Makefile, package/pkgsrc/distinfo:
827	scripts from NetBSD pkgsrc, for test-builds
828
8292008-03-14  Thomas E. Dickey  <tom@invisible-island.net>
830
831	* config.sub: update to 2008-03-08
832
833	* config.guess: update to 2008-03-12
834
8352007-05-09  Thomas E. Dickey  <tom@invisible-island.net>
836
837	* main.c: close graph, verbose files if opened, on exit.
838
839	* main.c:
840	audit memory leaks - valgrind reported some memory still in use on exit.
841
842	* lalr.c, output.c, reader.c, mkpar.c, lr0.c:
843	add hook for auditing memory leaks
844
845	* defs.h: add hooks for auditing memory leaks
846
847	* configure: regen'd
848
849	* configure.in:
850	use CF_DISABLE_LEAKS, which combines --disable-leaks, --with-valgrind,
851	--with-dbmalloc and --with-dmalloc
852
853	* aclocal.m4: add CF_DISABLE_LEAKS and CF_WITH_VALGRIND
854
855	* aclocal.m4: improve version-checking in CF_GCC_VERSION
856	rework dbmalloc/dmalloc options using CF_NO_LEAKS_OPTION macro
857
858	* VERSION: 2007/5/9
859
860	* main.c: file_prefix did not always have a trailing null.
861
8622007-03-25  Thomas E. Dickey  <tom@invisible-island.net>
863
864	* mkdirs.sh: improved version for "make -j"
865
8662006-12-22  Thomas E. Dickey  <tom@invisible-island.net>
867
868	* config.guess: 2006/12/22
869
8702006-12-08  Thomas E. Dickey  <tom@invisible-island.net>
871
872	* config.sub: 2006/12/08
873
8742005-08-13  Thomas E. Dickey  <tom@invisible-island.net>
875
876	* main.c: add -V to usage message
877
878	* makefile.in: remove -t option from ctags
879
880	* VERSION: 2005/8/13
881
8822005-08-13  schmitz
883
884	* main.c: Sylvain Schmitz:
885	modify the '-o' option to work like bison's, which sets the file-prefix.
886
8872005-08-13  Matt.Kraai
888
889	* output.c:
890	Debian #322858 (don't close union_file, which contained data).
891	This feature is used in groff.
892
8932005-08-13  Thomas E. Dickey  <tom@invisible-island.net>
894
895	* configure: regenerated
896
897	* aclocal.m4: improve checks for Intel compiler warnings
898
8992005-06-25  Thomas E. Dickey  <tom@invisible-island.net>
900
901	* config.sub: 2005/6/2
902
903	* config.guess: 2005/5/27
904
9052005-05-05  Thomas E. Dickey  <tom@invisible-island.net>
906
907	* defs.h: add a fallback for GCC_UNUSED
908
9092005-05-04  Thomas E. Dickey  <tom@invisible-island.net>
910
911	* makefile.in: add "." to include-path to pickup config.h
912
913	* reader.c:
914	apply fix suggested by Steve Dum for end_rule() in Redhat Bugzilla #112617.
915
916	* output.c:
917	correct a limit check in pack_vector() - report/analysis by William Evans
918
919	* main.c:
920	exit after printing version.  Otherwise "yacc -V" will exit with an erro
921	after printing the usage message.
922
923	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
924	regenerated after skeleton-changes
925
926	* skeleton.c: replace a few -1's with YYEMPTY
927
928	* skeleton.c:
929	delete yynewerror (no one uses it any more, and it just makes compiler warnings)
930
931	* skeleton.c: adapt yygrowstack() and related definitions from FreeBSD
932
933	* test/run_test.sh:
934	filter out lines with YYPATCH, since that will change with each update
935
936	* yacc.1: add -V option
937
938	* main.c: add -V option to print the version.
939	simplify option-parsing by moving the duplicate logic for setting flags into
940	new function setflag().
941
942	* skeleton.c:
943	move the actual definition of YYMAJOR and YYMINOR to defs.h (as numbers).
944	add YYPATCH here so it can be tested by applications.
945
946	* defs.h:
947	add macros to define VERSION in terms of the (numeric) YYMAJOR, YYMINOR and
948	YYPATCH symbols.
949
950	* lalr.c, lr0.c, mkpar.c, defs.h, closure.c, warshall.c, output.c, verbose.c, graph.c, reader.c, main.c, symtab.c:
951	reduce externs by making static the procedures that are not referenced outside
952	the module in which they are defined.
953
954	* makefile.in:
955	the VERSION file holds the patch-date.  Define YYPATCH, so this will be
956	compiled into the skeleton.
957
958	* VERSION: patch-level for byacc
959
960	* main.c:
961	add "-o" to usage message.  It is too long for a single line; rewrite usage()
962	to show one option per line.
963
9642005-05-03  Thomas E. Dickey  <tom@invisible-island.net>
965
966	* main.c: add -o option, to work with scripts that assume bison.
967	simplify create_file_names() with a macro.
968	simplify done() with a macro.
969	adapt fix from FreeBSD for signal race, e.g., if done() is interrupted by
970	onintr(), do not flush output via exit(), but use _exit() instead.
971
972	* defs.h: remove unnecessary externs for main.c
973
974	* yacc.1: add -o option
975
976	* graph.c: remove unused parameter
977
978	* mkpar.c, defs.h, reader.c:
979	add support for "%expect", a bison feature from FreeBSD sources
980
981	* 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:
982	indent'd
983
984	* configure: regenerated for 2005/5/5
985
986	* aclocal.m4: miscellaneous updates (adds CF_INTEL_COMPILER)
987
9882005-04-27  schmitz
989
990	* defs.h, graph.c, lr0.c, main.c, makefile.in, reader.c, yacc.1:
991	Sylvain Schmitz <schmitz@i3s.unice.fr>:
992	add graphical output of the LALR(1) automaton for graphviz,
993	associated with command-line option `-g'
994
9952005-04-16  Thomas E. Dickey  <tom@invisible-island.net>
996
997	* config.sub: 2005/2/10
998
999	* config.guess: 2005/3/24
1000
10012005-04-13  Thomas E. Dickey  <tom@invisible-island.net>
1002
1003	* package/pkgsrc/PLIST: scripts from NetBSD pkgsrc, for test-builds
1004
10052005-03-21  Thomas E. Dickey  <tom@invisible-island.net>
1006
1007	* package/pkgsrc/DESCR: scripts from NetBSD pkgsrc, for test-builds
1008
10092004-03-28  Thomas E. Dickey  <tom@invisible-island.net>
1010
1011	* test/calc.tab.c, test/error.tab.c, test/ftp.tab.c, test/grammar.tab.c:
1012	updates due to adding yyparse() prototype
1013
1014	* configure: RCS_BASE
1015
1016	* configure.in:
1017	add AC_ARG_PROGRAM to make --program-prefix, etc., work.
1018
1019	* makefile.in: first cut of script to support --program-prefix
1020
1021	* configure.in:
1022	reorder AC_INIT/AC_CONFIG_HEADER to make this "work" with autoconf 2.52
1023
1024	* makefile.in: modify so DESTDIR works
1025
1026	* makefile.in: use EXEEXT and OBJEXT
1027
1028	* configure.in: use CF_PROG_EXT
1029	generate a config.h
1030
1031	* defs.h: make this use the generated config.h
1032
1033	* skeleton.c: add a forward-reference for yyparse()
1034
1035	* aclocal.m4: add CF_CHECK_CACHE, needed for CF_PROG_EXT
1036
1037	* yacc.1: remove the discussion of TMPDIR since it is obsolete
1038
1039	* skeleton.c: fix a couple of minor compiler-warnings in the skeleton
1040
1041	* defs.h: remove action_file_name, etc., since we use tmpfile() now.
1042
1043	* main.c:
1044	use tmpfile() for opening the working files.  This quiets a warning
1045	advising the use of mkstemp().
1046
1047	* output.c:
1048	Do not close temporary-files here, since they are opened with tmpfile().
1049	Just rewind them, and they're ready to read back the data stored in them.
1050
1051	* test/grammar.output, test/grammar.tab.c, test/grammar.tab.h: RCS_BASE
1052
1053	* makefile.in: turn on "make check" rule
1054
1055	* test/calc.output, test/run_test.sh, test/calc.tab.h: RCS_BASE
1056
1057	* test/ftp.tab.c: yyparse() is now yyparse(void)
1058
1059	* test/calc.tab.c: RCS_BASE
1060
1061	* test/error.tab.c: yyparse() is now yyparse(void)
1062
1063	* test/README: RCS_BASE
1064
1065	* yacc.1: various typography fixes prompted by Debian #100947
1066
1067	* aclocal.m4, makefile.in, configure.in: RCS_BASE
1068
1069	* README: updated to note that this is not the original
1070
10712004-03-24  Thomas E. Dickey  <tom@invisible-island.net>
1072
1073	* test/grammar.y: RCS_BASE
1074
10752004-02-23  Thomas E. Dickey  <tom@invisible-island.net>
1076
1077	* config.sub: RCS_BASE
1078
10792004-02-17  Thomas E. Dickey  <tom@invisible-island.net>
1080
1081	* config.guess: RCS_BASE
1082
10832003-11-29  Thomas E. Dickey  <tom@invisible-island.net>
1084
1085	* install-sh: improved quoting
1086
10872002-06-29  Thomas E. Dickey  <tom@invisible-island.net>
1088
1089	* mkdirs.sh:
1090	don't use character range, since some locales don't work as expected
1091
10922001-06-22  Thomas E. Dickey  <tom@invisible-island.net>
1093
1094	* install-sh: RCS_BASE
1095
10962000-11-20  Thomas E. Dickey  <tom@invisible-island.net>
1097
1098	* test/calc.y: RCS_BASE
1099
1100	* test/code_calc.y, test/pure_calc.y: copy of calc.y
1101
1102	* vmsbuild.com: original version
1103
11042000-02-23  Thomas E. Dickey  <dickey@invisible-island.net>
1105
1106	* test/RCS, RCS: PERMIT FILE
1107
11082000-02-14  Thomas E. Dickey  <tom@invisible-island.net>
1109
1110	* main.c: fix for VMS port - making pathname for temp-file
1111
1112	* descrip.mms: original version
1113
11142000-02-13  Thomas E. Dickey  <tom@invisible-island.net>
1115
1116	* 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:
1117	ansify
1118
11191999-11-30  Thomas E. Dickey  <tom@invisible-island.net>
1120
1121	* mkdirs.sh: RCS_BASE
1122
11231995-01-01  Thomas E. Dickey  <tom@invisible-island.net>
1124
1125	* config_h.in: RCS_BASE
1126
11271993-12-23  unknown
1128
1129	* README.DOS, main.c: MSDOS-port
1130
11311993-12-22  unknown
1132
1133	* reader.c, defs.h: MSDOS-port
1134
11351993-03-02  unknown
1136
1137	* README: original version
1138
11391993-02-22  unknown
1140
1141	* test/ftp.output, test/ftp.tab.c, test/ftp.tab.h, test/error.output, test/error.tab.c, test/error.tab.h:
1142	RCS_BASE
1143
1144	* skeleton.c, warshall.c, main.c, output.c, reader.c, closure.c, NOTES:
1145	original version
1146
11471992-10-12  unknown
1148
1149	* yacc.1: original version
1150
11511992-10-11  unknown
1152
1153	* defs.h: original version
1154
11551991-01-20  unknown
1156
1157	* mkpar.c, verbose.c: original version
1158
11591991-01-14  unknown
1160
1161	* lr0.c, Makefile, Makefile.old: original version
1162
11631990-07-16  unknown
1164
1165	* NEW_FEATURES: original version
1166
11671990-06-03  unknown
1168
1169	* ACKNOWLEDGEMENTS: original version
1170
11711990-02-05  unknown
1172
1173	* symtab.c, lalr.c, error.c: original version
1174
11751990-01-16  Thomas E. Dickey  <tom@invisible-island.net>
1176
1177	* test/code_error.y, test/pure_error.y: RCS_BASE
1178
11791990-01-16  unknown
1180
1181	* test/error.y: RCS_BASE
1182
11831989-11-22  unknown
1184
1185	* NO_WARRANTY: original version
1186
11871989-09-23  unknown
1188
1189	* test/ftp.y: RCS_BASE
1190
1191