diff options
author | Ian Romanick <[email protected]> | 2005-01-28 19:00:54 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-01-28 19:00:54 +0000 |
commit | 16c3c7401846bbc7c300e6a9b433584ec5b68699 (patch) | |
tree | b34e784e5b84cf802a50fae6d1544aae4bd28b14 /src/mesa/glapi/glX_proto_send.py | |
parent | 8d27148bbd13fbc8192f9c5aeeb9b39b92f1045d (diff) |
Refactor the code to emit multiple-inclusion protection to
FilterGLAPISpecBase. Since the size_h mode of glX_proto_size.py will be
used to generate multiple header files, add an option to specify the define
that is used for multiple-inclusion protection.
The changes to the header files in this commit are just a side-effect of the
changes to the Python scripts.
Diffstat (limited to 'src/mesa/glapi/glX_proto_send.py')
-rw-r--r-- | src/mesa/glapi/glX_proto_send.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mesa/glapi/glX_proto_send.py b/src/mesa/glapi/glX_proto_send.py index 7216b699720..146d6620790 100644 --- a/src/mesa/glapi/glX_proto_send.py +++ b/src/mesa/glapi/glX_proto_send.py @@ -758,28 +758,23 @@ class PrintGlxProtoInit_h(glX_XML.GlxProto): self.license = license.bsd_license_template % ( \ """Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas. (C) Copyright IBM Corporation 2004""", "PRECISION INSIGHT, IBM") - + self.header_tag = "_INDIRECT_H_" def printRealHeader(self): - print """ -/** + print """/** * \\file * Prototypes for indirect rendering functions. * * \\author Kevin E. Martin <[email protected]> * \\author Ian Romanick <[email protected]> */ - -#if !defined( _INDIRECT_H_ ) -# define _INDIRECT_H_ - """ glX_XML.printVisibility( "HIDDEN", "hidden" ) def printRealFooter(self): print "# undef HIDDEN" - print "#endif /* !defined( _INDIRECT_H_ ) */" + def printFunction(self, f): if f.fn_offset < 0 or f.ignore: return |