* add macro to use conststrs to access hashes
authorWilfried Göesgens <willi@citadel.org>
Tue, 16 Jun 2009 23:37:15 +0000 (23:37 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 16 Jun 2009 23:37:15 +0000 (23:37 +0000)
libcitadel/lib/libcitadel.h

index 5e8106f8b16acc16050f680cc412e03b88568436..2b05c2a1afc8302c2d3fa968cb5738c4f598ea1c 100644 (file)
@@ -218,7 +218,7 @@ typedef struct _ConstStr {
        const char *Key;
        long len;
 }ConstStr;
-
+#define CKEY(a) (a).Key, (a).len
 
 StrBuf* NewStrBuf(void);
 StrBuf* NewStrBufDup(const StrBuf *CopyMe);