From 9097a4a103f2f7abf5af3e1056467c21051405ca Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Feb 2015 15:20:57 -0800 Subject: glapi: glX_proto_send.py: use a main function. Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/glX_proto_send.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/mapi') diff --git a/src/mapi/glapi/gen/glX_proto_send.py b/src/mapi/glapi/gen/glX_proto_send.py index ea766afe80a..2b3303078a2 100644 --- a/src/mapi/glapi/gen/glX_proto_send.py +++ b/src/mapi/glapi/gen/glX_proto_send.py @@ -1107,7 +1107,8 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() if args.mode == "proto": @@ -1121,3 +1122,7 @@ if __name__ == '__main__': api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print( api ) + + +if __name__ == '__main__': + main() -- cgit v1.2.3