summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorPetr Viktorin <encukou@gmail.com>2024-06-24 15:30:29 (GMT)
committerGitHub <noreply@github.com>2024-06-24 15:30:29 (GMT)
commitce1064e4c9bcfd673323ad690e60f86e1ab907bb (patch)
treef993ca8c1f349383617eb59a9171c3f1ad5ec0a3 /Include
parent6eb23b1311e7eebf2459076703460ee7f8044f05 (diff)
downloadcpython-ce1064e4c9bcfd673323ad690e60f86e1ab907bb.zip
cpython-ce1064e4c9bcfd673323ad690e60f86e1ab907bb.tar.gz
cpython-ce1064e4c9bcfd673323ad690e60f86e1ab907bb.tar.bz2
gh-119521: Use `PyAPI_DATA`, not `extern`, for `_PyExc_IncompleteInputError` (GH-120955)
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_pyerrors.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h
index 1187cbf..1507163 100644
--- a/Include/internal/pycore_pyerrors.h
+++ b/Include/internal/pycore_pyerrors.h
@@ -168,7 +168,8 @@ void _PyErr_FormatNote(const char *format, ...);
Py_DEPRECATED(3.12) extern void _PyErr_ChainExceptions(PyObject *, PyObject *, PyObject *);
// implementation detail for the codeop module.
-extern PyTypeObject _PyExc_IncompleteInputError;
+// Exported for test.test_peg_generator.test_c_parser
+PyAPI_DATA(PyTypeObject) _PyExc_IncompleteInputError;
#define PyExc_IncompleteInputError ((PyObject *)(&_PyExc_IncompleteInputError))
#ifdef __cplusplus