]> mj.ucw.cz Git - libucw.git/commitdiff
hashtable: Implemented new HASH_TABLE_VARS parameter.
authorPavel Charvat <pchar@ucw.cz>
Sun, 7 Nov 2010 10:42:25 +0000 (11:42 +0100)
committerPavel Charvat <pchar@ucw.cz>
Sun, 7 Nov 2010 10:42:25 +0000 (11:42 +0100)
ucw/hashtable.h

index 88fd0977f400fbccd2f326cb1c6d42970bfeab26..f480fe95ab15b3253f3ee773236750debcebf311 100644 (file)
@@ -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