pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2001-03-17
2001-03-17 17:39:08 by Henrik Grubbström (Grubba) <grubba@grubba.org>
0158bf28907868b8bbe5b49b63cf91d7d2be5242 (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
7.9
Somewhat stricter type for `~() in the type type case.
Rev: src/operators.c:1.131
6:
/**/ #include "global.h" #include <math.h>
-
RCSID("$Id: operators.c,v 1.
130
2001/03/17
16
:
37
:
42
grubba Exp $");
+
RCSID("$Id: operators.c,v 1.
131
2001/03/17
17
:
39
:
08
grubba Exp $");
#include "interpret.h" #include "svalue.h" #include "multiset.h"
3591:
/* function(object:mixed)|function(int:int)|function(float:float)|function(string:string) */ ADD_EFUN2("`~",f_compl,
-
tOr5
(tFunc(tObj,tMix),
+
tOr6
(tFunc(tObj,tMix),
tFunc(tInt,tInt), tFunc(tFlt,tFlt), tFunc(tStr,tStr),
-
tFunc(
tOr(
tType(tMix),
tProgram
),tType(tMix))),
+
tFunc(tType(
tSetvar(0,
tMix)
)
,
tType(tNot(tVar(0
)
)))
,
+
tFunc(tProgram,
tType(tMix))),
OPT_TRY_OPTIMIZE,0,generate_compl); /* function(string|multiset|array|mapping|object:int) */ ADD_EFUN2("sizeof", f_sizeof,