summaryrefslogtreecommitdiff
path: root/src/mesa/main/enums.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-10-24 23:57:19 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-10-24 23:57:19 +0000
commit3c63452e64df7e10aa073c6c3b9492b1d7dabbb8 (patch)
tree87cc7c71b05da7a19f914368ded66e7bb8c00e8e /src/mesa/main/enums.c
parentd0add7cf1a6b99cafd25e23fe2fc9d0b6657079a (diff)
Header file clean-up:
1. Remove all.h and PC_HEADER junk. 2. Rolled mem.c and mem.h into imports.c and imports.h 3. Include imports.h instead of mem.h Restore _mesa_create/initialize_context() to be like they were in 4.0.4 New wrappers for a few std C functions: _mesa_atoi(), _mesa_strstr(), etc.
Diffstat (limited to 'src/mesa/main/enums.c')
-rw-r--r--src/mesa/main/enums.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/main/enums.c b/src/mesa/main/enums.c
index 93abf2ab5f..f7a3e439ab 100644
--- a/src/mesa/main/enums.c
+++ b/src/mesa/main/enums.c
@@ -1,4 +1,4 @@
-/* $Id: enums.c,v 1.21 2002/06/29 19:48:15 brianp Exp $ */
+/* $Id: enums.c,v 1.22 2002/10/24 23:57:20 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -28,14 +28,9 @@
*/
-#ifdef PC_HEADER
-#include "all.h"
-#else
#include "glheader.h"
#include "enums.h"
#include "imports.h"
-#include "mem.h"
-#endif
typedef struct {
@@ -929,7 +924,7 @@ const char *_mesa_lookup_enum_by_nr( int nr )
}
else {
/* this isn't re-entrant safe, no big deal here */
- _mesa_sprintf(NULL, token_tmp, "0x%x", nr);
+ _mesa_sprintf(token_tmp, "0x%x", nr);
return token_tmp;
}
}