From 590f610d6b79d4bec993e03bebf7d0850b470f6d Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Mon, 20 Feb 2006 20:41:40 +0000 Subject: dropped the MALLOC macro --- lib/libalpm/util.h | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'lib/libalpm/util.h') diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 225820e1..7b24961c 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -23,17 +23,6 @@ #include -#define MALLOC(p, b) { \ - if((b) > 0) { \ - p = malloc(b); \ - if (!(p)) { \ - fprintf(stderr, "malloc failure: could not allocate %d bytes\n", (b)); \ - exit(1); \ - } \ - } else { \ - p = NULL; \ - } \ -} #define FREE(p) do { if (p) { free(p); p = NULL; } } while(0) #define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0) -- cgit v1.2.3-54-g00ecf