inp_modify_exp(), remove operator rewrite `**' --> `^'

Thats implemented in the lexer for B expressions,
( `PTlex()' in src/spicelib/parser/inpptree.c )
This commit is contained in:
rlar 2014-11-03 20:08:08 +01:00
parent 70ad8cce5f
commit c79d2482ae
1 changed files with 4 additions and 3 deletions

View File

@ -5517,11 +5517,12 @@ inp_modify_exp(char* expr)
(c == '+') || (c == '?') || (c == ':'))
{
if ((c == '*') && (s[1] == '*')) {
c = '^';
wl->wl_word = tprintf("**");
s += 2;
} else {
wl->wl_word = tprintf("%c", c);
s++;
}
wl->wl_word = tprintf("%c", c);
s++;
if (c == ')')
state = S_value;
else