summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-29 03:40:13 (GMT)
committerGitHub <noreply@github.com>2023-08-29 03:40:13 (GMT)
commitc780698e9b8416633402657ee2846c0179705e9b (patch)
treec42e789feccdce0f84939d5181707baed925af92
parentb6de2850f286455239dcf16b9682db85ae64c6a1 (diff)
downloadcpython-c780698e9b8416633402657ee2846c0179705e9b.zip
cpython-c780698e9b8416633402657ee2846c0179705e9b.tar.gz
cpython-c780698e9b8416633402657ee2846c0179705e9b.tar.bz2
gh-106320: Fix test_peg_generator: _Py_UniversalNewlineFgetsWithSize() (#108609)
Fix test_peg_generator by exporting the _Py_UniversalNewlineFgetsWithSize() function.
-rw-r--r--Include/internal/pycore_fileutils.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h
index 4707a9b..9236e59 100644
--- a/Include/internal/pycore_fileutils.h
+++ b/Include/internal/pycore_fileutils.h
@@ -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
}