pike.git / src / block_alloc.h

version» Context lines:

pike.git/src/block_alloc.h:1: - /* $Id: block_alloc.h,v 1.19 2000/04/17 21:06:24 hubbe Exp $ */ + /* $Id: block_alloc.h,v 1.20 2000/04/23 02:42:01 mast Exp $ */   #undef PRE_INIT_BLOCK   #undef INIT_BLOCK   #undef EXIT_BLOCK   #undef BLOCK_ALLOC   #undef PTR_HASH_ALLOC   #undef COUNT_BLOCK   #undef COUNT_OTHER      #define PRE_INIT_BLOCK(X)   #define INIT_BLOCK(X)
pike.git/src/block_alloc.h:105:    *size_=size; \   }               #define PTR_HASH_ALLOC(DATA,BSIZE) \    \   BLOCK_ALLOC(DATA,BSIZE) \    \ - static struct DATA **PIKE_CONCAT(DATA,_hash_table)=0; \ - static int PIKE_CONCAT(DATA,_hash_table_size)=0; \ + struct DATA **PIKE_CONCAT(DATA,_hash_table)=0; \ + int PIKE_CONCAT(DATA,_hash_table_size)=0; \   static int PIKE_CONCAT(num_,DATA)=0; \    \   inline struct DATA * \    PIKE_CONCAT(really_low_find_,DATA)(void *ptr, int hval) \   { \    struct DATA *p,**pp; \    p=PIKE_CONCAT(DATA,_hash_table)[hval]; \    if(!p) return 0; \    if(p->data == ptr) return p; \    while((p=*(pp=&p->BLOCK_ALLOC_NEXT))) \
pike.git/src/block_alloc.h:260:    sizeof(struct DATA *)*PIKE_CONCAT(DATA,_hash_table_size)); \   } \    \   void PIKE_CONCAT3(exit_,DATA,_hash)(void) \   { \    PIKE_CONCAT3(free_all_,DATA,_blocks)(); \    free(PIKE_CONCAT(DATA,_hash_table)); \    PIKE_CONCAT(DATA,_hash_table)=0; \    PIKE_CONCAT(num_,DATA)=0; \   } -  - #define BLOCK_ALLOC_NEXT next -  +