Mercurial > repos > rliterman > csp2
comparison 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 |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 69:33d812a61356 |
---|---|
1 #ifndef Py_CPYTHON_FILEOBJECT_H | |
2 # error "this header file must not be included directly" | |
3 #endif | |
4 | |
5 #ifdef __cplusplus | |
6 extern "C" { | |
7 #endif | |
8 | |
9 PyAPI_FUNC(char *) Py_UniversalNewlineFgets(char *, int, FILE*, PyObject *); | |
10 | |
11 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000 | |
12 PyAPI_DATA(const char *) Py_FileSystemDefaultEncodeErrors; | |
13 #endif | |
14 | |
15 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03070000 | |
16 PyAPI_DATA(int) Py_UTF8Mode; | |
17 #endif | |
18 | |
19 /* The std printer acts as a preliminary sys.stderr until the new io | |
20 infrastructure is in place. */ | |
21 PyAPI_FUNC(PyObject *) PyFile_NewStdPrinter(int); | |
22 PyAPI_DATA(PyTypeObject) PyStdPrinter_Type; | |
23 | |
24 typedef PyObject * (*Py_OpenCodeHookFunction)(PyObject *, void *); | |
25 | |
26 PyAPI_FUNC(PyObject *) PyFile_OpenCode(const char *utf8path); | |
27 PyAPI_FUNC(PyObject *) PyFile_OpenCodeObject(PyObject *path); | |
28 PyAPI_FUNC(int) PyFile_SetOpenCodeHook(Py_OpenCodeHookFunction hook, void *userData); | |
29 | |
30 #ifdef __cplusplus | |
31 } | |
32 #endif |