home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d539 / dt.lha / DT / Source / mlo.h < prev   
C/C++ Source or Header  |  1991-08-26  |  2KB  |  52 lines

  1. /*---------------------------------------*
  2.  | File: MLO.h - My personal definitions |
  3.  | MLO 880908 - Revised 910322 - v2.03   |
  4.  +---------------------------------------+---------------*
  5.  | This file avoids computer-dependent statements and has|
  6.  | been used with VAX-C, Borland Turbo-C on MS-DOS, and  |
  7.  | Lattice C for AmigaDOS; it looks for the preprocessor |
  8.  | symbols predefined from these compilers (#ifdef VAXC, |
  9.  | __TURBOC__, AMIGA). It worked on MS-DOS with Aztec-C; |
  10.  | should still work there if none of the quoted symbols |
  11.  | is defined for the preprocessor, but was not tested.  |
  12.  *-------------------------------------------------------*/
  13.  
  14. /*--------------------------*
  15.  | Program completion codes |
  16.  *--------------------------*/
  17.  
  18. #ifdef VAXC
  19. #include <ssdef>
  20. #define SYS_NORMAL_CODE SS$_NORMAL
  21. #define SYS_ABORT_CODE  SS$_ABORT
  22. #else
  23. #define SYS_NORMAL_CODE 0
  24. #define SYS_ABORT_CODE  1
  25. #endif
  26.  
  27. /*-------------------*
  28.  | Boolean variables |
  29.  *-------------------*/
  30.  
  31. #define False           0
  32. #define True            1
  33. typedef short int       Boolean;
  34.  
  35. /*----------------------------------------------------*
  36.  | Miscellaneous definitions; the last one from the   |
  37.  | include file "intuition.h" of AmigaDOS (Lattice C) |
  38.  *----------------------------------------------------*/
  39.  
  40. typedef unsigned char           BYTE;
  41. typedef unsigned long int       ULONG;
  42. typedef unsigned short int      USHORT;
  43.  
  44. #define BLANK     ' '
  45. #define NEWLINE   '\n'
  46. #define NIHIL     '\0'
  47. #define TAB       '\t'
  48.  
  49. #ifndef INTUITION_INTUITION_H   
  50. #define FOREVER   for (;;)
  51. #endif
  52.