From: Pavel Charvat Date: Sun, 7 Nov 2010 10:42:25 +0000 (+0100) Subject: hashtable: Implemented new HASH_TABLE_VARS parameter. X-Git-Tag: v5.0~137 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=cb832d374faddf2681567a2773c8e0771d26b0c7;p=libucw.git hashtable: Implemented new HASH_TABLE_VARS parameter. --- 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