pike.git
/
src
/
block_alloc.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/block_alloc.h:1:
-
/* $Id: block_alloc.h,v 1.
23
2000/08/
10
09
:
21
:
19
grubba
Exp $ */
+
/* $Id: block_alloc.h,v 1.
24
2000/08/
24
04
:
04
:
40
hubbe
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:133:
return p; \ } \ } \ return 0; \ } \ \ \ struct DATA *PIKE_CONCAT(find_,DATA)(void *ptr) \ { \ size_t hval = (size_t)ptr; \
+
if(!PIKE_CONCAT(DATA,_hash_table_size)) return 0; \
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; \