pike.git / src / block_alloc.h

version» Context lines:

pike.git/src/block_alloc.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: block_alloc.h,v 1.70 2004/04/03 15:45:41 mast Exp $ + || $Id: block_alloc.h,v 1.71 2004/04/03 15:55:15 mast Exp $   */      #undef PRE_INIT_BLOCK   #undef DO_PRE_INIT_BLOCK   #undef INIT_BLOCK   #undef EXIT_BLOCK   #undef BLOCK_ALLOC   #undef LOW_PTR_HASH_ALLOC   #undef PTR_HASH_ALLOC_FIXED   #undef PTR_HASH_ALLOC
pike.git/src/block_alloc.h:273:    PIKE_CONCAT(DATA,_free_blocks) = blk->prev; \    } else { \    PIKE_CONCAT(DATA,_blocks) = blk->next; \    blk->next->prev = NULL; \    } \    \    DO_IF_DMALLOC({ \    size_t i; \    for (i = 0; i < (BSIZE); i++) { \    dmalloc_check_block_free( \ -  blk->x + i, DMALLOC_LOCATION(), \ +  blk->x + i, DMALLOC_LOCATION(), #DATA, \    (describe_block_fn *) PIKE_CONCAT (dmalloc_describe_, DATA)); \    dmalloc_unregister(blk->x + i, 1); \    } \    }); \    \    /* Mark meta-block as available, since libc will mess with it. */ \    PIKE_MEM_RW(*blk); \    free(blk); \    --PIKE_CONCAT3(num_empty_,DATA,_blocks); \    } \
pike.git/src/block_alloc.h:299:   { \    struct PIKE_CONCAT(DATA,_block) *tmp; \    DO_IF_DMALLOC( \    MEMSET(PIKE_CONCAT(DATA,s_to_free), 0, sizeof(PIKE_CONCAT(DATA,s_to_free))); \    for(tmp=PIKE_CONCAT(DATA,_blocks);tmp;tmp=tmp->next) \    { \    size_t tmp2; \    for(tmp2=0;tmp2<(BSIZE);tmp2++) \    { \    dmalloc_check_block_free( \ -  tmp->x+tmp2, DMALLOC_LOCATION(), \ +  tmp->x+tmp2, DMALLOC_LOCATION(), #DATA, \    (describe_block_fn *) PIKE_CONCAT (dmalloc_describe_, DATA)); \    dmalloc_unregister(tmp->x+tmp2, 1); \    } \    } \    ) \    while((tmp=PIKE_CONCAT(DATA,_blocks))) \    { \    PIKE_CONCAT(DATA,_blocks)=tmp->next; \    /* Mark meta-block as available, since libc will mess with it. */ \    PIKE_MEM_RW(tmp->x); \