Back to index

tetex-bin  3.0
types.h
Go to the documentation of this file.
00001 /*
00002  * File:    types.h
00003  * Purpose: define basic types so that program is portable to non 32 bits
00004  *          platforms
00005  * Version: 1.0 (Dec. 1993)
00006  * Author:  Piet Tutelaers
00007  */
00008 
00009 #ifndef __TYPES__
00010 #define __TYPES__
00011 
00012 #if defined(WORD16)
00013 typedef unsigned short USHORT; /* 16 bits */
00014 typedef short SHORT;           /* 16 bits */
00015 typedef long LONG;             /* 32 bits */
00016 typedef unsigned long ULONG;   /* 32 bits */
00017 typedef double DOUBLE;         /* 64 bits */
00018 #elif defined(WORD64)
00019 typedef unsigned short USHORT; /* 16 bits */
00020 typedef short SHORT;           /* 16 bits */
00021 typedef int LONG;              /* 32 bits */
00022 typedef unsigned long ULONG;   /* 32 bits */
00023 typedef double DOUBLE;         /* 64 bits */
00024 #else /* default: WORD32 */
00025 typedef unsigned short USHORT; /* 16 bits */
00026 typedef short SHORT;           /* 16 bits */
00027 typedef int LONG;              /* 32 bits */
00028 typedef unsigned int ULONG;    /* 32 bits */
00029 typedef double DOUBLE;         /* 64 bits */
00030 #endif
00031 
00032 #endif /* __TYPES__ */