From owner-freebsd-current Wed Nov 7 23:20: 9 2001 Delivered-To: freebsd-current@freebsd.org Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (Postfix) with ESMTP id AB27037B41E for ; Wed, 7 Nov 2001 23:20:02 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.9.3/8.9.3) with UUCP id IAA16754; Thu, 8 Nov 2001 08:19:38 +0100 (CET) Received: (from j@localhost) by uriah.heep.sax.de (8.11.6/8.11.6) id fA86oLW73815; Thu, 8 Nov 2001 07:50:21 +0100 (MET) (envelope-from j) Date: Thu, 8 Nov 2001 07:50:21 +0100 From: Joerg Wunsch To: Cyrille Lefevre Cc: freebsd-current@freebsd.org Subject: Re: malloc.h Message-ID: <20011108075021.P43204@uriah.heep.sax.de> Reply-To: Joerg Wunsch References: <200111072045.fA7KjLP70989@uriah.heep.sax.de> <200111080020.fA80Kpd99323@gits.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200111080020.fA80Kpd99323@gits.dyndns.org>; from clefevre@citeweb.net on Thu, Nov 08, 2001 at 01:20:50AM +0100 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E 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 As Cyrille Lefevre wrote: > > #if __STDC__ > > this statement is wrong. That's a claim without an explanation. > it should be > > #ifdef __STDC__ That would be wrong. __STDC__ could be defined to 0 which means ``not compliant to the standard''. > #if (__STDC__-0) == 0 What is the difference to my version (except that it would fail for __STDC__ being greater than 1)? I don't know how pre-ANSI cpps did behave, but at least a standard-conformant cpp must replace any identifier in an #if statement that remains after macro expansion by 0L. -- cheers, J"org .-.-. --... ...-- -.. . DL8DTL http://www.sax.de/~joerg/ NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message