Commit d38afdba authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn Committed by Mark Florisson

fixup for memoryview implementation

parent 6321b391
......@@ -2273,17 +2273,14 @@ class DefNode(FuncDefNode):
entry = env.declare_pyfunction(name, self.pos, allow_redefine=not self.is_wrapper)
self.entry = entry
prefix = env.next_id(env.scope_prefix)
entry.func_cname = \
env.mangle(Naming.pyfunc_prefix, name)
# Naming.pyfunc_prefix + prefix + name
env.mangle(Naming.pyfunc_prefix, prefix + name)
entry.pymethdef_cname = \
env.mangle(Naming.pymethdef_prefix, name)
# Naming.pymethdef_prefix + prefix + name
env.mangle(Naming.pymethdef_prefix, prefix + name)
if Options.docstrings:
entry.doc = embed_position(self.pos, self.doc)
entry.doc_cname = \
env.mangle(Naming.funcdoc_prefix, name)
env.mangle(Naming.funcdoc_prefix, prefix + name)
if entry.is_special:
if entry.name in TypeSlots.invisible or not entry.doc or (entry.name in '__getattr__' and env.directives['fast_getattr']):
entry.wrapperbase_cname = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment