diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-05 12:03:34 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-05 12:03:34 +0200 |
commit | 4a60f1822a356e4e1e2d7ecd2d18f4e3fce48f85 (patch) | |
tree | 984567a8ef042ae63dbe36a9c4a386e850afe33d /python_modules/marshal.py | |
parent | 3764a3647224a5e9dde021828d3b17fe5fc9fdeb (diff) | |
download | spice-4a60f1822a356e4e1e2d7ecd2d18f4e3fce48f85.tar.gz spice-4a60f1822a356e4e1e2d7ecd2d18f4e3fce48f85.tar.xz spice-4a60f1822a356e4e1e2d7ecd2d18f4e3fce48f85.zip |
marshaller: Add generic way to handle propagating attributes
Also switches @ptr_array to use this
Diffstat (limited to 'python_modules/marshal.py')
-rw-r--r-- | python_modules/marshal.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python_modules/marshal.py b/python_modules/marshal.py index 95413fcc..f151d948 100644 --- a/python_modules/marshal.py +++ b/python_modules/marshal.py @@ -186,13 +186,13 @@ def write_array_marshaller(writer, at_end, member, array, container_src, scope): element = "%s__element" % member.name if not scope.variable_defined(element): - if array.ptr_array: + if array.has_attr("ptr_array"): stars = " **" else: stars = " *" scope.variable_def(element_type.c_type() + stars, element) element_array = element - if array.ptr_array: + if array.has_attr("ptr_array"): element = "*" + element if not at_end: |