[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 01/15: Added ability to check for MHD debug builds at ru
From: |
gnunet |
Subject: |
[libmicrohttpd] 01/15: Added ability to check for MHD debug builds at run-time |
Date: |
Fri, 28 Oct 2022 11:21:50 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 30beb61e117fdfe1f7b1bca602c5c4b1cce33fc5
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Fri Oct 14 11:25:29 2022 +0300
Added ability to check for MHD debug builds at run-time
---
src/include/microhttpd.h | 12 ++++++++++--
src/microhttpd/daemon.c | 6 ++++++
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 13bfa554..34b35c4f 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -96,7 +96,7 @@ extern "C"
* they are parsed as decimal numbers.
* Example: 0x01093001 = 1.9.30-1.
*/
-#define MHD_VERSION 0x00097542
+#define MHD_VERSION 0x00097543
/* If generic headers don't work on your platform, include headers
which define 'va_list', 'size_t', 'ssize_t', 'intptr_t', 'off_t',
@@ -6186,7 +6186,15 @@ enum MHD_FEATURE
* unlikely.
* @note Available since #MHD_VERSION 0x00097540
*/
- MHD_FEATURE_EXTERN_HASH = 32
+ MHD_FEATURE_EXTERN_HASH = 32,
+
+ /**
+ * Get whether MHD was built with asserts enabled.
+ * For debug builds the error log is always enabled even if
#MHD_USE_ERROR_LOG
+ * is not specified for daemon.
+ * @note Available since #MHD_VERSION 0x00097543
+ */
+ MHD_FEATURE_DEBUG_BUILD = 33
};
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 90a49e91..c5aa3d9d 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -8747,6 +8747,12 @@ MHD_is_feature_supported (enum MHD_FEATURE feature)
#else
return MHD_NO;
#endif
+ case MHD_FEATURE_DEBUG_BUILD:
+#ifdef _DEBUG
+ return MHD_YES;
+#else
+ return MHD_NO;
+#endif
default:
break;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] branch master updated (5e0c2223 -> 9f4a08a8), gnunet, 2022/10/28
- [libmicrohttpd] 03/15: New values for MHD_ConnectionEventLoopInfo, gnunet, 2022/10/28
- [libmicrohttpd] 12/15: test_head: added check for excess data in reply, gnunet, 2022/10/28
- [libmicrohttpd] 04/15: Added new state for MHD_ConnectionEventLoopInfo, gnunet, 2022/10/28
- [libmicrohttpd] 14/15: postprocessor.h: fixed typos in doxy, gnunet, 2022/10/28
- [libmicrohttpd] 11/15: testcurl: added test with Content-Length broken value in request, gnunet, 2022/10/28
- [libmicrohttpd] 08/15: Do not send "100 Continue" if part of the request body is already received, gnunet, 2022/10/28
- [libmicrohttpd] 01/15: Added ability to check for MHD debug builds at run-time,
gnunet <=
- [libmicrohttpd] 02/15: Added check for hypothetical too large accepted sockets addresses, gnunet, 2022/10/28
- [libmicrohttpd] 13/15: test_head: check libcurl for timeout value, gnunet, 2022/10/28
- [libmicrohttpd] 06/15: Renamed one more connection state for clarity, gnunet, 2022/10/28
- [libmicrohttpd] 05/15: Renamed one state in MHD_ConnectionEventLoopInfo for clarity, gnunet, 2022/10/28
- [libmicrohttpd] 10/15: connection.c: fixed handling of various errors automatically detected by MHD code, gnunet, 2022/10/28
- [libmicrohttpd] 09/15: Reworked partial processing of the upload, gnunet, 2022/10/28
- [libmicrohttpd] 15/15: microhttpd.h: doxy improvements, gnunet, 2022/10/28
- [libmicrohttpd] 07/15: Do not send "100 Continue" if request does not have a body, gnunet, 2022/10/28