summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gl_enums.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_enums.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_enums.py')
-rw-r--r--src/mesa/glapi/gl_enums.py15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/mesa/glapi/gl_enums.py b/src/mesa/glapi/gl_enums.py
index 177c95f6edd..615f79729cf 100644
--- a/src/mesa/glapi/gl_enums.py
+++ b/src/mesa/glapi/gl_enums.py
@@ -26,10 +26,6 @@
# Authors:
# Zack Rusin <[email protected]>
-from xml.sax import saxutils
-from xml.sax import make_parser
-from xml.sax.handler import feature_namespaces
-
import license
import gl_XML
import sys, getopt
@@ -235,13 +231,4 @@ if __name__ == '__main__':
file_name = val
dh = PrintGlEnums()
-
- 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 )