summaryrefslogtreecommitdiffstats
path: root/XUtils.h
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2020-10-15 00:56:22 +0200
committerBenny Baumann <BenBE@geshi.org>2020-10-17 20:54:14 +0200
commit5e4b1826168b74d8b5e71227ded12980efd5a243 (patch)
treed1b5ce276eb0ba146abaabb8ae1ddda793d230c0 /XUtils.h
parent872e542f4eca52ce2198ba3fc30a51bc5d672dae (diff)
Combine XAlloc.[ch] into XUtils.[ch]
Diffstat (limited to 'XUtils.h')
-rw-r--r--XUtils.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/XUtils.h b/XUtils.h
index 4880d1a1..742b8e9e 100644
--- a/XUtils.h
+++ b/XUtils.h
@@ -7,11 +7,22 @@ Released under the GNU GPLv2, see the COPYING file
in the source distribution for its full text.
*/
+#include <assert.h>
+#include <err.h>
#include <stdio.h>
+#include <stdlib.h>
#include "Macros.h"
+void fail(void) ATTR_NORETURN;
+
+void* xMalloc(size_t size);
+
+void* xCalloc(size_t nmemb, size_t size);
+
+void* xRealloc(void* ptr, size_t size);
+
#define String_startsWith(s, match) (strncmp((s),(match),strlen(match)) == 0)
#define String_contains_i(s1, s2) (strcasestr(s1, s2) != NULL)

© 2014-2024 Faster IT GmbH | imprint | privacy policy