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:
Mark Shannon 2024-02-27 13:25:02 +00:00 committed by GitHub
parent 10fbcd6c5d
commit 6ecfcfe894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 495 additions and 473 deletions

View file

@ -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;