pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1:   /* -*- c -*-   || 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.213 2008/06/24 19:26:55 grubba Exp $ + || $Id: builtin.cmod,v 1.214 2008/06/24 20:07:58 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"
pike.git/src/builtin.cmod:596:    if (m->type == T_MAPPING) {    RETURN mapping_generation(m->u.mapping);    }    if (m->type == T_OBJECT && m->u.object->prog) {    struct object *o = m->u.object;    struct program *p = o->prog;    int id_level = p->inherits[m->subtype].identifier_level;    int fun;    p = p->inherits[m->subtype].prog;    /* NOTE: Fake lfun! */ -  fun = low_find_lfun(p, LFUN__SEARCH); +  fun = low_find_lfun(p, LFUN__M_GENERATION);    if (fun >= 0) {    apply_low(o, fun + id_level, 0);    stack_pop_n_elems_keep_top(args);    return;    }    }    SIMPLE_BAD_ARG_ERROR("m_generation", 1, "mapping");   }      /*! @decl string ctime(int timestamp)