Branch: Tag:

2002-12-01

2002-12-01 00:57:32 by Martin Stjernholm <mast@lysator.liu.se>

Made the (so far unused) make_foo function in PTR_HASH_ALLOC more useful by
letting it calculate the hash internally so that it doesn't have to be fed.

Rev: src/block_alloc.h:1.55
Rev: src/block_alloc_h.h:1.17

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.16 2002/11/25 00:19:46 mast Exp $ + || $Id: block_alloc_h.h,v 1.17 2002/12/01 00:57:32 mast Exp $   */      #undef BLOCK_ALLOC
27:   extern size_t PIKE_CONCAT(DATA,_hash_table_size); \   struct DATA *PIKE_CONCAT(find_,DATA)(void *ptr); \   struct DATA *PIKE_CONCAT3(make_,DATA,_unlocked)(void *ptr, size_t hval); \ - struct DATA *PIKE_CONCAT(make_,DATA)(void *ptr, size_t hval); \ + struct DATA *PIKE_CONCAT(make_,DATA)(void *ptr); \   struct DATA *PIKE_CONCAT(get_,DATA)(void *ptr); \   int PIKE_CONCAT3(check_,DATA,_semafore)(void *ptr); \   int PIKE_CONCAT(remove_,DATA)(void *ptr); \