mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
gh-106320: Remove private _PySys functions (#108452)
Move private functions to the internal C API (pycore_sysmodule.h): * _PySys_GetAttr() * _PySys_GetSizeOf() No longer export most of these functions. Fix also a typo in Include/cpython/optimizer.h: add a missing space.
This commit is contained in:
parent
26893016a7
commit
a071ecb4d1
12 changed files with 20 additions and 8 deletions
|
|
@ -8,6 +8,12 @@ extern "C" {
|
|||
# error "this header requires Py_BUILD_CORE define"
|
||||
#endif
|
||||
|
||||
// Export for '_pickle' shared extension
|
||||
PyAPI_FUNC(PyObject*) _PySys_GetAttr(PyThreadState *tstate, PyObject *name);
|
||||
|
||||
// Export for '_pickle' shared extension
|
||||
PyAPI_FUNC(size_t) _PySys_GetSizeOf(PyObject *);
|
||||
|
||||
extern int _PySys_Audit(
|
||||
PyThreadState *tstate,
|
||||
const char *event,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue