home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c019 / 1.ddi / ARC521_C / ARC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-01  |  3.2 KB  |  112 lines

  1. /*
  2.  * $Header: arc.h,v 1.7 88/06/01 17:51:06 hyc Locked $
  3.  */
  4.  
  5. #undef    MSDOS
  6. #undef    GEMDOS        /* This amusing garbage is to get all my */
  7. #undef    DOS        /* define's past some compilers, which */
  8. #undef    BSD        /* apparently define some of these themselves */
  9. #undef    SYSV
  10. #undef    UNIX
  11. #undef    MTS
  12.  
  13. #define    MSDOS    0        /* MSDOS machine */
  14. #define    GEMDOS    0        /* Atari, GEMDOS */
  15. #define    BSD    1        /* BSD4.2 or 4.3 */
  16. #define    SYSV    0        /* Also uses BSD */
  17. #define    MTS    0        /* MTS or 370(?) */
  18.  
  19. /*
  20.  * Assumptions:
  21.  * char = 8 bits
  22.  * short = 16 bits
  23.  * long = 32 bits
  24.  * int >= 16 bits
  25.  */
  26.  
  27. #if    MSDOS || GEMDOS
  28. #define    DOS    1
  29. #define    CUTOFF    '\\'
  30. #endif
  31.  
  32. #if    !MSDOS
  33. #define    envfind    getenv
  34. #define    setmem(a, b, c)    memset(a, c, b)
  35. #endif
  36.  
  37. #if    BSD || SYSV
  38. #define    UNIX    1
  39. #define    CUTOFF    '/'
  40. #include <ctype.h>
  41. #endif
  42.  
  43. #if    MTS
  44. #define rindex strrchr
  45. #define index strchr
  46. #undef  USEGFINFO        /* define this to use GFINFO for directory */
  47. #define USECATSCAN        /* scanning, else use CATSCAN/FILEINFO... */
  48. #define    CUTOFF    sepchr[0]
  49. #endif
  50.  
  51. /*  ARC - Archive utility - ARC Header
  52.   
  53.     Version 2.17, created on 04/22/87 at 13:09:43
  54.   
  55. (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
  56.   
  57.     By:     Thom Henderson
  58.   
  59.     Description: 
  60.      This is the header file for the ARC archive utility.  It defines
  61.      global parameters and the references to the external data.
  62.   
  63.   
  64.     Language:
  65.      Computer Innovations Optimizing C86
  66. */
  67.  
  68. #define ARCMARK 26        /* special archive marker        */
  69. #define ARCVER 9        /* archive header version code   */
  70. #define STRLEN 100        /* system standard string length */
  71. #define FNLEN 13        /* file name length              */
  72. #define MAXARG 25        /* maximum number of arguments   */
  73.  
  74. #ifndef DONT_DEFINE        /* Defined by arcdata.c */
  75. #include "arcs.h"
  76.  
  77. extern int      keepbak;    /* true if saving the old archive */
  78. #if    !DOS
  79. extern int      image;        /* true to suppress CRLF/LF x-late */
  80. #endif
  81. #if    MTS
  82. extern char     sepchr[2];    /* Shared file separator, default = ':' */
  83. extern char     tmpchr[2];    /* Temporary file prefix, default = '-' */
  84. #endif
  85. #if    GEMDOS
  86. extern int      hold;        /* hold screen before exiting */
  87. #endif
  88. extern int      warn;        /* true to print warnings */
  89. extern int      note;        /* true to print comments */
  90. extern int      bose;        /* true to be verbose */
  91. extern int      nocomp;        /* true to suppress compression */
  92. extern int      overlay;    /* true to overlay on extract */
  93. extern int      kludge;        /* kludge flag */
  94. extern char    *arctemp;    /* arc temp file prefix */
  95. extern char    *password;    /* encryption password pointer */
  96. extern int      nerrs;        /* number of errors encountered */
  97. extern int      changing;    /* true if archive being modified */
  98.  
  99. extern char     hdrver;        /* header version */
  100.  
  101. extern FILE    *arc;        /* the old archive */
  102. extern FILE    *new;        /* the new archive */
  103. extern char     arcname[STRLEN];/* storage for archive name */
  104. extern char     bakname[STRLEN];/* storage for backup copy name */
  105. extern char     newname[STRLEN];/* storage for new archive name */
  106. extern unsigned short arcdate;    /* archive date stamp */
  107. extern unsigned short arctime;    /* archive time stamp */
  108. extern unsigned short olddate;    /* old archive date stamp */
  109. extern unsigned short oldtime;    /* old archive time stamp */
  110. extern int      dosquash;    /* squash instead of crunch */
  111. #endif                /* DONT_DEFINE */
  112.