From f60d59f22b0bbcb86219db7d47a00805f8714297 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 18 Jul 2021 11:59:43 +0300 Subject: [PATCH] bpo-44654: Do not export the union type related symbols --- Include/internal/pycore_unionobject.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Include/internal/pycore_unionobject.h b/Include/internal/pycore_unionobject.h index 236989f0b202b2..9962f57610387d 100644 --- a/Include/internal/pycore_unionobject.h +++ b/Include/internal/pycore_unionobject.h @@ -8,13 +8,13 @@ extern "C" { # error "this header requires Py_BUILD_CORE define" #endif -PyAPI_DATA(PyTypeObject) _PyUnion_Type; +extern PyTypeObject _PyUnion_Type; #define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type) -PyAPI_FUNC(PyObject *) _Py_union_type_or(PyObject *, PyObject *); +extern PyObject *_Py_union_type_or(PyObject *, PyObject *); #define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType) -PyAPI_FUNC(PyObject *) _Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *); -PyAPI_FUNC(PyObject *) _Py_make_parameters(PyObject *); +extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *); +extern PyObject *_Py_make_parameters(PyObject *); #ifdef __cplusplus } 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