pike.git / src / block_alloc.h

version» Context lines:

pike.git/src/block_alloc.h:1: - /* $Id: block_alloc.h,v 1.7 1999/04/02 02:09:03 hubbe Exp $ */ + /* $Id: block_alloc.h,v 1.8 1999/04/02 19:38:35 hubbe Exp $ */   #undef PRE_INIT_BLOCK   #undef INIT_BLOCK   #undef EXIT_BLOCK   #undef BLOCK_ALLOC   #undef PTR_HASH_ALLOC      #define PRE_INIT_BLOCK(X)   #define INIT_BLOCK(X)   #define EXIT_BLOCK(X)   
pike.git/src/block_alloc.h:122:    struct DATA **PIKE_CONCAT(DATA,_hash_table_old)= \    PIKE_CONCAT(DATA,_hash_table); \    int e=PIKE_CONCAT(DATA,_hash_table_size); \    \    PIKE_CONCAT(DATA,_hash_table_size)*=2; \    PIKE_CONCAT(DATA,_hash_table_size)++; \    if((PIKE_CONCAT(DATA,_hash_table)=(struct DATA **) \    malloc(PIKE_CONCAT(DATA,_hash_table_size)* \    sizeof(struct DATA *)))) \    { \ +  MEMSET(PIKE_CONCAT(DATA,_hash_table),0, \ +  sizeof(struct DATA *)*PIKE_CONCAT(DATA,_hash_table_size)); \    while(e-- >=0) \    { \    while((p=PIKE_CONCAT(DATA,_hash_table_old)[e])) \    { \    PIKE_CONCAT(DATA,_hash_table_old)[e]=p->next; \ -  hval=(long)(p-> data); \ +  hval=(long)(p-> data); \    hval%=PIKE_CONCAT(DATA,_hash_table_size); \    p->next=PIKE_CONCAT(DATA,_hash_table)[hval]; \    PIKE_CONCAT(DATA,_hash_table)[hval]=p; \    } \    } \    hval=(long)ptr; \    hval%=PIKE_CONCAT(DATA,_hash_table_size); \    }else{ \    PIKE_CONCAT(DATA,_hash_table)=PIKE_CONCAT(DATA,_hash_table_old); \    PIKE_CONCAT(DATA,_hash_table_size)=e; \