From: Johan Knol <johan.knol@id...> - 2001-06-13 10:39:57
Subsequently I removed all usages of SPEC_SHORT and IS_SHORT. Now I disabled
them from SDCCsymt.h so they can not mistakenly be used anymore. The _short
and _signed fields are still there, but only intended for type checking and
Short now simply is a char or an int, decided at SDCCsymt.c:502. As you can
see this is controlled by the --short-is-int and/or --short-is-char option.
Now is still defaults to char. We can only change that after the libraries
have been checked (volunteers?). We could ofcourse add --short-is-char in
the libraries Makefile, but that seems inconsequent to me.
The best way to use a computer is to NOT use it AT ALL!
P.S.: These were my test cases.
signed char _signed_char;
char unsigned _char_unsigned;
signed int _signed_int;
int unsigned _int_unsigned;
unsigned short _unsigned_short;
short signed _short_signed;
short int _short_int;
int short _int_short;
int short unsigned _int_short_unsigned;
short int unsigned _short_int_unsigned;
unsigned int short _unsigned_int_short;
unsigned short int _unsigned_short_int;
int long _int_long;
long signed int _long_signed_int;
unsigned long int _unsigned_long_int;