summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-02-21 08:11:40 (GMT)
committerGitHub <noreply@github.com>2024-02-21 08:11:40 (GMT)
commit77430b6a329bb04ca884d08afefda25112372afa (patch)
tree509b76cbe2ed47bdeed1520c7de15c11217bc3a3 /Include
parent1235e84276ab8eabca1348034453c614f0b6b543 (diff)
downloadcpython-77430b6a329bb04ca884d08afefda25112372afa.zip
cpython-77430b6a329bb04ca884d08afefda25112372afa.tar.gz
cpython-77430b6a329bb04ca884d08afefda25112372afa.tar.bz2
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.
Diffstat (limited to 'Include')
-rw-r--r--Include/internal/pycore_time.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/Include/internal/pycore_time.h b/Include/internal/pycore_time.h
index 682aee2..57ee55f 100644
--- a/Include/internal/pycore_time.h
+++ b/Include/internal/pycore_time.h
@@ -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);