2 May 2005 00:11
Bug in gccxmlparser.py, assumes size and align attributes on pointers
Mike C. Fletcher <mcfletch <at> rogers.com>
2005-05-01 22:11:18 GMT
2005-05-01 22:11:18 GMT
At line 143 and 135 in gccxmlparser there's an assumption made that all
pointer types will have a defined size attribute. Similarly it's
assumed that all pointer types have "align" defined on lines 144 and
136. This prevents the gl.h header from being converted to a Python
file on Linux. I just substituted the calls with size = attrs.get(
'size', 0) and align = attrs.get("align",0), but I'm not sure if that's
the correct default value.
Of course, once I get that done, xml2py doesn't produce any *output*,
but that's probably me messing something up in how I'm calling it:
mcfletch <at> raistlin:~/pylive/OpenGLct$ python ../ctypes/wrap/xml2py.py
gl.xml -o gl.py -kf -v
###########################
# Symbols defined:
#
# Variables: 0
# Struct/Unions: 0
# Functions: 0
# Enums: 0
# Enum values: 0
# Typedefs: 0
# Pointertypes: 0
# Arraytypes: 0
# unknown functions: 478
#
# Total symbols: 0
###########################
needed 1 loop(s)
(Continue reading)
RSS Feed