summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_compile.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-03-24 01:23:01 (GMT)
committerGitHub <noreply@github.com>2021-03-24 01:23:01 (GMT)
commit8370e07e1e5b626e78ddc7aadbfaf248976c4454 (patch)
tree5ad56b80064a2e282bfd77442096ffab167de9ed /Include/internal/pycore_compile.h
parent919d42d477093154a30b55d9d79f023dbbe5614a (diff)
downloadcpython-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.h7
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