Subject: NetBSD master CVS tree commits (fwd)
To: None <current-users@NetBSD.ORG>
From: Peter Galbavy <peter@wonderland.org>
List: current-users
Date: 02/28/1996 08:51:28
> cgd
> Tue Feb 27 16:17:30 EST 1996
> Update of /a/cvsroot/src/usr.bin/cksum
> In directory pain.lcs.mit.edu:/b/tmp/cvs-serv26564
>
> Modified Files:
> crc.c sum1.c sum2.c
> Log Message:
> what's the point of having prototypes if they're not actually _used_
> in the appropriate places? include extern.h in these files, and fix
> up the bugs that its inclusion uncovered.
While talking about prototypes, I notice in <sys/cdefs.h> that:
#if defined(__STDC__) || defined(__cplusplus)
#define __P(protos) protos /* full-blown ANSI C */
#define __CONCAT(x,y) x ## y
#define __STRING(x) #x
...
Now, when I do:
peter@peter.noc.demon.net $ cpp -dM < /dev/null
#define __GCC_NEW_VARARGS__ 1
#define __NetBSD__ 1
#define sparc 1
#define __GNUC__ 1
#define unix 1
I see no __STDC__ defined. What am I missing here (ie where would __STDC__
be defined) or are all the source files really being compiled (in userland
at least) without prototypes for the standard libraries ?
If this is the case, then can cdefs.h be changed to test for __GNUC__ as
well ? (I does further down, but for "other" things)
Regards, Confused of London,
--
Peter Galbavy peter@wonderland.org
@ Home phone://44/973/499465
in Wonderland http://www.wonderland.org/~peter/
snail://UK/NW1_6LE/London/21_Harewood_Avenue/