annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/include/python3.8/cpython/fileobject.h @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 #ifndef Py_CPYTHON_FILEOBJECT_H
jpayne@69 2 # error "this header file must not be included directly"
jpayne@69 3 #endif
jpayne@69 4
jpayne@69 5 #ifdef __cplusplus
jpayne@69 6 extern "C" {
jpayne@69 7 #endif
jpayne@69 8
jpayne@69 9 PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *);
jpayne@69 10
jpayne@69 11 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
jpayne@69 12 PyAPI_DATA(const char *) Py_FileSystemDefaultEncodeErrors;
jpayne@69 13 #endif
jpayne@69 14
jpayne@69 15 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000
jpayne@69 16 PyAPI_DATA(int) Py_UTF8Mode;
jpayne@69 17 #endif
jpayne@69 18
jpayne@69 19 /* The std printer acts as a preliminary sys.stderr until the new io
jpayne@69 20 infrastructure is in place. */
jpayne@69 21 PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int);
jpayne@69 22 PyAPI_DATA(PyTypeObject) PyStdPrinter_Type;
jpayne@69 23
jpayne@69 24 typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *);
jpayne@69 25
jpayne@69 26 PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path);
jpayne@69 27 PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path);
jpayne@69 28 PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData);
jpayne@69 29
jpayne@69 30 #ifdef __cplusplus
jpayne@69 31 }
jpayne@69 32 #endif