added wxGetDiskSpace for Win/Unix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2001-08-25 16:54:14 +00:00
parent 3a994742ab
commit eadd7bd2cb
6 changed files with 164 additions and 10 deletions

View File

@@ -54,11 +54,11 @@
//#define TEST_FILENAME
//#define TEST_FTP
//#define TEST_HASH
//#define TEST_INFO_FUNCTIONS
#define TEST_INFO_FUNCTIONS
//#define TEST_LIST
//#define TEST_LOCALE
//#define TEST_LOG
#define TEST_LONGLONG
//#define TEST_LONGLONG
//#define TEST_MIME
//#define TEST_PATHLIST
//#define TEST_REGCONF
@@ -1366,7 +1366,7 @@ static void TestMimeAssociate()
static void TestDiskInfo()
{
puts("*** Testing wxGetDiskSpace() ***\n");
puts("*** Testing wxGetDiskSpace() ***");
for ( ;; )
{
@@ -1385,9 +1385,9 @@ static void TestDiskInfo()
}
else
{
wxPrintf(_T("%s total bytes, %s free bytes on '%s'.\n"),
total.ToString().c_str(),
free.ToString().c_str(),
wxPrintf(_T("%sKb total, %sKb free on '%s'.\n"),
(total / 1024).ToString().c_str(),
(free / 1024).ToString().c_str(),
pathname);
}
}