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.
18
2000/
03
/
24
01
:
24
:
49
hubbe
Exp $ */
+
/* $Id: block_alloc.h,v 1.
19
2000/
08
/
19
10
:
17
:
15
grubba
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:196:
hval%=PIKE_CONCAT(DATA,_hash_table_size); \ } \ \ p=PIKE_CONCAT(alloc_,DATA)(); \ p->data=ptr; \ p->BLOCK_ALLOC_NEXT=PIKE_CONCAT(DATA,_hash_table)[hval]; \ PIKE_CONCAT(DATA,_hash_table)[hval]=p; \ return p; \ } \ \
-
inline
struct DATA *PIKE_CONCAT(get_,DATA)(void *ptr) \
+
struct DATA *PIKE_CONCAT(get_,DATA)(void *ptr)
\
{ \ struct DATA *p; \ int hval=(long)ptr; \ hval%=PIKE_CONCAT(DATA,_hash_table_size); \ if((p=PIKE_CONCAT(really_low_find_,DATA)(ptr, hval))) \ return p; \ \ return PIKE_CONCAT(make_,DATA)(ptr, hval); \ } \ \