summaryrefslogtreecommitdiff
path: root/Include/fileutils.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 22:23:10 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-10-07 22:23:10 +0000
commita4a759515e2e0114d41acdada3642265c01270ac (patch)
tree1929fc7dd922e10ec6d710a390b4f0fdcffaa1db /Include/fileutils.h
parentb306d7594ff0ed5ba666dbb26491a269abfbc9d7 (diff)
downloadcpython-git-a4a759515e2e0114d41acdada3642265c01270ac.tar.gz
_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/fileutils.h')
-rw-r--r--Include/fileutils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/fileutils.h b/Include/fileutils.h
index 9b2d34dc89..1d8df15d3c 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