From 5f09bb021a2862ba89c3ecb53e7e6e95a9e07e1d Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 19 Oct 2021 02:04:52 +0200 Subject: 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() --- Python/formatter_unicode.c | 3 ++- Python/mystrtoul.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'Python') diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 9071bf3a65..0c21301fb9 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -3,7 +3,8 @@ of int.__float__, etc., that take and return unicode objects */ #include "Python.h" -#include "pycore_fileutils.h" +#include "pycore_fileutils.h" // _Py_GetLocaleconvNumeric() +#include "pycore_long.h" // _PyLong_FormatWriter() #include /* Raises an exception about an unknown presentation type for this diff --git a/Python/mystrtoul.c b/Python/mystrtoul.c index 19fa57aa14..e6fe154eed 100644 --- a/Python/mystrtoul.c +++ b/Python/mystrtoul.c @@ -1,5 +1,5 @@ - #include "Python.h" +#include "pycore_long.h" // _PyLong_DigitValue #if defined(__sgi) && !defined(_SGI_MP_SOURCE) #define _SGI_MP_SOURCE -- cgit v1.2.1