From: Dylan Baker Date: Wed, 20 May 2015 22:51:40 +0000 (-0700) Subject: glapi: glX_proto_size.py: use a main function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f823cc55a15bc0b54d09e2c3fb5944a645b09e4;p=mesa.git glapi: glX_proto_size.py: use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- diff --git a/src/mapi/glapi/gen/glX_proto_size.py b/src/mapi/glapi/gen/glX_proto_size.py index 59f65d49ce0..75fc26f5db0 100644 --- a/src/mapi/glapi/gen/glX_proto_size.py +++ b/src/mapi/glapi/gen/glX_proto_size.py @@ -684,7 +684,8 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() if args.mode == "size_c": @@ -701,3 +702,7 @@ if __name__ == '__main__': api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main()