Skip to content

Commit 8d8bf0b

Browse files
authored
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.
1 parent 15c5a50 commit 8d8bf0b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Include/cpython/fileobject.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#endif
44

55
PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
6-
PyAPI_FUNC(char *) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*);
76

87
/* The std printer acts as a preliminary sys.stderr until the new io
98
infrastructure is in place. */

Include/internal/pycore_fileutils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,8 @@ extern HRESULT PathCchSkipRoot(const wchar_t *pszPath, const wchar_t **ppszRootE
315315
// Export for 'select' shared extension (Argument Clinic code)
316316
PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *);
317317

318+
extern char* _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*);
319+
318320
#ifdef __cplusplus
319321
}
320322
#endif

0 commit comments

Comments
 (0)