[prev in list] [next in list] [prev in thread] [next in thread]
List: llvm-commits
Subject: [llvm-commits] CVS: llvm/lib/System/Win32/Path.inc
From: "Chris Lattner" <lattner () cs ! uiuc ! edu>
Date: 2006-07-28 22:32:23
Message-ID: 200607282232.k6SMWNh1008586 () zion ! cs ! uiuc ! edu
[Download RAW message or body]
Changes in directory llvm/lib/System/Win32:
Path.inc updated: 1.46 -> 1.47
---
Log message:
Update win32 for Path::getStatusInfo
---
Diffs of the changes: (+6 -4)
Path.inc | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
Index: llvm/lib/System/Win32/Path.inc
diff -u llvm/lib/System/Win32/Path.inc:1.46 llvm/lib/System/Win32/Path.inc:1.47
--- llvm/lib/System/Win32/Path.inc:1.46 Fri Jul 28 17:29:50 2006
+++ llvm/lib/System/Win32/Path.inc Fri Jul 28 17:32:09 2006
@@ -333,11 +333,12 @@
return path.substr(pos+1);
}
-void
-Path::getStatusInfo(StatusInfo& info) const {
+bool
+Path::getStatusInfo(FileStatus &info, std::string *ErrStr) const {
WIN32_FILE_ATTRIBUTE_DATA fi;
if (!GetFileAttributesEx(path.c_str(), GetFileExInfoStandard, &fi))
- ThrowError("getStatusInfo():" + std::string(path) + ": Can't get status: ");
+ return GetError("getStatusInfo():" + std::string(path) +
+ ": Can't get status: ", ErrStr);
info.fileSize = fi.nFileSizeHigh;
info.fileSize <<= sizeof(fi.nFileSizeHigh)*8;
@@ -351,6 +352,7 @@
info.modTime.fromWin32Time(ft);
info.isDir = fi.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
+ return false;
}
static bool AddPermissionBits(const std::string& Filename, int bits) {
@@ -691,7 +693,7 @@
}
bool
-Path::setStatusInfoOnDisk(const StatusInfo& si) const {
+Path::setStatusInfoOnDisk(const FileStatus &si) const {
// FIXME: should work on directories also.
if (!isFile()) return false;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic