Recursive struct definition in rffi?

June 27, 2016
2:31 a.m.
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@anu.edu.au<mailto:john.zhang@anu.edu.au>
3187
Age (days ago)
3187
Last active (days ago)
1 comments
2 participants
participants (2)
-
Armin Rigo
-
John Zhang