On Mon, Dec 1, 2008 at 9:31 PM, Lisandro Dalcin <[EMAIL PROTECTED]> wrote:
> Hi, David. Did you tried latest release,
> http://cython.org/Cython-0.10.2.tar.gz ? It contains fixes for
> recursive typedef struct. Please, give a try a let us know of any
> problem.
>

Yes, I use 0.10.2. I upgraded because indeed, before, the following
did not work:

cdef struct foo:
    foo *foo
ctypdef foo foo_t

It works on 0.10.2. But my problem is slightly different:

cdef struct foo:
    foo_t *foo
ctypdef foo foo_t

Notice how the recursive is referenced through a typedef. In C, this
is solved by forward declaring the struct through a typedef before the
struct declaration. But AFAIK, you can't do that in cython.

My question may be stupid: I know nothing about parsing languages, and
maybe this is just a problem in my own code generator which is
"hand-built" from the AST given by gccxml.

cheers,

David
_______________________________________________
Cython-dev mailing list
Cython-dev@codespeak.net
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to