Revision: 576
http://svn.sourceforge.net/pygccxml/?rev=576&view=rev
Author: roman_yakovenko
Date: 2006-09-23 00:47:39 -0700 (Sat, 23 Sep 2006)
Log Message:
-----------
operators & wrapper bug work around
Modified Paths:
--------------
pyplusplus_dev/pyplusplus/code_creators/calldef.py
pyplusplus_dev/pyplusplus/code_creators/class_declaration.py
Modified: pyplusplus_dev/pyplusplus/code_creators/calldef.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/calldef.py 2006-09-22 06:47:02 UTC (rev 575)
+++ pyplusplus_dev/pyplusplus/code_creators/calldef.py 2006-09-23 07:47:39 UTC (rev 576)
@@ -889,7 +889,7 @@
result.append( self.parent.wrapper_alias )
result.append( '(' )
args = []
- if self.parent.held_type and not self.target_configuration.boost_python_has_wrapper_held_type:
+ if not self.target_configuration.boost_python_has_wrapper_held_type:
args.append( 'PyObject*' )
args_decl = self.args_declaration()
if args_decl:
@@ -936,7 +936,7 @@
result = []
result.append( self.parent.wrapper_alias )
result.append( '(' )
- if self.parent.held_type and not self.target_configuration.boost_python_has_wrapper_held_type:
+ if not self.target_configuration.boost_python_has_wrapper_held_type:
result.append( 'PyObject*, ' )
declarated = declarations.declarated_t( self.declaration )
const_decl = declarations.const_t( declarated )
@@ -975,7 +975,7 @@
def _create_impl(self):
answer = [ self.parent.wrapper_alias + '(' ]
- if self.parent.held_type and not self.target_configuration.boost_python_has_wrapper_held_type:
+ if not self.target_configuration.boost_python_has_wrapper_held_type:
answer[0] = answer[0] + 'PyObject*'
answer[0] = answer[0] + ')'
answer.append( ': ' + self._create_constructor_call() )
Modified: pyplusplus_dev/pyplusplus/code_creators/class_declaration.py
===================================================================
--- pyplusplus_dev/pyplusplus/code_creators/class_declaration.py 2006-09-22 06:47:02 UTC (rev 575)
+++ pyplusplus_dev/pyplusplus/code_creators/class_declaration.py 2006-09-23 07:47:39 UTC (rev 576)
@@ -176,7 +176,7 @@
held_type = self._generated_held_type()
if self.wrapper:
- if held_type and not self.target_configuration.boost_python_has_wrapper_held_type:
+ if not self.target_configuration.boost_python_has_wrapper_held_type:
args.append( algorithm.create_identifier( self, self.declaration.decl_string ) )
args.append( self.wrapper.full_name )
else:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|