From 3317cea0488075f291744ebc4eaa48fc73d293de Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 10 Feb 2015 10:57:08 -0800 Subject: [PATCH] glapi: gl_apitemp.py: Use a main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- src/mapi/glapi/gen/gl_apitemp.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_apitemp.py b/src/mapi/glapi/gen/gl_apitemp.py index 7647428b331..5e985a2ecac 100644 --- a/src/mapi/glapi/gen/gl_apitemp.py +++ b/src/mapi/glapi/gen/gl_apitemp.py @@ -317,10 +317,15 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer = PrintGlOffsets(args.es) printer.Print(api) + + +if __name__ == '__main__': + main() -- 2.30.2