Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0a6fecb

Browse files
committed
Add back underscores
1 parent 11b0e43 commit 0a6fecb

File tree

5 files changed

+104
-104
lines changed

5 files changed

+104
-104
lines changed

Include/internal/pycore_optimizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extern bool _Py_uop_sym_is_null(_Py_UOpsSymType *sym);
8686
extern bool _Py_uop_sym_is_not_null(_Py_UOpsSymType *sym);
8787
extern bool _Py_uop_sym_is_const(_Py_UOpsSymType *sym);
8888
extern PyObject *_Py_uop_sym_get_const(_Py_UOpsSymType *sym);
89-
extern _Py_UOpsSymType *_Py_uop_sym_newunknown(_Py_UOpsAbstractInterpContext *ctx);
89+
extern _Py_UOpsSymType *_Py_uop_sym_new_unknown(_Py_UOpsAbstractInterpContext *ctx);
9090
extern _Py_UOpsSymType *_Py_uop_sym_new_notnull(_Py_UOpsAbstractInterpContext *ctx);
9191
extern _Py_UOpsSymType *_Py_uop_sym_new_type(
9292
_Py_UOpsAbstractInterpContext *ctx, PyTypeObject *typ);

Lib/test/test_generated_cases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ def test_overridden_abstract_args(self):
900900
901901
case OP2: {
902902
_Py_UOpsSymType *out;
903-
out = _Py_uop_sym_newunknown(ctx);
903+
out = _Py_uop_sym_new_unknown(ctx);
904904
if (out == NULL) goto out_of_space;
905905
stack_pointer[-1] = out;
906906
break;
@@ -925,7 +925,7 @@ def test_no_overridden_case(self):
925925
output = """
926926
case OP: {
927927
_Py_UOpsSymType *out;
928-
out = _Py_uop_sym_newunknown(ctx);
928+
out = _Py_uop_sym_new_unknown(ctx);
929929
if (out == NULL) goto out_of_space;
930930
stack_pointer[-1] = out;
931931
break;

Python/tier2_redundancy_eliminator_bytecodes.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ dummy_func(void) {
383383
/* This has to be done manually */
384384
(void)seq;
385385
for (int i = 0; i < oparg; i++) {
386-
OUT_OF_SPACE_IF_NULL(values[i] = _Py_uop_sym_newunknown(ctx));
386+
OUT_OF_SPACE_IF_NULL(values[i] = _Py_uop_sym_new_unknown(ctx));
387387
}
388388
}
389389

@@ -392,7 +392,7 @@ dummy_func(void) {
392392
(void)seq;
393393
int totalargs = (oparg & 0xFF) + (oparg >> 8) + 1;
394394
for (int i = 0; i < totalargs; i++) {
395-
OUT_OF_SPACE_IF_NULL(values[i] = _Py_uop_sym_newunknown(ctx));
395+
OUT_OF_SPACE_IF_NULL(values[i] = _Py_uop_sym_new_unknown(ctx));
396396
}
397397
}
398398

0 commit comments

Comments
 (0)