Does anyone know a spiffy way to use C header files in Python? For example I have a C program that includes a global variable:
typedef struct ImageInfo
{
For the same purpose I'm considering pyclibrary,
it is not a complete C parser but it is aimed at parsing C header files, so it is much easier to use than pycparser or some gccxml-based parser: although weakly documented, just try CParser.py testHeader.h
and you'll see how it works.
Depends on pyparsing and, as far as I understand, it is pure python.