mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #17931: Resolve confusion on Windows between pids and process handles.
This commit is contained in:
parent
448f1a86ef
commit
ac0ad884d1
5 changed files with 29 additions and 23 deletions
|
|
@ -52,6 +52,19 @@ PyAPI_FUNC(PyObject *) PyLong_GetInfo(void);
|
|||
#error "sizeof(pid_t) is neither sizeof(int), sizeof(long) or sizeof(long long)"
|
||||
#endif /* SIZEOF_PID_T */
|
||||
|
||||
#if SIZEOF_VOID_P == SIZEOF_INT
|
||||
# define _Py_PARSE_INTPTR "i"
|
||||
# define _Py_PARSE_UINTPTR "I"
|
||||
#elif SIZEOF_VOID_P == SIZEOF_LONG
|
||||
# define _Py_PARSE_INTPTR "l"
|
||||
# define _Py_PARSE_UINTPTR "k"
|
||||
#elif defined(SIZEOF_LONG_LONG) && SIZEOF_VOID_P == SIZEOF_LONG_LONG
|
||||
# define _Py_PARSE_INTPTR "L"
|
||||
# define _Py_PARSE_UINTPTR "K"
|
||||
#else
|
||||
# error "void* different in size from int, long and long long"
|
||||
#endif /* SIZEOF_VOID_P */
|
||||
|
||||
/* Used by Python/mystrtoul.c. */
|
||||
#ifndef Py_LIMITED_API
|
||||
PyAPI_DATA(unsigned char) _PyLong_DigitValue[256];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue