diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-07 22:23:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-10-07 22:23:10 (GMT) |
commit | a4a759515e2e0114d41acdada3642265c01270ac (patch) | |
tree | 1929fc7dd922e10ec6d710a390b4f0fdcffaa1db /Include | |
parent | b306d7594ff0ed5ba666dbb26491a269abfbc9d7 (diff) | |
download | cpython-a4a759515e2e0114d41acdada3642265c01270ac.zip cpython-a4a759515e2e0114d41acdada3642265c01270ac.tar.gz cpython-a4a759515e2e0114d41acdada3642265c01270ac.tar.bz2 |
_Py_stat() and _Py_fopen(): avoid PyUnicode_AsWideCharString() on Windows
On Windows, Py_UNICODE is wchar_t, so we can avoid the expensive Py_UNICODE*
=> wchar_t* conversion.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/fileutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h index 9b2d34d..1d8df15 100644 --- a/Include/fileutils.h +++ b/Include/fileutils.h @@ -19,7 +19,7 @@ PyAPI_FUNC(int) _Py_wstat( #ifdef HAVE_STAT PyAPI_FUNC(int) _Py_stat( - PyObject *unicode, + PyObject *path, struct stat *statbuf); #endif @@ -28,7 +28,7 @@ PyAPI_FUNC(FILE *) _Py_wfopen( const wchar_t *mode); PyAPI_FUNC(FILE*) _Py_fopen( - PyObject *unicode, + PyObject *path, const char *mode); #ifdef HAVE_READLINK |