Menu

#1352 Static arrays inside C-Structs, CFFI

None
closed-wont-fix
5
2019-02-05
2013-12-22
No

I was trying to generate bindings for a C-struct with a statically declared array, something quite like,

struct astruct{
int x[10];}

SWIG seems to think that "x" in the struct is a pointer, which is not correct, because
there is no dereferencing involved. SWIG generates,
(cffi:defcstruct astruct
(x :pointer))

It should however have been,
(cffi:defcstruct astruct
(x :int :count 10))

I'm not sure if this is backend specific.

Discussion

  • William Fulton

    William Fulton - 2019-02-05
    • status: open --> closed-wont-fix
    • assigned_to: William Fulton
    • Group: -->
     
  • William Fulton

    William Fulton - 2019-02-05

    Closing all open CFFI issues as CFFI has been disabled, please see https://github.com/swig/swig/issues/1447

     

Log in to post a comment.