projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d986cb7
)
glapi: glX_proto_recv.py: Use a main function
author
Dylan Baker
<baker.dylan.c@gmail.com>
Wed, 20 May 2015 22:20:09 +0000
(15:20 -0700)
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/glX_proto_recv.py
patch
|
blob
|
history
diff --git
a/src/mapi/glapi/gen/glX_proto_recv.py
b/src/mapi/glapi/gen/glX_proto_recv.py
index dbc26a8eb03aca6ecaedf18c486cc4952280cf12..da468dc587665e4bfaa620a0b1ce278044480da0 100644
(file)
--- a/
src/mapi/glapi/gen/glX_proto_recv.py
+++ b/
src/mapi/glapi/gen/glX_proto_recv.py
@@
-545,7
+545,8
@@
def _parser():
return parser.parse_args()
-if __name__ == '__main__':
+def main():
+ """Main function."""
args = _parser()
if args._mode == "dispatch_c":
@@
-557,3
+558,7
@@
if __name__ == '__main__':
args.filename, glX_proto_common.glx_proto_item_factory())
printer.Print(api)
+
+
+if __name__ == '__main__':
+ main()