home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 28 / amigaformatcd28.iso / -seriously_amiga- / archivers / arcppc / src / rcs / arc.h,v < prev    next >
Text File  |  1998-04-23  |  11KB  |  520 lines

  1. head     1.10;
  2. branch   ;
  3. access   ;
  4. symbols  patch2:1.10 patch1:1.9 arc521:1.6;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.10
  10. date     88.08.01.14.28.29;  author hyc;  state Exp;
  11. branches ;
  12. next     1.9;
  13.  
  14. 1.9
  15. date     88.07.31.18.43.18;  author hyc;  state Exp;
  16. branches ;
  17. next     1.8;
  18.  
  19. 1.8
  20. date     88.07.19.16.00.08;  author hyc;  state Exp;
  21. branches ;
  22. next     1.7;
  23.  
  24. 1.7
  25. date     88.06.01.17.51.06;  author hyc;  state Exp;
  26. branches ;
  27. next     1.6;
  28.  
  29. 1.6
  30. date     88.06.01.17.43.59;  author hyc;  state Exp;
  31. branches ;
  32. next     1.5;
  33.  
  34. 1.5
  35. date     88.06.01.15.10.25;  author hyc;  state Exp;
  36. branches ;
  37. next     1.4;
  38.  
  39. 1.4
  40. date     88.06.01.15.05.42;  author hyc;  state Exp;
  41. branches ;
  42. next     1.3;
  43.  
  44. 1.3
  45. date     88.04.11.17.42.21;  author hyc;  state Exp;
  46. branches ;
  47. next     1.2;
  48.  
  49. 1.2
  50. date     88.04.11.17.40.24;  author hyc;  state Exp;
  51. branches ;
  52. next     1.1;
  53.  
  54. 1.1
  55. date     88.04.11.17.36.04;  author hyc;  state Exp;
  56. branches ;
  57. next     ;
  58.  
  59.  
  60. desc
  61. @@
  62.  
  63.  
  64. 1.10
  65. log
  66. @Move config info out of arc.h and into Makefile.
  67. @
  68. text
  69. @/*
  70.  * $Header: arc.h,v 1.9 88/07/31 18:43:18 hyc Locked $
  71.  */
  72.  
  73. #undef    DOS    /* Just in case... */
  74. #undef    UNIX
  75.  
  76. /*
  77.  * Assumptions:
  78.  * char = 8 bits
  79.  * short = 16 bits
  80.  * long = 32 bits
  81.  * int >= 16 bits
  82.  */
  83.  
  84. #if    MSDOS || GEMDOS
  85. #define    DOS    1
  86. #define    CUTOFF    '\\'
  87. #define    OPEN_R    "rb"
  88. #define    OPEN_W    "wb"
  89. #endif
  90.  
  91. #if    !MSDOS
  92. #define    envfind    getenv
  93. #define    setmem(a, b, c)    memset(a, c, b)
  94. #endif
  95.  
  96. #if    BSD || SYSV
  97. #define    UNIX    1
  98. #define    CUTOFF    '/'
  99. #define    OPEN_R    "r"
  100. #define    OPEN_W    "w"
  101. #include <ctype.h>
  102. #endif
  103.  
  104. #if    MTS
  105. #define    CUTOFF    sepchr[0]
  106. #endif
  107.  
  108. #if    MTS || SYSV
  109. #define    rindex    strrchr
  110. #define    index    strchr
  111. #endif
  112.  
  113. /*  ARC - Archive utility - ARC Header
  114.   
  115.     Version 2.17, created on 04/22/87 at 13:09:43
  116.   
  117. (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
  118.   
  119.     By:     Thom Henderson
  120.   
  121.     Description: 
  122.      This is the header file for the ARC archive utility.  It defines
  123.      global parameters and the references to the external data.
  124.   
  125.   
  126.     Language:
  127.      Computer Innovations Optimizing C86
  128. */
  129.  
  130. #define ARCMARK 26        /* special archive marker        */
  131. #define ARCVER 9        /* archive header version code   */
  132. #define STRLEN 100        /* system standard string length */
  133. #define FNLEN 13        /* file name length              */
  134. #define MAXARG 400        /* maximum number of arguments   */
  135.  
  136. #ifndef DONT_DEFINE        /* Defined by arcdata.c */
  137. #include "arcs.h"
  138.  
  139. extern int      keepbak;    /* true if saving the old archive */
  140. #if    !DOS
  141. extern int      image;        /* true to suppress CRLF/LF x-late */
  142. #endif
  143. #if    MTS
  144. extern char     sepchr[2];    /* Shared file separator, default = ':' */
  145. extern char     tmpchr[2];    /* Temporary file prefix, default = '-' */
  146. #endif
  147. #if    GEMDOS
  148. extern int      hold;        /* hold screen before exiting */
  149. #endif
  150. extern int      warn;        /* true to print warnings */
  151. extern int      note;        /* true to print comments */
  152. extern int      bose;        /* true to be verbose */
  153. extern int      nocomp;        /* true to suppress compression */
  154. extern int      overlay;    /* true to overlay on extract */
  155. extern int      kludge;        /* kludge flag */
  156. extern char    *arctemp;    /* arc temp file prefix */
  157. extern char    *password;    /* encryption password pointer */
  158. extern int      nerrs;        /* number of errors encountered */
  159. extern int      changing;    /* true if archive being modified */
  160.  
  161. extern char     hdrver;        /* header version */
  162.  
  163. extern FILE    *arc;        /* the old archive */
  164. extern FILE    *new;        /* the new archive */
  165. extern char     arcname[STRLEN];/* storage for archive name */
  166. extern char     bakname[STRLEN];/* storage for backup copy name */
  167. extern char     newname[STRLEN];/* storage for new archive name */
  168. extern unsigned short arcdate;    /* archive date stamp */
  169. extern unsigned short arctime;    /* archive time stamp */
  170. extern unsigned short olddate;    /* old archive date stamp */
  171. extern unsigned short oldtime;    /* old archive time stamp */
  172. extern int      dosquash;    /* squash instead of crunch */
  173. #endif                /* DONT_DEFINE */
  174. @
  175.  
  176.  
  177. 1.9
  178. log
  179. @fixed arguments to fopen for non-MTS systems.
  180. define index & rindex properly for both MTS and SYSV
  181. @
  182. text
  183. @d2 1
  184. a2 1
  185.  * $Header: arc.h,v 1.8 88/07/19 16:00:08 hyc Locked $
  186. d5 1
  187. a5 5
  188. #undef    MSDOS
  189. #undef    GEMDOS        /* This amusing garbage is to get all my */
  190. #undef    DOS        /* define's past some compilers, which */
  191. #undef    BSD        /* apparently define some of these themselves */
  192. #undef    SYSV
  193. a6 1
  194. #undef    MTS
  195. a7 6
  196. #define    MSDOS    0        /* MSDOS machine */
  197. #define    GEMDOS    0        /* Atari, GEMDOS */
  198. #define    BSD    1        /* BSD4.2 or 4.3 */
  199. #define    SYSV    0        /* Also uses BSD */
  200. #define    MTS    0        /* MTS or 370(?) */
  201.  
  202. a36 2
  203. #define    USEGFINFO    0    /* define this to use GFINFO for directory */
  204. #define    USECATSCAN    1    /* scanning, else use CATSCAN/FILEINFO... */
  205. @
  206.  
  207.  
  208. 1.8
  209. log
  210. @Fixes from John Gilmore, message date Mon, 4 Jul 88 03:02:43 PDT
  211. @
  212. text
  213. @d2 1
  214. a2 1
  215.  * $Header: arc.h,v 1.7 88/06/01 17:51:06 hyc Locked $
  216. d30 2
  217. d42 2
  218. d48 2
  219. a49 4
  220. #define rindex strrchr
  221. #define index strchr
  222. #undef  USEGFINFO        /* define this to use GFINFO for directory */
  223. #define USECATSCAN        /* scanning, else use CATSCAN/FILEINFO... */
  224. d51 5
  225. @
  226.  
  227.  
  228. 1.7
  229. log
  230. @Changed header comments to match arc 5.21 ...
  231. @
  232. text
  233. @d2 1
  234. a2 1
  235.  * $Header: arc.h,v 1.6 88/06/01 17:43:59 hyc Locked $
  236. d5 7
  237. a11 5
  238. #undef  MSDOS            /* MSDOS machine */
  239. #define BSD            /* BSD4.2 or 4.3 */
  240. #undef    SYSV            /* Also uses BSD */
  241. #undef    MTS            /* MTS or 370(?) */
  242. /*#define    GEMDOS            Atari, GEMDOS */
  243. d13 6
  244. d27 3
  245. a29 2
  246. #ifdef MSDOS
  247. #define    DOS
  248. d32 1
  249. a32 2
  250. #ifdef    GEMDOS
  251. #define    DOS
  252. d34 1
  253. d37 3
  254. a39 9
  255. #ifdef    DOS
  256. #define    CUTOFF    '\\'
  257. #endif
  258.  
  259. #ifdef SYSV
  260. #define    BSD
  261. #endif
  262.  
  263. #ifdef BSD
  264. a40 2
  265. #define envfind getenv
  266. #define    CUTOFF    '/'
  267. d43 1
  268. a43 1
  269. #ifdef MTS
  270. a45 1
  271. #define envfind getenv
  272. d72 1
  273. a72 1
  274. #define MAXARG 25        /* maximum number of arguments   */
  275. d78 1
  276. a78 1
  277. #ifndef    DOS
  278. d81 1
  279. a81 1
  280. #ifdef MTS
  281. d85 1
  282. a85 1
  283. #ifdef    GEMDOS
  284. @
  285.  
  286.  
  287. 1.6
  288. log
  289. @Merge ARC 5.21 changes
  290. @
  291. text
  292. @d2 1
  293. a2 1
  294.  * $Header: arc.h,v 1.5 88/06/01 15:10:25 hyc Locked $
  295. d51 16
  296. a66 15
  297. /*
  298.  * ARC - Archive utility - ARC Header
  299.  * 
  300.  * Version 2.16, created on 10/24/86 at 14:54:17
  301.  * 
  302.  * (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
  303.  * 
  304.  * By:  Thom Henderson
  305.  * 
  306.  * Description: This is the header file for the ARC archive utility.  It defines
  307.  * global parameters and the references to the external data.
  308.  * 
  309.  * 
  310.  * Language: Computer Innovations Optimizing C86
  311.  */
  312. d86 1
  313. a86 1
  314. extern int    hold;        /* hold screen before exiting */
  315. d97 1
  316. a97 1
  317. extern int    changing;    /* true if archive being modified */
  318. d103 3
  319. a105 3
  320. extern char     arcname[STRLEN];    /* storage for archive name */
  321. extern char     bakname[STRLEN];    /* storage for backup copy name */
  322. extern char     newname[STRLEN];    /* storage for new archive name */
  323. @
  324.  
  325.  
  326. 1.5
  327. log
  328. @Added Atari ST defs
  329. @
  330. text
  331. @d2 1
  332. a2 1
  333.  * $Header: arc.h,v 1.4 88/06/01 15:05:42 hyc Locked $
  334. d96 1
  335. @
  336.  
  337.  
  338. 1.4
  339. log
  340. @Fixed declarations
  341. @
  342. text
  343. @d2 1
  344. a2 1
  345.  * $Header: arc.h,v 1.4 88/04/17 19:14:48 hyc Exp $
  346. d9 1
  347. d19 13
  348. d39 1
  349. d48 1
  350. d77 1
  351. a77 1
  352. #ifndef    MSDOS
  353. d83 3
  354. @
  355.  
  356.  
  357. 1.3
  358. log
  359. @nothing much, just run thru indent...
  360. @
  361. text
  362. @d2 1
  363. a2 21
  364.  * $Log:    arc.h,v $
  365.  * Revision 1.2  88/04/11  17:40:24  hyc
  366.  * added flag for squashing, got rid of EXTERN macro.
  367.  * 
  368.  * Revision 1.1  88/04/11  17:36:04  hyc
  369.  * Initial revision
  370.  * 
  371.  * Revision 1.2  87/12/19  03:58:14  hyc
  372.  * #define BSD instead of MTS, make the image mode flag ndef'ed to MSDOS
  373.  * instead of def'ed to MTS...
  374.  * 
  375.  * Revision 1.1  87/12/19  03:54:37  hyc
  376.  * Initial revision
  377.  * 
  378.  * Revision 1.4  87/08/13  17:02:56  hyc
  379.  * Run thru the indent program...
  380.  *  Revision 1.3  87/07/21  11:45:29  hyc *** empty log
  381.  * message ***
  382.  * 
  383.  * Revision 1.2  87/07/21  06:30:26  hyc modified for unix
  384.  * 
  385. d7 1
  386. d10 12
  387. a23 2
  388. #define INT short
  389. #define LONG int
  390. a27 2
  391. #define INT short
  392. #define LONG int
  393. a34 5
  394. #ifdef MSDOS
  395. #define INT int
  396. #define LONG long
  397. #endif
  398.  
  399. d51 6
  400. d60 1
  401. a60 1
  402. extern INT      keepbak;    /* true if saving the old archive */
  403. d62 1
  404. a62 1
  405. extern INT      image;        /* true to suppress CRLF/LF x-late */
  406. d68 6
  407. a73 6
  408. extern INT      warn;        /* true to print warnings */
  409. extern INT      note;        /* true to print comments */
  410. extern INT      bose;        /* true to be verbose */
  411. extern INT      nocomp;        /* true to suppress compression */
  412. extern INT      overlay;    /* true to overlay on extract */
  413. extern INT      kludge;        /* kludge flag */
  414. d76 1
  415. a76 1
  416. extern INT      nerrs;        /* number of errors encountered */
  417. d82 8
  418. a89 8
  419. extern char     arcname[100];    /* storage for archive name */
  420. extern char     bakname[100];    /* storage for backup copy name */
  421. extern char     newname[100];    /* storage for new archive name */
  422. extern unsigned INT arcdate;    /* archive date stamp */
  423. extern unsigned INT arctime;    /* archive time stamp */
  424. extern unsigned INT olddate;    /* old archive date stamp */
  425. extern unsigned INT oldtime;    /* old archive time stamp */
  426. extern INT      dosquash;    /* squash instead of crunch */
  427. @
  428.  
  429.  
  430. 1.2
  431. log
  432. @added flag for squashing, got rid of EXTERN macro.
  433. @
  434. text
  435. @d3 3
  436. d70 1
  437. a70 1
  438. extern INT keepbak;        /* true if saving the old archive */
  439. d72 1
  440. a72 1
  441. extern  INT image;        /* true to suppress CRLF/LF x-late */
  442. d75 2
  443. a76 2
  444. extern char sepchr[2];        /* Shared file separator, default = ':' */
  445. extern char tmpchr[2];        /* Temporary file prefix, default = '-' */
  446. d78 9
  447. a86 9
  448. extern INT warn;        /* true to print warnings */
  449. extern INT note;        /* true to print comments */
  450. extern INT bose;        /* true to be verbose */
  451. extern INT nocomp;        /* true to suppress compression */
  452. extern INT overlay;        /* true to overlay on extract */
  453. extern INT kludge;        /* kludge flag */
  454. extern char *arctemp;        /* arc temp file prefix */
  455. extern char *password;        /* encryption password pointer */
  456. extern INT nerrs;        /* number of errors encountered */
  457. d88 1
  458. a88 1
  459. extern char hdrver;        /* header version */
  460. d90 5
  461. a94 5
  462. extern FILE * arc;        /* the old archive */
  463. extern FILE * new;        /* the new archive */
  464. extern char arcname[100];    /* storage for archive name */
  465. extern char bakname[100];    /* storage for backup copy name */
  466. extern char newname[100];    /* storage for new archive name */
  467. d99 1
  468. a99 1
  469. extern INT    dosquash;    /* squash instead of crunch */
  470. @
  471.  
  472.  
  473. 1.1
  474. log
  475. @Initial revision
  476. @
  477. text
  478. @d3 3
  479. a27 1
  480. #define EXTERN extern
  481. a33 1
  482. #define EXTERN extern
  483. d39 2
  484. a40 4
  485. #undef  USEGFINFO        /* define this to use GFINFO for directory
  486.                    */
  487. #define USECATSCAN        /* scanning, else use CATSCAN/FILEINFO... 
  488.                    */
  489. a43 1
  490. #define EXTERN extern
  491. d67 1
  492. a67 1
  493. EXTERN INT keepbak;        /* true if saving the old archive */
  494. d75 9
  495. a83 9
  496. EXTERN INT warn;        /* true to print warnings */
  497. EXTERN INT note;        /* true to print comments */
  498. EXTERN INT bose;        /* true to be verbose */
  499. EXTERN INT nocomp;        /* true to suppress compression */
  500. EXTERN INT overlay;        /* true to overlay on extract */
  501. EXTERN INT kludge;        /* kludge flag */
  502. EXTERN char *arctemp;        /* arc temp file prefix */
  503. EXTERN char *password;        /* encryption password pointer */
  504. EXTERN INT nerrs;        /* number of errors encountered */
  505. d85 1
  506. a85 1
  507. EXTERN char hdrver;        /* header version */
  508. d87 10
  509. a96 9
  510. EXTERN FILE * arc;        /* the old archive */
  511. EXTERN FILE * new;        /* the new archive */
  512. EXTERN char arcname[100];    /* storage for archive name */
  513. EXTERN char bakname[100];    /* storage for backup copy name */
  514. EXTERN char newname[100];    /* storage for new archive name */
  515. EXTERN unsigned INT arcdate;    /* archive date stamp */
  516. EXTERN unsigned INT arctime;    /* archive time stamp */
  517. EXTERN unsigned INT olddate;    /* old archive date stamp */
  518. EXTERN unsigned INT oldtime;    /* old archive time stamp */
  519. @
  520.