X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=wrappers%2Ftrace.py;h=10f71a4dc7a32362dfafe3d96d68705ed3578db8;hb=a78c14780294e326d79f3968f82de1e7bab412c2;hp=adfc764bff3259df9d12cff8783a721e564f0acb;hpb=712cc1db47e56a1032dc72d4209ffc9054ec54e4;p=apitrace 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):