Branch: Tag:

2002-12-01

2002-12-01 02:51:51 by Martin Stjernholm <mast@lysator.liu.se>

Added a move_foo function to PTR_HASH_ALLOC. Fixed bugs in dmalloc updates
when foo_block blocks are freed before cleanup. Improved check for invalid
pointers in check_free_foo.

Rev: src/block_alloc.h:1.56
Rev: src/block_alloc_h.h:1.18

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.h,v 1.17 2002/12/01 00:57:32 mast Exp $ + || $Id: block_alloc_h.h,v 1.18 2002/12/01 02:51:51 mast Exp $   */      #undef BLOCK_ALLOC
30:   struct DATA *PIKE_CONCAT(make_,DATA)(void *ptr); \   struct DATA *PIKE_CONCAT(get_,DATA)(void *ptr); \   int PIKE_CONCAT3(check_,DATA,_semafore)(void *ptr); \ + void PIKE_CONCAT(move_,DATA)(struct DATA *block, void *new_ptr); \   int PIKE_CONCAT(remove_,DATA)(void *ptr); \   void PIKE_CONCAT3(low_init_,DATA,_hash)(size_t); \   void PIKE_CONCAT3(init_,DATA,_hash)(void); \