diff options
author | wkj <devnull@localhost> | 2004-05-16 07:55:57 +0000 |
---|---|---|
committer | wkj <devnull@localhost> | 2004-05-16 07:55:57 +0000 |
commit | c5561c23cf394806cbf6d70a96f2dc0253f93745 (patch) | |
tree | f4a5b99f88454917a5bada0f2a97d1505051968c /src/cmd/tbl/tv.c | |
parent | b855148c9b6d28fedfd083d037bcf246f1913d92 (diff) | |
download | plan9port-c5561c23cf394806cbf6d70a96f2dc0253f93745.tar.gz plan9port-c5561c23cf394806cbf6d70a96f2dc0253f93745.tar.bz2 plan9port-c5561c23cf394806cbf6d70a96f2dc0253f93745.zip |
Checkpoint -- still merging with Taj's version of the world.
Diffstat (limited to 'src/cmd/tbl/tv.c')
-rw-r--r-- | src/cmd/tbl/tv.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/cmd/tbl/tv.c b/src/cmd/tbl/tv.c index 19a4b03f..adcef76f 100644 --- a/src/cmd/tbl/tv.c +++ b/src/cmd/tbl/tv.c @@ -16,7 +16,7 @@ drawvert(int start, int end, int c, int lwid) epb = ept = 0; pos = 2 * ln - lwid + 1; if (pos != tp) - Bprint(&tabout, "\\h'%dp'", pos - tp); + fprintf(tabout, "\\h'%dp'", pos - tp); tp = pos; if (end < nlin) { if (fullbot[end] || (!instead[end] && allh(end))) @@ -102,33 +102,33 @@ drawvert(int start, int end, int c, int lwid) break; } if (exb) - Bprint(&tabout, "\\v'%s'", exb); + fprintf(tabout, "\\v'%s'", exb); if (epb) - Bprint(&tabout, "\\v'%dp'", epb); - Bprint(&tabout, "\\s\\n(%d", LSIZE); + fprintf(tabout, "\\v'%dp'", epb); + fprintf(tabout, "\\s\\n(%d", LSIZE); if (linsize) - Bprint(&tabout, "\\v'-\\n(%dp/6u'", LSIZE); - Bprint(&tabout, "\\h'-\\n(#~u'"); /* adjustment for T450 nroff boxes */ - Bprint(&tabout, "\\L'|\\n(#%cu-%s", linestop[start] + 'a' - 1, + fprintf(tabout, "\\v'-\\n(%dp/6u'", LSIZE); + fprintf(tabout, "\\h'-\\n(#~u'"); /* adjustment for T450 nroff boxes */ + fprintf(tabout, "\\L'|\\n(#%cu-%s", linestop[start] + 'a' - 1, vm == 'v' ? "1v" : "\\n(35u"); if (ext) - Bprint(&tabout, "-(%s)", ext); + fprintf(tabout, "-(%s)", ext); if (exb) - Bprint(&tabout, "-(%s)", exb); + fprintf(tabout, "-(%s)", exb); pos = ept - epb; if (pos) - Bprint(&tabout, "%s%dp", pos >= 0 ? "+" : "", pos); + fprintf(tabout, "%s%dp", pos >= 0 ? "+" : "", pos); /* the string #d is either "nl" or ".d" depending on diversions; on GCOS not the same */ - Bprint(&tabout, "'\\s0\\v'\\n(\\*(#du-\\n(#%cu+%s", + fprintf(tabout, "'\\s0\\v'\\n(\\*(#du-\\n(#%cu+%s", linestop[start] + 'a' - 1, vm == 'v' ? "1v" : "\\n(35u"); if (ext) - Bprint(&tabout, "+%s", ext); + fprintf(tabout, "+%s", ext); if (ept) - Bprint(&tabout, "%s%dp", (-ept) > 0 ? "+" : "", (-ept)); - Bprint(&tabout, "'"); + fprintf(tabout, "%s%dp", (-ept) > 0 ? "+" : "", (-ept)); + fprintf(tabout, "'"); if (linsize) - Bprint(&tabout, "\\v'\\n(%dp/6u'", LSIZE); + fprintf(tabout, "\\v'\\n(%dp/6u'", LSIZE); } } @@ -154,7 +154,7 @@ midbcol(int i, int c) c--; if (ct == '-' || ct == '=') return(ct); - if (ct = barent(table[i][c].col)) + if ((ct = barent(table[i][c].col))) return(ct); return(0); } |