Call a pointer a pointer.
[rsc] --rw-rw-r-- M 320859 glenda sys 1127 Oct 27 10:38 sys/src/cmd/tbl/tm.c
/n/sourcesdump/2005/1027/plan9/sys/src/cmd/tbl/tm.c:5,12 -
/n/sourcesdump/2005/1028/plan9/sys/src/cmd/tbl/tm.c:5,12
maknew(char *str)
{
/* make two numerical fields */
- int dpoint, c;
- char *p, *q, *ba;
+ int c;
+ char *p, *q, *ba, *dpoint;
p = str;
for (ba = 0; c = *str; str++)
/n/sourcesdump/2005/1027/plan9/sys/src/cmd/tbl/tm.c:18,24 -
/n/sourcesdump/2005/1028/plan9/sys/src/cmd/tbl/tm.c:18,24
if (*str == '.' && !ineqn(str, p) &&
(str > p && digit(*(str - 1)) ||
digit(*(str + 1))))
- dpoint = (int)str;
+ dpoint = str;
}
if (dpoint == 0)
for (; str > p; str--) {
/n/sourcesdump/2005/1027/plan9/sys/src/cmd/tbl/tm.c:28,34 -
/n/sourcesdump/2005/1028/plan9/sys/src/cmd/tbl/tm.c:28,34
if (!dpoint && p == str) /* not numerical, don't split */
return(0);
if (dpoint)
- str = (char *)dpoint;
+ str = dpoint;
} else
str = ba;
p = str;
|