]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119521: Use `PyAPI_DATA`, not `extern`, for `_PyExc_IncompleteInputError` (GH...
authorPetr Viktorin <encukou@gmail.com>
Mon, 24 Jun 2024 15:30:29 +0000 (17:30 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Jun 2024 15:30:29 +0000 (17:30 +0200)
Include/internal/pycore_pyerrors.h

index 1187cbf7e903610b4f2fd982db116352b6b46ea0..15071638203457b904460f183335133d958be1b8 100644 (file)
@@ -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