>> because long and int are the same so it really doesn't matter.

>That's not a terribly great assumption to make, is it?

the assumption usually made in practice is a little more subtle:
int <= long[=32] < long long [=64].  most older programs tended
to use int for things such as for loop values, that probably needed to be
at least 16 bits, but might not need to be as much as 32.
by contrast, a `long' quite often needed to be 32 bits, and often
that was `no more, no less'.

it's historically consistent and works well enough.
u32int etc are used a bit more these days, but not
exclusively.

the other subtle assumptions concern pointers and integers.
as it happens, the best choice there is happily consistent with dhog's, although
he didn't face that problem in his alpha port.  it does need source
code changes, but with care, they tend to be fairly limited, outside the kernel.

Reply via email to