diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2023-09-23 06:35:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-23 06:35:30 (GMT) |
commit | b8d1744e7ba87a4057350fdfd788b5621095fc59 (patch) | |
tree | 367ba89c2a83a1115f74b1e0c83384e047ef4b84 /Include/internal/pycore_fileutils.h | |
parent | 92af0cc580051fd1129c7a86af2cbadeb2aa36dc (diff) | |
download | cpython-b8d1744e7ba87a4057350fdfd788b5621095fc59.zip cpython-b8d1744e7ba87a4057350fdfd788b5621095fc59.tar.gz cpython-b8d1744e7ba87a4057350fdfd788b5621095fc59.tar.bz2 |
gh-109611: Add convenient C API function _PyFile_Flush() (GH-109612)
Diffstat (limited to 'Include/internal/pycore_fileutils.h')
-rw-r--r-- | Include/internal/pycore_fileutils.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_fileutils.h b/Include/internal/pycore_fileutils.h index 9236e59..2f89da2 100644 --- a/Include/internal/pycore_fileutils.h +++ b/Include/internal/pycore_fileutils.h @@ -318,6 +318,8 @@ PyAPI_FUNC(int) _PyLong_FileDescriptor_Converter(PyObject *, void *); // Export for test_peg_generator PyAPI_FUNC(char*) _Py_UniversalNewlineFgetsWithSize(char *, int, FILE*, PyObject *, size_t*); +extern int _PyFile_Flush(PyObject *); + #ifdef __cplusplus } #endif |