Commit Graph

18 Commits

Author SHA1 Message Date
jnemeth 0b1276d17c Coverity annotation 2006-05-25 21:43:40 +00:00
christos 16aa23f5c3 sort static and non-static decls. 2006-05-24 18:06:58 +00:00
christos 8d1d34adc0 - ansi prototypes
- sprinkle static
No functional change (just smaller binary because of unused functions)
2006-05-24 18:01:43 +00:00
jmc b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
itojun 01a5c755ee use bounded string op, simplify by asprintf/strdup 2003-07-14 11:45:18 +00:00
tv 335cf252cf Only invoke __RCSID/__COPYRIGHT if these macros exist. 2002-01-30 20:38:49 +00:00
christos 91869b8cb5 remove duplicate prototypes. 2001-02-04 17:45:24 +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
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
jtc 62bdd99390 Sync with 4.4lite2 1996-03-19 03:21:27 +00:00
mycroft 305fdd943a Eliminate a compiler warning. 1993-12-07 17:46:56 +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
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