summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_unionobject.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-07-18 12:55:20 (GMT)
committerGitHub <noreply@github.com>2021-07-18 12:55:20 (GMT)
commit8f50f44592190b5a8cb115f0d58d577036e68308 (patch)
tree95f5aed8e7eadb7631f43ac5034c7ffb642ca3af /Include/internal/pycore_unionobject.h
parent3ea5332a4365bdd771286b3e9692495116e9ceef (diff)
downloadcpython-8f50f44592190b5a8cb115f0d58d577036e68308.zip
cpython-8f50f44592190b5a8cb115f0d58d577036e68308.tar.gz
cpython-8f50f44592190b5a8cb115f0d58d577036e68308.tar.bz2
bpo-44654: Do not export the union type related symbols (GH-27223)
Diffstat (limited to 'Include/internal/pycore_unionobject.h')
-rw-r--r--Include/internal/pycore_unionobject.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Include/internal/pycore_unionobject.h b/Include/internal/pycore_unionobject.h
index 236989f..9962f57 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
}