pike.git/
src/
operators.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-12-04
2014-12-04 19:23:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>
f8f0d61244f249b713537454a9559243beab2310 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
bill/master_archive_support
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) */