projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36fa44
)
glapi: gl_gentable.py: use a main function
author
Dylan Baker
<baker.dylan.c@gmail.com>
Tue, 10 Feb 2015 22:33:12 +0000
(14:33 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Fri, 22 May 2015 18:31:27 +0000
(11:31 -0700)
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
src/mapi/glapi/gen/gl_gentable.py
patch
|
blob
|
history
diff --git
a/src/mapi/glapi/gen/gl_gentable.py
b/src/mapi/glapi/gen/gl_gentable.py
index 5ef5a75fc17a576a8deb4b63cce569140ebc5794..1b3eb72470d06ae36b6276e451ff2bab84545ce7 100644
(file)
--- a/
src/mapi/glapi/gen/gl_gentable.py
+++ b/
src/mapi/glapi/gen/gl_gentable.py
@@
-200,10
+200,15
@@
def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main function."""
args = _parser()
printer = PrintCode()
api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()