From 5e4b1826168b74d8b5e71227ded12980efd5a243 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Thu, 15 Oct 2020 00:56:22 +0200 Subject: Combine XAlloc.[ch] into XUtils.[ch] --- XUtils.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'XUtils.h') 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 +#include #include +#include #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) -- cgit v1.2.3