2
0

types.h 475 B

12345678910111213141516171819202122232425
  1. /*
  2. ** TeCGraf - PUC-Rio
  3. ** $Id: $
  4. */
  5. #ifndef types_h
  6. #define types_h
  7. #ifndef real
  8. #define real float
  9. #endif
  10. typedef int Bool; /* boolean values */
  11. typedef unsigned char Byte; /* unsigned 8 bits */
  12. typedef unsigned short Word; /* unsigned 16 bits */
  13. #define MAX_WORD 0xFFFD /* maximum value of a word (FFFF-2 for safety) */
  14. typedef signed long Long; /* 32 bits */
  15. typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */
  16. #endif