RESULT!

Derek Atkins warlord at MIT.EDU
Thu May 8 14:10:41 EDT 2014


Geert Janssens <janssens-geert at telenet.be> writes:

>> Note that %ld v %lld varies on Linux too.  To print/scan a gint64 you
>> need %lld on 32-bit linux but %ld on 64-bit linux (because long long
>> is 64/128 bits respectively!)  This is why we try to use
>> G_INT64_FORMAT everywhere, because it will generally "do the right
>> thing".
>> 
> Ok, thanks.
>
> What will happen when we move away from glib eventually ? Isn't 
> G_INT64_FORMAT a glib defined macro ?

Yes, it is a glib-defined macro, but we can effectively replace it with
our own equivalent.  Basically we need to figure out the sizeof(long)
and sizeof(long long), and based on that and the platform we can make an
assignment of the macro.

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list