home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / online / source / c / compilers / Tickle-4.0.sit.hqx / Tickle-4.0 / src / mb.h < prev    next >
Text File  |  1993-11-18  |  1KB  |  58 lines

  1. /*
  2. ** This source code was written by Tim Endres
  3. ** Email: time@ice.com.
  4. ** USMail: 8840 Main Street, Whitmore Lake, MI  48189
  5. **
  6. ** Some portions of this application utilize sources
  7. ** that are copyrighted by ICE Engineering, Inc., and
  8. ** ICE Engineering retains all rights to those sources.
  9. **
  10. ** Neither ICE Engineering, Inc., nor Tim Endres, 
  11. ** warrants this source code for any reason, and neither
  12. ** party assumes any responsbility for the use of these
  13. ** sources, libraries, or applications. The user of these
  14. ** sources and binaries assumes all responsbilities for
  15. ** any resulting consequences.
  16. */
  17.  
  18. #define MAC_BINARY_HDR_SIZE        128
  19. #define MAC_BINARY_BLK_SIZE        128
  20.  
  21.  
  22. typedef struct { /* note everything is char to avoid alignment padding */
  23.     unsigned char zero1;
  24.     unsigned char nlen;
  25.     unsigned char name[63];
  26.     unsigned char type[4];
  27.     unsigned char creator[4];
  28.     unsigned char flags;
  29.     unsigned char zero2;
  30.     unsigned char location[6];
  31.     unsigned char protected;
  32.     unsigned char zero3;
  33.     unsigned char dflen[4];
  34.     unsigned char rflen[4];
  35.     unsigned char cdate[4];
  36.     unsigned char mdate[4];
  37.     } F_BLK, *F_BLK_PTR;
  38.  
  39. #ifndef ALLOC_CLASS
  40. #ifdef ALLOCATE_GLOBALS
  41.  
  42. #define ALLOC_CLASS
  43. #define ALLOC_INIT(def)        = def
  44. #define ALLOC_ARRAY(asize)    [asize]
  45.  
  46. #else
  47.  
  48. #define ALLOC_CLASS            extern
  49. #define ALLOC_INIT(def)
  50. #define ALLOC_ARRAY(asize)    []
  51.  
  52. #endif
  53. #endif
  54.  
  55. ALLOC_CLASS char            mb_head        ALLOC_ARRAY(MAC_BINARY_HDR_SIZE);
  56. ALLOC_CLASS F_BLK_PTR        mb_header    ALLOC_INIT((F_BLK_PTR) mb_head);
  57.  
  58.