Mercurial > cpython-lru_cache-weakref
diff Include/Python.h @ 63962:7be5916333df
Create _Py_wchar2char() function, reverse of _Py_char2wchar()
* Use _Py_wchar2char() in _wstat() and _Py_wfopen()
* Document _Py_char2wchar()
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 13 Aug 2010 23:29:08 +0000 |
| parents | 4742e7aea2f5 |
| children | 953010c0b168 |
line wrap: on
line diff
--- a/Include/Python.h Fri Aug 13 22:25:01 2010 +0000 +++ b/Include/Python.h Fri Aug 13 23:29:08 2010 +0000 @@ -126,12 +126,15 @@ #ifdef __cplusplus extern "C" { #endif + /* _Py_Mangle is defined in compile.c */ PyAPI_FUNC(PyObject*) _Py_Mangle(PyObject *p, PyObject *name); /* These functions live in main.c */ PyAPI_FUNC(wchar_t *) _Py_char2wchar(char *); +PyAPI_FUNC(char*) _Py_wchar2char(const wchar_t *text); PyAPI_FUNC(FILE *) _Py_wfopen(const wchar_t *path, const wchar_t *mode); + #ifdef __cplusplus } #endif
