aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/tbl/tm.c
diff options
context:
space:
mode:
authorwkj <devnull@localhost>2004-05-16 07:55:57 +0000
committerwkj <devnull@localhost>2004-05-16 07:55:57 +0000
commitc5561c23cf394806cbf6d70a96f2dc0253f93745 (patch)
treef4a5b99f88454917a5bada0f2a97d1505051968c /src/cmd/tbl/tm.c
parentb855148c9b6d28fedfd083d037bcf246f1913d92 (diff)
downloadplan9port-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/tm.c')
-rw-r--r--src/cmd/tbl/tm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/tbl/tm.c b/src/cmd/tbl/tm.c
index 8fa4e497..7bf49e53 100644
--- a/src/cmd/tbl/tm.c
+++ b/src/cmd/tbl/tm.c
@@ -9,14 +9,14 @@ maknew(char *str)
char *p, *q, *ba;
p = str;
- for (ba = 0; c = *str; str++)
+ for (ba = 0; (c = *str); str++)
if (c == '\\' && *(str + 1) == '&')
ba = str;
str = p;
if (ba == 0) {
for (dpoint = 0; *str; str++) {
if (*str == '.' && !ineqn(str, p) &&
- (str > p && digit(*(str - 1)) ||
+ ((str > p && digit(*(str - 1))) ||
digit(*(str + 1))))
dpoint = (int)str;
}
@@ -37,7 +37,7 @@ maknew(char *str)
exlim = exstore + MAXCHS;
}
q = exstore;
- while (*exstore++ = *str++)
+ while ((*exstore++ = *str++))
;
*p = 0;
return(q);
@@ -50,7 +50,7 @@ ineqn (char *s, char *p)
/* true if s is in a eqn within p */
int ineq = 0, c;
- while (c = *p) {
+ while ((c = *p)) {
if (s == p)
return(ineq);
p++;