diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-11-14 00:31:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-14 00:31:02 +0000 |
commit | 36aab34fab3d05f254fe80ca542c38c5f9ae11fe (patch) | |
tree | fa858c70058b86c5dfa1396761c7cb8a4150a2db /Python/intrinsics.c | |
parent | b28bb130bbc2ad956828819967d83e06d30a65c5 (diff) | |
download | cpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.tar.gz cpython-36aab34fab3d05f254fe80ca542c38c5f9ae11fe.zip |
gh-107149: make new opcode util functions private rather than public and unstable (#112042)
Diffstat (limited to 'Python/intrinsics.c')
-rw-r--r-- | Python/intrinsics.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/intrinsics.c b/Python/intrinsics.c index bbd79ec473f..d3146973b75 100644 --- a/Python/intrinsics.c +++ b/Python/intrinsics.c @@ -5,6 +5,7 @@ #include "pycore_frame.h" #include "pycore_function.h" #include "pycore_global_objects.h" +#include "pycore_compile.h" // _PyCompile_GetUnaryIntrinsicName, etc #include "pycore_intrinsics.h" // INTRINSIC_PRINT #include "pycore_pyerrors.h" // _PyErr_SetString() #include "pycore_runtime.h" // _Py_ID() @@ -269,7 +270,7 @@ _PyIntrinsics_BinaryFunctions[] = { #undef INTRINSIC_FUNC_ENTRY PyObject* -PyUnstable_GetUnaryIntrinsicName(int index) +_PyCompile_GetUnaryIntrinsicName(int index) { if (index < 0 || index > MAX_INTRINSIC_1) { return NULL; @@ -278,7 +279,7 @@ PyUnstable_GetUnaryIntrinsicName(int index) } PyObject* -PyUnstable_GetBinaryIntrinsicName(int index) +_PyCompile_GetBinaryIntrinsicName(int index) { if (index < 0 || index > MAX_INTRINSIC_2) { return NULL; |