[pygccxml-commit] source/pyplusplus/code_creators calldef.py,1.49,1.50
Brought to you by:
mbaas,
roman_yakovenko
From: Roman <rom...@us...> - 2006-03-29 04:11:59
|
Update of /cvsroot/pygccxml/source/pyplusplus/code_creators In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23701/pyplusplus/code_creators Modified Files: calldef.py Log Message: fixing bug in wrapper constructor, caused by adding optional to init Index: calldef.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/calldef.py,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** calldef.py 23 Mar 2006 08:52:14 -0000 1.49 --- calldef.py 29 Mar 2006 04:11:55 -0000 1.50 *************** *** 580,584 **** args.append( 'PyObject*' ) for index, arg in enumerate( self.declaration.arguments ): ! args.append( arg.type.decl_string + ' ' + self._argument_name(index) ) result.append( ', '.join( args ) ) result.append( ' )' ) --- 580,587 ---- args.append( 'PyObject*' ) for index, arg in enumerate( self.declaration.arguments ): ! arg_text = arg.type.decl_string + ' ' + self._argument_name(index) ! if arg.default_value: ! arg_text = arg_text + '=%s' % arg.default_value ! args.append( arg_text ) result.append( ', '.join( args ) ) result.append( ' )' ) |