[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 177/335: sys_malloc.h: new internal header
From: |
gnunet |
Subject: |
[libmicrohttpd] 177/335: sys_malloc.h: new internal header |
Date: |
Sat, 27 Jul 2024 22:01:13 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to tag stf-m2
in repository libmicrohttpd.
commit 1aadcfc89f3eebe398c8a374089807dd3dff8b38
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu May 16 15:29:38 2024 +0200
sys_malloc.h: new internal header
---
src/mhd2/sys_malloc.h | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/src/mhd2/sys_malloc.h b/src/mhd2/sys_malloc.h
new file mode 100644
index 00000000..9d048e4a
--- /dev/null
+++ b/src/mhd2/sys_malloc.h
@@ -0,0 +1,45 @@
+/*
+ This file is part of GNU libmicrohttpd
+ Copyright (C) 2024 Evgeny Grin (Karlson2k)
+
+ GNU libmicrohttpd is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ GNU libmicrohttpd is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
USA
+
+*/
+
+/**
+ * @file src/mhd2/sys_malloc.h
+ * @brief The wrapper header for malloc() and free() system declarations
+ * @author Karlson2k (Evgeny Grin)
+ */
+
+#ifndef MHD_SYS_MALLOC_H
+#define MHD_SYS_MALLOC_H 1
+
+#include "mhd_sys_options.h"
+
+#if defined(HAVE_STDLIB_H)
+# include <stdlib.h>
+#elif defined(HAVE_MALLOC_H)
+# include <malloc.h>
+#else
+/* Try some set of headers, hoping the right header is included */
+# if defined(HAVE_UNISTD_H)
+# include <unistd.h>
+# endif
+# include <stdio.h>
+# include <string.h>
+#endif
+
+#endif /* ! MHD_SYS_MALLOC_H */
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 153/335: say it is STF-funded, (continued)
- [libmicrohttpd] 153/335: say it is STF-funded, gnunet, 2024/07/27
- [libmicrohttpd] 169/335: mhd_sys_options.h: added support for more attributes for functions, gnunet, 2024/07/27
- [libmicrohttpd] 158/335: add response option generation;, gnunet, 2024/07/27
- [libmicrohttpd] 156/335: generator v1, gnunet, 2024/07/27
- [libmicrohttpd] 170/335: mhd_sys_options.h: renamed _MHD_EXTERN -> MHD_EXTERN_, gnunet, 2024/07/27
- [libmicrohttpd] 167/335: mhd_sys_options.h: formatting, gnunet, 2024/07/27
- [libmicrohttpd] 159/335: remove dependency on recutils and libjansson, gnunet, 2024/07/27
- [libmicrohttpd] 160/335: This API is TERRIBLE., gnunet, 2024/07/27
- [libmicrohttpd] 174/335: sys_socket_types.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 176/335: mhd_public_api.h: new internal header, gnunet, 2024/07/27
- [libmicrohttpd] 177/335: sys_malloc.h: new internal header,
gnunet <=
- [libmicrohttpd] 185/335: GENERATED: fixed comment in comment, gnunet, 2024/07/27
- [libmicrohttpd] 182/335: compat_calloc.{h,c}: implementation of calloc() replacement, gnunet, 2024/07/27
- [libmicrohttpd] 165/335: configure: detect more function attributes, gnunet, 2024/07/27
- [libmicrohttpd] 161/335: configure: check for more mandatory headers, gnunet, 2024/07/27
- [libmicrohttpd] 171/335: mhd_socket_type.h: new internal header, renamed MHD_socket -> MHD_Socket, gnunet, 2024/07/27
- [libmicrohttpd] 186/335: GENERATED: guard header double inclusion, gnunet, 2024/07/27
- [libmicrohttpd] 178/335: microhttpd2_portability.h: dropped wrong comment, gnunet, 2024/07/27
- [libmicrohttpd] 168/335: mhd_sys_options.h: use function attribute "used", gnunet, 2024/07/27
- [libmicrohttpd] 188/335: GENERATED: use proper includes in .c, gnunet, 2024/07/27
- [libmicrohttpd] 180/335: microhttpd2_portability.h: simplified macros for MHD_EXTERN_, gnunet, 2024/07/27