From owner-freebsd-hackers Mon May 27 1: 0:25 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from storm.FreeBSD.org.uk (storm.FreeBSD.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id D312437B404 for ; Mon, 27 May 2002 01:00:05 -0700 (PDT) Received: from storm.FreeBSD.org.uk (uucp@localhost [127.0.0.1]) by storm.FreeBSD.org.uk (8.12.3/8.12.3) with ESMTP id g4R804Nt090506; Mon, 27 May 2002 09:00:04 +0100 (BST) (envelope-from mark@grimreaper.grondar.org) Received: (from uucp@localhost) by storm.FreeBSD.org.uk (8.12.3/8.12.3/Submit) with UUCP id g4R804h0090505; Mon, 27 May 2002 09:00:04 +0100 (BST) Received: from grimreaper.grondar.org (localhost [127.0.0.1]) by grimreaper.grondar.org (8.12.3/8.12.3) with ESMTP id g4R7v7Ca042890; Mon, 27 May 2002 08:57:07 +0100 (BST) (envelope-from mark@grimreaper.grondar.org) Message-Id: <200205270757.g4R7v7Ca042890@grimreaper.grondar.org> To: Alfred Perlstein Cc: hackers@FreeBSD.ORG Subject: Re: __STDC__ removal? References: <20020526222546.GD43189@elvis.mu.org> In-Reply-To: <20020526222546.GD43189@elvis.mu.org> ; from Alfred Perlstein "Sun, 26 May 2002 15:25:46 PDT." Date: Mon, 27 May 2002 08:57:06 +0100 From: Mark Murray Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'd support this. Makes maintaining the code a lot cleaner. M > NetBSD is nuking almost all __STDC__ usages because it's always > defined. Do we want to do the same? The exception I've seen > is for assembler files where old style C is needed to avoid > conflicts. > > mrouted/cfparse.y:#ifdef __STDC__ > mrouted/cfparse.y:#ifdef __STDC__ > mrouted/cfparse.y:#ifdef __STDC__ > mrouted/defs.h:#ifdef __STDC__ > mrouted/defs.h:#if defined(__STDC__) || defined(__GNUC__) > mrouted/main.c:#ifdef __STDC__ > mrouted/main.c:#ifdef __STDC__ > mrouted/mapper.c:#ifdef __STDC__ > mrouted/mapper.c:#ifdef __STDC__ > mrouted/mrinfo.c:#ifdef __STDC__ > mrouted/mrinfo.c:#ifdef __STDC__ > mrouted/mtrace.c:#ifdef __STDC__ > mrouted/mtrace.c:#ifdef __STDC__ > mrouted/mtrace.c:#ifdef __STDC__ > mrouted/mtrace.h:#if defined(__STDC__) || defined(__GNUC__) > mtree/create.c:#if __STDC__ > mtree/create.c:#if __STDC__ > mtree/create.c:#if __STDC__ > pppd/main.c:#if __STDC__ > pppd/main.c:#if __STDC__ > pppd/options.c:#if __STDC__ > pppd/pppd.h:#if __STDC__ > route6d/route6d.c:#ifdef __STDC__ > route6d/route6d.c:#ifdef __STDC__ > route6d/route6d.c:#ifdef __STDC__ > route6d/route6d.c:#ifdef __STDC__ > route6d/route6d.c:#ifdef __STDC__ > route6d/route6d.c:#ifdef __STDC__ > route6d/route6d.c:#ifdef __STDC__ > rtsold/rtsold.c:#if __STDC__ > zic/zdump.c:#ifdef __STDC__ > zic/zdump.c:#endif /* defined __STDC__ */ > zic/zdump.c:#ifndef __STDC__ > zic/zdump.c:#endif /* !defined __STDC__ */ > > ee/ee.c:#if defined(__STDC__) || defined(__cplusplus) > ee/ee.c:#ifndef __STDC__ > ee/ee.c:#endif /* __STDC__ */ > ee/new_curse.c:#if defined(__STDC__) > ee/new_curse.c:#if __STDC__ || defined(__cplusplus) > ee/new_curse.c:#endif /* __STDC__ */ > ee/new_curse.c:#ifndef __STDC__ > ee/new_curse.c:#endif /* __STDC__ */ > ee/new_curse.c:#ifndef __STDC__ > ee/new_curse.c:#else /* __STDC__ */ > ee/new_curse.c:#endif /* __STDC__ */ > ee/new_curse.c:#ifndef __STDC__ > ee/new_curse.c:#ifndef __STDC__ > ee/new_curse.c:#else /* __STDC__ */ > ee/new_curse.c:#endif /* __STDC__ */ > ee/new_curse.c:#ifdef __STDC__ > ee/new_curse.c:#endif /* __STDC__ */ > ee/new_curse.h:#if __STDC__ || defined(__cplusplus) > find/getdate.y:#if defined (__STDC__) || defined (USG) > find/getdate.y:#if defined (__STDC__) > lex/NEWS: - Changed to only use '\a' for __STDC__ compilers. > lex/NEWS: and free() for gcc, which defines __STDC__ but (often) doesn't > lex/NEWS: - Generated scanner uses prototypes and "const" for __STDC__. > lex/flex.skl:#if __STDC__ > lex/flex.skl:#endif /* __STDC__ */ > lex/flex.skl:#if __STDC__ > lex/flexdef.h:#ifndef __STDC__ > lex/flexdef.h:#define __STDC__ 1 > lex/flexdef.h:#if __STDC__ > lex/initscan.c:#if __STDC__ > lex/initscan.c:#endif /* __STDC__ */ > lex/initscan.c:#if __STDC__ > lex/misc.c:#if __STDC__ > lex/misc.c:#if __STDC__ > rpcgen/rpc_hout.c: f_print(fout, "\n#if defined(__STDC__) || defined(__cplusplus)\n"); > rpcgen/rpc_main.c: f_print(fout, "\n#if defined(__STDC__) || defined(__cplusplus)\n"); > telnet/externs.h:# ifdef __STDC__ > telnet/externs.h:# if defined(__STDC__) > telnet/ring.h:#if defined(__STDC__) || defined(LINT_ARGS) > yacc/skeleton.c: "#if defined(__cplusplus) || __STDC__", > yacc/skeleton.c: "#if defined(__cplusplus) || __STDC__", > yacc/skeleton.c: "#if defined(__cplusplus) || __STDC__", > > > -- > -Alfred Perlstein [alfred@freebsd.org] > 'Instead of asking why a piece of software is using "1970s technology," > start asking why software is ignoring 30 years of accumulated wisdom.' > Tax deductible donations for FreeBSD: http://www.freebsdfoundation.org/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message -- o Mark Murray \_ O.\_ Warning: this .sig is umop ap!sdn #text/plain; name=cv.doc [Mark Murray CV Plain Text] cv.doc #application/octet-stream; name=cv.pdf [Mark Murray CV PDF] cv.pdf To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message