From 8370e07e1e5b626e78ddc7aadbfaf248976c4454 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 24 Mar 2021 02:23:01 +0100 Subject: 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() --- Python/ast_opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast_opt.c') diff --git a/Python/ast_opt.c b/Python/ast_opt.c index 64fa0672ad..0310466b34 100644 --- a/Python/ast_opt.c +++ b/Python/ast_opt.c @@ -16,7 +16,7 @@ make_const(expr_ty node, PyObject *val, PyArena *arena) PyErr_Clear(); return 1; } - if (PyArena_AddPyObject(arena, val) < 0) { + if (_PyArena_AddPyObject(arena, val) < 0) { Py_DECREF(val); return 0; } -- cgit v1.2.1