# Construct a C array type.
if base_type is c_char_type:
return CCharArrayType(size)
+ elif base_type is error_type:
+ return error_type
else:
return CArrayType(base_type, size)
# Construct a C pointer type.
if base_type is c_char_type:
return c_char_ptr_type
+ elif base_type is error_type:
+ return error_type
else:
return CPtrType(base_type)
void v, # incomplete argument type
int a[]):
pass
+
+cdef NoSuchType* ptr
+ptr = None # This should not produce another error
_ERRORS = u"""
3:19: Python object cannot be declared extern
19:1: Use spam() rather than spam(void) to declare a function with no arguments.
18:7: Argument type 'Grail' is incomplete
19:1: Invalid use of 'void'
+23:5: 'NoSuchType' is not a type identifier
"""