mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 07:20:23 +01:00
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 <jakob@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
7e55050301
commit
5206d4bc09
1 changed files with 0 additions and 6 deletions
|
|
@ -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)
|
||||
|
||||
/*@}*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue