From: Victor Stinner Date: Tue, 29 Aug 2023 02:36:50 +0000 (+0200) Subject: gh-106320: Remove private _Py_UniversalNewlineFgetsWithSize() (#108602) X-Git-Tag: v3.13.0a1~728 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d8bf0b5140a7e5bd1cba7c66694cf44cdf6d0a9;p=thirdparty%2FPython%2Fcpython.git gh-106320: Remove private _Py_UniversalNewlineFgetsWithSize() (#108602) The remove private _Py_UniversalNewlineFgetsWithSize() function from the public C API: move it the internal C API (pycore_fileutils.h). No longer export the function. --- diff --git a/Include/cpython/fileobject.h b/Include/cpython/fileobject.h index 6fbe69604af4..e2d89c522bdd 100644 --- a/Include/cpython/fileobject.h +++ b/Include/cpython/fileobject.h @@ -3,7 +3,6 @@ #endif PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *); -PyAPI_FUNC(char *) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*); /* The std printer acts as a preliminary sys.stderr until the new io infrastructure is in place. */ diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index f6e625870de9..4707a9b1ff30 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -315,6 +315,8 @@ extern HRESULT PathCchSkipRoot(const wchar_t *pszPath, const wchar_t **ppszRootE // Export for 'select' shared extension (Argument Clinic code) PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *); +extern char* _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*); + #ifdef __cplusplus } #endif