mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-90110: Clean Up the C-analyzer Globals Lists (gh-100091)
https://github.com/python/cpython/issues/90110
This commit is contained in:
parent
d92407ed49
commit
d47ffeb9e3
4 changed files with 496 additions and 450 deletions
|
@ -13,6 +13,7 @@ void *
|
|||
_PyPegen_dummy_name(Parser *p, ...)
|
||||
{
|
||||
// XXX This leaks memory from the initial arena.
|
||||
// Use a statically allocated variable instead of a pointer?
|
||||
static void *cache = NULL;
|
||||
|
||||
if (cache != NULL) {
|
||||
|
@ -1287,4 +1288,4 @@ _PyPegen_nonparen_genexp_in_call(Parser *p, expr_ty args, asdl_comprehension_seq
|
|||
_PyPegen_get_last_comprehension_item(last_comprehension),
|
||||
"Generator expression must be parenthesized"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue