8000 gh-107149: Rename _PyUnstable_GetUnaryIntrinsicName() function (#108441) · python/cpython@0b6a4cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 0b6a4cb

Browse files
authored
gh-107149: Rename _PyUnstable_GetUnaryIntrinsicName() function (#108441)
* Rename _PyUnstable_GetUnaryIntrinsicName() to PyUnstable_GetUnaryIntrinsicName() * Rename _PyUnstable_GetBinaryIntrinsicName() to PyUnstable_GetBinaryIntrinsicName().
1 parent 0bd2ba5 commit 0b6a4cb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Include/cpython/compile.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,5 @@ PyAPI_FUNC(int) PyUnstable_OpcodeHasFree(int opcode);
7878
PyAPI_FUNC(int) PyUnstable_OpcodeHasLocal(int opcode);
7979
PyAPI_FUNC(int) PyUnstable_OpcodeHasExc(int opcode);
8080

81-
PyAPI_FUNC(PyObject*) _PyUnstable_GetUnaryIntrinsicName(int index);
82-
PyAPI_FUNC(PyObject*) _PyUnstable_GetBinaryIntrinsicName(int index);
81+
PyAPI_FUNC(PyObject*) PyUnstable_GetUnaryIntrinsicName(int index);
82+
PyAPI_FUNC(PyObject*) PyUnstable_GetBinaryIntrinsicName(int index);

Modules/_opcode.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ _opcode_get_intrinsic1_descs_impl(PyObject *module)
310310
return NULL;
311311
}
312312
for (int i=0; i <= MAX_INTRINSIC_1; i++) {
313-
PyObject *name = _PyUnstable_GetUnaryIntrinsicName(i);
313+
PyObject *name = PyUnstable_GetUnaryIntrinsicName(i);
314314
if (name == NULL) {
315315
Py_DECREF(list);
316316
return NULL;
@@ -337,7 +337,7 @@ _opcode_get_intrinsic2_descs_impl(PyObject *module)
337337
return NULL;
338338
}
339339
for (int i=0; i <= MAX_INTRINSIC_2; i++) {
340-
PyObject *name = _PyUnstable_GetBinaryIntrinsicName(i);
340+
PyObject *name = PyUnstable_GetBinaryIntrinsicName(i);
341341
if (name == NULL) {
342342
Py_DECREF(list);
343343
return NULL;

Python/intrinsics.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ _PyIntrinsics_BinaryFunctions[] = {
269269
#undef INTRINSIC_FUNC_ENTRY
270270

271271
PyObject*
272-
_PyUnstable_GetUnaryIntrinsicName(int index)
272+
PyUnstable_GetUnaryIntrinsicName(int index)
273273
{
274274
if (index < 0 || index > MAX_INTRINSIC_1) {
275275
return NULL;
@@ -278,7 +278,7 @@ _PyUnstable_GetUnaryIntrinsicName(int index)
278278
}
279279

280280
PyObject*
281-
_PyUnstable_GetBinaryIntrinsicName(int index)
281+
PyUnstable_GetBinaryIntrinsicName(int index)
282282
{
283283
if (index < 0 || index > MAX_INTRINSIC_2) {
284284
return NULL;

0 commit comments

Comments
 (0)
0