Subject: Re: CVS commit: src
To: None <email@example.com>
From: Chris G. Demetriou <firstname.lastname@example.org>
Date: 10/14/1998 18:17:38
In a commit message, Ross Harvey <email@example.com> writes:
> It's unfortunate that off_t and quad_t don't print with %q. I wonder
> what would happen if alpha changed these from long -> long long? It's
> the same actual size in bits either way.
%q (and %ll) is 'long long'. Right now, on alpha, 'long long' is 64
bits, but i can see reason for it being, say 128 at some point in the
Really, this is no worse than the fact that %l doesn't print ints w/o
warning, and %d doesn't print longs w/o warning on 32-bit machines.
It may be annoying, but really it's "right."
In general, when using a typedef, if you want the right behaviour, you
have to cast. It's a bummer, but that's the way of C.
Chris Demetriou - firstname.lastname@example.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.