Commit Graph

43 Commits

Author SHA1 Message Date
explorer e32bc6b6c4 Use
const char *yyname[] = {...};
	const char *yyrule[] = {...};
rather than
	char *yyname[] = {...};
	char *yyrule[] = {...};

to prevent warnings about
	initialization discards `const' from pointer target type
when the output of yacc is compiled with a picky warning level.
2000-06-07 23:54:17 +00:00
explorer 7e9d7f75aa make change to the yacc output bits, not to the yacc binary bits 1999-10-29 16:41:51 +00:00
explorer 3cdbacc45a defined(__NetBSD__) && defined(__RCSID) 1999-10-29 16:35:46 +00:00
explorer 2e74cdd712 Only use __RCSID() if defined(__NetBSD__) so the yacc output files can
be used on non-NetBSD platforms, too.
1999-10-27 20:28:11 +00:00
ross 4eb3fc58ba Missing .El, extra Pp. 1999-03-09 03:34:56 +00:00
christos d594b7c039 char -> unsigned char 1998-12-19 20:03:49 +00:00
itohy 868f04b4ca Eliminate memory leaks. 1998-10-10 20:45:59 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
mycroft af96feb61b Format police. 1997-10-31 07:46:08 +00:00
christos a3882f2e6f PR/4392:John F. Woods: yacc -o file.cpp curdles result 1997-10-30 16:41:49 +00:00
lukem 2653d455ad fix .Nm usage, don't geenrate register in skeleton code 1997-10-20 03:41:12 +00:00
christos 6dea7d9ed2 Fix another gcc warning. 1997-09-26 15:14:08 +00:00
perry 9f1056ccbf Major modernization.
1) register variables have been killed, except for the ones in the
   generated skeleton (which should probably also be killed soon).
2) __P(())ified prototypes for all functions.
3) new style __RCSID's, and #include <sys/cdefs.h>'s.
4) all warnings generated with WARNS=1 (i.e. all warnings you get from
   gcc with -Wall -Wstrict-prototypes -Wmissing-prototypes) have been
   fixed, although not always in the best possible way.

in particular on #4, in a couple of places I got "control reaches end
of non-void function" errors, and sadly __dead doesn't seem to really
work, so I inserted a couple of exit() calls in strategic
places. These should be nuked if someone can get __dead to Do The
Right Thing.

There were also a couple of places where "while (foo = bar)" things
cropped up and I didn't do the best conceivable thing, but I usually
did.

These fixes should probably go back to the byacc maintainers.
1997-07-25 16:46:27 +00:00
perry bccc3d5d81 add -o option -- submitted in pr-1857 by Niklas Hallqvist 1997-07-19 19:47:38 +00:00
christos 1f54dc36dd Use mkstemp 1997-06-18 19:08:29 +00:00
christos f8c7b1919f Kill warnings in skeleton for gcc -Wall 1997-06-18 19:08:05 +00:00
mikel 0ad5b3127c make -p affect all variables; PR bin/2997 1997-01-15 07:24:25 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
jtc 7423e425f2 Changed to use 1900 + tm_year instead of hardcoding "19" as the century.
From PR #2308 by Stephen J. Roznowski <sjr@zombie.ncsc.mil>.

This change is not strictly necessary, as these files are only used to
test yacc.  But I could not think of any compelling reason not to make
these change when everything else in the source tree was updated.
1996-04-08 19:10:47 +00:00
mrg 65e7d88ab1 cast realloc() calls to shutup c++ warnings 1996-03-25 00:36:18 +00:00
jtc 62bdd99390 Sync with 4.4lite2 1996-03-19 03:21:27 +00:00
jtc e758ad3dac imported from 44lite2 1996-03-19 02:06:46 +00:00
jtc 8f3d20ea80 Added `extern "C"' to getenv() declaration when compiling with C++. 1996-03-19 01:59:27 +00:00
jtc 27cbf79a35 define YYLEX and YYEMPTY macros, as expected by some parsers written for bison 1996-03-05 01:07:55 +00:00
phil e496287dfc Add processing of "%expect num". 1996-03-05 00:33:19 +00:00
pk 9151edd345 Fetch `-p' documentation from a previous version of the man page. 1996-01-09 22:36:19 +00:00
jtc ffef8fa9dd Removed SEE ALSO section, we don't have yyfix; PR #1517 1995-09-27 21:37:54 +00:00
jtc 1a86f1c724 Revert last change, it seems that a lot of software (including our own
lint) uses yydebug even when YYDEBUG is not defined.
1995-09-07 17:34:04 +00:00
jtc 67c6c5cc72 don't define yydebug unless YYDEBUG is also defined; PR #1402 1995-08-24 00:45:23 +00:00
cgd 9ae496f636 needs string.h 1994-12-24 16:57:28 +00:00
cgd 9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
cgd 1ba43f6177 off_t exp. 1994-03-27 09:08:58 +00:00
jtc daa1856881 Clean up generated parser so Lint and Gcc -Wall are happy.
Fix from Thorsten Lockert.
1993-12-21 18:45:32 +00:00
jtc ba416b30ee Fix formatting bug. 1993-12-09 19:16:15 +00:00
mycroft 305fdd943a Eliminate a compiler warning. 1993-12-07 17:46:56 +00:00
mycroft 48796ec59b New version from uunet. Uses mandoc macros. 1993-08-06 19:34:17 +00:00
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
cgd 1370992abd update to version 1.9 of Berkeley yacc, from vangogh 1993-05-28 12:32:12 +00:00
mycroft 6e8052b9c6 Clean up deleted files. 1993-05-28 12:30:37 +00:00
cgd 837392081c update to version 1.9 of Berkeley yacc, from vangogh 1993-05-28 12:30:03 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00