]> code.citadel.org Git - citadel.git/commitdiff
* add convenience macro for constant hashkeys, as the compiler can do sizeof instead...
authorWilfried Göesgens <willi@citadel.org>
Wed, 2 Apr 2008 23:41:47 +0000 (23:41 +0000)
committerWilfried Göesgens <willi@citadel.org>
Wed, 2 Apr 2008 23:41:47 +0000 (23:41 +0000)
libcitadel/lib/libcitadel.h

index 6eab11acecdbf04fe1d5ec7d9f67d0dc992d8ec1..649a78d5dee5ec376d6363d75f81bcc376045fa3 100644 (file)
@@ -258,7 +258,7 @@ void remove_charset_attribute(char *strbuf);
 /**
  * Citadels Hashlist Implementation
  */
-
+#define HKEY(a) a, sizeof(a) - 1
 typedef struct HashList HashList;
 
 typedef struct HashKey HashKey;