nupa_substitute(), cleanup
This commit is contained in:
parent
0d3c0dfd78
commit
abb16c288b
|
|
@ -1244,7 +1244,7 @@ nupa_substitute(dico_t *dico, const char *s, char *r)
|
||||||
|
|
||||||
if (*s == '(') {
|
if (*s == '(') {
|
||||||
/* sub-formula */
|
/* sub-formula */
|
||||||
const char *kptr = ++s;
|
const char *kptr = s + 1;
|
||||||
int level = 1;
|
int level = 1;
|
||||||
|
|
||||||
for (; kptr < s_end; kptr++) {
|
for (; kptr < s_end; kptr++) {
|
||||||
|
|
@ -1265,7 +1265,7 @@ nupa_substitute(dico_t *dico, const char *s, char *r)
|
||||||
goto Lend;
|
goto Lend;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = evaluate_expr(dico, &qstr, s, kptr);
|
err = evaluate_expr(dico, &qstr, s + 1, kptr);
|
||||||
if (err) {
|
if (err) {
|
||||||
message(dico, "Cannot compute &(expression)\n");
|
message(dico, "Cannot compute &(expression)\n");
|
||||||
goto Lend;
|
goto Lend;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue