pike.git / src / block_alloc.h

version» Context lines:

pike.git/src/block_alloc.h:1: - /* $Id: block_alloc.h,v 1.20 2000/04/23 02:42:01 mast Exp $ */ + /* $Id: block_alloc.h,v 1.21 2000/05/16 18:32:34 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: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); \   } \    \