home *** CD-ROM | disk | FTP | other *** search
- /* device.h: */
-
- #include <exec/types.h>
- #include <exec/memory.h>
- #include <dos/dos.h>
- #include <dos/dosextens.h>
- #include <dos/filehandler.h>
- #include <devices/timer.h>
- #include <devices/input.h>
- #include <devices/inputevent.h>
- #include <clib/dos_protos.h>
- #include <clib/alib_protos.h>
- #include <clib/exec_protos.h>
-
- #ifdef NDEBUG
- #define BUG(x) /* nothing */
- #else
- #define BUG(x) x
- #endif
-
- #define CTOB(x) (void *)(((long)(x))>>2) /* BCPL conversion */
- #define BTOC(x) (void *)(((long)(x))<<2)
-
- #define bmov(ss,dd,nn) CopyMem(ss,dd,nn) /* my habit */
-
- #define DOS_FALSE 0
- #define DOS_TRUE -1
-
- typedef unsigned char ubyte; /* unsigned quantities */
- typedef unsigned short uword;
- typedef unsigned long ulong;
-
- typedef struct Interrupt INTERRUPT;
- typedef struct Task TASK;
- typedef struct FileLock LOCK; /* See LOCKLINK */
- typedef struct FileInfoBlock FIB;
- typedef struct DosPacket PACKET;
- typedef struct Process PROC;
- typedef struct DeviceNode DEVNODE;
- typedef struct DeviceList DEVLIST;
- typedef struct DosInfo DOSINFO;
- typedef struct RootNode ROOTNODE;
- typedef struct FileHandle FH;
- typedef struct MsgPort PORT;
- typedef struct Message MSG;
- typedef struct MinList LIST;
- typedef struct MinNode NODE;
- typedef struct DateStamp STAMP;
- typedef struct InfoData INFODATA;
- typedef struct DosLibrary DOSLIB;
-
- #define FILE_DIR 1
- #define FILE_FILE -1
-
- extern void *AbsExecBase;
-