This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 0e8f3ec8849c33058eb5a7218e397f9059ad3ec5
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sun Dec 17 19:24:07 2023 +0100

    Unifdef HAVE_FREE_NULL_BUG
    
    I doubt it is useful anywhere.
---
 dox/dox.h  | 4 ----
 eesh/E.h   | 4 ----
 src/util.h | 4 ----
 3 files changed, 12 deletions(-)

diff --git a/dox/dox.h b/dox/dox.h
index d130a6b6..652ad448 100644
--- a/dox/dox.h
+++ b/dox/dox.h
@@ -105,11 +105,7 @@ extern char    *docdir;
 
 #define Emalloc     malloc
 #define Erealloc    realloc
-#if HAVE_FREE_NULL_BUG
-#define Efree(p)    if (p) free(p)
-#else
 #define Efree       free
-#endif
 
 #define EMALLOC(type, num) (type*)Emalloc((num)*sizeof(type))
 #define EREALLOC(type, ptr, num) (type*)Erealloc(ptr, (num)*sizeof(type))
diff --git a/eesh/E.h b/eesh/E.h
index c486af60..6bb208ec 100644
--- a/eesh/E.h
+++ b/eesh/E.h
@@ -53,11 +53,7 @@ void            ClientDestroy(Client * c);
 #define Ecalloc     calloc
 #define Emalloc     malloc
 #define Erealloc    realloc
-#if HAVE_FREE_NULL_BUG
-#define Efree(p)    if (p) free(p)
-#else
 #define Efree       free
-#endif
 
 #define EMALLOC(type, num) (type*)Emalloc((num)*sizeof(type))
 #define EREALLOC(type, ptr, num) (type*)Erealloc(ptr, (num)*sizeof(type))
diff --git a/src/util.h b/src/util.h
index 880f5b98..99e4e240 100644
--- a/src/util.h
+++ b/src/util.h
@@ -73,11 +73,7 @@ const char     *Estrcasestr(const char *haystack, const char *needle);
 #define Ecalloc     calloc
 #define Emalloc     malloc
 #define Erealloc    realloc
-#if HAVE_FREE_NULL_BUG
-#define Efree(p)    if (p) free(p)
-#else
 #define Efree       free
-#endif
 
 void           *Ememdup(const void *ptr, unsigned int len);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to