Checkpoint -- still merging with Taj's version of the world.

This commit is contained in:
wkj 2004-05-16 07:55:57 +00:00
parent b855148c9b
commit c5561c23cf
37 changed files with 415 additions and 378 deletions

View file

@ -4,27 +4,28 @@ struct optstr {
char *optnam;
int *optadd;
} options [] = {
"expand", &expflg,
"EXPAND", &expflg,
"center", &ctrflg,
"CENTER", &ctrflg,
"box", &boxflg,
"BOX", &boxflg,
"allbox", &allflg,
"ALLBOX", &allflg,
"doublebox", &dboxflg,
"DOUBLEBOX", &dboxflg,
"frame", &boxflg,
"FRAME", &boxflg,
"doubleframe", &dboxflg,
"DOUBLEFRAME", &dboxflg,
"tab", &tab,
"TAB", &tab,
"linesize", &linsize,
"LINESIZE", &linsize,
"delim", &delim1,
"DELIM", &delim1,
0, 0};
{ "expand", &expflg },
{ "EXPAND", &expflg },
{ "center", &ctrflg },
{ "CENTER", &ctrflg },
{ "box", &boxflg },
{ "BOX", &boxflg },
{ "allbox", &allflg },
{ "ALLBOX", &allflg },
{ "doublebox", &dboxflg },
{ "DOUBLEBOX", &dboxflg },
{ "frame", &boxflg },
{ "FRAME", &boxflg },
{ "doubleframe", &dboxflg },
{ "DOUBLEFRAME", &dboxflg },
{ "tab", &tab },
{ "TAB", &tab },
{ "linesize", &linsize },
{ "LINESIZE", &linsize },
{ "delim", &delim1 },
{ "DELIM", &delim1 },
{ 0, 0}
};
void
@ -38,7 +39,7 @@ getcomm(void)
*(lp->optadd) = 0;
texname = texstr[texct=0];
tab = '\t';
Bprint(&tabout, ".nr %d \\n(.s\n", LSIZE);
fprintf(tabout, ".nr %d \\n(.s\n", LSIZE);
gets1(line, sizeof(line));
/* see if this is a command line */
if (strchr(line, ';') == 0) {
@ -70,7 +71,7 @@ getcomm(void)
*(lp->optadd) = nb[0];
}
if (lp->optadd == &linsize)
Bprint(&tabout, ".nr %d %s\n", LSIZE, nb);
fprintf(tabout, ".nr %d %s\n", LSIZE, nb);
if (lp->optadd == &delim1) {
delim1 = nb[0];
delim2 = nb[1];