aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tbl/tv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/tbl/tv.c')
-rw-r--r--src/cmd/tbl/tv.c32
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);
}