dovecot-2.2: Added missing hash-decl.h

dovecot at dovecot.org dovecot at dovecot.org
Sun Aug 19 14:01:27 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/ed0fd7c1e8ff
changeset: 14919:ed0fd7c1e8ff
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Aug 19 14:01:15 2012 +0300
description:
Added missing hash-decl.h

diffstat:

 src/lib/Makefile.am |   1 +
 src/lib/hash-decl.h |  20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diffs (35 lines):

diff -r 8eae4e205c82 -r ed0fd7c1e8ff src/lib/Makefile.am
--- a/src/lib/Makefile.am	Sun Aug 19 13:55:34 2012 +0300
+++ b/src/lib/Makefile.am	Sun Aug 19 14:01:15 2012 +0300
@@ -164,6 +164,7 @@
 	fsync-mode.h \
 	guid.h \
 	hash.h \
+	hash-decl.h \
 	hash-format.h \
 	hash-method.h \
 	hash2.h \
diff -r 8eae4e205c82 -r ed0fd7c1e8ff src/lib/hash-decl.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/lib/hash-decl.h	Sun Aug 19 14:01:15 2012 +0300
@@ -0,0 +1,20 @@
+#ifndef HASH_DECL_H
+#define HASH_DECL_H
+
+#define HASH_TABLE_UNION(key_type, value_type) { \
+		struct hash_table *_table; \
+		key_type _key; \
+		key_type *_keyp; \
+		const key_type _const_key; \
+		value_type _value; \
+		value_type *_valuep; \
+	}
+
+#define HASH_TABLE_DEFINE_TYPE(name, key_type, value_type) \
+	union hash ## __ ## name HASH_TABLE_UNION(key_type, value_type)
+#define HASH_TABLE(key_type, value_type) \
+	union HASH_TABLE_UNION(key_type, value_type)
+#define HASH_TABLE_TYPE(name) \
+	union hash ## __ ## name
+
+#endif


More information about the dovecot-cvs mailing list