projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e3da44
)
glapi: gl_x86-64_asm.py: Use a main function
author
Dylan Baker
<baker.dylan.c@gmail.com>
Thu, 12 Feb 2015 22:05:46 +0000
(14:05 -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_x86-64_asm.py
patch
|
blob
|
history
diff --git
a/src/mapi/glapi/gen/gl_x86-64_asm.py
b/src/mapi/glapi/gen/gl_x86-64_asm.py
index 018896403d5910ee50603ae5a985328e03c0f6da..cf42371f8c3b8ea022866e4b4f423bffddd8b61b 100644
(file)
--- a/
src/mapi/glapi/gen/gl_x86-64_asm.py
+++ b/
src/mapi/glapi/gen/gl_x86-64_asm.py
@@
-302,9
+302,14
@@
def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main file."""
args = _parser()
printer = PrintGenericStubs()
api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory())
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()