aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-08 17:24:19 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-05-09 22:20:42 +0300
commite93439da71e027cafe5b2788a997cbfc85d193c8 (patch)
treea4004d13b98d12b1529eec696c9ef1d2401331c5 /src/microhttpd/internal.h
parentb03ee4c52a6deebdcad3f12a18c4bd4f947f167b (diff)
downloadlibmicrohttpd-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.h3
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).