Commit 73b43166 authored by gsamain's avatar gsamain

Give __alloc__ its own type

parent fcb5cd4d
......@@ -662,7 +662,7 @@ class Scope(object):
wrapper_entry.func_cname = "%s::%s" % (entry.type.empty_declaration_code(), wrapper_cname)
# Declare the default __alloc__ method
alloc_type = wrapper_type
alloc_type = PyrexTypes.CFuncType(entry.type, [], nogil=1)
alloc_cname = "%s__alloc__%s" % (Naming.func_prefix, name)
alloc_name = "<alloc>"
alloc_entry = scope.declare(alloc_name, alloc_cname, alloc_type, pos, visibility)
......
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