pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:2189:    *! @note    *! Note that @[m_delete()] changes @[map] destructively.    *!    *! @seealso    *! @[mappingp()]    */   PMOD_EXPORT   PIKEFUN mixed m_delete(object|mapping|multiset map, mixed index)    efun;    optflags OPT_SIDE_EFFECT; -  rawtype tOr3(tFunc(tMap(tSetvar(0,tMix),tSetvar(1,tMix)) tVar(0),tVar(1)), +  rawtype tOr3(tFunc(tMap(tSetvar(0,tMix),tSetvar(1,tMix)) tVar(0), +  tOr(tVar(1), tZero)),    tFunc(tSet(tSetvar(0,tMix)) tVar(0),tInt01),    tFunc(tObj tMix,tMix));   {    struct program *p;    if( TYPEOF(*map) == T_MAPPING )    {    struct svalue s;    map_delete_no_free(map->u.mapping, index, &s);    pop_n_elems(args);    *Pike_sp=s;