aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-05 12:45:32 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-04-05 12:56:40 +0300
commit218694a400beaf164712121475a6e22fd01b7b71 (patch)
treeced3b1a430831759372112a8d84f1c4e22c9ee9b /src/microhttpd/internal.h
parent6ac4608cd802dba435d5aa7602ace312cacc8909 (diff)
downloadlibmicrohttpd-218694a400beaf164712121475a6e22fd01b7b71.tar.gz
libmicrohttpd-218694a400beaf164712121475a6e22fd01b7b71.zip
Converted many 'strlen()' from run-time to compile-time processing
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 52bd8520..1b9df892 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -117,6 +117,10 @@ extern void *mhd_panic_cls;
117#define BUILTIN_NOT_REACHED 117#define BUILTIN_NOT_REACHED
118#endif 118#endif
119 119
120/**
121 * Determine length of static string / macro strings at compile time.
122 */
123#define MHD_STATICSTR_LEN_(macro) (sizeof(macro)/sizeof(char) - 1)
120 124
121/** 125/**
122 * State of the socket with respect to epoll (bitmask). 126 * State of the socket with respect to epoll (bitmask).