home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / useful / dist / other / amicdrom / device.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-27  |  1.4 KB  |  56 lines

  1. /* device.h: */
  2.  
  3. #include <exec/types.h>
  4. #include <exec/memory.h>
  5. #include <dos/dos.h>
  6. #include <dos/dosextens.h>
  7. #include <dos/filehandler.h>
  8. #include <devices/timer.h>
  9. #include <devices/input.h>
  10. #include <devices/inputevent.h>
  11. #include <clib/dos_protos.h>
  12. #include <clib/alib_protos.h>
  13. #include <clib/exec_protos.h>
  14.  
  15. #ifdef NDEBUG
  16. #define BUG(x) /* nothing */
  17. #else
  18. #define BUG(x) x
  19. #endif
  20.  
  21. #define CTOB(x) (void *)(((long)(x))>>2)    /*    BCPL conversion */
  22. #define BTOC(x) (void *)(((long)(x))<<2)
  23.  
  24. #define bmov(ss,dd,nn) CopyMem(ss,dd,nn)    /*    my habit    */
  25.  
  26. #define DOS_FALSE   0
  27. #define DOS_TRUE    -1
  28.  
  29. typedef unsigned char    ubyte;            /*    unsigned quantities        */
  30. typedef unsigned short    uword;
  31. typedef unsigned long    ulong;
  32.  
  33. typedef struct Interrupt    INTERRUPT;
  34. typedef struct Task        TASK;
  35. typedef struct FileLock     LOCK;        /*    See LOCKLINK    */
  36. typedef struct FileInfoBlock    FIB;
  37. typedef struct DosPacket    PACKET;
  38. typedef struct Process        PROC;
  39. typedef struct DeviceNode    DEVNODE;
  40. typedef struct DeviceList    DEVLIST;
  41. typedef struct DosInfo        DOSINFO;
  42. typedef struct RootNode     ROOTNODE;
  43. typedef struct FileHandle    FH;
  44. typedef struct MsgPort        PORT;
  45. typedef struct Message        MSG;
  46. typedef struct MinList        LIST;
  47. typedef struct MinNode        NODE;
  48. typedef struct DateStamp    STAMP;
  49. typedef struct InfoData     INFODATA;
  50. typedef struct DosLibrary    DOSLIB;
  51.  
  52. #define FILE_DIR    1
  53. #define FILE_FILE   -1
  54.  
  55. extern void *AbsExecBase;
  56.