Re: Q: void* vs. unsigned long (fwd)

Alan Shutko (ats@acm.org)
16 Feb 1999 19:24:40 -0600


>>>>> "F" == Francois Desarmenien <desar@club-internet.fr> writes:

F> That's not exactly the definitions I've learnt:

F> It should be assumed that:
[...]
F> long *is* 32 bits

Digital Unix on Alpha, and I think Alpha Linux as well (sorry, work
machine), long is 32.

The C standard doesn't let you assume anything like your post,
although they're often true. Certainly, if you only program on DOS
(as did the people who wrote one program I had to deconstruct today),
you can assume all that, and for much of Linux's life, it was safe.
But no longer, and it'll become less safe as time goes on.

(I found myself doing a

#define long int

in a piece of code because so conflated long with 32 bits. It caused
me great torment, but it worked.)

-- 
Alan Shutko <ats@acm.org> - By consent of the corrupted
A king's castle is his home.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/