version 1.35, 2000/07/24 23:08:25 |
version 1.36, 2000/07/27 17:44:33 |
|
|
int sp; /* current m4 stack pointer */ |
int sp; /* current m4 stack pointer */ |
int fp; /* m4 call frame pointer */ |
int fp; /* m4 call frame pointer */ |
struct input_file infile[MAXINP];/* input file stack (0=stdin) */ |
struct input_file infile[MAXINP];/* input file stack (0=stdin) */ |
FILE *outfile[MAXOUT]; /* diversion array(0=bitbucket)*/ |
FILE **outfile; /* diversion array(0=bitbucket)*/ |
|
int maxout; |
FILE *active; /* active output file pointer */ |
FILE *active; /* active output file pointer */ |
int ilevel = 0; /* input file stack pointer */ |
int ilevel = 0; /* input file stack pointer */ |
int oindex = 0; /* diversion index.. */ |
int oindex = 0; /* diversion index.. */ |
|
|
mstack = (stae *)xalloc(sizeof(stae) * STACKMAX); |
mstack = (stae *)xalloc(sizeof(stae) * STACKMAX); |
sstack = (char *)xalloc(STACKMAX); |
sstack = (char *)xalloc(STACKMAX); |
|
|
|
maxout = 0; |
|
outfile = NULL; |
|
resizedivs(MAXOUT); |
|
|
while ((c = getopt(argc, argv, "gtD:U:o:I:")) != -1) |
while ((c = getopt(argc, argv, "gtD:U:o:I:")) != -1) |
switch(c) { |
switch(c) { |
|
|
|
|
|
|
if (active != stdout) |
if (active != stdout) |
active = stdout; /* reset output just in case */ |
active = stdout; /* reset output just in case */ |
for (n = 1; n < MAXOUT; n++) /* default wrap-up: undivert */ |
for (n = 1; n < maxout; n++) /* default wrap-up: undivert */ |
if (outfile[n] != NULL) |
if (outfile[n] != NULL) |
getdiv(n); |
getdiv(n); |
/* remove bitbucket if used */ |
/* remove bitbucket if used */ |