Ethereal-dev: Re: [ethereal-dev] NFS dissector continued

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Thu, 4 Nov 1999 11:28:59 -0800 (PST)
> * What do we do with 64 Bit numbers? I used %u, if the upper part is zero
> and %x%08x, if the upper part is non-zero. Maybe I can use %llu on GNU C
> systems.

"GNU C systems" presumably meaning systems with the GNU C library; I
think some systems that use GCC but that don't use the GNU C library
might use a different format for printing "long long" values (regardless
of whether the compiler is GCC or not).

I suppose we could cook up an "autoconf" macro to figure out which of
the N different long-long formats (I had the impression that *some*
system used "%q[duox]" - "q" for "quadword" - and that it might've been
a Linux system, but I may be mistaken) are used, and use C compile-time
string concatenation to build the format strings.

Glib does, at least, provide "gint64"/"guint64", on platforms that
support them, and provides a #define to indicate whether they're present.