pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:11206:    free_type(f->current_type);       if(f->current_return_type)    free_type(f->current_return_type);       Pike_compiler->compiler_frame=f->previous;    dmfree((char *)f);   }       + PMOD_EXPORT char *get_inherit_storage(struct object *o, int inherit) + { +  if (!o || !o->prog) return NULL; + #ifdef PIKE_DEBUG +  if ((inherit < 0) || (inherit >= o->prog->num_inherits)) +  Pike_fatal("Inherit #%d out of range [0..%d]\n", +  inherit, o->prog->num_inherits-1); + #endif +  return o->storage + o->prog->inherits[inherit].storage_offset; + } +    #define GET_STORAGE_CACHE_SIZE 1024   static struct get_storage_cache   {    INT32 oid, pid;    ptrdiff_t offset;   } get_storage_cache[GET_STORAGE_CACHE_SIZE];      PMOD_EXPORT ptrdiff_t low_get_storage(struct program *o, struct program *p)   {    INT32 oid, pid;