[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Portable Code (am I dreaming? :))
From:       Simon Hausmann <hausmann () kde ! org>
Date:       2002-01-24 11:44:17
[Download RAW message or body]

On Thu, Jan 24, 2002 at 10:35:29PM +1100, Clarence Dang wrote:
> I thought that in a 16-bit environment, int=short (16 bits) and
> in a 32-bit environment, int=long (32bits).  This is purely from observation however.
> How big are short and long in 64bit?

short is 16 bits, long _can_ be 64 bit (for example it is 32 bit on
x86-linux) . In general, don't worry about all this stuff, don't use 
64 bit wide types and use Q_*16/32 where possible. The Qt typedefs 
are guaranteed to have the specified size, on all Qt supported
platforms (which is what matters here) .

Don't use the Q_(U)INT64 in Qt2 (as you can see it has been removed
in Qt3, because it doesn't deliver what the name promises, and it
isn't easy to get right (if at all)) .

Simon
_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic