This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 12 bits compiler


Pierre Mallard <pierremallard@yahoo.fr> writes:
> #ifdef GVPP_FORMAT_12
> #define SIZE_TYPE "long unsigned int"
> #else
> #ifdef GVPP_FORMAT_16
> #define SIZE_TYPE "long unsigned int"
> #else
> #define SIZE_TYPE "unsigned int"
> #endif
> #endif
> 
> #ifdef GVPP_FORMAT_12
> #define PTRDIFF_TYPE "unsigned int"
> #else
> #ifdef GVPP_FORMAT_16
> #define PTRDIFF_TYPE "unsigned int"
> #else
> #define PTRDIFF_TYPE "unsigned int"
> #endif
> #endif

PTRDIFF_TYPE should probably be the corresponding signed SIZE_TYPE.

-- 
Lars Brinkhoff          http://lars.nocrew.org/     Linux, GCC, PDP-10,
Brinkhoff Consulting    http://www.brinkhoff.se/    HTTP programming


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]