diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-22 10:02:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-22 10:02:32 (GMT) |
commit | 149d70c2546d9615e6292135430795c3cf2b50fe (patch) | |
tree | 6c5600f41665a16bb0fc6ac27ff5407fd384247b /Parser/pegen.h | |
parent | ef4d427fd8ed89fcfb5a0fada4c24abec12991e5 (diff) | |
download | cpython-149d70c2546d9615e6292135430795c3cf2b50fe.zip cpython-149d70c2546d9615e6292135430795c3cf2b50fe.tar.gz cpython-149d70c2546d9615e6292135430795c3cf2b50fe.tar.bz2 |
[3.12] gh-108179: Add error message for parser stack overflows (GH-108256) (#108263)
gh-108179: Add error message for parser stack overflows (GH-108256)
(cherry picked from commit 86617518c4ac824e2b6dc20691ba5a08df04f285)
Co-authored-by: Dennis Sweeney <36520290+sweeneyde@users.noreply.github.com>
Diffstat (limited to 'Parser/pegen.h')
-rw-r--r-- | Parser/pegen.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser/pegen.h b/Parser/pegen.h index fe13d10..a8bfa78 100644 --- a/Parser/pegen.h +++ b/Parser/pegen.h @@ -168,6 +168,8 @@ void *_PyPegen_raise_error_known_location(Parser *p, PyObject *errtype, Py_ssize_t end_lineno, Py_ssize_t end_col_offset, const char *errmsg, va_list va); void _Pypegen_set_syntax_error(Parser* p, Token* last_token); +void _Pypegen_stack_overflow(Parser *p); + Py_LOCAL_INLINE(void *) RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype, Py_ssize_t lineno, Py_ssize_t col_offset, |