From owner-freebsd-current Wed Nov 7 20: 4:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from smtp.noos.fr (descartes.noos.net [212.198.2.74]) by hub.freebsd.org (Postfix) with ESMTP id 73EB037B405 for ; Wed, 7 Nov 2001 20:04:20 -0800 (PST) Received: (qmail 38439148 invoked by uid 0); 8 Nov 2001 04:04:18 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.229.145]) (envelope-sender ) by 212.198.2.74 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 8 Nov 2001 04:04:18 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id fA844Hl08636; Thu, 8 Nov 2001 05:04:18 +0100 (CET) (envelope-from root) Message-Id: <200111080404.fA844Hl08636@gits.dyndns.org> Subject: Re: malloc.h In-Reply-To: <200111080237.fA82bGO28786@khavrinen.lcs.mit.edu> To: Garrett Wollman Date: Thu, 8 Nov 2001 05:04:17 +0100 (CET) Cc: freebsd-current@FreeBSD.ORG Reply-To: clefevre@citeweb.net From: Cyrille Lefevre Organization: ACME X-Face: X-Mailer: ELM [version 2.4ME+ PL95a (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Garrett Wollman wrote: > < said: > > > Joerg Wunsch wrote: > >> Sheldon Hearn wrote: > >> > >> > This is how we've decided to encourage progress in this specific > >> > case of header misuse. > >> > >> IMHO the current version of is wrong. This header > >> file used to be a legitimate header file prior to ANSI C. So > >> it should be > >> > >> #if __STDC__ > > > this statement is wrong. it should be > > > #ifdef __STDC__ > > > or > > > #if (__STDC__-0) == 0 > > No, it shouldn't. Leavinmg aside the correctness of the previous > suggestion, anyone who explicitly defines __STDC__ to be the empty > string should get what he deserves. In preprocessor expressions, any > identifiers left after macro substitution are considered to have a > value of zero. I haven't access to a Solaris or an HP box, but I'm not really sure that all compilers follow this rule in K&R mode. IMHO, you are lucky this works w/ gcc -traditional (I've just verified). Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message