X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=specs%2Fscripts%2Fglspec.py;h=f21b08d5bf82f6670ecea07a44a77d537cfc4f24;hb=9243aa6a122ded81ea0f07bcc1b0c4e0ef57c398;hp=1511bf3b26568833984529deffc7b7deaf1f57c9;hpb=632a78d5c90941c896fa3c7156131f27c5a58b24;p=apitrace diff --git a/specs/scripts/glspec.py b/specs/scripts/glspec.py index 1511bf3..f21b08d 100755 --- a/specs/scripts/glspec.py +++ b/specs/scripts/glspec.py @@ -235,12 +235,16 @@ class SpecParser(LineParser): try: int(length) except ValueError: - length = "%s" % length + length = '"%s"' % length arg_type = '%s(%s, %s)' % (constructor, base_type, length) else: - length = length.replace("COMPSIZE", "_%s_size" % function_name) - length = length.replace("/", ", ") - arg_type = 'Opaque%s(%s, %s)' % (constructor, base_type, length) + if length == "COMPSIZE(pname)": + length = "_gl_param_size(pname)" + arg_type = '%s(%s, "%s")' % (constructor, base_type, length) + else: + length = length.replace("COMPSIZE", "_%s_size" % function_name) + length = length.replace("/", ", ") + arg_type = 'Opaque%s(%s, "%s")' % (constructor, base_type, length) else: assert False