diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-28 23:42:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 23:42:24 (GMT) |
commit | 0b6a4cb0df28a2698cd2402f988b40309c04b666 (patch) | |
tree | 44edc9d7c7c6d7afe723a1e02878d8438e4c388b | |
parent | 0bd2ba553d1cbf4137295dad21fc06e7745ab858 (diff) | |
download | cpython-0b6a4cb0df28a2698cd2402f988b40309c04b666.zip cpython-0b6a4cb0df28a2698cd2402f988b40309c04b666.tar.gz cpython-0b6a4cb0df28a2698cd2402f988b40309c04b666.tar.bz2 |
gh-107149: Rename _PyUnstable_GetUnaryIntrinsicName() function (#108441)
* Rename _PyUnstable_GetUnaryIntrinsicName() to
PyUnstable_GetUnaryIntrinsicName()
* Rename _PyUnstable_GetBinaryIntrinsicName()
to PyUnstable_GetBinaryIntrinsicName().
-rw-r--r-- | Include/cpython/compile.h | 4 | ||||
-rw-r--r-- | Modules/_opcode.c | 4 | ||||
-rw-r--r-- | Python/intrinsics.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Include/cpython/compile.h b/Include/cpython/compile.h index ae17cef..265f539 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 3e13dbb..dac9c01 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 fefee0f..8e59c63 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; |