freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ft-devel] "comp" is reserved word in Apple SC compiler?


From: Turner, David
Subject: RE: [ft-devel] "comp" is reserved word in Apple SC compiler?
Date: Fri, 28 Oct 2005 09:38:54 +0200

> In summary, I will replace "NULL" in the part by "0L".
> How do you think of?
>

I think you should only use "0", since this is a magic token for C compilers
that can be interpreted either as an integer or as a pointer, depending on
context.

Anecdote: on very old machines, a 0 pointer translates to an internal
representation that isn't made of N bits set to 0, where N is the pointer
size used by the CPU. That's because on such architectures, 0 is a valid
address, while things like 0xFFFFFFFF are not.

I'm not certain that we support these machines in FreeType anyway, since we
tend to use "memset( record, 0, sizeof(*record) )" a lot today to clear
structures :-)


Regards,

- David Turner
- The FreeType Project  (www.freetype.org)
***********************************************************************************
Information contained in this email message is confidential and may be 
privileged, and is intended only for use of the individual or entity named 
above. If the reader of this message is not the intended recipient, or the 
employee or agent responsible to deliver it to the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited. If you have received this communication 
in error, please immediately notify the address@hidden and destroy the original 
message.
***********************************************************************************





reply via email to

[Prev in Thread] Current Thread [Next in Thread]