home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / os-include / exec / types.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-10-15  |  2.6 KB  |  92 lines

  1. #ifndef    EXEC_TYPES_H
  2. #define    EXEC_TYPES_H
  3. /*
  4. **    $VER: types.h 40.1 (10.8.93)
  5. **    Includes Release 40.15
  6. **
  7. **    Data typing.  Must be included before any other Amiga include.
  8. **
  9. **    (C) Copyright 1985-1993 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13.  
  14. #define INCLUDE_VERSION    40 /* Version of the include files in use. (Do not
  15.                   use this label for OpenLibrary() calls!) */
  16.  
  17.  
  18. #define GLOBAL    extern        /* the declaratory use of an external */
  19. #define IMPORT    extern        /* reference to an external */
  20. #define STATIC    static        /* a local static variable */
  21. #define REGISTER register   /* a (hopefully) register variable */
  22.  
  23.  
  24. #ifndef VOID
  25. #define VOID        void
  26. #endif
  27.  
  28.  
  29.   /*  WARNING: APTR was redefined for the V36 Includes!  APTR is a   */
  30.  /*  32-Bit Absolute Memory Pointer.  C pointer math will not        */
  31. /*  operate on APTR --    use "ULONG *" instead.               */
  32. #ifndef APTR_TYPEDEF
  33. #define APTR_TYPEDEF
  34. typedef void           *APTR;        /* 32-bit untyped pointer */
  35. #endif
  36. typedef long        LONG;        /* signed 32-bit quantity */
  37. typedef unsigned long    ULONG;        /* unsigned 32-bit quantity */
  38. typedef unsigned long    LONGBITS;   /* 32 bits manipulated individually */
  39. typedef short        WORD;        /* signed 16-bit quantity */
  40. typedef unsigned short    UWORD;        /* unsigned 16-bit quantity */
  41. typedef unsigned short    WORDBITS;   /* 16 bits manipulated individually */
  42. #if __STDC__
  43. typedef signed char    BYTE;        /* signed 8-bit quantity */
  44. #else
  45. typedef char        BYTE;        /* signed 8-bit quantity */
  46. #endif
  47. typedef unsigned char    UBYTE;        /* unsigned 8-bit quantity */
  48. typedef unsigned char    BYTEBITS;   /* 8 bits manipulated individually */
  49. typedef unsigned short    RPTR;        /* signed relative pointer */
  50.  
  51. #ifdef __cplusplus
  52. typedef char           *STRPTR;     /* string pointer (NULL terminated) */
  53. #else
  54. typedef unsigned char  *STRPTR;     /* string pointer (NULL terminated) */
  55. #endif
  56.  
  57.  
  58. /* For compatibility only: (don't use in new code) */
  59. typedef short        SHORT;        /* signed 16-bit quantity (use WORD) */
  60. typedef unsigned short    USHORT;     /* unsigned 16-bit quantity (use UWORD) */
  61. typedef short        COUNT;
  62. typedef unsigned short    UCOUNT;
  63. typedef ULONG        CPTR;
  64.  
  65.  
  66. /* Types with specific semantics */
  67. typedef float        FLOAT;
  68. typedef double        DOUBLE;
  69. typedef short        BOOL;
  70. typedef unsigned char    TEXT;
  71.  
  72. #ifndef TRUE
  73. #define TRUE        1
  74. #endif
  75. #ifndef FALSE
  76. #define FALSE        0
  77. #endif
  78. #ifndef NULL
  79. #define NULL        0L
  80. #endif
  81.  
  82.  
  83. #define BYTEMASK    0xFF
  84.  
  85.  
  86.  /* #define LIBRARY_VERSION is now obsolete.  Please use LIBRARY_MINIMUM */
  87. /* or code the specific minimum library version you require.        */
  88. #define LIBRARY_MINIMUM    33 /* Lowest version supported by Commodore-Amiga */
  89.  
  90.  
  91. #endif    /* EXEC_TYPES_H */
  92.