From cb832d374faddf2681567a2773c8e0771d26b0c7 Mon Sep 17 00:00:00 2001 From: Pavel Charvat Date: Sun, 7 Nov 2010 11:42:25 +0100 Subject: [PATCH] hashtable: Implemented new HASH_TABLE_VARS parameter. --- ucw/hashtable.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ucw/hashtable.h b/ucw/hashtable.h index 88fd0977..f480fe95 100644 --- a/ucw/hashtable.h +++ b/ucw/hashtable.h @@ -99,6 +99,7 @@ * the default xmalloc(). * HASH_TABLE_DYNAMIC Support multiple hash tables; the first parameter of all * hash table operations is struct HASH_PREFIX(table) *. + * HASH_TABLE_VARS Extra variables to be defined in table structure * * You also get a iterator macro at no extra charge: * @@ -159,6 +160,9 @@ struct P(table) { #ifdef HASH_AUTO_POOL struct mempool *pool; #endif +#ifdef HASH_TABLE_VARS + HASH_TABLE_VARS +#endif }; #ifdef HASH_TABLE_DYNAMIC -- 2.39.5