Unifdef HAVE_FREE_NULL_BUG
I doubt it is useful anywhere.
This commit is contained in:
parent
a162d5ab73
commit
0e8f3ec884
|
@ -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))
|
||||
|
|
4
eesh/E.h
4
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))
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue