pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2013-01-01
2013-01-01 13:00:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>
78021b7a1c6b30e43cea5f3b872b7236252f4d7d (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Improved type for sizeof().
5918:
tFunc(tType(tSetvar(0, tMix)), tType(tNot(tVar(0)))), tFunc(tPrg(tObj), tType(tMix))), OPT_TRY_OPTIMIZE,0,generate_compl);
-
/* function(string|multiset|array|mapping|object:int) */
+
/* function(string|multiset|array|mapping|object:int
(0..
)
)
*/
ADD_EFUN2("sizeof", f_sizeof,
-
tFunc(tOr5(tStr,tMultiset,tArray,tMapping,tObj),
tInt
),
+
tFunc(tOr5(tStr,tMultiset,tArray,tMapping,tObj),
tIntPos
),
OPT_TRY_OPTIMIZE, optimize_sizeof, generate_sizeof); /* function(mixed,mixed ...:mixed) */