Branch: Tag:

2008-05-24

2008-05-24 12:18:50 by Martin Stjernholm <mast@lysator.liu.se>

Fix.

Rev: src/block_alloc.h:1.87

2:   || 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.86 2008/05/24 12:02:05 mast Exp $ + || $Id: block_alloc.h,v 1.87 2008/05/24 12:18:50 mast Exp $   */      #undef PRE_INIT_BLOCK
45: Inside #if defined (DMALLOC_BLOCK_BACKLOG) && defined (DEBUG_MALLOC)
     #if defined (DMALLOC_BLOCK_BACKLOG) && defined (DEBUG_MALLOC)   #define DO_IF_BLOCK_BACKLOG(X) X + #define DO_IF_NOT_BLOCK_BACKLOG(X)   #else   #define DO_IF_BLOCK_BACKLOG(X) -  + #define DO_IF_NOT_BLOCK_BACKLOG(X) X   #endif      /* Invalidate the block as far as possible if running with dmalloc.
359:    ); \    \    DO_PRE_INIT_BLOCK(d); \ -  DO_IF_DMALLOC({ \ +  DO_IF_BLOCK_BACKLOG ({ \    struct DATA *d2 = (void *)blk->PIKE_CONCAT3(free_,DATA,s); \    d->BLOCK_ALLOC_NEXT = NULL; \    if (d2) { \
375:    blk->PIKE_CONCAT3(free_,DATA,s)=d; \    } \    }); \ -  DO_IF_NOT_DMALLOC({ \ +  DO_IF_NOT_BLOCK_BACKLOG ({ \    d->BLOCK_ALLOC_NEXT = (void *)blk->PIKE_CONCAT3(free_,DATA,s); \    blk->PIKE_CONCAT3(free_,DATA,s)=d; \    }); \