From 0b6a4cb0df28a2698cd2402f988b40309c04b666 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 29 Aug 2023 01:42:24 +0200 Subject: [PATCH] gh-107149: Rename _PyUnstable_GetUnaryIntrinsicName() function (#108441) * Rename _PyUnstable_GetUnaryIntrinsicName() to PyUnstable_GetUnaryIntrinsicName() * Rename _PyUnstable_GetBinaryIntrinsicName() to PyUnstable_GetBinaryIntrinsicName(). --- Include/cpython/compile.h | 4 ++-- Modules/_opcode.c | 4 ++-- Python/intrinsics.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Include/cpython/compile.h b/Include/cpython/compile.h index ae17cef554f..265f5397b45 100644 --- a/Include/cpython/compile.h +++ b/Include/cpython/compile.h @@ -78,5 +78,5 @@ PyAPI_FUNC(int) PyUnstable_OpcodeHasFree(int opcode); PyAPI_FUNC(int) PyUnstable_OpcodeHasLocal(int opcode); PyAPI_FUNC(int) PyUnstable_OpcodeHasExc(int opcode); -PyAPI_FUNC(PyObject*) _PyUnstable_GetUnaryIntrinsicName(int index); -PyAPI_FUNC(PyObject*) _PyUnstable_GetBinaryIntrinsicName(int index); +PyAPI_FUNC(PyObject*) PyUnstable_GetUnaryIntrinsicName(int index); +PyAPI_FUNC(PyObject*) PyUnstable_GetBinaryIntrinsicName(int index); diff --git a/Modules/_opcode.c b/Modules/_opcode.c index 3e13dbb6edc..dac9c019b24 100644 --- a/Modules/_opcode.c +++ b/Modules/_opcode.c @@ -310,7 +310,7 @@ _opcode_get_intrinsic1_descs_impl(PyObject *module) return NULL; } for (int i=0; i <= MAX_INTRINSIC_1; i++) { - PyObject *name = _PyUnstable_GetUnaryIntrinsicName(i); + PyObject *name = PyUnstable_GetUnaryIntrinsicName(i); if (name == NULL) { Py_DECREF(list); return NULL; @@ -337,7 +337,7 @@ _opcode_get_intrinsic2_descs_impl(PyObject *module) return NULL; } for (int i=0; i <= MAX_INTRINSIC_2; i++) { - PyObject *name = _PyUnstable_GetBinaryIntrinsicName(i); + PyObject *name = PyUnstable_GetBinaryIntrinsicName(i); if (name == NULL) { Py_DECREF(list); return NULL; diff --git a/Python/intrinsics.c b/Python/intrinsics.c index fefee0fc4eb..8e59c63aea3 100644 --- a/Python/intrinsics.c +++ b/Python/intrinsics.c @@ -269,7 +269,7 @@ _PyIntrinsics_BinaryFunctions[] = { #undef INTRINSIC_FUNC_ENTRY PyObject* -_PyUnstable_GetUnaryIntrinsicName(int index) +PyUnstable_GetUnaryIntrinsicName(int index) { if (index < 0 || index > MAX_INTRINSIC_1) { return NULL; @@ -278,7 +278,7 @@ _PyUnstable_GetUnaryIntrinsicName(int index) } PyObject* -_PyUnstable_GetBinaryIntrinsicName(int index) +PyUnstable_GetBinaryIntrinsicName(int index) { if (index < 0 || index > MAX_INTRINSIC_2) { return NULL;