From 246c78ff7542107960ac626aa8d003fb76399b1a Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Sat, 9 Jul 2022 06:49:10 +0300 Subject: [PATCH 1/2] Fix linkage of _PyTestCapi_Init_Vectorcall --- Modules/_testcapi/vectorcall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_testcapi/vectorcall.c b/Modules/_testcapi/vectorcall.c index 9bc702905caf76..63c31c252428d8 100644 --- a/Modules/_testcapi/vectorcall.c +++ b/Modules/_testcapi/vectorcall.c @@ -229,7 +229,7 @@ static PyTypeObject MethodDescriptor2_Type = { }; -int +PyAPI_FUNC(int) _PyTestCapi_Init_Vectorcall(PyObject *m) { if (PyModule_AddFunctions(m, TestMethods) < 0) { return -1; From e0670d6d881553ca6778ec726c3267a4928d6e43 Mon Sep 17 00:00:00 2001 From: Oleg Iarygin Date: Sat, 9 Jul 2022 07:13:26 +0300 Subject: [PATCH 2/2] Trying to make the method in-modular instead --- Modules/_testcapi/parts.h | 2 +- Modules/_testcapi/vectorcall.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/_testcapi/parts.h b/Modules/_testcapi/parts.h index 1111021e1852b3..54cddf4b0929f2 100644 --- a/Modules/_testcapi/parts.h +++ b/Modules/_testcapi/parts.h @@ -1,3 +1,3 @@ #include "Python.h" -PyAPI_FUNC(int) _PyTestCapi_Init_Vectorcall(PyObject *module); +int _PyTestCapi_Init_Vectorcall(PyObject *module); diff --git a/Modules/_testcapi/vectorcall.c b/Modules/_testcapi/vectorcall.c index 63c31c252428d8..9bc702905caf76 100644 --- a/Modules/_testcapi/vectorcall.c +++ b/Modules/_testcapi/vectorcall.c @@ -229,7 +229,7 @@ static PyTypeObject MethodDescriptor2_Type = { }; -PyAPI_FUNC(int) +int _PyTestCapi_Init_Vectorcall(PyObject *m) { if (PyModule_AddFunctions(m, TestMethods) < 0) { return -1; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy