]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110850: Rename internal PyTime C API functions (#115734)
authorVictor Stinner <vstinner@python.org>
Tue, 20 Feb 2024 22:16:37 +0000 (23:16 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Feb 2024 22:16:37 +0000 (22:16 +0000)
commit52d14775665a6fde518ee3da88a73f39b09d993f
tree7aa83b307d5af59761a769d4a54746b7a7c81fc2
parente1fdc3c323bd605f92622b7ee18805885ff0bb4e
gh-110850: Rename internal PyTime C API functions (#115734)

Rename functions:

* _PyTime_GetSystemClock() => _PyTime_TimeUnchecked()
* _PyTime_GetPerfCounter() => _PyTime_PerfCounterUnchecked()
* _PyTime_GetMonotonicClock() => _PyTime_MonotonicUnchecked()
* _PyTime_GetSystemClockWithInfo() => _PyTime_TimeWithInfo()
* _PyTime_GetMonotonicClockWithInfo() => _PyTime_MonotonicWithInfo()
* _PyTime_GetMonotonicClockWithInfo() => _PyTime_MonotonicWithInfo()

Changes:

* Remove "typedef PyTime_t PyTime_t;" which was
  "typedef PyTime_t _PyTime_t;" before a previous rename.
* Update comments of "Unchecked" functions.
* Remove invalid PyTime_Time() comment.
16 files changed:
Include/internal/pycore_time.h
Modules/_datetimemodule.c
Modules/_lsprof.c
Modules/_randommodule.c
Modules/_testinternalcapi/test_lock.c
Modules/_testsinglephase.c
Modules/timemodule.c
Python/gc.c
Python/gc_free_threading.c
Python/import.c
Python/lock.c
Python/parking_lot.c
Python/pytime.c
Python/thread_nt.h
Python/thread_pthread.h
Tools/c-analyzer/cpython/ignored.tsv