mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +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
|
@ -6,7 +6,7 @@
|
|||
#include "pycore_ceval.h" // Py_MakePendingCalls()
|
||||
#include "pycore_moduleobject.h" // _PyModule_GetState()
|
||||
#include "pycore_parking_lot.h"
|
||||
#include "pycore_time.h" // _PyTime_t
|
||||
#include "pycore_time.h" // PyTime_t
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h> // offsetof()
|
||||
|
@ -372,13 +372,13 @@ _queue_SimpleQueue_get_impl(simplequeueobject *self, PyTypeObject *cls,
|
|||
int block, PyObject *timeout_obj)
|
||||
/*[clinic end generated code: output=5c2cca914cd1e55b input=f7836c65e5839c51]*/
|
||||
{
|
||||
_PyTime_t endtime = 0;
|
||||
PyTime_t endtime = 0;
|
||||
|
||||
// XXX Use PyThread_ParseTimeoutArg().
|
||||
|
||||
if (block != 0 && !Py_IsNone(timeout_obj)) {
|
||||
/* With timeout */
|
||||
_PyTime_t timeout;
|
||||
PyTime_t timeout;
|
||||
if (_PyTime_FromSecondsObject(&timeout,
|
||||
timeout_obj, _PyTime_ROUND_CEILING) < 0) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue