home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / include / local / std.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  667 b   |  40 lines

  1. /*
  2.  *    std.h
  3.  */
  4.  
  5. /* data type aliases */
  6. #define    META    short
  7. #define UCHAR    unsigned char
  8. #define UINT    unsigned int
  9. #define ULONG    unsigned long
  10. #define USHORT    unsigned short
  11.  
  12. /* Boolean data type */
  13. typedef enum {
  14.     FALSE, TRUE
  15. } BOOLEAN;
  16.  
  17. /* function return values and program exit codes */
  18. #define OK    0
  19. #define BAD    1
  20. #define SUCCESS    0
  21. #define FAILURE    1
  22.  
  23. /* infinite loop */
  24. #define FOREVER    while (1)
  25.  
  26. /* masks */
  27. #define HIBYTE    0xFF00
  28. #define LOBYTE    0x00FF
  29. #define ASCII    0x7F
  30. #define HIBIT    0x80
  31.  
  32. /* lengths */
  33. #define MAXNAME    8
  34. #define MAXEXT    3
  35. #define    MAXLINE    256
  36. #define    MAXPATH    64
  37.  
  38. /* special number */
  39. #define BIGGEST    65535
  40.