https://github.com/python/cpython/commit/ce1064e4c9bcfd673323ad690e60f86e1ab907bb commit: ce1064e4c9bcfd673323ad690e60f86e1ab907bb branch: main author: Petr Viktorin <[email protected]> committer: encukou <[email protected]> date: 2024-06-24T17:30:29+02:00 summary:
gh-119521: Use `PyAPI_DATA`, not `extern`, for `_PyExc_IncompleteInputError` (GH-120955) files: M Include/internal/pycore_pyerrors.h diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h index 1187cbf7e90361..15071638203457 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
