From f491c3dfb1edf4505e7c218e995e193335d59f2d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Tue, 16 Jun 2009 23:37:15 +0000 Subject: [PATCH] * add macro to use conststrs to access hashes --- libcitadel/lib/libcitadel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2