diff --git a/pyste/NEWS b/pyste/NEWS index 2cee0c65..4862e0af 100644 --- a/pyste/NEWS +++ b/pyste/NEWS @@ -1,5 +1,11 @@ +20 September 2003 +Added return_by_value in the list of policies supported. Thanks to Niall +Douglas for the remainder. + 19 September 2003 -Better support for unnamed enums, plus they are by default exported to the parent's namespace. Normal enums can have the same behaviour using the function export_values on the Enum object. +Better support for unnamed enums, plus they are by default exported to the +parent's namespace. Normal enums can have the same behaviour using the function +export_values on the Enum object. Feature requested by Niall Douglas. 10 September 2003 A new variable is accessible in the Pyste files: INTERFACE_FILE contains the diff --git a/pyste/src/Pyste/policies.py b/pyste/src/Pyste/policies.py index a63b5e73..43179b79 100644 --- a/pyste/src/Pyste/policies.py +++ b/pyste/src/Pyste/policies.py @@ -81,3 +81,4 @@ copy_const_reference = 'copy_const_reference' copy_non_const_reference = 'copy_non_const_reference' manage_new_object = 'manage_new_object' return_opaque_pointer = 'return_opaque_pointer' +return_by_value = 'return_by_value' diff --git a/pyste/src/Pyste/pyste.py b/pyste/src/Pyste/pyste.py index 6d95c56e..572424fc 100644 --- a/pyste/src/Pyste/pyste.py +++ b/pyste/src/Pyste/pyste.py @@ -43,7 +43,7 @@ from CppParser import CppParser, CppParserError import time import declarations -__version__ = '0.9.25' +__version__ = '0.9.26' def RecursiveIncludes(include): 'Return a list containg the include dir and all its subdirectories' @@ -192,6 +192,7 @@ def CreateContext(): context['copy_non_const_reference'] = copy_non_const_reference context['return_opaque_pointer'] = return_opaque_pointer context['manage_new_object'] = manage_new_object + context['return_by_value'] = return_by_value # utils context['Wrapper'] = exporterutils.FunctionWrapper context['declaration_code'] = lambda code: infos.CodeInfo(code, 'declaration-outside')