xpressn.c, drop '&' and '|' operators, (we have '&&' and '||')

This commit is contained in:
rlar 2013-11-07 21:42:02 +01:00
parent 719b5e5c20
commit a855a19d2c
1 changed files with 2 additions and 10 deletions

View File

@ -965,10 +965,10 @@ fetchoperator(tdico *dico,
} else if (cpos(c, "=<>#GL") >= 0) {
state = S_binop;
level = 5;
} else if (c == '&' || c == 'A') {
} else if (c == 'A') {
state = S_binop;
level = 6;
} else if (c == '|' || c == 'O') {
} else if (c == 'O') {
state = S_binop;
level = 7;
} else if (c == '!') {
@ -1089,14 +1089,6 @@ operate(char op, double x, double y)
case 'O': /* || */
x = ((x != 0.0) || (y != 0.0)) ? 1.0 : 0.0;
break;
case '&':
if (y < x)
x = y; /*=Min*/
break;
case '|':
if (y > x)
x = y; /*=Max*/
break;
case '=':
if (x == y)
x = u;