phil.longstaff at gmail.com
Thu May 8 14:52:52 EDT 2014
Isn't this what the PRIxxx macros in inttypes.h are for?
On Thu, May 8, 2014 at 2:10 PM, Derek Atkins <warlord at mit.edu> wrote:
> 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 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
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
More information about the gnucash-devel