From: Dylan Baker Date: Fri, 13 Feb 2015 23:54:17 +0000 (-0800) Subject: glapi: gl_SPARC_asm.py: use main function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=952bd305c6862113c60d3b62402fc5a32dbb65ca;p=mesa.git glapi: gl_SPARC_asm.py: use main function Signed-off-by: Dylan Baker Acked-by: Matt Turner --- diff --git a/src/mapi/glapi/gen/gl_SPARC_asm.py b/src/mapi/glapi/gen/gl_SPARC_asm.py index df7a039f51e..fa6217e1b8f 100644 --- a/src/mapi/glapi/gen/gl_SPARC_asm.py +++ b/src/mapi/glapi/gen/gl_SPARC_asm.py @@ -255,9 +255,14 @@ def _parser(): return parser.parse_args() -if __name__ == '__main__': +def main(): + """Main function.""" args = _parser() printer = PrintGenericStubs() api = gl_XML.parse_GL_API(args.filename, glX_XML.glx_item_factory()) printer.Print(api) + + +if __name__ == '__main__': + main()