home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / rolodex / part01 / toolsdir / basics.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-01-30  |  596 b   |  43 lines

  1. #define T 1
  2. #define F 0
  3.  
  4. #define True 1
  5. #define False 0
  6.  
  7. #define SUCCESS 1
  8. #define FAILURE 0
  9. #define ERROR -1
  10.  
  11. #define Bool int
  12.  
  13. #ifdef VMS
  14. #ifndef MAXINT
  15. #define MAXINT 2147483647
  16. #endif
  17.  
  18. #ifndef MAXINTSTR
  19. #define MAXINTSTR "2147483647"
  20. #endif
  21. #endif
  22.  
  23.  
  24. #ifdef UNIX
  25. #ifndef MAXINT
  26. #define MAXINT 2147483647
  27. #endif
  28.  
  29. #ifndef MAXINTSTR
  30. #define MAXINTSTR "2147483647"
  31. #endif
  32. #endif
  33.  
  34. #ifdef  MSDOS
  35. #ifndef MAXINTSTR
  36. extern char *itoa();
  37. extern char maxintstr[];
  38.  
  39. #define MAXINT (~(1 << ((sizeof(int) * 8 - 1))))
  40. #define MAXINTSTR ((*maxintstr=='\0')?itoa(MAXINT,maxintstr,10):maxintstr)
  41. #endif
  42. #endif
  43.