* add const string evaluator
authorWilfried Göesgens <willi@citadel.org>
Sun, 28 Feb 2010 19:26:43 +0000 (19:26 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 28 Feb 2010 19:26:43 +0000 (19:26 +0000)
libcitadel/lib/libcitadel.h

index dbacca2d48a1d351858f7c94385b5f44851613c3..f841657413e69406a79fea4a2ed5ddb4cbdac877 100644 (file)
@@ -24,7 +24,6 @@
 #define SIZ    4096
 #endif
 
-#define strof(a) #a
 
 /* Logging levels - correspond to syslog(3) */
 enum LogLevel {
@@ -74,7 +73,8 @@ typedef enum __GPEXWhichPolicy {
        roompolicy,
        floorpolicy,
        sitepolicy,
-       mailboxespolicy
+       mailboxespolicy,
+       maxpolicy
 }GPEXWhichPolicy;
 
 /*
@@ -97,6 +97,7 @@ typedef enum __GPEXWhichPolicy {
 #define IsEmptyStr(a) ((a)[0] == '\0')
 #endif
 
+
 /*
  * another word to indicate n/a for a pointer if NULL already has a "meaning"
  */
@@ -250,6 +251,8 @@ void the_mime_parser(char *partnum,
 
 typedef struct StrBuf StrBuf;
 
+#define strof(a) #a
+#define CStrOf(a) #a, sizeof(#a) - 1
 typedef struct _ConstStr {
        const char *Key;
        long len;