cournape/cython-codegen — Issue #4: looks like crashing on union
Author: h4ck3rm1k3
Created: 2012-03-07 07:26:13+00:00
State: open

Not handled:
Traceback (most recent call last):
File "/usr/local/bin/xml2cython.py", line 165, in
sys.exit(main())
File "/usr/local/bin/xml2cython.py", line 148, in main
ffilter=ffilter, funcs_list=funcs)
File "/usr/local/bin/xml2cython.py", line 71, in generate_main
generate_cython(output, gen, anoenumvals)
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/cycodegen.py", line 12, in generate_cython
cython_code = [cy_generate(i) for i in genitems]
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/cycodegen.py", line 73, in cy_generate
return cy_generate_typedef(item)
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/cycodegen.py", line 32, in cy_generate_typedef
return ["ctypedef %s" % (named_pointer_decl(item.typ) % item.name)]
File "/usr/local/lib/python2.7/dist-packages/cycodegenlib/funcs.py", line 67, in named_pointer_decl
return generic_decl(tp.typ) + ' * %s'
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'