Make tbl compile silently.

This commit is contained in:
wkj 2004-05-17 02:23:43 +00:00
parent 1f72bc47fe
commit 8a3cbc1579
19 changed files with 321 additions and 328 deletions

View file

@ -4,28 +4,27 @@ 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
@ -39,7 +38,7 @@ getcomm(void)
*(lp->optadd) = 0;
texname = texstr[texct=0];
tab = '\t';
fprintf(tabout, ".nr %d \\n(.s\n", LSIZE);
Bprint(&tabout, ".nr %d \\n(.s\n", LSIZE);
gets1(line, sizeof(line));
/* see if this is a command line */
if (strchr(line, ';') == 0) {
@ -71,7 +70,7 @@ getcomm(void)
*(lp->optadd) = nb[0];
}
if (lp->optadd == &linsize)
fprintf(tabout, ".nr %d %s\n", LSIZE, nb);
Bprint(&tabout, ".nr %d %s\n", LSIZE, nb);
if (lp->optadd == &delim1) {
delim1 = nb[0];
delim2 = nb[1];