summaryrefslogtreecommitdiff
path: root/Include/Python.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-08-13 23:29:08 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-08-13 23:29:08 +0000
commitf2e08b34f1fa50e99f8cab0a21721be2d1bb38b8 (patch)
tree01336b2c925f2c2ae2b7dd9df20010c4c25c49cd /Include/Python.h
parente9b428f9977f8733e6b0d2c321c093779f95080f (diff)
downloadcpython-git-f2e08b34f1fa50e99f8cab0a21721be2d1bb38b8.tar.gz
Create _Py_wchar2char() function, reverse of _Py_char2wchar()
* Use _Py_wchar2char() in _wstat() and _Py_wfopen() * Document _Py_char2wchar()
Diffstat (limited to 'Include/Python.h')
-rw-r--r--Include/Python.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/Python.h b/Include/Python.h
index 1def75bbb9..d5ac13e299 100644
--- a/Include/Python.h
+++ b/Include/Python.h
@@ -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