From c6af5e9b967797d315037b26aa05fec5b3e6ef44 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 20 Jun 2009 00:22:39 +0000 Subject: unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over the place anyway, this makes things a bit more consistent; from Thomas Pfaff ok oga@ --- calmwm.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index f0717fc..e972452 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.h,v 1.91 2009/06/17 12:30:17 okan Exp $ + * $Id: calmwm.h,v 1.92 2009/06/20 00:22:39 okan Exp $ */ #ifndef _CALMWM_H_ @@ -395,9 +395,6 @@ void *xmalloc(size_t); void *xcalloc(size_t, size_t); char *xstrdup(const char *); -#define XMALLOC(p, t) ((p) = (t *)xmalloc(sizeof * (p))) -#define XCALLOC(p, t) ((p) = (t *)xcalloc(1, sizeof * (p))) - struct screen_ctx *screen_fromroot(Window); struct screen_ctx *screen_current(void); void screen_updatestackingorder(void); -- cgit v1.2.3-2-gb3c3