home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 10: Diskmags / nf_archive_10.iso / MAGS / SMARTMAG / V2.MSA / ADVENTUR.STQ_PDEFINE.H < prev    next >
Text File  |  2003-12-17  |  2KB  |  51 lines

  1. /************************************************************************/
  2. /*    DEFINE.H  Typical miscellaneous C definitions.            */
  3. /*
  4. /* This contains all the useful little definitions of things like TRUE,
  5. /* FALSE, etc.  It also contains all the little FORTRAN like test labels
  6. /* like EQ for ==, and all that good stuff.
  7. /*
  8. /************************************************************************/
  9.  
  10. #define NIL 0            /* Nil Pointer */
  11. #define NULL 0            /* Null value... */
  12.  
  13. #define NO  0            /* "FALSE" */
  14. #define YES 1            /* "TRUE" */
  15.  
  16. #define LEFT  1
  17. #define RIGHT 2
  18. #define UP    10
  19. #define DOWN  20
  20.  
  21. #define TRUE 1
  22. #define FALSE 0
  23.  
  24. #define EOS '\0'        /* End of String marker */
  25.  
  26. #define NEWLINE '\n'        /* Carriage Return */
  27.  
  28. #define    FAILURE    (-1)        /* Function failure return val */
  29. #define SUCCESS    (0)        /* Function success return val */
  30. #define    FOREVER    for(;;)        /* Infinite loop declaration   */
  31.  
  32. #define EQ    ==        /* Equals test label        */
  33. #define LT    <        /* Less than test label        */
  34. #define GT    >        /* Greater than test label    */
  35. #define LE    <=        /* Less than or equal test label*/
  36. #define GE    >=        /* Greater than or equal test    */
  37. #define NE    !=        /* Not equal test label        */
  38.  
  39. #define AND    &&        /* Logical AND operator        */
  40. #define OR    ||        /* Logical OR  operator        */
  41.  
  42. #define B_AND    &        /* Bitwise AND operator        */
  43. #define B_OR    |        /* Bitwise OR operator        */
  44. #define B_XOR    ^        /* Bitwise Exclusive OR        */
  45.  
  46. #define END     255        /* End of string character    */
  47. #define ON      1
  48. #define OFF     0
  49. #define LENGTH  0
  50. #define odd_value 0x0011
  51.