summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDylan Baker <baker.dylan.c@gmail.com>2015-05-20 15:51:40 -0700
committerMatt Turner <mattst88@gmail.com>2015-05-22 11:31:28 -0700
commit3f823cc55a15bc0b54d09e2c3fb5944a645b09e4 (patch)
treed03493c666c7a45ca9207a3f2ebe190bb230c595 /src
parent9ace0b542241c77ae82a0835ac8a09e2a7510eaf (diff)
downloadexternal_mesa3d-3f823cc55a15bc0b54d09e2c3fb5944a645b09e4.zip
external_mesa3d-3f823cc55a15bc0b54d09e2c3fb5944a645b09e4.tar.gz
external_mesa3d-3f823cc55a15bc0b54d09e2c3fb5944a645b09e4.tar.bz2
glapi: glX_proto_size.py: use a main function
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mapi/glapi/gen/glX_proto_size.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/glX_proto_size.py b/src/mapi/glapi/gen/glX_proto_size.py
index 59f65d4..75fc26f 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()