Author: Ronan Lamy <[email protected]>
Branch: cpyext-nowrapper
Changeset: r92585:9442c8d6ad20
Date: 2017-10-03 18:34 +0200
http://bitbucket.org/pypy/pypy/changeset/9442c8d6ad20/
Log: hack to fix translation because fijal wants to go to dinner
diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
+++ b/pypy/module/cpyext/typeobject.py
@@ -3,6 +3,7 @@
from rpython.rlib import jit
from rpython.rlib.objectmodel import specialize, we_are_translated
from rpython.rtyper.lltypesystem import rffi, lltype
+from rpython.rtyper.annlowlevel import llhelper
from pypy.interpreter.baseobjspace import W_Root, DescrMismatch
from pypy.interpreter.error import oefmt
@@ -547,7 +548,7 @@
def subtype_dealloc(obj):
pto = obj.c_ob_type
base = pto
- this_func_ptr = llslot(None, subtype_dealloc)
+ this_func_ptr = ll_subtype_dealloc
# This wrapper is created on a specific type, call it w_A.
# We wish to call the dealloc function from one of the base classes of w_A,
# the first of which is not this function itself.
@@ -566,6 +567,10 @@
# hopefully this does not clash with the memory model assumed in
# extension modules
+# XXX
+ll_subtype_dealloc = llhelper(subtype_dealloc.api_func.functype,
+ subtype_dealloc.api_func.callable)
+
@slot_function([PyObject, Py_ssize_tP], lltype.Signed, error=CANNOT_FAIL)
def bf_segcount(space, w_obj, ref):
if ref:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit