Re: Converting c header file to a python file

2008-12-11 Thread Gabriel Genellina
En Thu, 11 Dec 2008 10:28:21 -0200, tarun escribió: 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: Locate h2py.py somewhere in your Python distribution. From the comments: # Read #define's and trans

Converting c header file to a python file

2008-12-11 Thread tarun
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__