Files
Digital-Research-Source-Code/CPM OPERATING SYSTEMS/CPM 68K/1.0X SOURCES/v103/cc/mdriver.h
Sepp J Morris 31738079c4 Upload
Digital Research
2020-11-06 18:50:37 +01:00

122 lines
3.9 KiB
C

/*
Copyright 1982
Alcyon Corporation
8716 Production Ave.
San Diego, Ca. 92121
*/
/* INITFARGS - initialize fexec arg block*/
/* This sets the arg block pointer to the beginning of the block.*/
#define INITFARGS() fargp = &fargs[0]
/* ENDFARGS - end fexec argument block*/
/* This ends the argument block with a zero pointer.*/
#define ENDFARGS() *fargp = 0
#define SIG_IGN ((int (*)())1) /* address of long 1 */
#define SIG_DFL ((int (*)())0) /* address of long 0 */
#define SIGINT 2 /* interrupt */
#define DEFSIZE 1024
#define NARGS 64
#define NINCL 10
#define NDEFS 20
#define ICODE 0
#define LINK 1
#define MTEMP 2
#define ASTEMP 3
#define NTEMPS 4
char *fargs[NARGS+1];
char **fargp;
char argbuf[DEFSIZE];
char *cfiles[NARGS+1];
char *loadargs[NARGS+1];
char *defs[NDEFS];
char *incl[NINCL];
char *fns[NTEMPS];
char *tfns[NTEMPS];
int ndefs;
int nincl;
char *argp = &argbuf[0];
int cflag;
int nflag;
int fflag; /* [vlh] 3.4 fast floating point format and library */
int eflag; /* [vlh] 3.4 ieee floating point format and library */
int lflag = 1; /* [vlh] 4.2 default */
int pflag;
int Eflag; /* [vlh] 4.0 flag, Preprocessor only to stdout */
int sflag;
int Tflag; /* [vlh] 4.2, 68010 destination */
int tflag; /* [vlh] 4.2, put strings into .text segment */
int gflag; /* [vlh] 4.2, symbolic debugger label generation */
int wflag; /* [vlh] turn on warning messages */
int verbose; /* [vlh] 3.4 force printing of file being processed */
int v6flag; /* [vlh] 3.4 compile for version 6 */
int v7flag; /* [vlh] 3.4 */
int s3flag; /* [vlh] 3.4 */
int s5flag; /* [vlh] 3.4 */
int optimize; /* [vlh] 3.4 recognize optimization flag '-O' */
int status;
int oneflag;
int errno;
#ifdef MC68000
char *preproc = "/lib/cpp68"; /*[vlh] 4.2 */
char *parser = "/lib/c068";
char *cgen = "/lib/c168";
char *onepass = "/lib/c0168";
char *pref = "/lib/c680.o";
char *post = "/lib/c68end.o"; /*[vlh] 4.2, for debugger */
char *loader = "/bin/lo68";
char *asmprog = "/bin/as68";
char *deflib = "/lib/lib7.a";
char *deflibfp = "/lib/libF.a"; /* [vlh] 3.4 */
char *deflibep = "/lib/libE.a"; /* [vlh] 3.4 */
char *v6lib = "/lib/libv6.a"; /* [vlh] 3.4 */
char *v7lib = "/lib/libv7.a"; /* [vlh] 3.4 */
char *s3lib = "/lib/libs3.a"; /* [vlh] 3.4 */
char *s5lib = "/lib/libs5.a"; /* [vlh] 3.4 */
char *v6incl = "/usr/include/v6"; /* [vlh] 3.4 */
char *v7incl = "/usr/include/v7"; /* [vlh] 3.4 */
char *s3incl = "/usr/include/sys3"; /* [vlh] 3.4 */
char *s5incl = "/usr/include/sys5"; /* [vlh] 3.4 */
#else
char *preproc = "/usr/local/lib/cpp68"; /* [vlh] 4.2 */
char *parser = "/usr/local/lib/c068";
char *cgen = "/usr/local/lib/c168";
char *onepass = "/usr/local/lib/c0168";
char *pref = "/usr/local/lib/c680.o";
char *post = "/usr/local/lib/c68end.o";/*[vlh] 4.2, for debugger */
char *loader = "/usr/local/lo68";
char *asmprog = "/usr/local/as68";
char *deflib = "/usr/local/lib/lib7.a";
char *deflibfp = "/usr/local/lib/libF.a"; /* [vlh] 3.4 */
char *deflibep = "/usr/local/lib/libE.a"; /* [vlh] 3.4 */
char *v6lib = "/usr/local/lib/libv6.a"; /* [vlh] 3.4 */
char *v7lib = "/usr/local/lib/libv7.a"; /* [vlh] 3.4 */
char *s3lib = "/usr/local/lib/libs3.a"; /* [vlh] 3.4 */
char *s5lib = "/usr/local/lib/libs5.a"; /* [vlh] 3.4 */
char *v6incl = "/usr/include/c68/v6"; /* [vlh] 3.4 */
char *v7incl = "/usr/include/c68/v7"; /* [vlh] 3.4 */
char *s3incl = "/usr/include/c68/sys3"; /* [vlh] 3.4 */
char *s5incl = "/usr/include/c68/sys5"; /* [vlh] 3.4 */
#endif
/* Main driver Flags */
char *ldflg = "-r";
int mmuflag; /*[vlh] 3.4 */
int asflag;
/* Functions which return not integral values */
char *setend();
char *makecopy();
char *maketemp();
int (*signal())();