diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-10-01 20:16:28 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-10-01 20:16:28 +0000 |
commit | 7d83e5c7816b5e343695a75ba58b32dbe1be969a (patch) | |
tree | bfd1dfc9b7c8f4a2aaf66c1b30e78355dee8c88a /malloc.h | |
parent | 762196328ab7e60f1d2908fd5a337d2ca99726dd (diff) |
move all sources down to a seperate src/ tree
git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@34 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce
Diffstat (limited to 'malloc.h')
-rw-r--r-- | malloc.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/malloc.h b/malloc.h deleted file mode 100644 index bcaf53e..0000000 --- a/malloc.h +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef foomallochfoo -#define foomallochfoo - -#include <stdlib.h> -#include <string.h> - -#define sa_malloc malloc -#define sa_free free -#define sa_malloc0(size) calloc(1, (size)) -#define sa_strdup strdup -#define sa_strndup strndup - -void* sa_memdup(const void* p, size_t size); - -#define sa_new(t, n) ((t*) sa_malloc(sizeof(t)*(n))) -#define sa_new0(t, n) ((t*) sa_malloc0(sizeof(t)*(n))) -#define sa_newdup(t, p, n) ((t*) sa_memdup(p, sizeof(t)*(n))) - -#endif |