]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122313: Clean up deep recursion guarding code in the compiler (GH-122640)
authorSerhiy Storchaka <storchaka@gmail.com>
Sat, 3 Aug 2024 09:45:45 +0000 (12:45 +0300)
committerGitHub <noreply@github.com>
Sat, 3 Aug 2024 09:45:45 +0000 (12:45 +0300)
commitefcd65cd84d5ebcc6cacb67971f235a726a205e7
tree3646a68f084ced9a0b0f39f013290f9242d1cde2
parentfe0a28d850943cf2ba132c9b0a933bb0c98ff0ae
gh-122313: Clean up deep recursion guarding code in the compiler (GH-122640)

Add ENTER_RECURSIVE and LEAVE_RECURSIVE macros in ast.c, ast_opt.c and
symtable.c. Remove VISIT_QUIT macro in symtable.c.

The current recursion depth counter only needs to be updated during
normal execution -- all functions should just return an error code
if an error occurs.
Python/ast.c
Python/ast_opt.c
Python/symtable.c