--HG--
extra : transplant_source : %01%22lN%B0%1D%B9h%AC%2B4%E1F%7FQ%15%E6%F3%F1%9F
def __init__(self, arg, env):
CoercionNode.__init__(self, arg)
- self.type = self.arg.type
+ self.type = self.arg.type.as_argument_type()
self.constant_result = self.arg.constant_result
self.is_temp = 1
if self.type.is_pyobject:
# as other_type.
#
# as_argument_type():
- # Coerces array type into pointer type for use as
+ # Coerces array and C function types into pointer type for use as
# a formal argument type.
#
else:
return ""
+ def as_argument_type(self):
+ return c_ptr_type(self)
+
def same_c_signature_as(self, other_type, as_cmethod = 0):
return self.same_c_signature_as_resolved_type(
other_type.resolve(), as_cmethod)