Skip to content

Commit c45efcd

Browse files
lysnikolaoushihai1991
authored andcommitted
bpo-40939: Remove even more references to the old parser (pythonGH-21642)
Automerge-Triggered-By: @lysnikolaou
1 parent 718d817 commit c45efcd

File tree

5 files changed

+0
-17
lines changed

5 files changed

+0
-17
lines changed

Include/internal/pycore_interp.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ extern "C" {
1313
#include "pycore_gc.h" /* struct _gc_runtime_state */
1414
#include "pycore_warnings.h" /* struct _warnings_runtime_state */
1515

16-
struct _Py_parser_state {
17-
struct {
18-
int level;
19-
int atbol;
20-
} listnode;
21-
};
22-
2316
struct _pending_calls {
2417
PyThread_type_lock lock;
2518
/* Request for running pending calls. */
@@ -240,8 +233,6 @@ struct _is {
240233

241234
PyObject *audit_hooks;
242235

243-
struct _Py_parser_state parser;
244-
245236
#if _PY_NSMALLNEGINTS + _PY_NSMALLPOSINTS > 0
246237
/* Small integers are preallocated in this array so that they
247238
can be shared.

Makefile.pre.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ coverage-lcov:
545545
'*/Modules/zlib/*' \
546546
'*/Include/*' \
547547
'*/Modules/xx*.c' \
548-
'*/Parser/listnode.c' \
549548
'*/Python/pyfpe.c' \
550549
'*/Python/pystrcmp.c' \
551550
'/usr/include/*' \

Tools/c-analyzer/TODO

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ Objects/object.c:_Py_RefTotal Py_ssize_t _Py_
6464
Objects/tupleobject.c:_Py_fast_tuple_allocs Py_ssize_t _Py_fast_tuple_allocs
6565
Objects/tupleobject.c:_Py_tuple_zero_allocs Py_ssize_t _Py_tuple_zero_allocs
6666
Objects/typeobject.c:next_version_tag static unsigned int next_version_tag
67-
Parser/listnode.c:atbol static int atbol
68-
Parser/listnode.c:level static int level
6967
Python/Python-ast.c:init_types():initialized static int initialized
7068
Python/bootstrap_hash.c:urandom_cache static struct { int fd; dev_t st_dev; ino_t st_ino; } urandom_cache
7169
Python/ceval.c:_Py_CheckRecursionLimit int _Py_CheckRecursionLimit

Tools/c-analyzer/cpython/_generate.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,6 @@ def find_matching_variable(varid, varcache, allfilenames, *,
183183
'float_format': 'static float_format_type ',
184184
'detected_double_format': 'static float_format_type ',
185185
'detected_float_format': 'static float_format_type ',
186-
# Parser/listnode.c
187-
'level': 'static int ',
188-
'atbol': 'static int ',
189186
# Python/dtoa.c
190187
'private_mem': 'static double private_mem[PRIVATE_mem]',
191188
'pmem_next': 'static double *',

Tools/c-analyzer/known.tsv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ Objects/genobject.c - async_gen_memberlist variable static PyMemberDef async_gen
5151
Objects/genobject.c - async_gen_methods variable static PyMethodDef async_gen_methods
5252
Python/Python-ast.c - AsyncWith_fields variable static const char *AsyncWith_fields[]
5353
Python/Python-ast.c - AsyncWith_type variable static PyTypeObject *AsyncWith_type
54-
Parser/listnode.c - atbol variable static int atbol
5554
Modules/atexitmodule.c - atexit_methods variable static PyMethodDef atexit_methods
5655
Modules/atexitmodule.c - atexitmodule variable static struct PyModuleDef atexitmodule
5756
Modules/atexitmodule.c - atexit_slots variable static PyModuleDef_Slot atexit_slots[]
@@ -429,7 +428,6 @@ Modules/_json.c encoder_call kwlist variable static const char *kwlist[]
429428
Python/symtable.c - lambda variable static identifier lambda
430429
Python/Python-ast.c - Lambda_fields variable static const char *Lambda_fields[]
431430
Python/Python-ast.c - Lambda_type variable static PyTypeObject *Lambda_type
432-
Parser/listnode.c - level variable static int level
433431
Objects/listobject.c - list_as_mapping variable static PyMappingMethods list_as_mapping
434432
Objects/listobject.c - list_as_sequence variable static PySequenceMethods list_as_sequence
435433
Python/symtable.c - listcomp variable static identifier listcomp

0 commit comments

Comments
 (0)