]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40939: Remove even more references to the old parser (GH-21642)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Mon, 27 Jul 2020 19:52:59 +0000 (21:52 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2020 19:52:59 +0000 (12:52 -0700)
Automerge-Triggered-By: @lysnikolaou
Include/internal/pycore_interp.h
Makefile.pre.in
Tools/c-analyzer/TODO
Tools/c-analyzer/cpython/_generate.py
Tools/c-analyzer/known.tsv

index cfc27470c80411e9d94418989ac2265efc347614..538aa5a653fbfcf7f2284aeec34375cd06b4fba3 100644 (file)
@@ -13,13 +13,6 @@ extern "C" {
 #include "pycore_gc.h"        /* struct _gc_runtime_state */
 #include "pycore_warnings.h"  /* struct _warnings_runtime_state */
 
-struct _Py_parser_state {
-    struct {
-        int level;
-        int atbol;
-    } listnode;
-};
-
 struct _pending_calls {
     PyThread_type_lock lock;
     /* Request for running pending calls. */
@@ -240,8 +233,6 @@ struct _is {
 
     PyObject *audit_hooks;
 
-    struct _Py_parser_state parser;
-
 #if _PY_NSMALLNEGINTS + _PY_NSMALLPOSINTS > 0
     /* Small integers are preallocated in this array so that they
        can be shared.
index 3428b9842a5a0f7eb3803b78b87b8899f5c14ab5..6b8f4e086ef3520a0309512372c55fe7bf0d3179 100644 (file)
@@ -545,7 +545,6 @@ coverage-lcov:
            '*/Modules/zlib/*' \
            '*/Include/*' \
            '*/Modules/xx*.c' \
-           '*/Parser/listnode.c' \
            '*/Python/pyfpe.c' \
            '*/Python/pystrcmp.c' \
            '/usr/include/*' \
index 829daba291463c99fc1accbbf9ac63250f45beff..1134055f9a8fd812e6c8c87b86d8de0bed2bcb24 100644 (file)
@@ -64,8 +64,6 @@ Objects/object.c:_Py_RefTotal                                    Py_ssize_t _Py_
 Objects/tupleobject.c:_Py_fast_tuple_allocs                      Py_ssize_t _Py_fast_tuple_allocs
 Objects/tupleobject.c:_Py_tuple_zero_allocs                      Py_ssize_t _Py_tuple_zero_allocs
 Objects/typeobject.c:next_version_tag                            static unsigned int next_version_tag
-Parser/listnode.c:atbol                                          static int atbol
-Parser/listnode.c:level                                          static int level
 Python/Python-ast.c:init_types():initialized                     static int initialized
 Python/bootstrap_hash.c:urandom_cache                            static struct { int fd; dev_t st_dev; ino_t st_ino; } urandom_cache
 Python/ceval.c:_Py_CheckRecursionLimit                           int _Py_CheckRecursionLimit
index 4c340acf99e1c37c877082e445d33e2c06a7ec05..3456604b81470e999c9176c558f06d6a71dcacce 100644 (file)
@@ -183,9 +183,6 @@ MULTILINE = {
     'float_format': 'static float_format_type ',
     'detected_double_format': 'static float_format_type ',
     'detected_float_format': 'static float_format_type ',
-    # Parser/listnode.c
-    'level': 'static int ',
-    'atbol': 'static int ',
     # Python/dtoa.c
     'private_mem': 'static double private_mem[PRIVATE_mem]',
     'pmem_next': 'static double *',
index db44080bc2e312fc7c06fdb1f7da7656f919ebf2..f92b45e5b4d8599a5439d95a8ad89c29b7649913 100644 (file)
@@ -51,7 +51,6 @@ Objects/genobject.c   -       async_gen_memberlist    variable        static PyMemberDef async_gen
 Objects/genobject.c    -       async_gen_methods       variable        static PyMethodDef async_gen_methods
 Python/Python-ast.c    -       AsyncWith_fields        variable        static const char *AsyncWith_fields[]
 Python/Python-ast.c    -       AsyncWith_type  variable        static PyTypeObject *AsyncWith_type
-Parser/listnode.c      -       atbol   variable        static int atbol
 Modules/atexitmodule.c -       atexit_methods  variable        static PyMethodDef atexit_methods
 Modules/atexitmodule.c -       atexitmodule    variable        static struct PyModuleDef atexitmodule
 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[]
 Python/symtable.c      -       lambda  variable        static identifier lambda
 Python/Python-ast.c    -       Lambda_fields   variable        static const char *Lambda_fields[]
 Python/Python-ast.c    -       Lambda_type     variable        static PyTypeObject *Lambda_type
-Parser/listnode.c      -       level   variable        static int level
 Objects/listobject.c   -       list_as_mapping variable        static PyMappingMethods list_as_mapping
 Objects/listobject.c   -       list_as_sequence        variable        static PySequenceMethods list_as_sequence
 Python/symtable.c      -       listcomp        variable        static identifier listcomp