From: José Fonseca Date: Sat, 20 Jul 2013 13:05:10 +0000 (+0100) Subject: wgltrace: Prevent duplicate variable declaration. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=a78c14780294e326d79f3968f82de1e7bab412c2 wgltrace: Prevent duplicate variable declaration. --- diff --git a/wrappers/trace.py b/wrappers/trace.py index adfc764..10f71a4 100644 --- a/wrappers/trace.py +++ b/wrappers/trace.py @@ -213,6 +213,7 @@ class ValueSerializer(stdapi.Visitor, stdapi.ExpanderMixin): # determine the array length which must be passed to writeArray() up front count = '_c' + array.keyType.tag + print ' {' print ' int %s;' % count print ' for (%(c)s = 0; %(array)s && %(array)s[%(c)s] != %(terminator)s; %(c)s += 2) {' \ % {'c': count, 'array': instance, 'terminator': array.terminator} @@ -265,6 +266,7 @@ class ValueSerializer(stdapi.Visitor, stdapi.ExpanderMixin): print ' }' print ' }' print ' trace::localWriter.endArray();' + print ' }' def visitBlob(self, blob, instance):