pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:282:    * or similar    */    if( map->type == T_MAPPING )    {    struct svalue s;    map_delete_no_free(map->u.mapping, index, &s);    pop_n_elems(args);    *sp=s;    sp++;    } -  else +  else if (map->type == T_OBJECT)    { -  apply_lfun( map->u.object, LFUN__M_DELETE, 1 ); +  apply_lfun( map->u.object, LFUN__M_DELETE, args-1 );    stack_swap();    pop_stack(); -  +  } else { +  SIMPLE_BAD_ARG_ERROR("m_delete", 1, "object|mapping");    }   }      //! Returns 1 if the weak flag has been set for @[m].   //!   PIKEFUN int(0 .. 1) get_weak_flag(array|mapping|multiset m)    efun;    optflags OPT_EXTERNAL_DEPEND;   {    int flag = 0;