[pypy-dev] Recursive struct definition in rffi?
John Zhang
John.Zhang at anu.edu.au
Sun Jun 26 22:31:51 EDT 2016
Hi guys,
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*);
}
Help appreciated.
Regards,
John Zhang
------------------------------------------------------
John Zhang
Research Assistant
Programming Languages, Design & Implementation Division
Computer Systems Group
ANU College of Engineering & Computer Science
108 North Rd
The Australian National University
Acton ACT 2601
john.zhang at anu.edu.au<mailto:john.zhang at anu.edu.au>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20160627/091754b2/attachment.html>
More information about the pypy-dev
mailing list