Re: [pygccxml-development] What am I doing wrong?
Brought to you by:
mbaas,
roman_yakovenko
From: Neal B. <ndb...@gm...> - 2006-04-18 18:56:55
|
On Tuesday 18 April 2006 2:32 pm, Roman Yakovenko wrote: > I hope this time I provides almost complete fix for the bug. > Description: > > First of all I missed some index operator on attrs - in Python > function, that read C++ function > declaration. > So what happened? For some constructors GCC-XML does not generates > "name" attribute. > I guess he does it for compiler generated constructors or may be for > something else. > I still need to find out. Until now about the problem. Now about a > solution. > > The solution consist from 2 parts: > 1. to modify scanner_t.__read_calldef function: > calldef.name = attrs[ XML_AN_NAME ] ==> calldef.name = > attrs.get(XML_AN_NAME, '') > 2. to modify linker_t.visit_class member function. In this function, > for unnamed constructors > pygccxml will assign class name. > > So why almost? Because I want to play on safe-side :-) > > Neal, please try it and report the problems. > Thanks! At least the previous test now runs to completion. Now on to bigger tests... |