]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44654: Do not export the union type related symbols (GH-27223)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 18 Jul 2021 12:55:20 +0000 (15:55 +0300)
committerGitHub <noreply@github.com>
Sun, 18 Jul 2021 12:55:20 +0000 (15:55 +0300)
Include/internal/pycore_unionobject.h

index 236989f0b202b24a73ed26b9c41b8b5a3e9b6822..9962f57610387d67e851b90f20f35cf93965954b 100644 (file)
@@ -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
 }