Re: Question about NSRange on the G5 and the future sizeof(int).
Re: Question about NSRange on the G5 and the future sizeof(int).
- Subject: Re: Question about NSRange on the G5 and the future sizeof(int).
- From: Greg Weston <email@hidden>
- Date: Sun, 13 Jul 2003 20:14:23 -0400
On Sunday, July 13, 2003, at 04:04 PM, Sherm Pendley wrote:
It's worth remembering that the elements in NSRange and other such
structs are declared merely as "int" - not as "long int." Where a
short,
long, or long long has a defined size, the size of a simple "int" is
left up to the compiler.
Except that short, long and long long do not have defined sizes. At
least no more so that int does.
short is an integral type of at least 16 bits.
int is an integral type intended to be the "natural" size for the
architecture and is at least as big as short.
long is an integral type of at least 32 bits and no smaller than int.
char and long long have similar definitions; minimal sizes as well as
requirements relative to the other types.
G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.