make sure BITS32 and 16 are what they say they are
This commit is contained in:
parent
84c1803102
commit
4f8fad43df
11
H/YapTerm.h
11
H/YapTerm.h
|
@ -101,10 +101,19 @@ typedef void *Atom;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef UInt CELL;
|
typedef UInt CELL;
|
||||||
|
#if HAVE_STDINT_H
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
typedef uint16_t BITS16;
|
||||||
|
typedef int16_t SBITS16;
|
||||||
|
typedef uint32_t BITS32;
|
||||||
|
#else
|
||||||
typedef UShort BITS16;
|
typedef UShort BITS16;
|
||||||
typedef Short SBITS16;
|
typedef Short SBITS16;
|
||||||
typedef UInt BITS32;
|
typedef UInt BITS32;
|
||||||
|
#endif
|
||||||
|
|
||||||
#define WordSize sizeof(BITS16)
|
#define WordSize sizeof(BITS16)
|
||||||
#define CellSize sizeof(CELL)
|
#define CellSize sizeof(CELL)
|
||||||
|
|
Reference in New Issue