From d475fcaf7d10c2ecfe5bf27bd6ba3df39cae84fe Mon Sep 17 00:00:00 2001 From: Bruno da Silva de Oliveira Date: Wed, 19 Mar 2003 05:03:49 +0000 Subject: [PATCH] - Fixed bug where the PointerDeclaration of functions and methods didn't have the & operator [SVN r17994] --- pyste/src/declarations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyste/src/declarations.py b/pyste/src/declarations.py index 99784b12..73e69d5f 100644 --- a/pyste/src/declarations.py +++ b/pyste/src/declarations.py @@ -157,7 +157,7 @@ class Function(Declaration): 'returns a declaration of a pointer to this function' result = self.result.FullName() params = ', '.join([x.FullName() for x in self.parameters]) - return '(%s (*)(%s))%s' % (result, params, self.FullName()) + return '(%s (*)(%s))&%s' % (result, params, self.FullName()) def _MinArgs(self): @@ -211,7 +211,7 @@ class Method(Function): const = '' if self.const: const = 'const' - return '(%s (%s::*)(%s) %s)%s' %\ + return '(%s (%s::*)(%s) %s)&%s' %\ (result, self.class_, params, const, self.FullName())