home *** CD-ROM | disk | FTP | other *** search
/ Audio 4.94 - Over 11,000 Files / audio-11000.iso / msdos / midi / mpusr2 / std.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-20  |  730 b   |  36 lines

  1. /*
  2.  
  3.    Standard defines
  4.  
  5. */
  6.  
  7. #ifndef STD_H
  8. #define STD_H
  9. // Machine Memory Types
  10. typedef unsigned char BYTE;
  11. typedef unsigned int WORD;
  12. typedef unsigned long DWORD;
  13.  
  14. // Booleans
  15. #define NO (0)
  16. #define YES (!NO)
  17.  
  18. typedef int BOOL;    // Fastest boolean
  19. typedef char TBOOL; // Smallest boolean
  20.  
  21. // Char types
  22.     // char is default char type
  23. typedef signed char SCHAR; // Signed char (if you care)
  24. typedef unsigned char UCHAR; // Unsigned char (if you care)
  25.  
  26.  
  27. // For clarification of code
  28.  
  29. #define FOREVER for(;;)        // Most efficient forever loop
  30. #define NOTHING                // e.g. while (x) NOTHING;
  31.  
  32. // Artificial declarations
  33.  
  34. #define PRIVATE static       // For local functions and variables
  35.  
  36. #endif // STD_H