summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glX_proto_send.py
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-02-01 00:28:47 +0000
committerIan Romanick <[email protected]>2005-02-01 00:28:47 +0000
commitc2803587b6f2533514e1cfa9793d0a448e9c2c85 (patch)
tree19447b3f3e222b1280b5e7e9088b17ec3eafb959 /src/mesa/glapi/glX_proto_send.py
parentba09c19ed65051cd9244c8a5ff380d08e7db1aed (diff)
Small refactor. Move several utility functions from glX_XML.py to
FilterGLAPISpecBase (in gl_XML.py). When these functions are used to emit common #define lines, the will automatically be undefined in FilterGLAPISpecBase::printFooter if header_tag is set (i.e., the file is a header file). These changes do not modify the generated code.
Diffstat (limited to 'src/mesa/glapi/glX_proto_send.py')
-rw-r--r--src/mesa/glapi/glX_proto_send.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mesa/glapi/glX_proto_send.py b/src/mesa/glapi/glX_proto_send.py
index 146d6620790..949a0c94334 100644
--- a/src/mesa/glapi/glX_proto_send.py
+++ b/src/mesa/glapi/glX_proto_send.py
@@ -126,8 +126,8 @@ class PrintGlxProtoStubs(glX_XML.GlxProto):
print ''
print '#define __GLX_PAD(n) (((n) + 3) & ~3)'
print ''
- glX_XML.printFastcall()
- glX_XML.printNoinline()
+ self.printFastcall()
+ self.printNoinline()
print ''
print '#if !defined __GNUC__ || __GNUC__ < 3'
print '# define __builtin_expect(x, y) x'
@@ -769,11 +769,7 @@ class PrintGlxProtoInit_h(glX_XML.GlxProto):
* \\author Ian Romanick <[email protected]>
*/
"""
- glX_XML.printVisibility( "HIDDEN", "hidden" )
-
-
- def printRealFooter(self):
- print "# undef HIDDEN"
+ self.printVisibility( "HIDDEN", "hidden" )
def printFunction(self, f):