From 49c7405b6a88e56bb69e12189adb719927343e07 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Mon, 15 Nov 2021 19:37:48 +0000 Subject: Multiple smaller changes. - Remove the background image and libpng dependency - Add a prompt - Add xmalloc with out-of-memory handling - Add beginnings of a rofi-like run cache --- src/xmalloc.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/xmalloc.h (limited to 'src/xmalloc.h') diff --git a/src/xmalloc.h b/src/xmalloc.h new file mode 100644 index 0000000..a661004 --- /dev/null +++ b/src/xmalloc.h @@ -0,0 +1,14 @@ +#ifndef XMALLOC_H +#define XMALLOC_H + +#include + +__attribute__((malloc)) +void *xmalloc(size_t size); + +__attribute__((malloc)) +void *xcalloc(size_t nmemb, size_t size); + +void *xrealloc(void *ptr, size_t size); + +#endif /* XMALLOC_H */ -- cgit v1.2.3