mesa: move some glapi bits around
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 13 Jun 2008 22:45:15 +0000 (16:45 -0600)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 22 Sep 2008 05:13:55 +0000 (22:13 -0700)
Move _glapi_proc typedef from glapitable.h to glapi.h
Also, don't include glapitable.h from glapi.h
Before we were including the huge glapitable.h file in every .c file.

src/mesa/glapi/dispatch.h
src/mesa/glapi/gl_table.py
src/mesa/glapi/glapi.h
src/mesa/glapi/glapitable.h
src/mesa/main/blend.c
src/mesa/main/context.c
src/mesa/main/mtypes.h

index 7123156..98f654f 100644 (file)
@@ -28,6 +28,9 @@
 #if !defined( _DISPATCH_H_ )
 #  define _DISPATCH_H_
 
+#include "glapitable.h"
+
+
 /**
  * \file dispatch.h
  * Macros for handling GL dispatch tables.
index 69f7bd7..7023a4b 100644 (file)
@@ -56,7 +56,6 @@ class PrintGlTable(gl_XML.gl_print_base):
                print '# define GLAPIENTRYP GLAPIENTRY *'
                print '#endif'
                print ''
-               print 'typedef void (*_glapi_proc)(void); /* generic function pointer */'
                print ''
                print 'struct _glapi_table'
                print '{'
index ddfb1cf..20d3576 100644 (file)
 
 
 #include "GL/gl.h"
-#include "glapitable.h"
 #include "glthread.h"
 
 
+struct _glapi_table;
+
+typedef void (*_glapi_proc)(void); /* generic function pointer */
+
 typedef void (*_glapi_warning_func)(void *ctx, const char *str, ...);
 
 
index 48941f5..5d9d40a 100644 (file)
@@ -37,7 +37,6 @@
 # define GLAPIENTRYP GLAPIENTRY *
 #endif
 
-typedef void (*_glapi_proc)(void); /* generic function pointer */
 
 struct _glapi_table
 {
index 81bd4c2..742247f 100644 (file)
@@ -36,6 +36,7 @@
 #include "enums.h"
 #include "macros.h"
 #include "mtypes.h"
+#include "glapi/glapitable.h"
 
 
 /**
index 96afbe8..74f0add 100644 (file)
 #include "version.h"
 #include "vtxfmt.h"
 #include "glapi/glthread.h"
+#include "glapi/glapioffsets.h"
+#include "glapi/glapitable.h"
 #if FEATURE_NV_vertex_program || FEATURE_NV_fragment_program
 #include "shader/program.h"
 #endif
index 0a7a930..8670721 100644 (file)
@@ -38,8 +38,7 @@
 #include "glheader.h"
 #include <GL/internal/glcore.h>        /* __GLcontextModes (GLvisual) */
 #include "config.h"            /* Hardwired parameters */
-#include "glapi/glapitable.h"
-#include "glapi/glthread.h"
+#include "glapi/glapi.h"
 #include "math/m_matrix.h"     /* GLmatrix */
 #include "bitset.h"