projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24ec03b
)
glapi: gl_apitemp.py: Use a main function
author
Dylan Baker
<baker.dylan.c@gmail.com>
Tue, 10 Feb 2015 18:57:08 +0000
(10:57 -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_apitemp.py
patch
|
blob
|
history
diff --git
a/src/mapi/glapi/gen/gl_apitemp.py
b/src/mapi/glapi/gen/gl_apitemp.py
index 7647428b3315bd712bfb386babe584750673acec..5e985a2ecac60658ca42974e7b07054e6b62d898 100644
(file)
--- a/
src/mapi/glapi/gen/gl_apitemp.py
+++ b/
src/mapi/glapi/gen/gl_apitemp.py
@@
-317,10
+317,15
@@
def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main function."""
args = _parser()
api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
printer = PrintGlOffsets(args.es)
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()