inp_modify_exp(), cleanup #6/17, rewrite

This commit is contained in:
rlar 2014-11-02 10:32:00 +01:00
parent 49c233029a
commit 381b5d9ec1
1 changed files with 3 additions and 7 deletions

View File

@ -5555,14 +5555,10 @@ inp_modify_exp(char* expr)
str_ptr++;
ustate = 2; /* place a '-' in front of token */
} else if (isalpha(actchar)) {
size_t i;
size_t i = 0;
/* unary -, change sign */
if (ustate == 2) {
i = 1;
buf[0] = '-';
} else {
i = 0;
}
if (ustate == 2)
buf[i++] = '-';
if (((actchar == 'v') || (actchar == 'i')) && (str_ptr[1] == '(')) {
while (*str_ptr != ')') {