summaryrefslogtreecommitdiff
path: root/tbl/t5.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-10-23 00:24:25 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-10-23 00:24:25 +0000
commitab1717bb35d85041e0184f79daa1313a1306dc01 (patch)
treefa0739f76b49b902269f8f7c1e1c7c5ea30c0556 /tbl/t5.c
parentaa7798c94fa57f6c00fab4393c9fe91334864371 (diff)
Notes
Diffstat (limited to 'tbl/t5.c')
-rw-r--r--tbl/t5.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tbl/t5.c b/tbl/t5.c
index ab44521d5dde..597061d6d96d 100644
--- a/tbl/t5.c
+++ b/tbl/t5.c
@@ -26,6 +26,7 @@
# include <string.h>
# include "t..c"
# include <inttypes.h>
+# include <global.h>
static int morelines(int);
@@ -93,7 +94,7 @@ gettbl(void)
table[nlin][icol].col = cstore;
table[nlin][icol].rcol=0;
ch=1;
- if (match(cstore, "T{")) { /* text follows */
+ if (strcmp(cstore, "T{") == 0) { /* text follows */
/* get_text was originally gettext and was renamed */
if ((table[nlin][icol].col =
get_text(cstore, nlin, icol,
@@ -214,13 +215,15 @@ vspand(int ir, int ij, int ifform)
if (fullbot[ir]) return(0);
return(vspen(table[ir][ij].col));
}
-int
+
+int
vspen(char *s)
{
if (s==0) return(0);
if (!point((intptr_t)s)) return(0);
- return(match(s, SPAN));
+ return(strcmp(s, SPAN) == 0);
}
+
static int
morelines(int n)
{