diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-05 12:03:34 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-03-20 15:25:47 +0100 |
commit | fefc89c6c45a5371be611c83e570d9f3fbc7fe75 (patch) | |
tree | e1100913ef2dc767e3f06a856b91f438f979fdb7 /python_modules/marshal.py | |
parent | 6228ae633e58f484f0da5cc20dcfbf42ead4859b (diff) | |
download | spice-protocol-fefc89c6c45a5371be611c83e570d9f3fbc7fe75.tar.gz spice-protocol-fefc89c6c45a5371be611c83e570d9f3fbc7fe75.tar.xz spice-protocol-fefc89c6c45a5371be611c83e570d9f3fbc7fe75.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 95413fc..f151d94 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: |