]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106320: Remove private _Py_UniversalNewlineFgetsWithSize() (#108602)
authorVictor Stinner <vstinner@python.org>
Tue, 29 Aug 2023 02:36:50 +0000 (04:36 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 02:36:50 +0000 (02:36 +0000)
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.

Include/cpython/fileobject.h
Include/internal/pycore_fileutils.h

index 6fbe69604af40c1fd87683ea835ac7e0b8b6c5c0..e2d89c522bdd1326b440421c76f4cc0f77d6ba87 100644 (file)
@@ -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. */
index f6e625870de9d131eada666bcdd92aaff68a1aab..4707a9b1ff3052d129f12cb2bef9e9d692fe3b83 100644 (file)
@@ -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