summaryrefslogtreecommitdiff
path: root/src/mesa/main/macros.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-10-13 18:42:49 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-10-13 18:42:49 +0000
commitbd5cdaf4442872d3cd2ff94eeafadd481d27fcfb (patch)
tree0adfaaa95b9d0b5334a7a45e3599ef905b188bb2 /src/mesa/main/macros.h
parent1a3b8ffe01a3844d990627db3d5f2f04006f17eb (diff)
removed GL_ prefix from memory macros
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r--src/mesa/main/macros.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h
index 8c4f8738a9..a9443c5c60 100644
--- a/src/mesa/main/macros.h
+++ b/src/mesa/main/macros.h
@@ -1,4 +1,4 @@
-/* $Id: macros.h,v 1.4 1999/10/11 04:22:57 joukj Exp $ */
+/* $Id: macros.h,v 1.5 1999/10/13 18:42:50 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -485,20 +485,20 @@ do { \
* XXX these should probably go into a new glmemory.h file.
*/
#ifdef DEBUG
-extern void *gl_alloc(size_t bytes);
+extern void *gl_malloc(size_t bytes);
extern void *gl_calloc(size_t bytes);
extern void gl_free(void *ptr);
-#define GL_ALLOC(BYTES) gl_alloc(BYTES)
-#define GL_CALLOC(BYTES) gl_calloc(BYTES)
-#define GL_ALLOC_STRUCT(T) (struct T *) GL_ALLOC(sizeof(struct T))
-#define GL_CALLOC_STRUCT(T) (struct T *) GL_CALLOC(sizeof(struct T))
-#define GL_FREE(PTR) gl_free(PTR)
+#define MALLOC(BYTES) gl_malloc(BYTES)
+#define CALLOC(BYTES) gl_calloc(BYTES)
+#define MALLOC_STRUCT(T) (struct T *) gl_malloc(sizeof(struct T))
+#define CALLOC_STRUCT(T) (struct T *) gl_calloc(sizeof(struct T))
+#define FREE(PTR) gl_free(PTR)
#else
-#define GL_ALLOC(BYTES) (void *) malloc(BYTES)
-#define GL_CALLOC(BYTES) (void *) calloc(1, BYTES)
-#define GL_ALLOC_STRUCT(T) (struct T *) malloc(sizeof(struct T))
-#define GL_CALLOC_STRUCT(T) (struct T *) calloc(1,sizeof(struct T))
-#define GL_FREE(PTR) free(PTR)
+#define MALLOC(BYTES) (void *) malloc(BYTES)
+#define CALLOC(BYTES) (void *) calloc(1, BYTES)
+#define MALLOC_STRUCT(T) (struct T *) malloc(sizeof(struct T))
+#define CALLOC_STRUCT(T) (struct T *) calloc(1,sizeof(struct T))
+#define FREE(PTR) free(PTR)
#endif