mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Create _Py_wchar2char() function, reverse of _Py_char2wchar()
* Use _Py_wchar2char() in _wstat() and _Py_wfopen() * Document _Py_char2wchar()
This commit is contained in:
parent
e9b428f997
commit
f2e08b34f1
3 changed files with 97 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue