[Python-checkins] cpython: Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat

steve.dower python-checkins at python.org
Sat Feb 21 19:04:24 CET 2015


https://hg.python.org/cpython/rev/307713759a62
changeset:   94720:307713759a62
parent:      94718:4f6f4aa0d80f
user:        Steve Dower <steve.dower at microsoft.com>
date:        Sat Feb 21 10:04:10 2015 -0800
summary:
  Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat

files:
  Modules/posixmodule.c |  6 +++---
  Python/fileutils.c    |  4 ++--
  2 files changed, 5 insertions(+), 5 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1580,7 +1580,7 @@
 
 /* defined in fileutils.c */
 int
-attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag, struct _Py_stat_struct *result);
+_Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag, struct _Py_stat_struct *result);
 
 static int
 win32_xstat_impl_w(const wchar_t *path, struct _Py_stat_struct *result,
@@ -1669,7 +1669,7 @@
         } else
             CloseHandle(hFile);
     }
-    attribute_data_to_stat(&info, reparse_tag, result);
+    _Py_attribute_data_to_stat(&info, reparse_tag, result);
 
     /* Set S_IEXEC if it is an .exe, .bat, ... */
     dot = strrchr(path, '.');
@@ -1765,7 +1765,7 @@
         } else
             CloseHandle(hFile);
     }
-    attribute_data_to_stat(&info, reparse_tag, result);
+    _Py_attribute_data_to_stat(&info, reparse_tag, result);
 
     /* Set S_IEXEC if it is an .exe, .bat, ... */
     dot = wcsrchr(path, '.');
diff --git a/Python/fileutils.c b/Python/fileutils.c
--- a/Python/fileutils.c
+++ b/Python/fileutils.c
@@ -592,7 +592,7 @@
 }
 
 int
-attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag, struct _Py_stat_struct *result)
+_Py_attribute_data_to_stat(BY_HANDLE_FILE_INFORMATION *info, ULONG reparse_tag, struct _Py_stat_struct *result)
 {
     memset(result, 0, sizeof(*result));
     result->st_mode = attributes_to_mode(info->dwFileAttributes);
@@ -671,7 +671,7 @@
         return -1;
     }
 
-    attribute_data_to_stat(&info, 0, result);
+    _Py_attribute_data_to_stat(&info, 0, result);
     /* specific to fstat() */
     result->st_ino = (((__int64)info.nFileIndexHigh)<<32) + info.nFileIndexLow;
     return 0;

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list