gallium: Define MALLOC_STRUCT.

This commit is contained in:
José Fonseca
2008-01-25 19:33:58 +09:00
parent 9cbff50cb8
commit 7411a84c2b

View File

@@ -108,6 +108,8 @@ REALLOC( void *old_ptr, unsigned old_size, unsigned new_size )
#endif /* WIN32 */
#define MALLOC_STRUCT(T) (struct T *) MALLOC(sizeof(struct T))
#define CALLOC_STRUCT(T) (struct T *) CALLOC(1, sizeof(struct T))