Fix final remaining Py_ patterns

- Fixed Py_CONSTANT_* → Ty_CONSTANT_*
- Fixed Py_UNREACHABLE → Ty_UNREACHABLE
- Fixed Py_*_input constants (file_input, single_input, eval_input, func_type_input)
- Fixed _Py_COMP_DIAG_* compiler diagnostic macros

Build continues to progress toward completion.

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-29 18:43:58 +00:00
parent 0f2e4eb3fd
commit 4880786dfa
8 changed files with 17 additions and 17 deletions

View File

@@ -2281,7 +2281,7 @@ long_format_binary(TyObject *aa, int base, int alternate,
bits = 1;
break;
default:
Py_UNREACHABLE();
Ty_UNREACHABLE();
}
/* Compute exact length 'sz' of output string. */
@@ -5550,7 +5550,7 @@ long_bitwise(PyLongObject *a,
size_z = negb ? size_b : size_a;
break;
default:
Py_UNREACHABLE();
Ty_UNREACHABLE();
}
/* We allow an extra digit if z is negative, to make sure that
@@ -5577,7 +5577,7 @@ long_bitwise(PyLongObject *a,
z->long_value.ob_digit[i] = a->long_value.ob_digit[i] ^ b->long_value.ob_digit[i];
break;
default:
Py_UNREACHABLE();
Ty_UNREACHABLE();
}
/* Copy any remaining digits of a, inverting if necessary. */