mesa: remove the MALLOC, CALLOC and FREE macros
authorBrian Paul <brianp@vmware.com>
Thu, 10 Apr 2014 01:35:27 +0000 (19:35 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Apr 2014 13:53:12 +0000 (07:53 -0600)
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 <jakob@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/imports.h

index 9e221cccb1efe08e3cdc02335ae4ebf060968a53..17a9bd09986b2140d95aad8549abbfcf09331126 100644 (file)
@@ -49,16 +49,10 @@ extern "C" {
 /** Memory macros */
 /*@{*/
 
 /** 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))
 /** 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)
 
 /*@}*/
 
 
 /*@}*/