]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43244: Remove the pyarena.h header (GH-25007)
authorVictor Stinner <vstinner@python.org>
Wed, 24 Mar 2021 01:23:01 +0000 (02:23 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Mar 2021 01:23:01 +0000 (02:23 +0100)
commit8370e07e1e5b626e78ddc7aadbfaf248976c4454
tree5ad56b80064a2e282bfd77442096ffab167de9ed
parent919d42d477093154a30b55d9d79f023dbbe5614a
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()
20 files changed:
Doc/whatsnew/3.10.rst
Include/Python.h
Include/cpython/pyarena.h [deleted file]
Include/internal/pycore_asdl.h
Include/internal/pycore_compile.h
Include/internal/pycore_pyarena.h [new file with mode: 0644]
Makefile.pre.in
Misc/NEWS.d/next/C API/2021-03-24-01-22-14.bpo-43244.31-97x.rst [new file with mode: 0644]
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Parser/asdl_c.py
Parser/pegen.c
Parser/string_parser.c
Python/Python-ast.c
Python/ast_opt.c
Python/bltinmodule.c
Python/pyarena.c
Python/pythonrun.c
Python/symtable.c
Tools/peg_generator/peg_extension/peg_extension.c