diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-05-08 17:24:19 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-05-09 22:20:42 +0300 |
commit | e93439da71e027cafe5b2788a997cbfc85d193c8 (patch) | |
tree | a4004d13b98d12b1529eec696c9ef1d2401331c5 /src/microhttpd/internal.h | |
parent | b03ee4c52a6deebdcad3f12a18c4bd4f947f167b (diff) | |
download | libmicrohttpd-e93439da71e027cafe5b2788a997cbfc85d193c8.tar.gz libmicrohttpd-e93439da71e027cafe5b2788a997cbfc85d193c8.zip |
Added function for detection of token inside comma-separated string, added tests
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r-- | src/microhttpd/internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index cb6753c9..a9c46c6d 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -117,10 +117,13 @@ extern void *mhd_panic_cls; | |||
117 | #define BUILTIN_NOT_REACHED | 117 | #define BUILTIN_NOT_REACHED |
118 | #endif | 118 | #endif |
119 | 119 | ||
120 | #ifndef MHD_STATICSTR_LEN_ | ||
120 | /** | 121 | /** |
121 | * Determine length of static string / macro strings at compile time. | 122 | * Determine length of static string / macro strings at compile time. |
122 | */ | 123 | */ |
123 | #define MHD_STATICSTR_LEN_(macro) (sizeof(macro)/sizeof(char) - 1) | 124 | #define MHD_STATICSTR_LEN_(macro) (sizeof(macro)/sizeof(char) - 1) |
125 | #endif /* ! MHD_STATICSTR_LEN_ */ | ||
126 | |||
124 | 127 | ||
125 | /** | 128 | /** |
126 | * State of the socket with respect to epoll (bitmask). | 129 | * State of the socket with respect to epoll (bitmask). |