Author: Antonio Cuni <[email protected]>
Branch: hpy-ctypespace
Changeset: r98143:3f52349a3cfd
Date: 2019-11-22 17:22 +0100
http://bitbucket.org/pypy/pypy/changeset/3f52349a3cfd/

Log:    move the last type definition into cts

diff --git a/pypy/module/hpy_universal/llapi.py 
b/pypy/module/hpy_universal/llapi.py
--- a/pypy/module/hpy_universal/llapi.py
+++ b/pypy/module/hpy_universal/llapi.py
@@ -79,7 +79,7 @@
 typedef void *_HPyCPyCFunction; // not used here
 typedef void (*_HPyMethodPairFunc)(_HPyCFunction *out_func,
                                    _HPyCPyCFunction *out_trampoline);
-
+typedef HPy (*HPyMeth_VarArgs)(HPyContext ctx, HPy self, HPy *args, 
HPy_ssize_t nargs);
 
 typedef struct {
     const char         *ml_name;
@@ -113,9 +113,7 @@
 HPyInitFunc = cts.gettype('HPyInitFunc')
 _HPyCFunction = cts.gettype('_HPyCFunction')
 _HPyCPyCFunction = cts.gettype('_HPyCPyCFunction')
-
-HPyMeth_VarArgs = lltype.Ptr(
-    lltype.FuncType([HPyContext, HPy, lltype.Ptr(rffi.CArray(HPy)), 
HPy_ssize_t], HPy))
+HPyMeth_VarArgs = cts.gettype('HPyMeth_VarArgs')
 
 HPyMethodDef = cts.gettype('HPyMethodDef')
 HPyModuleDef = cts.gettype('HPyModuleDef')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to