summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-19 00:04:52 (GMT)
committerGitHub <noreply@github.com>2021-10-19 00:04:52 (GMT)
commit5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d (patch)
treea7e0aaa8abfd098cc990c8137d65164e2bc40ebd /Objects
parentaad88d33d9db0a93e480f0234292b948890dfc2a (diff)
downloadcpython-5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d.zip
cpython-5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d.tar.gz
cpython-5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d.tar.bz2
bpo-35134: Add Include/cpython/longobject.h (GH-29044)
Move Include/longobject.h non-limited API to a new Include/cpython/longobject.h header file. Move the following definitions to the internal C API: * _PyLong_DigitValue * _PyLong_FormatAdvancedWriter() * _PyLong_FormatWriter()
Diffstat (limited to 'Objects')
-rw-r--r--Objects/bytesobject.c1
-rw-r--r--Objects/unicodeobject.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 1163cf0..66fd2ec 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -8,6 +8,7 @@
#include "pycore_call.h" // _PyObject_CallNoArgs()
#include "pycore_format.h" // F_LJUST
#include "pycore_initconfig.h" // _PyStatus_OK()
+#include "pycore_long.h" // _PyLong_DigitValue
#include "pycore_object.h" // _PyObject_GC_TRACK
#include "pycore_pymem.h" // PYMEM_CLEANBYTE
#include "pycore_strhex.h" // _Py_strhex_with_sep()
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 386052f..61fc34d 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -46,6 +46,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "pycore_format.h" // F_LJUST
#include "pycore_initconfig.h" // _PyStatus_OK()
#include "pycore_interp.h" // PyInterpreterState.fs_codec
+#include "pycore_long.h" // _PyLong_FormatWriter()
#include "pycore_object.h" // _PyObject_GC_TRACK()
#include "pycore_pathconfig.h" // _Py_DumpPathConfig()
#include "pycore_pyerrors.h" // _Py_FatalRefcountError()