mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
GH-115816: Assorted naming and formatting changes to improve maintainability. (GH-115987)
* Rename _Py_UOpsAbstractInterpContext to _Py_UOpsContext and _Py_UOpsSymType to _Py_UopsSymbol. * #define shortened form of _Py_uop_... names for improved readability.
This commit is contained in:
parent
10fbcd6c5d
commit
6ecfcfe894
8 changed files with 495 additions and 473 deletions
|
@ -890,8 +890,8 @@ class TestGeneratedAbstractCases(unittest.TestCase):
|
|||
"""
|
||||
output = """
|
||||
case OP: {
|
||||
_Py_UOpsSymType *arg1;
|
||||
_Py_UOpsSymType *out;
|
||||
_Py_UopsSymbol *arg1;
|
||||
_Py_UopsSymbol *out;
|
||||
arg1 = stack_pointer[-1];
|
||||
eggs();
|
||||
stack_pointer[-1] = out;
|
||||
|
@ -899,7 +899,7 @@ class TestGeneratedAbstractCases(unittest.TestCase):
|
|||
}
|
||||
|
||||
case OP2: {
|
||||
_Py_UOpsSymType *out;
|
||||
_Py_UopsSymbol *out;
|
||||
out = _Py_uop_sym_new_unknown(ctx);
|
||||
if (out == NULL) goto out_of_space;
|
||||
stack_pointer[-1] = out;
|
||||
|
@ -924,7 +924,7 @@ class TestGeneratedAbstractCases(unittest.TestCase):
|
|||
"""
|
||||
output = """
|
||||
case OP: {
|
||||
_Py_UOpsSymType *out;
|
||||
_Py_UopsSymbol *out;
|
||||
out = _Py_uop_sym_new_unknown(ctx);
|
||||
if (out == NULL) goto out_of_space;
|
||||
stack_pointer[-1] = out;
|
||||
|
@ -932,8 +932,8 @@ class TestGeneratedAbstractCases(unittest.TestCase):
|
|||
}
|
||||
|
||||
case OP2: {
|
||||
_Py_UOpsSymType *arg1;
|
||||
_Py_UOpsSymType *out;
|
||||
_Py_UopsSymbol *arg1;
|
||||
_Py_UopsSymbol *out;
|
||||
arg1 = stack_pointer[-1];
|
||||
stack_pointer[-1] = out;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue