types.h 627 B

12345678910111213141516171819202122232425262728
  1. /*
  2. ** TeCGraf - PUC-Rio
  3. ** $Id: types.h,v 1.1 1994/12/20 21:31:01 roberto Exp celes $
  4. */
  5. #ifndef types_h
  6. #define types_h
  7. #include <limits.h>
  8. #ifndef real
  9. #define real float
  10. #endif
  11. typedef int Bool; /* boolean values */
  12. typedef unsigned char Byte; /* unsigned 8 bits */
  13. typedef unsigned short Word; /* unsigned 16 bits */
  14. #define MAX_WORD (USHRT_MAX-2) /* maximum value of a word (-2 for safety) */
  15. #define MAX_INT (INT_MAX-2) /* maximum value of a int (-2 for safety) */
  16. typedef signed long Long; /* 32 bits */
  17. typedef unsigned int IntPoint; /* unsigned with same size as a pointer (for hashing) */
  18. #endif