pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2005-11-14
2005-11-14 19:57:54 by Martin Nilsson <mani@lysator.liu.se>
d8a04b0ce36091ee6384bd8c867f81949fe631aa (
10
lines) (+
3
/-
7
)
[
Show
|
Annotate
]
Branch:
7.9
Improved the m_delete type as outlined in FIXME
Rev: src/builtin.cmod:1.179
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: builtin.cmod,v 1.
178
2005/
05
/
06
00
:
41
:
40
nilsson Exp $
+
|| $Id: builtin.cmod,v 1.
179
2005/
11
/
14
19
:
57
:
54
nilsson Exp $
*/ #include "global.h"
832:
PIKEFUN mixed m_delete(object|mapping map, mixed index) efun; optflags OPT_SIDE_EFFECT;
+
rawtype tOr(tFunc(tMap(tSetvar(0,tMix),tSetvar(1,tMix)) tVar(0),tVar(1)),tFunc(tObj tMix,tMix))
{
-
/*FIXME: Should be
-
* type function(mapping(1=mixed:2=mixed),1:2)|
-
* function(object,mixed:mixed);
-
*
-
* or similar
-
*/
+
struct program *p; if( map->type == T_MAPPING ) {