Commit 4c64d9e0 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Give __alloc__ its own type

parent c4ff9e93
......@@ -690,7 +690,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