[pygccxml-commit] SF.net SVN: pygccxml: [892] pyplusplus_dev
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2007-02-01 05:50:02
|
Revision: 892 http://svn.sourceforge.net/pygccxml/?rev=892&view=rev Author: roman_yakovenko Date: 2007-01-31 21:50:00 -0800 (Wed, 31 Jan 2007) Log Message: ----------- fixing input_c_buffer transformer Modified Paths: -------------- pyplusplus_dev/docs/history/history.rest pyplusplus_dev/pyplusplus/code_creators/calldef_utils.py pyplusplus_dev/pyplusplus/function_transformers/transformers.py pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp pyplusplus_dev/unittests/function_transformations_tester.py Modified: pyplusplus_dev/docs/history/history.rest =================================================================== --- pyplusplus_dev/docs/history/history.rest 2007-01-31 22:12:43 UTC (rev 891) +++ pyplusplus_dev/docs/history/history.rest 2007-02-01 05:50:00 UTC (rev 892) @@ -43,7 +43,16 @@ * Declaration of virtual functions that have an exception specification with an empty throw was fixed. Now the exception specification is generated properly. Many thanks to Martin Preisler for reporting the bug. + +2. Added exposing of copy constructors and "operator=". "operator=" is exposed + under "assign" name. + +3. Added new call policy - `as_tuple`_ +.. _`as_tuple` : ../documentation/functions/call_policies.html + +4. Added initial support for multi-module development. + ------------- Version 0.8.5 ------------- Modified: pyplusplus_dev/pyplusplus/code_creators/calldef_utils.py =================================================================== --- pyplusplus_dev/pyplusplus/code_creators/calldef_utils.py 2007-01-31 22:12:43 UTC (rev 891) +++ pyplusplus_dev/pyplusplus/code_creators/calldef_utils.py 2007-02-01 05:50:00 UTC (rev 892) @@ -113,6 +113,8 @@ and ( self.__function.call_policies.is_default() \ or False == bool( self.__controller.return_variables ) ): self.__pre_return_code = '' + elif self.__function.call_policies.is_default(): + self.__pre_return_code = '' else: c_p_typedef = 'typedef %s %s;' \ % ( self.__function.call_policies.create_template_arg( self.__creator ) Modified: pyplusplus_dev/pyplusplus/function_transformers/transformers.py =================================================================== --- pyplusplus_dev/pyplusplus/function_transformers/transformers.py 2007-01-31 22:12:43 UTC (rev 891) +++ pyplusplus_dev/pyplusplus/function_transformers/transformers.py 2007-02-01 05:50:00 UTC (rev 892) @@ -454,8 +454,7 @@ # Declare a variable that will hold the C array... buffer_var = controller.declare_variable( declarations.dummy_type_t( "std::vector< %s >" % self.buffer_item_type.decl_string ) - , "native_" + self.buffer_arg.name - , '(%s)' % size_var ) + , "native_" + self.buffer_arg.name ) copy_pylist2arr = _seq2vector.substitute( type=self.buffer_item_type , pylist=w_buffer_arg.name Modified: pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp =================================================================== --- pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp 2007-01-31 22:12:43 UTC (rev 891) +++ pyplusplus_dev/unittests/data/function_transformations_to_be_exported.hpp 2007-02-01 05:50:00 UTC (rev 892) @@ -222,7 +222,6 @@ struct input_c_buffer_tester_t{ std::string write( char* buffer, int dummy, int size ) const { - std::cout << "wwwwwwwwwww> " << std::string( buffer, size ); return std::string( buffer, size ); } Modified: pyplusplus_dev/unittests/function_transformations_tester.py =================================================================== --- pyplusplus_dev/unittests/function_transformations_tester.py 2007-01-31 22:12:43 UTC (rev 891) +++ pyplusplus_dev/unittests/function_transformations_tester.py 2007-02-01 05:50:00 UTC (rev 892) @@ -236,7 +236,6 @@ tmp = module.input_c_buffer_tester_t() hw = 'hello world' dummy = 11 - print 'xxxxxxxxxxx> ', tmp.write( list( hw ), dummy ) self.failUnless( 'hello world' == tmp.write( list( hw ), dummy ) ) self.failUnless( 'hello world' == tmp.write_s( dummy, tuple( list( hw ) ) ) ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |