pike.git / src / interpret.c

version» Context lines:

pike.git/src/interpret.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: interpret.c,v 1.204 2001/06/10 00:23:24 grubba Exp $"); + RCSID("$Id: interpret.c,v 1.205 2001/06/11 16:34:01 grubba Exp $");   #include "interpret.h"   #include "object.h"   #include "program.h"   #include "svalue.h"   #include "array.h"   #include "mapping.h"   #include "pike_error.h"   #include "language.h"   #include "stralloc.h"   #include "constants.h"
pike.git/src/interpret.c:1641:   #endif    safe_apply_low(o, find_identifier(fun, o->prog), args);   }      PMOD_EXPORT void safe_apply_handler(const char *fun,    struct object *handler,    struct object *compat,    INT32 args)   {    int i; -  if (handler && +  if (handler && handler->prog &&    (i = find_identifier(fun, handler->prog)) != -1) {    safe_apply_low(handler, i, args); -  } else if (compat && +  } else if (compat && compat->prog &&    (i = find_identifier(fun, compat->prog)) != -1) {    safe_apply_low(compat, i, args);    } else {    struct object *master_obj = master();    i = find_identifier(fun, master_obj->prog);    safe_apply_low(master_obj, i, args);    }   }      PMOD_EXPORT void apply_lfun(struct object *o, int fun, int args)