[Pyrex] Arrays in structures
Georg Grabler
ggrabler at gmail.com
Sun May 27 10:07:02 UTC 2007
Hello,
Is there any way to define a normal array in a c structure binding?
cdef extern from "limits.h"
cdef int PATH_MAX
cdef extern from "test.h"
cdef struct __test
char name[PATH_MAX]
The problems here:
I don't know if PATH_MAX is imported properly. It seems to be some #define out
of the limits.h.
Also, the error i get is in char name[PATH_MAX]:
Not allowed in a constant expression.
Any hints for this?
--
Yours,
Georg (STiAT)
More information about the Pyrex
mailing list