diff options
author | Alexander Larsson <alexl@redhat.com> | 2010-07-08 13:07:17 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2010-07-08 13:07:17 +0200 |
commit | f0f623ddc0f0cc6b647ed432af23bb8564fb4f5c (patch) | |
tree | 64d4f821462c4466ead3d6c2cefb178a59e9ea36 /python_modules/ptypes.py | |
parent | 31d2d6e4e485f1addece7139c82b4f3e64b1bd91 (diff) | |
download | spice-f0f623ddc0f0cc6b647ed432af23bb8564fb4f5c.tar.gz spice-f0f623ddc0f0cc6b647ed432af23bb8564fb4f5c.tar.xz spice-f0f623ddc0f0cc6b647ed432af23bb8564fb4f5c.zip |
codegen: No SPICE_ADDRESS types left, drop @c_ptr
Diffstat (limited to 'python_modules/ptypes.py')
-rw-r--r-- | python_modules/ptypes.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python_modules/ptypes.py b/python_modules/ptypes.py index 715544fb..5e18aa33 100644 --- a/python_modules/ptypes.py +++ b/python_modules/ptypes.py @@ -60,7 +60,7 @@ class FixedSize: # only to attributes that affect pointer or array attributes, as these # are member local types, unlike e.g. a Struct that may be used by # other members -propagated_attributes=["ptr_array", "c_ptr", "nonnull", "chunk"] +propagated_attributes=["ptr_array", "nonnull", "chunk"] class Type: def __init__(self): @@ -469,7 +469,10 @@ class PointerType(Type): return self.pointer_size def c_type(self): - return "SPICE_ADDRESS" + if self.pointer_size == 4: + return "uint32_t" + else: + return "uint64_t" def has_pointer(self): return True |