pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c:8681: Inside #if defined(PIKE_DEBUG)
  static void gc_mark_external_types(struct callback *cb, void *a, void *b);   static struct callback *pike_type_gc_callback = NULL;   #endif /* PIKE_DEBUG */      #ifdef HAVE_SYS_MMAN_H   #include <sys/mman.h>   #endif      #if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)   #define MAP_ANONYMOUS MAP_ANON - static int type_stack_mmap, type_mark_stack_mmap; +    #endif /* !MAP_ANONYMOUS && MAP_ANON */    -  + #ifdef MAP_ANONYMOUS + static int type_stack_mmap, type_mark_stack_mmap; + #endif +    void init_types(void)   {    /* Initialize hashtable here. */    pike_type_hash = xcalloc(sizeof(struct pike_type *),    (PIKE_TYPE_HASH_SIZE+1));    pike_type_hash_size = PIKE_TYPE_HASH_SIZE;       /* if possible, use mmap with on-demand allocation */   #if defined(MAP_ANONYMOUS)    type_stack = mmap( NULL, sizeof(struct pike_type *)*PIKE_TYPE_STACK_SIZE,