From owner-freebsd-current Fri Nov 9 4: 4:23 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 7738A37B41D for ; Fri, 9 Nov 2001 04:04:18 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id XAA10269; Fri, 9 Nov 2001 23:04:06 +1100 Date: Fri, 9 Nov 2001 23:02:58 +1100 (EST) From: Bruce Evans X-X-Sender: To: Garrett Wollman Cc: Joerg Wunsch , Subject: Re: malloc.h In-Reply-To: <200111082230.fA8MU5C40359@khavrinen.lcs.mit.edu> Message-ID: <20011109224852.N9783-100000@delplex.bde.org> MIME-Version: 1.0 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 On Thu, 8 Nov 2001, Garrett Wollman wrote: > < said: > > > Well, no. Solaris uses #if (__STDC__-1==0) only in connection with > > other conditions in the same #if part. Otherwise, they use a simple > > #ifdef __STDC__ as well. FreeBSD uses a simple `#ifdef __STDC__' (everywhere else in /usr/include) too, despite this being wronger than `#if __STDC__' for non-conforming implementations. (A standard can't specify what non-conforming implementations do. It's not clear what __STDC__ == 0 means, but it certainly means that C is not implemented.) > (FOO - 1 == 0) is the traditional-cpp way of saying `defined(FOO)', in > the restricted case of FOO is defined to be zero, one, or the empty > string (parsed the same as zero). (FOO + n) is also useful for standard-cpp when FOO is poorly specified to be either numeric or undefined. Some of the POSIX limits have fuzzy specs like this (or worse, fuzzy specs that don't even say that FOO is numeric if it is defined). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message