home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / rflic2 / types.h < prev   
Encoding:
C/C++ Source or Header  |  1992-12-06  |  1.1 KB  |  32 lines

  1. /* Types.h - integer types defined for portability between compilers and
  2.  * notational convenience. 
  3.  *
  4.  * Copyright (c) 1992 Jim Kent.  This file may be freely used, modified,
  5.  * copied and distributed.  This file was first published as part of
  6.  * an article for Dr. Dobb's Journal March 1993 issue.
  7.  */
  8.  
  9. #ifndef TYPES_H        /* Prevent file from being included twice. */
  10. #define TYPES_H
  11.  
  12. typedef signed char Char;        /* Signed 8 bits. */
  13. typedef unsigned char Uchar;    /* Unsigned 8 bits. */
  14. typedef short Short;            /* Signed 16 bits please. */
  15. typedef unsigned short Ushort;    /* Unsigned 16 bits please. */
  16. typedef long Long;                /* Signed 32 bits. */
  17. typedef unsigned long Ulong;    /* Unsigned 32 bits. */
  18.  
  19. typedef int Boolean;            /* TRUE or FALSE value. */
  20. typedef int ErrCode;            /* ErrXXX or Success. */
  21. typedef int FileHandle;            /* OS file handle. */
  22.  
  23.     /* Values for Boolean types */
  24. #define FALSE 0
  25. #define TRUE (!FALSE)
  26.  
  27.     /* Values for ErrCodes */
  28. #define Success        0        /* Things are fine. */
  29. #define Error        -1        /* Unclassified error. */
  30.  
  31. #endif /* TYPES_H */
  32.