From 1ada7e4c22d883c1f9fe135626822bcf124ed05e Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:08:03 +0000 Subject: [project @ fpeters@0d.be-20080310093300-2iv41ihnuify54po] merging benjamin branch Original author: Frederic Peters Date: 2008-03-10 10:33:00.592000+01:00 --- bindings/lang_php5_helpers/wrapper_source.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bindings/lang_php5_helpers/wrapper_source.py') diff --git a/bindings/lang_php5_helpers/wrapper_source.py b/bindings/lang_php5_helpers/wrapper_source.py index c6a348a9..e08c089c 100644 --- a/bindings/lang_php5_helpers/wrapper_source.py +++ b/bindings/lang_php5_helpers/wrapper_source.py @@ -217,7 +217,9 @@ PHP_MSHUTDOWN_FUNCTION(lasso) print >> self.fd, ' %s = (%s)cvt_%s->obj;' % (arg[1], arg[0], arg[1]) if m.return_type is not None: - print >> self.fd, ' return_c_value =', + print >> self.fd, ' return_c_value = ', + if 'new' in m.name: + print >> self.fd, '(%s)' % m.return_type, else: print >> self.fd, ' ', print >> self.fd, '%s(%s);' % (m.name, ', '.join([x[1] for x in m.args])) -- cgit