]> git.cworth.org Git - apitrace/blobdiff - specs/scripts/glspec.py
Don't abuse double-underscore prefix.
[apitrace] / specs / scripts / glspec.py
index ab5957a7d19d4dba78d849cfd366743503cf295d..1511bf3b26568833984529deffc7b7deaf1f57c9 100755 (executable)
@@ -238,7 +238,7 @@ class SpecParser(LineParser):
                         length = "%s" % length
                     arg_type = '%s(%s, %s)' % (constructor, base_type, length)
                 else:
-                    length = length.replace("COMPSIZE", "__%s_size" % function_name)
+                    length = length.replace("COMPSIZE", "_%s_size" % function_name)
                     length = length.replace("/", ", ")
                     arg_type = 'Opaque%s(%s, %s)' % (constructor, base_type, length)
         else: