Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2001 07:50:21 +0100
From:      Joerg Wunsch <j@uriah.heep.sax.de>
To:        Cyrille Lefevre <clefevre@citeweb.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: malloc.h
Message-ID:  <20011108075021.P43204@uriah.heep.sax.de>
In-Reply-To: <200111080020.fA80Kpd99323@gits.dyndns.org>; from clefevre@citeweb.net on Thu, Nov 08, 2001 at 01:20:50AM %2B0100
References:  <200111072045.fA7KjLP70989@uriah.heep.sax.de> <200111080020.fA80Kpd99323@gits.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011108075021.P43204>