projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c9fb5
)
glapi: gl_SPARC_asm.py: use main function
author
Dylan Baker
<baker.dylan.c@gmail.com>
Fri, 13 Feb 2015 23:54:17 +0000
(15:54 -0800)
committer
Matt Turner
<mattst88@gmail.com>
Fri, 22 May 2015 18:31:28 +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_SPARC_asm.py
patch
|
blob
|
history
diff --git
a/src/mapi/glapi/gen/gl_SPARC_asm.py
b/src/mapi/glapi/gen/gl_SPARC_asm.py
index df7a039f51e79995e0136e667adbb9197a62e362..fa6217e1b8f7112d90d78bf22e55a7ab0bc1f684 100644
(file)
--- a/
src/mapi/glapi/gen/gl_SPARC_asm.py
+++ b/
src/mapi/glapi/gen/gl_SPARC_asm.py
@@
-255,9
+255,14
@@
def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main function."""
args = _parser()
printer = PrintGenericStubs()
api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()