mirror of
https://github.com/python/cpython.git
synced 2025-12-09 10:37:17 +00:00
gh-112136: Restore removed _PyArg_Parser (#121262)
Restore the private _PyArg_Parser structure and the private _PyArg_ParseTupleAndKeywordsFast() function, previously removed in Python 3.13 alpha 1. Recreate Include/cpython/modsupport.h header file.
This commit is contained in:
parent
7c66906802
commit
f8373db153
8 changed files with 40 additions and 24 deletions
|
|
@ -128,12 +128,6 @@ _PyRawMutex_Unlock(_PyRawMutex *m)
|
|||
_PyRawMutex_UnlockSlow(m);
|
||||
}
|
||||
|
||||
// A data structure that can be used to run initialization code once in a
|
||||
// thread-safe manner. The C++11 equivalent is std::call_once.
|
||||
typedef struct {
|
||||
uint8_t v;
|
||||
} _PyOnceFlag;
|
||||
|
||||
// Type signature for one-time initialization functions. The function should
|
||||
// return 0 on success and -1 on failure.
|
||||
typedef int _Py_once_fn_t(void *arg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue