swig/swig — pull request #190 by enupten (2014-06-17 01:27:16+00:00)
Title: Cffi fix

Attached is a fix for the case when arrays are declared inside structs. For the case:
--------------------------------
struct _vec3 {
double v[3];}
--------------------------------
SWIG currently generates the incorrect FFI code:
--------------------------------
(cffi:defcstruct vec3
(v :pointer))
--------------------------------
instead of:
--------------------------------
(cffi:defcstruct vec3
(v :double :count 3))
--------------------------------
This patch fixes this bug.