summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gl_offsets.py
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-04-18 19:42:23 +0000
committerIan Romanick <[email protected]>2005-04-18 19:42:23 +0000
commit93d2d54e7a11cf1a01c976ede37db2320ccc2dff (patch)
tree7918b8232796a7480f63e9b57dfd34f87f3a6327 /src/mesa/glapi/gl_offsets.py
parent8ea22650bd2f791f72b9b2970b88236d59234d61 (diff)
Refactor a bunch of common code from the "leaf" scripts to a new functions,
parse_GL_API, in gl_XML.py.
Diffstat (limited to 'src/mesa/glapi/gl_offsets.py')
-rw-r--r--src/mesa/glapi/gl_offsets.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/mesa/glapi/gl_offsets.py b/src/mesa/glapi/gl_offsets.py
index 95657b80e02..f47eaa26b30 100644
--- a/src/mesa/glapi/gl_offsets.py
+++ b/src/mesa/glapi/gl_offsets.py
@@ -25,10 +25,6 @@
# Authors:
# Ian Romanick <[email protected]>
-from xml.sax import saxutils
-from xml.sax import make_parser
-from xml.sax.handler import feature_namespaces
-
import gl_XML
import license
import sys, getopt
@@ -65,13 +61,4 @@ if __name__ == '__main__':
file_name = val
dh = PrintGlOffsets()
-
- parser = make_parser()
- parser.setFeature(feature_namespaces, 1)
- parser.setContentHandler(dh)
-
- f = open(file_name)
-
- dh.printHeader()
- parser.parse(f)
- dh.printFooter()
+ gl_XML.parse_GL_API( dh, file_name )