]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106320: Fix test_peg_generator: _Py_UniversalNewlineFgetsWithSize() (#108609)
authorVictor Stinner <vstinner@python.org>
Tue, 29 Aug 2023 03:40:13 +0000 (05:40 +0200)
committerGitHub <noreply@github.com>
Tue, 29 Aug 2023 03:40:13 +0000 (03:40 +0000)
Fix test_peg_generator by exporting the
_Py_UniversalNewlineFgetsWithSize() function.

Include/internal/pycore_fileutils.h

index 4707a9b1ff3052d129f12cb2bef9e9d692fe3b83..9236e5907a48d58090f5dbac86d2e031724ab276 100644 (file)
@@ -315,7 +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*);
+// Export for test_peg_generator
+PyAPI_FUNC(char*) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*);
 
 #ifdef __cplusplus
 }