home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / ht12_m68k.lha / HivelyTracker / Replayer / src / os3_compat.h < prev    next >
Encoding:
Text File  |  2006-12-08  |  814 b   |  25 lines

  1.  
  2. typedef unsigned char uint8;
  3. typedef char int8;
  4. typedef unsigned short uint16;
  5. typedef short int16;
  6. typedef    unsigned long    uint32;
  7. typedef long int32;
  8.  
  9. typedef float float64;
  10.  
  11. /* Handy macros for checking what kind of object a FileInfoBlock
  12.  describes; Examine() / ExNext().
  13.  --Special versions of thesemacros for ExAll() are available
  14.  in the include file;dos/exall.h */
  15.  
  16. #define FIB_IS_FILE(fib)((fib)->fib_DirEntryType <0)
  17.  
  18. #define FIB_IS_DRAWER(fib)((fib)->fib_DirEntryType >= 0 && (fib)->fib_DirEntryType != ST_SOFTLINK)
  19.  
  20. #define FIB_IS_LINK(fib)((fib)->fib_DirEntryType == ST_SOFTLINK || (fib)->fib_DirEntryType == ST_LINKDIR || (fib)->fib_DirEntryType == ST_LINKFILE)
  21.  
  22. #define FIB_IS_SOFTLINK(fib)((fib)->fib_DirEntryType == ST_SOFTLINK)
  23.  
  24. #define FIB_IS_LINKDIR(fib) ((fib)->fib_DirEntryType == ST_LINKDIR)
  25.