Any c header parser for generate ctypes module?
Diez B. Roggisch
deets at nospam.web.de
Mon Mar 9 15:14:19 CET 2009
Victor Lin wrote:
> I am writing python binding for some c library. It is really a super
> boring job. Copy... paste... modify.. copy paste...modify.... I am
> wondering, I am a programmer, why I can't do this job like a
> programmer? So I think the best way to write binding for those c
> libraries, is to write a parser that parse header of c library and
> generate ctypes python module automatically. My question is, is there
> any available tools can achieve this? If not, what tool can I use to
> such a job easily. I need a c parser, is there any C parser written in
GCCXML is usually used to create ctypes-structures from headers.
More information about the Python-list