projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8edd637
)
mark the real argument name mangling problem as FIXME, the last fix was more of a...
author
Stefan Behnel
<scoder@users.berlios.de>
Thu, 26 Mar 2009 07:06:17 +0000
(08:06 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Thu, 26 Mar 2009 07:06:17 +0000
(08:06 +0100)
Cython/Compiler/Nodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Nodes.py
b/Cython/Compiler/Nodes.py
index 0d019501070bf5a700947c98b64fbf46993da422..0de02d9782ceaed75478376a7cf300128de535f4 100644
(file)
--- 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'):