Martin Wells <> writes:
> loudking:
>> # define u_int64 unsigned long long
>> # define u_short unsigned short
>> # define u_int unsigned int
>
> C has typedef for a reason:
>
> typedef long long unsigned u_int64;
> typedef short unsigned u_short;
> typedef unsigned u_int;
[...]
Agreed. C also has "unsigned short" and "unsigned int" for a reason.
Just refer to "unsigned short" and "unsigned int" directly. The
aliases "u_short" and "u_int" add nothing useful; they just make me
wonder why you bothered to define new names for types that already
have perfectly good names -- or, worse, whether you've defined
"u_short" as something other than "unsigned short".
As for u_int64, unsigned long long is required to be *at least* 64
bits, but it's allowed to be wider.
--
Keith Thompson (The_Other_Keith)
kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"