mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-92869: ctypes: Add c_time_t (#92870)
Adds `ctypes.c_time_t` to represent the C `time_t` type accurately as its size varies. Primarily-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
This commit is contained in:
parent
39c29f753e
commit
b296c7442b
5 changed files with 44 additions and 7 deletions
|
@ -5784,6 +5784,7 @@ _ctypes_add_objects(PyObject *mod)
|
|||
MOD_ADD("RTLD_GLOBAL", PyLong_FromLong(RTLD_GLOBAL));
|
||||
MOD_ADD("CTYPES_MAX_ARGCOUNT", PyLong_FromLong(CTYPES_MAX_ARGCOUNT));
|
||||
MOD_ADD("ArgumentError", Py_NewRef(PyExc_ArgError));
|
||||
MOD_ADD("SIZEOF_TIME_T", PyLong_FromSsize_t(SIZEOF_TIME_T));
|
||||
return 0;
|
||||
#undef MOD_ADD
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue