Converting c header file to a python file

tarun tarundevnani at gmail.com
Thu Dec 11 07:28:21 EST 2008


Hello,

I am looking for a tool/utility by which can convert c header file to a
python file. A typical header file that I want convert looks like:

#ifndef __VAR1
#define __VAR1

#define VAR2  "Rev 2"
#define VAR3   2L

typedef struct
{
....
....
}

#if defined(__cplusplus) || defined(__cplusplus__)
extern "C" {
#endif

And also function declarations

Thanks,
Tarun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081211/730679b7/attachment-0001.html>


More information about the Python-list mailing list