diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2024-09-16 14:05:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 14:05:00 (GMT) |
commit | aba42c0b547e6395c9c268cf98a298d0494cb9df (patch) | |
tree | cb257c39525b590b19b5c5e86a45d6bb75aa729b /Include | |
parent | 9aa1f60e2dedd8a67c42fb4f4c56858b6ba5b947 (diff) | |
download | cpython-aba42c0b547e6395c9c268cf98a298d0494cb9df.zip cpython-aba42c0b547e6395c9c268cf98a298d0494cb9df.tar.gz cpython-aba42c0b547e6395c9c268cf98a298d0494cb9df.tar.bz2 |
gh-123969: refactor _PyErr_RaiseSyntaxError and _PyErr_EmitSyntaxWarning out of compiler (#123972)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_compile.h | 2 | ||||
-rw-r--r-- | Include/internal/pycore_pyerrors.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/Include/internal/pycore_compile.h b/Include/internal/pycore_compile.h index f089eb0..9f0ca33 100644 --- a/Include/internal/pycore_compile.h +++ b/Include/internal/pycore_compile.h @@ -33,8 +33,6 @@ extern int _PyCompile_AstOptimize( int optimize, struct _arena *arena); -struct _Py_SourceLocation; - extern int _PyAST_Optimize( struct _mod *, struct _arena *arena, diff --git a/Include/internal/pycore_pyerrors.h b/Include/internal/pycore_pyerrors.h index 9835e49..02945f0 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, |