summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordlenev@mockturtle.local <>2006-11-01 16:20:15 +0300
committerdlenev@mockturtle.local <>2006-11-01 16:20:15 +0300
commit5961d4721f1ed56f82bc7c30e080f5ea67e3d3ac (patch)
tree5984366d91eb42b6f03be52b6042748c734ae784 /include
parent75881599e59adb459ac1750ad653124ed516e4fc (diff)
parentbd1b57f930569cbb976a2765f52fd7ca36f1ba50 (diff)
downloadmariadb-git-5961d4721f1ed56f82bc7c30e080f5ea67e3d3ac.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
into mockturtle.local:/home/dlenev/src/mysql-5.0-hash-2
Diffstat (limited to 'include')
-rw-r--r--include/hash.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hash.h b/include/hash.h
index 8f5ff21ae5e..4d6ee77fa0c 100644
--- a/include/hash.h
+++ b/include/hash.h
@@ -65,6 +65,8 @@ my_bool hash_check(HASH *hash); /* Only in debug library */
#define hash_clear(H) bzero((char*) (H),sizeof(*(H)))
#define hash_inited(H) ((H)->array.buffer != 0)
+#define hash_init_opt(A,B,C,D,E,F,G,H) \
+ (!hash_inited(A) && _hash_init(A,B,C,D,E,F,G, H CALLER_INFO))
#ifdef __cplusplus
}