(wrong string) ée

From: <git_AT_suckless.org>
Date: Thu, 26 Jan 2017 12:54:35 +0100 (CET)

commit 67d3daabae6fd00b40280662d4377b84ea849fca
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Thu Jan 26 12:53:23 2017 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Thu Jan 26 12:53:23 2017 +0100

    Forgot to commit two files
    
    Signed-off-by: Mattias Andrée <maandree_AT_kth.se>

diff --git a/Makefile b/Makefile
index f773790..d6ff343 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -5,9 +5,11 @@ BIN =\
         blind-arithm\
         blind-colour-ciexyz\
         blind-colour-srgb\
+ blind-compress\
         blind-concat\
         blind-crop\
         blind-cut\
+ blind-decompress\
         blind-dissolve\
         blind-extend\
         blind-flip\
diff --git a/src/util/emalloc.h b/src/util/emalloc.h
index 7c4266e..81816be 100644
--- a/src/util/emalloc.h
+++ b/src/util/emalloc.h
_AT_@ -3,6 +3,7 @@
 
 #define emalloc(...) enmalloc(1, __VA_ARGS__)
 #define ecalloc(...) encalloc(1, __VA_ARGS__)
+#define erealloc(...) enrealloc(1, __VA_ARGS__)
 
 static inline void *
 enmalloc(int status, size_t n)
_AT_@ -18,6 +19,15 @@ encalloc(int status, size_t n, size_t m)
 {
         void *ptr = calloc(n, m);
         if (!ptr)
- enprintf(status, "malloc: out of memory\n");
+ enprintf(status, "calloc: out of memory\n");
+ return ptr;
+}
+
+static inline void *
+enrealloc(int status, void *ptr, size_t n)
+{
+ ptr = realloc(ptr, n);
+ if (!ptr)
+ enprintf(status, "realloc: out of memory\n");
         return ptr;
 }
Received on Thu Jan 26 2017 - 12:54:35 CET

This archive was generated by hypermail 2.3.0 : Thu Jan 26 2017 - 13:00:19 CET