aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Include/internal/pycore_pyerrors.h
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-09-16 15:05:00 +0100
committerGitHub <noreply@github.com>2024-09-16 15:05:00 +0100
commitaba42c0b547e6395c9c268cf98a298d0494cb9df (patch)
treecb257c39525b590b19b5c5e86a45d6bb75aa729b /Include/internal/pycore_pyerrors.h
parent9aa1f60e2dedd8a67c42fb4f4c56858b6ba5b947 (diff)
downloadcpython-aba42c0b547e6395c9c268cf98a298d0494cb9df.tar.gz
cpython-aba42c0b547e6395c9c268cf98a298d0494cb9df.zip
gh-123969: refactor _PyErr_RaiseSyntaxError and _PyErr_EmitSyntaxWarning out of compiler (#123972)
Diffstat (limited to 'Include/internal/pycore_pyerrors.h')
-rw-r--r--Include/internal/pycore_pyerrors.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h
index 9835e495d17..02945f0e71a 100644
--- a/Include/internal/pycore_pyerrors.h
+++ b/Include/internal/pycore_pyerrors.h
@@ -120,6 +120,11 @@ extern void _PyErr_SetNone(PyThreadState *tstate, PyObject *exception);
extern PyObject* _PyErr_NoMemory(PyThreadState *tstate);
+extern int _PyErr_EmitSyntaxWarning(PyObject *msg, PyObject *filename, int lineno, int col_offset,
+ int end_lineno, int end_col_offset);
+extern void _PyErr_RaiseSyntaxError(PyObject *msg, PyObject *filename, int lineno, int col_offset,
+ int end_lineno, int end_col_offset);
+
PyAPI_FUNC(void) _PyErr_SetString(
PyThreadState *tstate,
PyObject *exception,