home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 2: PC / frozenfish_august_1995.bin / bbs / d09xx / d0935.lha / AmiCDROM / device.h < prev    next >
C/C++ Source or Header  |  1993-12-20  |  2KB  |  89 lines

  1. /* device.h: */
  2.  
  3. #define CheckIO foo
  4.  
  5. #include <exec/types.h>
  6. #include <exec/memory.h>
  7. #include <exec/execbase.h>
  8. #include <dos/dos.h>
  9. #include <dos/dosextens.h>
  10. #include <dos/dostags.h>
  11. #include <dos/filehandler.h>
  12. #include <devices/timer.h>
  13. #include <devices/input.h>
  14. #include <devices/inputevent.h>
  15. #include <utility/date.h>
  16. #include <clib/dos_protos.h>
  17. #include <clib/alib_protos.h>
  18. #include <clib/exec_protos.h>
  19. #include <clib/utility_protos.h>
  20.  
  21. #undef CheckIO
  22. struct IORequest *CheckIO(struct IORequest *);
  23.  
  24. #ifdef AZTEC_C
  25. #include <pragmas/dos_lib.h>
  26. #include <pragmas/exec_lib.h>
  27. #include <pragmas/utility_lib.h>
  28. #endif
  29.  
  30. #ifdef LATTICE
  31. #include <pragmas/dos_pragmas.h>
  32. #include <pragmas/exec_pragmas.h>
  33. #include <pragmas/utility_pragmas.h>
  34. #endif
  35.  
  36. #if defined(_DCC) && defined(REGISTERED)
  37. #include <pragmas/dos_pragmas.h>
  38. #include <pragmas/exec_pragmas.h>
  39. #include <pragmas/utility_pragmas.h>
  40. #endif
  41.  
  42. #ifdef NDEBUG
  43. #define BUG(x) /* nothing */
  44. #else
  45. #define BUG(x) x
  46. #endif
  47.  
  48. #if !defined(NDEBUG) || defined(DEBUG_SECTORS)
  49. #define BUG2(x) x
  50. #else
  51. #define BUG2(x) /* nothing */
  52. #endif
  53.  
  54. #define CTOB(x) (void *)(((long)(x))>>2)    /*    BCPL conversion */
  55. #define BTOC(x) (void *)(((long)(x))<<2)
  56.  
  57. #define bmov(ss,dd,nn) CopyMem(ss,dd,nn)    /*    my habit    */
  58.  
  59. #define DOS_FALSE   0
  60. #define DOS_TRUE    -1
  61.  
  62. typedef unsigned char    ubyte;            /*    unsigned quantities        */
  63. typedef unsigned short    uword;
  64. typedef unsigned long    ulong;
  65.  
  66. typedef struct Interrupt    INTERRUPT;
  67. typedef struct Task        TASK;
  68. typedef struct FileLock     LOCK;        /*    See LOCKLINK    */
  69. typedef struct FileInfoBlock    FIB;
  70. typedef struct DosPacket    PACKET;
  71. typedef struct Process        PROC;
  72. typedef struct DeviceNode    DEVNODE;
  73. typedef struct DeviceList    DEVLIST;
  74. typedef struct DosInfo        DOSINFO;
  75. typedef struct RootNode     ROOTNODE;
  76. typedef struct FileHandle    FH;
  77. typedef struct MsgPort        PORT;
  78. typedef struct Message        MSG;
  79. typedef struct MinList        LIST;
  80. typedef struct MinNode        NODE;
  81. typedef struct DateStamp    STAMP;
  82. typedef struct InfoData     INFODATA;
  83. typedef struct DosLibrary    DOSLIB;
  84. typedef struct ExecBase        EXECLIB;
  85. typedef struct Library        LIB;
  86.  
  87. #define FILE_DIR    1
  88. #define FILE_FILE   -1
  89.