types.h 788 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. #ifndef MACH_PROTO_NCG_TYPES_H
  7. #define MACH_PROTO_NCG_TYPES_H
  8. #ifndef TEM_WSIZE
  9. #warning TEM_WSIZE should be defined at this point
  10. #endif
  11. #ifndef TEM_PSIZE
  12. #warning TEM_PSIZE should be defined at this point
  13. #endif
  14. #if TEM_WSIZE>4 || TEM_PSIZE>4
  15. #error Implementation will not be correct unless a long integer has more then 4 bytes of precision.
  16. #endif
  17. typedef char byte;
  18. typedef char * string;
  19. #if TEM_WSIZE>2 || TEM_PSIZE>2
  20. #define full long
  21. #else
  22. #define full int
  23. #endif
  24. #define word long
  25. #ifndef WRD_FMT
  26. #define WRD_FMT "%ld"
  27. #endif /* WRD_FMT */
  28. #endif /* MACH_PROTO_NCG_TYPES_H */