|
|
@ -421,7 +421,7 @@ fixdotplot(wordlist *wl) |
|
|
/* Is this a trailing (a,b) ? Note that we require it to be |
|
|
/* Is this a trailing (a,b) ? Note that we require it to be |
|
|
* one word. |
|
|
* one word. |
|
|
*/ |
|
|
*/ |
|
|
if (!wl->wl_next && (*wl->wl_word == '(')) /*)*/ { |
|
|
|
|
|
|
|
|
if (!wl->wl_next && (*wl->wl_word == '(')) { |
|
|
s = wl->wl_word + 1; |
|
|
s = wl->wl_word + 1; |
|
|
d = ft_numparse(&s, FALSE); |
|
|
d = ft_numparse(&s, FALSE); |
|
|
if (*s != ',') { |
|
|
if (*s != ',') { |
|
|
@ -432,7 +432,7 @@ fixdotplot(wordlist *wl) |
|
|
d1 = *d; |
|
|
d1 = *d; |
|
|
s++; |
|
|
s++; |
|
|
d = ft_numparse(&s, FALSE); |
|
|
d = ft_numparse(&s, FALSE); |
|
|
if ((*s != /*(*/ ')') || s[1]) { |
|
|
|
|
|
|
|
|
if ((*s != ')') || s[1]) { |
|
|
fprintf(cp_err, "Error: bad limits \"%s\"\n", |
|
|
fprintf(cp_err, "Error: bad limits \"%s\"\n", |
|
|
wl->wl_word); |
|
|
wl->wl_word); |
|
|
return; |
|
|
return; |
|
|
@ -585,7 +585,7 @@ gettoks(char *s) |
|
|
tfree(t); |
|
|
tfree(t); |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
l = strrchr(t, '('/*)*/); |
|
|
|
|
|
|
|
|
l = strrchr(t, '('); |
|
|
if (!l) { |
|
|
if (!l) { |
|
|
wl = wl_cons(copy(t), NULL); |
|
|
wl = wl_cons(copy(t), NULL); |
|
|
*prevp = wl; |
|
|
*prevp = wl; |
|
|
@ -594,7 +594,7 @@ gettoks(char *s) |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
r = strchr(t, /*(*/')'); |
|
|
|
|
|
|
|
|
r = strchr(t, ')'); |
|
|
|
|
|
|
|
|
c = strchr(t, ','); |
|
|
c = strchr(t, ','); |
|
|
if (!c) |
|
|
if (!c) |
|
|
|