Mail Archives: djgpp/1997/11/09/04:44:21
>
>The best thing to do is to use he keyword short. You may be able to do a
minor
>change.
>#define int short
>
No way !
Where to define such a thing ? Before system / compiler headers ? then you
change
the declarations of the compiler, and if something's working it's pure
luck!
OTOH if you #define this after compiler headers then your code is in
contradiction
with library codes (e.g how many bytes to push on the stack etc)
IMO the best way is to manually change your code. somrthing like:
typedef short uint16;
typedef unsigned short uint16;
// etc
I always prefer to declare a special typedef when I need nn bit quantities
but you can use plain short.
Eyal.
- Raw text -