Hi John, On 27 June 2016 at 04:31, John Zhang <[email protected]> wrote: > I’m using RFFI to reflect a C API interface that my colleague has developed. > During this process I encountered the problem of not knowing how to define a > recursive struct definition. > e.g. How do I define a struct like the following: > typedef struct A A; > struct A { > … > void (*fn) (A*); > }
See lltype.ForwardReference(), e.g. in translator/c/test/test_genc.py . A bientôt, Armin. _______________________________________________ pypy-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-dev
