mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
gh-110850: Replace _PyTime_t with PyTime_t (#115719)
Run command: sed -i -e 's!\<_PyTime_t\>!PyTime_t!g' $(find -name "*.c" -o -name "*.h")
This commit is contained in:
parent
0749244d13
commit
9af80ec83d
31 changed files with 341 additions and 341 deletions
|
@ -173,7 +173,7 @@ timeval_from_double(PyObject *obj, struct timeval *tv)
|
|||
return 0;
|
||||
}
|
||||
|
||||
_PyTime_t t;
|
||||
PyTime_t t;
|
||||
if (_PyTime_FromSecondsObject(&t, obj, _PyTime_ROUND_CEILING) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
@ -1207,7 +1207,7 @@ signal_sigtimedwait_impl(PyObject *module, sigset_t sigset,
|
|||
PyObject *timeout_obj)
|
||||
/*[clinic end generated code: output=59c8971e8ae18a64 input=87fd39237cf0b7ba]*/
|
||||
{
|
||||
_PyTime_t timeout;
|
||||
PyTime_t timeout;
|
||||
if (_PyTime_FromSecondsObject(&timeout,
|
||||
timeout_obj, _PyTime_ROUND_CEILING) < 0)
|
||||
return NULL;
|
||||
|
@ -1217,7 +1217,7 @@ signal_sigtimedwait_impl(PyObject *module, sigset_t sigset,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
_PyTime_t deadline = _PyDeadline_Init(timeout);
|
||||
PyTime_t deadline = _PyDeadline_Init(timeout);
|
||||
siginfo_t si;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue