home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / archivers / arcppc / src / arc.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  3KB  |  106 lines

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