mirror of
https://github.com/python/cpython.git
synced 2025-10-27 16:57:08 +00:00
gh-110850: Replace private _PyTime_MAX with public PyTime_MAX (#115751)
Remove references to the old names _PyTime_MIN and _PyTime_MAX, now that PyTime_MIN and PyTime_MAX are public. Replace also _PyTime_MIN with PyTime_MIN.
This commit is contained in:
parent
1235e84276
commit
77430b6a32
3 changed files with 4 additions and 8 deletions
|
|
@ -318,10 +318,6 @@ extern int _PyTime_PerfCounterWithInfo(
|
|||
PyTime_t *t,
|
||||
_Py_clock_info_t *info);
|
||||
|
||||
// Alias for backward compatibility
|
||||
#define _PyTime_MIN PyTime_MIN
|
||||
#define _PyTime_MAX PyTime_MAX
|
||||
|
||||
|
||||
// --- _PyDeadline -----------------------------------------------------------
|
||||
|
||||
|
|
@ -352,7 +348,7 @@ extern int _PyTimeFraction_Set(
|
|||
PyTime_t denom);
|
||||
|
||||
// Compute ticks * frac.numer / frac.denom.
|
||||
// Clamp to [_PyTime_MIN; _PyTime_MAX] on overflow.
|
||||
// Clamp to [PyTime_MIN; PyTime_MAX] on overflow.
|
||||
extern PyTime_t _PyTimeFraction_Mul(
|
||||
PyTime_t ticks,
|
||||
const _PyTimeFraction *frac);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue