diff options
author | Victor Stinner <vstinner@python.org> | 2021-03-24 01:23:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-24 01:23:01 (GMT) |
commit | 8370e07e1e5b626e78ddc7aadbfaf248976c4454 (patch) | |
tree | 5ad56b80064a2e282bfd77442096ffab167de9ed /Include/internal/pycore_compile.h | |
parent | 919d42d477093154a30b55d9d79f023dbbe5614a (diff) | |
download | cpython-8370e07e1e5b626e78ddc7aadbfaf248976c4454.zip cpython-8370e07e1e5b626e78ddc7aadbfaf248976c4454.tar.gz cpython-8370e07e1e5b626e78ddc7aadbfaf248976c4454.tar.bz2 |
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 'Include/internal/pycore_compile.h')
-rw-r--r-- | Include/internal/pycore_compile.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Include/internal/pycore_compile.h b/Include/internal/pycore_compile.h index f6caec3..e8859bb 100644 --- a/Include/internal/pycore_compile.h +++ b/Include/internal/pycore_compile.h @@ -8,7 +8,8 @@ extern "C" { # error "this header requires Py_BUILD_CORE define" #endif -struct _mod; // Type defined in pycore_ast.h +struct _arena; // Type defined in pycore_pyarena.h +struct _mod; // Type defined in pycore_ast.h // Export the symbol for test_peg_generator (built as a library) PyAPI_FUNC(PyCodeObject*) _PyAST_Compile( @@ -16,7 +17,7 @@ PyAPI_FUNC(PyCodeObject*) _PyAST_Compile( PyObject *filename, PyCompilerFlags *flags, int optimize, - PyArena *arena); + struct _arena *arena); extern PyFutureFeatures* _PyFuture_FromAST( struct _mod * mod, PyObject *filename @@ -31,7 +32,7 @@ typedef struct { extern int _PyAST_Optimize( struct _mod *, - PyArena *arena, + struct _arena *arena, _PyASTOptimizeState *state); #ifdef __cplusplus |