Mercurial > cpython-lru_cache-weakref
comparison Include/Python.h @ 65162:39014f0abc32
Create fileutils.c/.h
* _Py_fopen() and _Py_stat() come from Python/import.c
* (_Py)_wrealpath() comes from Python/sysmodule.c
* _Py_char2wchar(), _Py_wchar2char() and _Py_wfopen() come from Modules/main.c
* (_Py)_wstat(), (_Py)_wgetcwd(), _Py_wreadlink() come from Modules/getpath.c
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Thu, 07 Oct 2010 21:45:39 +0000 |
| parents | d360311f0e52 |
| children | 8304bd765bcf |
comparison
equal
deleted
inserted
replaced
| 65161:071f1f7af522 | 65162:39014f0abc32 |
|---|---|
| 120 | 120 |
| 121 #include "pyctype.h" | 121 #include "pyctype.h" |
| 122 #include "pystrtod.h" | 122 #include "pystrtod.h" |
| 123 #include "pystrcmp.h" | 123 #include "pystrcmp.h" |
| 124 #include "dtoa.h" | 124 #include "dtoa.h" |
| 125 #include "fileutils.h" | |
| 125 | 126 |
| 126 #ifdef __cplusplus | 127 #ifdef __cplusplus |
| 127 extern "C" { | 128 extern "C" { |
| 128 #endif | 129 #endif |
| 129 | 130 |
| 130 /* _Py_Mangle is defined in compile.c */ | 131 /* _Py_Mangle is defined in compile.c */ |
| 131 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); | 132 PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); |
| 132 | |
| 133 /* These functions live in main.c */ | |
| 134 PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *); | |
| 135 PyAPI_FUNC(char*) _Py_wchar2char(const wchar_t *text); | |
| 136 PyAPI_FUNC(FILE *) _Py_wfopen(const wchar_t *path, const wchar_t *mode); | |
| 137 | |
| 138 /* These functions live in import.c */ | |
| 139 PyAPI_FUNC(FILE*) _Py_fopen(PyObject *unicode, const char *mode); | |
| 140 #ifdef HAVE_STAT | |
| 141 int _Py_stat(PyObject *unicode, struct stat *statbuf); | |
| 142 #endif | |
| 143 | 133 |
| 144 #ifdef __cplusplus | 134 #ifdef __cplusplus |
| 145 } | 135 } |
| 146 #endif | 136 #endif |
| 147 | 137 |
