home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / program / compiler / nasm20b / nasm_src / lib.h < prev    next >
Text File  |  1993-01-19  |  1KB  |  47 lines

  1. /* ---------------------------------------------------------------------- */
  2. /*                   Copyright (C) 1991 by Natürlich!                     */
  3. /*                      This file is copyrighted!                         */
  4. /*                Refer to the documentation for details.                 */
  5. /* ---------------------------------------------------------------------- */
  6. #define LIBMAGIC     0xCECCC9C2L    /* spells NLIB */
  7.  
  8. #if OS == MSDOS            /* keep it to >= than 0x1000                            */
  9. # define MAXGLOBALS  1000  /* sorry, but you should have bought an ST */
  10. #else
  11. # define MAXGLOBALS  4000   
  12. #endif
  13. #define MAXFILES     100    
  14.  
  15. #define OP_ADD       0
  16. #define OP_DELETE    1
  17. #define OP_EXTRACT   2
  18. #define OP_CREATE    3
  19. #define OP_UPDATE    4
  20. #define OP_LIST      5
  21.  
  22. typedef struct
  23. {
  24.    lword    magic;
  25.    word     version, revision;
  26.    lword    gbytes,
  27.             xbytes,
  28.             cbytes;
  29. } lib_h;
  30.  
  31. typedef struct
  32. {
  33.    char     name[ SIGNIFICANT];
  34.    word     index;
  35. } g_table;
  36.  
  37.  
  38. typedef struct
  39. {
  40.    char     name[ FSIGNIFICANT];  /* 32 Should be plenty for non-paths */
  41.    lword    seek;
  42.    lword    bytes;
  43.    word     time,
  44.             date;
  45. } f_table;
  46.  
  47.