summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2022-11-02 15:13:07 (GMT)
committerGitHub <noreply@github.com>2022-11-02 15:13:07 (GMT)
commit6d683d85252df3c8dba7c33f7db87cdc1bcb0bf0 (patch)
tree0f962cf408c26f42da79cd49338c71409467551d /Include
parentc76db37c0d23174cbffd6fa978d39693890ef020 (diff)
downloadcpython-6d683d85252df3c8dba7c33f7db87cdc1bcb0bf0.zip
cpython-6d683d85252df3c8dba7c33f7db87cdc1bcb0bf0.tar.gz
cpython-6d683d85252df3c8dba7c33f7db87cdc1bcb0bf0.tar.bz2
gh-87092: do not allocate PyFutureFeatures dynamically (GH-98913)
Diffstat (limited to 'Include')
-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 1a628a0..cb490ab 100644
--- a/Include/internal/pycore_compile.h
+++ b/Include/internal/pycore_compile.h
@@ -18,10 +18,11 @@ PyAPI_FUNC(PyCodeObject*) _PyAST_Compile(
PyCompilerFlags *flags,
int optimize,
struct _arena *arena);
-extern PyFutureFeatures* _PyFuture_FromAST(
+
+int _PyFuture_FromAST(
struct _mod * mod,
- PyObject *filename
- );
+ PyObject *filename,
+ PyFutureFeatures* futures);
extern PyObject* _Py_Mangle(PyObject *p, PyObject *name);