From c2803587b6f2533514e1cfa9793d0a448e9c2c85 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 1 Feb 2005 00:28:47 +0000 Subject: 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. --- src/mesa/glapi/glX_proto_send.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/mesa/glapi/glX_proto_send.py') diff --git a/src/mesa/glapi/glX_proto_send.py b/src/mesa/glapi/glX_proto_send.py index 146d662079..949a0c9433 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 */ """ - glX_XML.printVisibility( "HIDDEN", "hidden" ) - - - def printRealFooter(self): - print "# undef HIDDEN" + self.printVisibility( "HIDDEN", "hidden" ) def printFunction(self, f): -- cgit v1.2.3