From: Wilfried Göesgens Date: Tue, 16 Jun 2009 23:37:15 +0000 (+0000) Subject: * add macro to use conststrs to access hashes X-Git-Tag: v7.86~1046 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=f491c3dfb1edf4505e7c218e995e193335d59f2d;p=citadel.git * add macro to use conststrs to access hashes --- diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index 5e8106f8b..2b05c2a1a 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -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);