diff options
author | wkj <devnull@localhost> | 2004-05-17 02:23:43 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-05-17 02:23:43 +0000 |
commit | 8a3cbc157981485adc947c0477dc3e4907acc9a3 (patch) | |
tree | 349384ec94a177152ef945dcf41b9d368de5bf18 /src/cmd/tbl/t3.c | |
parent | 1f72bc47fe416f8fa00d8cea27ee1482fba28c20 (diff) | |
download | plan9port-8a3cbc157981485adc947c0477dc3e4907acc9a3.tar.gz plan9port-8a3cbc157981485adc947c0477dc3e4907acc9a3.tar.bz2 plan9port-8a3cbc157981485adc947c0477dc3e4907acc9a3.zip |
Make tbl compile silently.
Diffstat (limited to 'src/cmd/tbl/t3.c')
-rw-r--r-- | src/cmd/tbl/t3.c | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/src/cmd/tbl/t3.c b/src/cmd/tbl/t3.c index 5429e528..a4dc9f9f 100644 --- a/src/cmd/tbl/t3.c +++ b/src/cmd/tbl/t3.c @@ -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]; |