[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: NULL pointers.

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-10-16 15:55:00 CEST

Marc Singer wrote:

>On Mon, Oct 13, 2003 at 11:10:12PM -0400, Daniel Berlin wrote:
>
>
>>"An integer constant expression with the value 0, or such an expression
>>cast to type void *, iscalled anull pointer constant.
>>
>>
>
>Again, this isn't the point. Yes, you are well acquainted with the C
>standard.
>
ROTFL! Dan, how many decades have you spent hacking GCC? :-)

Marc: the question you want to ask is, "is there an architecture where a
value with all bits zero is not a representation of the null pointer
constant". And the answer is yes, there are a few such architectures.

>AFAIK, there are no representations of null that are not zero.
>
>
That turns out not to be the case.

>Initializers of zero work properly, BSS initialization works properly,
>as does bzero'ing a region of memory.
>
>
Heh. All the world is not Unix, and some systems don't even _have_ a BSS.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 16 15:58:10 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.