From: Brian Paul Date: Thu, 10 Apr 2014 01:35:27 +0000 (-0600) Subject: mesa: remove the MALLOC, CALLOC and FREE macros X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5206d4bc09a0e2be0e9bb91b4610455af25ca428;p=mesa.git mesa: remove the MALLOC, CALLOC and FREE macros No longer used anywhere. These also caused trouble in the Gallium state tracker code where we include both core Mesa and Gallium util headers (and the macros were defined differently in each world.) Removing these macros should help avoid macro mix-ups in the future. Reviewed-by: Jakob Bornecrantz Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 9e221cccb1e..17a9bd09986 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -49,16 +49,10 @@ extern "C" { /** Memory macros */ /*@{*/ -/** Allocate \p BYTES bytes */ -#define MALLOC(BYTES) malloc(BYTES) -/** Allocate and zero \p BYTES bytes */ -#define CALLOC(BYTES) calloc(1, BYTES) /** Allocate a structure of type \p T */ #define MALLOC_STRUCT(T) (struct T *) malloc(sizeof(struct T)) /** Allocate and zero a structure of type \p T */ #define CALLOC_STRUCT(T) (struct T *) calloc(1, sizeof(struct T)) -/** Free memory */ -#define FREE(PTR) free(PTR) /*@}*/