mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
gh-107149: make new opcode util functions private rather than public and unstable (#112042)
This commit is contained in:
parent
b28bb130bb
commit
36aab34fab
5 changed files with 43 additions and 39 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue