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/gl_offsets.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/gl_offsets.py')
-rw-r--r-- | src/mesa/glapi/gl_offsets.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mesa/glapi/gl_offsets.py b/src/mesa/glapi/gl_offsets.py index 3ff27e7d2ad..f5bd7f40ed7 100644 --- a/src/mesa/glapi/gl_offsets.py +++ b/src/mesa/glapi/gl_offsets.py @@ -38,6 +38,7 @@ class PrintGlOffsets(gl_XML.FilterGLAPISpecBase): def __init__(self): gl_XML.FilterGLAPISpecBase.__init__(self) + self.header_tag = '_GLAPI_OFFSETS_H_' self.license = license.bsd_license_template % ( \ """Copyright (C) 1999-2001 Brian Paul All Rights Reserved. (C) Copyright IBM Corporation 2004""", "BRIAN PAUL, IBM") @@ -46,16 +47,6 @@ class PrintGlOffsets(gl_XML.FilterGLAPISpecBase): if f.fn_offset < 0: return print '#define _gloffset_%s %d' % (f.name, f.fn_offset) - def printRealHeader(self): - print '#ifndef _GLAPI_OFFSETS_H_' - print '#define _GLAPI_OFFSETS_H_' - print '' - return - - def printRealFooter(self): - print '' - print '#endif' - return def show_usage(): print "Usage: %s [-f input_file_name]" % sys.argv[0] |