8000 gh-106320: Remove private _Py_UniversalNewlineFgetsWithSize() by vstinner · Pull Request #108602 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-106320: Remove private _Py_UniversalNewlineFgetsWithSize() #108602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-106320: Remove private _Py_UniversalNewlineFgetsWithSize()
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.
  • Loading branch information
vstinner committed Aug 29, 2023
commit efbb14473cd7e42ffbfeaec93b4df50b427def0f
1 change: 0 additions & 1 deletion Include/cpython/fileobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 2 additions & 0 deletions Include/internal/pycore_fileutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
0