Commit Graph

21 Commits

Author SHA1 Message Date
dholland
5a52d2d51f Remove pointless casts. 2015-05-09 23:29:51 +00:00
dholland
90a10bbb8a Make error() printflike instead of using sprintf before calling it. 2015-05-09 23:28:43 +00:00
dholland
ceecfabaa7 Polish the error messages.
Don't use warn/err to print error messages about the input, as
prepending the program name to those both isn't helpful and confuses
programs that try to parse compile logs.
2015-05-09 23:12:57 +00:00
christos
0213edf018 - remove support for pre-ansi output
- add -B (BSD) support for c++ output macros
- group functions to make output better looking
2013-12-15 00:40:17 +00:00
dholland
e9067f113d WARNS=5 2013-08-11 08:03:10 +00:00
ginsbach
3cad8d1d2c Add support for hyper and quad keywords. (See Sun ONC+ Developer's Guide
and RFC-4506 for additional details.)  [From FreeBSD and OpenSolaris]
2009-05-06 14:30:51 +00:00
christos
99f1624bd3 Coverity CID 97: Remove dead code. 2006-04-04 21:27:42 +00:00
elad
c080c43ef1 plug leak, coverity cid 98. 2006-03-20 17:03:08 +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
christos
0a8ad43664 cast ~0 to (u_int) because it is aimed at the size argument of the xdr function. 2002-02-05 22:02:15 +00:00
tv
76834aef57 Protect __RCSID and __COPYRIGHT from being invoked if not defined. 2002-01-31 19:36:47 +00:00
bouyer
18e200396c Bump a static char array from 8 to 255. Avoids rpcgen core dumps on some
long struct name.
XXX There are a lot of static arrays in there, bounds should be checked
XXX more carrefuly. All of them seems big enouth (>100) for normal use, though.
1999-12-15 16:47:35 +00:00
lukem
423e29d2ec revert; we can't break the existing ABI and API 1998-02-11 23:01:22 +00:00
lukem
caf41deb2a output explicit types (int16_t, int32_t, etc) rather than (short, long, ...) 1998-02-10 05:10:19 +00:00
lukem
99071d1bef KNFify, generate prototypes, etc (to shut up WARNS on generated code) 1997-10-18 10:53:37 +00:00
christos
935794817d - Rename "inline" variable to "doinline" so that we don't need -ansi
- Fix gcc warnings and add netbsd rcsid's
- add WARNS to the Makefile
- Add errx() to unhandled cases where appropriate.
1997-10-11 21:01:26 +00:00
cgd
e9b16ab034 pull stdlib.h and string.h in, for protos, where necessary 1995-08-29 23:05:49 +00:00
pk
71a0fb455d Clean up import & propagate NetBSD changes.
Add RCS Ids.
Fix a number of bugs.
Note: this version supports ANSI C code generation.
1995-06-11 21:49:50 +00:00
mycroft
e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft
f19d90d7fe Cleanup for GCC 2. 1993-04-19 07:28:01 +00:00
glass
8f0abce1cd Added rpcgen(1) 1993-04-03 00:51:49 +00:00