From f0f623ddc0f0cc6b647ed432af23bb8564fb4f5c Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 8 Jul 2010 13:07:17 +0200 Subject: codegen: No SPICE_ADDRESS types left, drop @c_ptr --- python_modules/ptypes.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'python_modules/ptypes.py') 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 -- cgit