pike.git / src / block_alloc.h

version» Context lines:

pike.git/src/block_alloc.h:1: - /* $Id: block_alloc.h,v 1.11 1999/05/02 08:11:30 hubbe Exp $ */ + /* $Id: block_alloc.h,v 1.12 1999/10/19 15:29:51 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:113:    PIKE_CONCAT(DATA,_hash_table)[hval]=p; \    return p; \    } \    } \    return 0; \   } \    \    \   struct DATA *PIKE_CONCAT(find_,DATA)(void *ptr) \   { \ -  int hval=(long)ptr; \ +  unsigned int hval=(long)ptr; \    hval%=PIKE_CONCAT(DATA,_hash_table_size); \    return PIKE_CONCAT(really_low_find_,DATA)(ptr, hval); \   } \    \    \   static void PIKE_CONCAT(DATA,_rehash)() \   { \    /* Time to re-hash */ \    struct DATA **old_hash= PIKE_CONCAT(DATA,_hash_table); \    struct DATA *p; \