From: Dylan Baker Date: Wed, 20 May 2015 22:20:09 +0000 (-0700) Subject: glapi: glX_proto_recv.py: Use a main function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c7cc67778073fd802773390da55980702637547;p=mesa.git glapi: glX_proto_recv.py: Use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- diff --git a/src/mapi/glapi/gen/glX_proto_recv.py b/src/mapi/glapi/gen/glX_proto_recv.py index dbc26a8eb03..da468dc5876 100644 --- 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()