From: Stefan Behnel Date: Thu, 26 Mar 2009 07:06:17 +0000 (+0100) Subject: mark the real argument name mangling problem as FIXME, the last fix was more of a... X-Git-Tag: 0.11.1.alpha~28 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=926ad54de6b8f052257b92060e316730f08de349;p=cython.git mark the real argument name mangling problem as FIXME, the last fix was more of a work-around --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 0d019501..0de02d97 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -1450,6 +1450,8 @@ class CFuncDefNode(FuncDefNode): code.putln('if (%s) {' % Naming.optional_args_cname) for arg in self.args: if arg.default: + # FIXME: simple name prefixing doesn't work when + # argument name mangling is in place code.putln('if (%s->%sn > %s) {' % (Naming.optional_args_cname, Naming.pyrex_prefix, i)) declarator = arg.declarator while not hasattr(declarator, 'name'):