diff options
| author | Victor Stinner <vstinner@python.org> | 2021-03-24 02:23:01 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 02:23:01 +0100 |
| commit | 8370e07e1e5b626e78ddc7aadbfaf248976c4454 (patch) | |
| tree | 5ad56b80064a2e282bfd77442096ffab167de9ed /Parser/string_parser.c | |
| parent | 919d42d477093154a30b55d9d79f023dbbe5614a (diff) | |
| download | cpython-git-8370e07e1e5b626e78ddc7aadbfaf248976c4454.tar.gz | |
bpo-43244: Remove the pyarena.h header (GH-25007)
Remove the pyarena.h header file with functions:
* PyArena_New()
* PyArena_Free()
* PyArena_Malloc()
* PyArena_AddPyObject()
These functions were undocumented, excluded from the limited C API,
and were only used internally by the compiler.
Add pycore_pyarena.h header. Rename functions:
* PyArena_New() => _PyArena_New()
* PyArena_Free() => _PyArena_Free()
* PyArena_Malloc() => _PyArena_Malloc()
* PyArena_AddPyObject() => _PyArena_AddPyObject()
Diffstat (limited to 'Parser/string_parser.c')
| -rw-r--r-- | Parser/string_parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/string_parser.c b/Parser/string_parser.c index 0f3665c345..6a1a3952e7 100644 --- a/Parser/string_parser.c +++ b/Parser/string_parser.c @@ -1031,7 +1031,7 @@ make_str_node_and_del(Parser *p, PyObject **str, Token* first_token, Token *last PyObject *kind = NULL; *str = NULL; assert(PyUnicode_CheckExact(s)); - if (PyArena_AddPyObject(p->arena, s) < 0) { + if (_PyArena_AddPyObject(p->arena, s) < 0) { Py_DECREF(s); return NULL; } |
