mirror of https://github.com/python/cpython
gh-107149: Rename _PyUnstable_GetUnaryIntrinsicName() function (#108441)
* Rename _PyUnstable_GetUnaryIntrinsicName() to PyUnstable_GetUnaryIntrinsicName() * Rename _PyUnstable_GetBinaryIntrinsicName() to PyUnstable_GetBinaryIntrinsicName().
This commit is contained in:
parent
0bd2ba553d
commit
0b6a4cb0df
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue