pike.git / src / block_alloc.h

version» Context lines:

pike.git/src/block_alloc.h:1: - /* $Id: block_alloc.h,v 1.29 2001/03/30 09:08:36 hubbe Exp $ */ + /* $Id: block_alloc.h,v 1.30 2001/07/01 19:59:48 mast 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:46:    n->next=PIKE_CONCAT(DATA,_blocks); \    PIKE_CONCAT(DATA,_blocks)=n; \    \    for(e=0;e<BSIZE;e++) \    { \    n->x[e].BLOCK_ALLOC_NEXT=(void *)PIKE_CONCAT3(free_,DATA,s); \    PRE_INIT_BLOCK( (n->x+e) ); \    PIKE_CONCAT3(free_,DATA,s)=n->x+e; \    } \    } \ +  DO_IF_DEBUG( \ +  else if (PIKE_CONCAT3(free_,DATA,s) == (struct DATA *)-1) \ +  fatal("Block alloc not initialized.\n"); \ +  ) \    \    tmp=PIKE_CONCAT3(free_,DATA,s); \    PIKE_CONCAT3(free_,DATA,s)=(struct DATA *)tmp->BLOCK_ALLOC_NEXT; \    DO_IF_DMALLOC( dmalloc_register(tmp,sizeof(struct DATA), DMALLOC_LOCATION()); )\    INIT_BLOCK(tmp); \    return tmp; \   } \    \   struct DATA *PIKE_CONCAT(alloc_,DATA)(void) \   { \