Geert Janssens <janssens-ge...@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
       warl...@mit.edu                        PGP key available
_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to