mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
gh-106320: Remove private PyLong C API functions (#108429)
Remove private PyLong C API functions: * _PyLong_AsByteArray() * _PyLong_DivmodNear() * _PyLong_Format() * _PyLong_Frexp() * _PyLong_FromByteArray() * _PyLong_FromBytes() * _PyLong_GCD() * _PyLong_Lshift() * _PyLong_Rshift() Move these functions to the internal C API. No longer export _PyLong_FromBytes() function.
This commit is contained in:
parent
7f31676340
commit
c55e73112c
10 changed files with 100 additions and 79 deletions
|
@ -8,9 +8,10 @@
|
|||
#endif
|
||||
|
||||
#include "Python.h"
|
||||
#include "pycore_call.h" // _PyObject_CallMethod()
|
||||
#include "pycore_moduleobject.h" // _PyModule_GetState()
|
||||
#include "pycore_bytesobject.h" // _PyBytes_Repeat
|
||||
#include "pycore_call.h" // _PyObject_CallMethod()
|
||||
#include "pycore_long.h" // _PyLong_FromByteArray()
|
||||
#include "pycore_moduleobject.h" // _PyModule_GetState()
|
||||
|
||||
#include <stddef.h> // offsetof()
|
||||
#include <stdbool.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue