pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:1:   /*   || 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: program.c,v 1.716 2008/06/01 11:19:58 grubba Exp $ + || $Id: program.c,v 1.717 2008/06/02 15:43:29 mast Exp $   */      #include "global.h"   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "lex.h"
pike.git/src/program.c:10159:   }         #define GET_STORAGE_CACHE_SIZE 1024   static struct get_storage_cache   {    INT32 oid, pid;    ptrdiff_t offset;   } get_storage_cache[GET_STORAGE_CACHE_SIZE];    - ptrdiff_t low_get_storage(struct program *o, struct program *p) + PMOD_EXPORT ptrdiff_t low_get_storage(struct program *o, struct program *p)   {    INT32 oid, pid;    ptrdiff_t offset;    unsigned INT32 hval;       if(!o) return -1;    oid=o->id;    pid=p->id;    hval=oid*9248339 + pid;    hval%=GET_STORAGE_CACHE_SIZE;