Merged revisions 84008-84009 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84008 | antoine.pitrou | 2010-08-14 14:33:18 +0200 (sam., 14 août 2010) | 3 lines

  Add comments about Windows in Modules/getpath.c
........
  r84009 | antoine.pitrou | 2010-08-14 14:34:41 +0200 (sam., 14 août 2010) | 2 lines

  Fix indentation in Modules/getpath.c
........
This commit is contained in:
Antoine Pitrou 2010-08-14 12:36:30 +00:00
parent abfb5ac30a
commit d6dac2e2fd
1 changed files with 62 additions and 57 deletions

View File

@ -89,6 +89,8 @@
* directory). This seems to make more sense given that currently the only * directory). This seems to make more sense given that currently the only
* known use of sys.prefix and sys.exec_prefix is for the ILU installation * known use of sys.prefix and sys.exec_prefix is for the ILU installation
* process to find the installed Python tree. * process to find the installed Python tree.
*
* NOTE: Windows MSVC builds use PC/getpathp.c instead!
*/ */
#ifdef __cplusplus #ifdef __cplusplus
@ -134,7 +136,10 @@ static wchar_t lib_python[] = L"lib/python" VERSION;
/* In principle, this should use HAVE__WSTAT, and _wstat /* In principle, this should use HAVE__WSTAT, and _wstat
should be detected by autoconf. However, no current should be detected by autoconf. However, no current
POSIX system provides that function, so testing for POSIX system provides that function, so testing for
it is pointless. */ it is pointless.
Not sure whether the MS_WINDOWS guards are necessary:
perhaps for cygwin/mingw builds?
*/
#ifndef MS_WINDOWS #ifndef MS_WINDOWS
static int static int
_wstat(const wchar_t* path, struct stat *buf) _wstat(const wchar_t* path, struct stat *buf)