[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: Portable Code (am I dreaming? :))
From: Nicolas Goutte <nicog () snafu ! de>
Date: 2002-01-24 12:35:46
[Download RAW message or body]
On Thursday 24 January 2002 12:44, Simon Hausmann wrote:
> 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) .
Clarence Dang already told before that he does not want to use QT's data
types, because he wants to re-use its code for non-QT applications.
Otherwise, QDataStream would do everything without problems.
>
> 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
Have a nice day/evening/night!
_______________________________________________
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