Issue #39 resolved

array defined in struct type is not supported in cffi under pypy but supported under cpython?

liuzhenhai
created an issue
from cffi import FFI
ffi=FFI()
ffi.cdef('''
typedef struct
{
char a[10];
}mytype;
mytype f();
''')
lib=ffi.verify('''
typedef struct
{
char a[10];
}mytype;
mytype f()
{
mytype a;
return a;
}
''')
lib.f()

it works fine under cpython's cffi but it raise NotImplentedError under pypy in windows. it says that <mytype(*)(void)>: ctype 'char[10]' (size 10) not supported as argument. Is it the right behaviour for now?

Comments (4)

  1. Log in to comment