pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
1999-03-02
1999-03-02 03:22:13 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>
2e2f265594c88e9705e939ebe376c92b2238aa27 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
bugfix
Rev: src/operators.c:1.49
5:
\*/ #include "global.h" #include <math.h>
-
RCSID("$Id: operators.c,v 1.
48
1999/03/02 03:
13
:
24
hubbe Exp $");
+
RCSID("$Id: operators.c,v 1.
49
1999/03/02 03:
22:
13 hubbe Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h"
1940:
/* function(mixed...:int) */ ADD_EFUN2("`!=",f_ne,tFuncV(,tMix,tInt),OPT_TRY_OPTIMIZE,0,generate_comparison); /* function(mixed:int) */
-
add_efun2("`!",f_not,"
!
function(
int(0..0):
mixed
)&function(mixed
:int(0..
0))|function(int(0..0):int(
1
..1
))",OPT_TRY_OPTIMIZE,optimize_not,generate_not);
+
add_efun2("`!",f_not,"function(mixed:int(0..1))",OPT_TRY_OPTIMIZE,optimize_not,generate_not);
#define CMP_TYPE "!function(!object...:mixed)&function(mixed...:int(0..1))|function(int|float...:int(0..1))|function(string...:int(0..1))" add_efun2("`<", f_lt,CMP_TYPE,OPT_TRY_OPTIMIZE,0,generate_comparison);