diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 18:53:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 18:53:50 +0200 |
commit | c55e73112c7b0574d05a522015d0c927de266525 (patch) | |
tree | 8f1035a646c7b94afc0c1f2c250d009c99a37f36 /Python/hamt.c | |
parent | 7f316763402a7d5556deecc3acd06cb719e189b3 (diff) | |
download | cpython-c55e73112c7b0574d05a522015d0c927de266525.tar.gz cpython-c55e73112c7b0574d05a522015d0c927de266525.zip |
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.
Diffstat (limited to 'Python/hamt.c')
-rw-r--r-- | Python/hamt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/hamt.c b/Python/hamt.c index 24265edc2c3..a8fbb00b807 100644 --- a/Python/hamt.c +++ b/Python/hamt.c @@ -1,9 +1,10 @@ #include "Python.h" - -#include "pycore_bitutils.h" // _Py_popcount32 +#include "pycore_bitutils.h" // _Py_popcount32() #include "pycore_hamt.h" #include "pycore_initconfig.h" // _PyStatus_OK() +#include "pycore_long.h" // _PyLong_Format() #include "pycore_object.h" // _PyObject_GC_TRACK() + #include <stddef.h> // offsetof() /* |