Cannot get functions out of xml2py
Reuben Thomas <[email protected]> Wed, 12 Jan 2011 22:16:32 +0000
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm using ctypeslib 0.5.6 on GNU/Linux Ubuntu maverick (where it is called version 0.0.0+svn20100125), and it is mostly working fine, but I cannot make it give me any function definitions. I have gccxml 0.9.0+cvs20100501. Here's a minimal example: int foo(void); If I put this in foo.h and run h2xml `pwd`/foo.h -o foo.xml xml2py foo.xml -v then I get: from ctypes import * __all__ = [] ########################### # Symbols defined: # # Variables: 0 # Struct/Unions: 0 # Functions: 0 # Enums: 0 # Enum values: 0 # Typedefs: 0 # Pointertypes: 0 # Arraytypes: 0 # unknown functions: 135 # unknown variables: 0 # # Total symbols: 0 ########################### needed 1 loop(s) (I do not include foo.xml as it's 454 lines long) If I explicitly add "-k f" to the options for xml2py, there's no change. However, variables, struct/unions, typedefs, enums and #defines, at least, all come out fine. Any ideas? -- http://rrt.sc3d.org ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl