home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 28
/
amigaformatcd28.iso
/
-seriously_amiga-
/
archivers
/
arcppc
/
src
/
rcs
/
arc.h,v
< prev
next >
Wrap
Text File
|
1998-04-23
|
11KB
|
520 lines
head 1.10;
branch ;
access ;
symbols patch2:1.10 patch1:1.9 arc521:1.6;
locks ; strict;
comment @ * @;
1.10
date 88.08.01.14.28.29; author hyc; state Exp;
branches ;
next 1.9;
1.9
date 88.07.31.18.43.18; author hyc; state Exp;
branches ;
next 1.8;
1.8
date 88.07.19.16.00.08; author hyc; state Exp;
branches ;
next 1.7;
1.7
date 88.06.01.17.51.06; author hyc; state Exp;
branches ;
next 1.6;
1.6
date 88.06.01.17.43.59; author hyc; state Exp;
branches ;
next 1.5;
1.5
date 88.06.01.15.10.25; author hyc; state Exp;
branches ;
next 1.4;
1.4
date 88.06.01.15.05.42; author hyc; state Exp;
branches ;
next 1.3;
1.3
date 88.04.11.17.42.21; author hyc; state Exp;
branches ;
next 1.2;
1.2
date 88.04.11.17.40.24; author hyc; state Exp;
branches ;
next 1.1;
1.1
date 88.04.11.17.36.04; author hyc; state Exp;
branches ;
next ;
desc
@@
1.10
log
@Move config info out of arc.h and into Makefile.
@
text
@/*
* $Header: arc.h,v 1.9 88/07/31 18:43:18 hyc Locked $
*/
#undef DOS /* Just in case... */
#undef UNIX
/*
* Assumptions:
* char = 8 bits
* short = 16 bits
* long = 32 bits
* int >= 16 bits
*/
#if MSDOS || GEMDOS
#define DOS 1
#define CUTOFF '\\'
#define OPEN_R "rb"
#define OPEN_W "wb"
#endif
#if !MSDOS
#define envfind getenv
#define setmem(a, b, c) memset(a, c, b)
#endif
#if BSD || SYSV
#define UNIX 1
#define CUTOFF '/'
#define OPEN_R "r"
#define OPEN_W "w"
#include <ctype.h>
#endif
#if MTS
#define CUTOFF sepchr[0]
#endif
#if MTS || SYSV
#define rindex strrchr
#define index strchr
#endif
/* ARC - Archive utility - ARC Header
Version 2.17, created on 04/22/87 at 13:09:43
(C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
By: Thom Henderson
Description:
This is the header file for the ARC archive utility. It defines
global parameters and the references to the external data.
Language:
Computer Innovations Optimizing C86
*/
#define ARCMARK 26 /* special archive marker */
#define ARCVER 9 /* archive header version code */
#define STRLEN 100 /* system standard string length */
#define FNLEN 13 /* file name length */
#define MAXARG 400 /* maximum number of arguments */
#ifndef DONT_DEFINE /* Defined by arcdata.c */
#include "arcs.h"
extern int keepbak; /* true if saving the old archive */
#if !DOS
extern int image; /* true to suppress CRLF/LF x-late */
#endif
#if MTS
extern char sepchr[2]; /* Shared file separator, default = ':' */
extern char tmpchr[2]; /* Temporary file prefix, default = '-' */
#endif
#if GEMDOS
extern int hold; /* hold screen before exiting */
#endif
extern int warn; /* true to print warnings */
extern int note; /* true to print comments */
extern int bose; /* true to be verbose */
extern int nocomp; /* true to suppress compression */
extern int overlay; /* true to overlay on extract */
extern int kludge; /* kludge flag */
extern char *arctemp; /* arc temp file prefix */
extern char *password; /* encryption password pointer */
extern int nerrs; /* number of errors encountered */
extern int changing; /* true if archive being modified */
extern char hdrver; /* header version */
extern FILE *arc; /* the old archive */
extern FILE *new; /* the new archive */
extern char arcname[STRLEN];/* storage for archive name */
extern char bakname[STRLEN];/* storage for backup copy name */
extern char newname[STRLEN];/* storage for new archive name */
extern unsigned short arcdate; /* archive date stamp */
extern unsigned short arctime; /* archive time stamp */
extern unsigned short olddate; /* old archive date stamp */
extern unsigned short oldtime; /* old archive time stamp */
extern int dosquash; /* squash instead of crunch */
#endif /* DONT_DEFINE */
@
1.9
log
@fixed arguments to fopen for non-MTS systems.
define index & rindex properly for both MTS and SYSV
@
text
@d2 1
a2 1
* $Header: arc.h,v 1.8 88/07/19 16:00:08 hyc Locked $
d5 1
a5 5
#undef MSDOS
#undef GEMDOS /* This amusing garbage is to get all my */
#undef DOS /* define's past some compilers, which */
#undef BSD /* apparently define some of these themselves */
#undef SYSV
a6 1
#undef MTS
a7 6
#define MSDOS 0 /* MSDOS machine */
#define GEMDOS 0 /* Atari, GEMDOS */
#define BSD 1 /* BSD4.2 or 4.3 */
#define SYSV 0 /* Also uses BSD */
#define MTS 0 /* MTS or 370(?) */
a36 2
#define USEGFINFO 0 /* define this to use GFINFO for directory */
#define USECATSCAN 1 /* scanning, else use CATSCAN/FILEINFO... */
@
1.8
log
@Fixes from John Gilmore, message date Mon, 4 Jul 88 03:02:43 PDT
@
text
@d2 1
a2 1
* $Header: arc.h,v 1.7 88/06/01 17:51:06 hyc Locked $
d30 2
d42 2
d48 2
a49 4
#define rindex strrchr
#define index strchr
#undef USEGFINFO /* define this to use GFINFO for directory */
#define USECATSCAN /* scanning, else use CATSCAN/FILEINFO... */
d51 5
@
1.7
log
@Changed header comments to match arc 5.21 ...
@
text
@d2 1
a2 1
* $Header: arc.h,v 1.6 88/06/01 17:43:59 hyc Locked $
d5 7
a11 5
#undef MSDOS /* MSDOS machine */
#define BSD /* BSD4.2 or 4.3 */
#undef SYSV /* Also uses BSD */
#undef MTS /* MTS or 370(?) */
/*#define GEMDOS Atari, GEMDOS */
d13 6
d27 3
a29 2
#ifdef MSDOS
#define DOS
d32 1
a32 2
#ifdef GEMDOS
#define DOS
d34 1
d37 3
a39 9
#ifdef DOS
#define CUTOFF '\\'
#endif
#ifdef SYSV
#define BSD
#endif
#ifdef BSD
a40 2
#define envfind getenv
#define CUTOFF '/'
d43 1
a43 1
#ifdef MTS
a45 1
#define envfind getenv
d72 1
a72 1
#define MAXARG 25 /* maximum number of arguments */
d78 1
a78 1
#ifndef DOS
d81 1
a81 1
#ifdef MTS
d85 1
a85 1
#ifdef GEMDOS
@
1.6
log
@Merge ARC 5.21 changes
@
text
@d2 1
a2 1
* $Header: arc.h,v 1.5 88/06/01 15:10:25 hyc Locked $
d51 16
a66 15
/*
* ARC - Archive utility - ARC Header
*
* Version 2.16, created on 10/24/86 at 14:54:17
*
* (C) COPYRIGHT 1985,86 by System Enhancement Associates; ALL RIGHTS RESERVED
*
* By: Thom Henderson
*
* Description: This is the header file for the ARC archive utility. It defines
* global parameters and the references to the external data.
*
*
* Language: Computer Innovations Optimizing C86
*/
d86 1
a86 1
extern int hold; /* hold screen before exiting */
d97 1
a97 1
extern int changing; /* true if archive being modified */
d103 3
a105 3
extern char arcname[STRLEN]; /* storage for archive name */
extern char bakname[STRLEN]; /* storage for backup copy name */
extern char newname[STRLEN]; /* storage for new archive name */
@
1.5
log
@Added Atari ST defs
@
text
@d2 1
a2 1
* $Header: arc.h,v 1.4 88/06/01 15:05:42 hyc Locked $
d96 1
@
1.4
log
@Fixed declarations
@
text
@d2 1
a2 1
* $Header: arc.h,v 1.4 88/04/17 19:14:48 hyc Exp $
d9 1
d19 13
d39 1
d48 1
d77 1
a77 1
#ifndef MSDOS
d83 3
@
1.3
log
@nothing much, just run thru indent...
@
text
@d2 1
a2 21
* $Log: arc.h,v $
* Revision 1.2 88/04/11 17:40:24 hyc
* added flag for squashing, got rid of EXTERN macro.
*
* Revision 1.1 88/04/11 17:36:04 hyc
* Initial revision
*
* Revision 1.2 87/12/19 03:58:14 hyc
* #define BSD instead of MTS, make the image mode flag ndef'ed to MSDOS
* instead of def'ed to MTS...
*
* Revision 1.1 87/12/19 03:54:37 hyc
* Initial revision
*
* Revision 1.4 87/08/13 17:02:56 hyc
* Run thru the indent program...
* Revision 1.3 87/07/21 11:45:29 hyc *** empty log
* message ***
*
* Revision 1.2 87/07/21 06:30:26 hyc modified for unix
*
d7 1
d10 12
a23 2
#define INT short
#define LONG int
a27 2
#define INT short
#define LONG int
a34 5
#ifdef MSDOS
#define INT int
#define LONG long
#endif
d51 6
d60 1
a60 1
extern INT keepbak; /* true if saving the old archive */
d62 1
a62 1
extern INT image; /* true to suppress CRLF/LF x-late */
d68 6
a73 6
extern INT warn; /* true to print warnings */
extern INT note; /* true to print comments */
extern INT bose; /* true to be verbose */
extern INT nocomp; /* true to suppress compression */
extern INT overlay; /* true to overlay on extract */
extern INT kludge; /* kludge flag */
d76 1
a76 1
extern INT nerrs; /* number of errors encountered */
d82 8
a89 8
extern char arcname[100]; /* storage for archive name */
extern char bakname[100]; /* storage for backup copy name */
extern char newname[100]; /* storage for new archive name */
extern unsigned INT arcdate; /* archive date stamp */
extern unsigned INT arctime; /* archive time stamp */
extern unsigned INT olddate; /* old archive date stamp */
extern unsigned INT oldtime; /* old archive time stamp */
extern INT dosquash; /* squash instead of crunch */
@
1.2
log
@added flag for squashing, got rid of EXTERN macro.
@
text
@d3 3
d70 1
a70 1
extern INT keepbak; /* true if saving the old archive */
d72 1
a72 1
extern INT image; /* true to suppress CRLF/LF x-late */
d75 2
a76 2
extern char sepchr[2]; /* Shared file separator, default = ':' */
extern char tmpchr[2]; /* Temporary file prefix, default = '-' */
d78 9
a86 9
extern INT warn; /* true to print warnings */
extern INT note; /* true to print comments */
extern INT bose; /* true to be verbose */
extern INT nocomp; /* true to suppress compression */
extern INT overlay; /* true to overlay on extract */
extern INT kludge; /* kludge flag */
extern char *arctemp; /* arc temp file prefix */
extern char *password; /* encryption password pointer */
extern INT nerrs; /* number of errors encountered */
d88 1
a88 1
extern char hdrver; /* header version */
d90 5
a94 5
extern FILE * arc; /* the old archive */
extern FILE * new; /* the new archive */
extern char arcname[100]; /* storage for archive name */
extern char bakname[100]; /* storage for backup copy name */
extern char newname[100]; /* storage for new archive name */
d99 1
a99 1
extern INT dosquash; /* squash instead of crunch */
@
1.1
log
@Initial revision
@
text
@d3 3
a27 1
#define EXTERN extern
a33 1
#define EXTERN extern
d39 2
a40 4
#undef USEGFINFO /* define this to use GFINFO for directory
*/
#define USECATSCAN /* scanning, else use CATSCAN/FILEINFO...
*/
a43 1
#define EXTERN extern
d67 1
a67 1
EXTERN INT keepbak; /* true if saving the old archive */
d75 9
a83 9
EXTERN INT warn; /* true to print warnings */
EXTERN INT note; /* true to print comments */
EXTERN INT bose; /* true to be verbose */
EXTERN INT nocomp; /* true to suppress compression */
EXTERN INT overlay; /* true to overlay on extract */
EXTERN INT kludge; /* kludge flag */
EXTERN char *arctemp; /* arc temp file prefix */
EXTERN char *password; /* encryption password pointer */
EXTERN INT nerrs; /* number of errors encountered */
d85 1
a85 1
EXTERN char hdrver; /* header version */
d87 10
a96 9
EXTERN FILE * arc; /* the old archive */
EXTERN FILE * new; /* the new archive */
EXTERN char arcname[100]; /* storage for archive name */
EXTERN char bakname[100]; /* storage for backup copy name */
EXTERN char newname[100]; /* storage for new archive name */
EXTERN unsigned INT arcdate; /* archive date stamp */
EXTERN unsigned INT arctime; /* archive time stamp */
EXTERN unsigned INT olddate; /* old archive date stamp */
EXTERN unsigned INT oldtime; /* old archive time stamp */
@