home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 2 / FFMCD02.bin / useful / os-include / exec / types.h < prev    next >
C/C++ Source or Header  |  1992-09-24  |  3KB  |  87 lines

  1. #ifndef    EXEC_TYPES_H
  2. #define    EXEC_TYPES_H
  3. /*
  4. **    $VER: types.h 39.1 (08.11.91)
  5. **    Includes Release 39.108
  6. **
  7. **    Data typing.  Must be included before any other Amiga include.
  8. **
  9. **    (C) Copyright 1985-1992 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13.  
  14. #define INCLUDE_VERSION    36 /* 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. typedef unsigned char  *STRPTR;     /* string pointer (NULL terminated) */
  51.  
  52.  
  53. /* For compatibility only: (don't use in new code) */
  54. typedef short        SHORT;        /* signed 16-bit quantity (use WORD) */
  55. typedef unsigned short    USHORT;     /* unsigned 16-bit quantity (use UWORD) */
  56. typedef short        COUNT;
  57. typedef unsigned short    UCOUNT;
  58. typedef ULONG        CPTR;
  59.  
  60.  
  61. /* Types with specific semantics */
  62. typedef float        FLOAT;
  63. typedef double        DOUBLE;
  64. typedef short        BOOL;
  65. typedef unsigned char    TEXT;
  66.  
  67. #ifndef TRUE
  68. #define TRUE        1
  69. #endif
  70. #ifndef FALSE
  71. #define FALSE        0
  72. #endif
  73. #ifndef NULL
  74. #define NULL        0L
  75. #endif
  76.  
  77.  
  78. #define BYTEMASK    0xFF
  79.  
  80.  
  81.  /* #define LIBRARY_VERSION is now obsolete.  Please use LIBRARY_MINIMUM */
  82. /* or code the specific minimum library version you require.        */
  83. #define LIBRARY_MINIMUM    33 /* Lowest version supported by Commodore-Amiga */
  84.  
  85.  
  86. #endif    /* EXEC_TYPES_H */
  87.