From 205187b561c3b31fa931e73e8f7263f0c4b1de41 Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Thu, 15 Jun 2017 13:24:25 -0700 Subject: Rename `CoreLib::*` to `Slang` Getting rid of more namespace complexity and stripping things down to the basics. This also gets rid of some dead code in the "core" library. --- tools/slang-test/os.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tools/slang-test/os.cpp') diff --git a/tools/slang-test/os.cpp b/tools/slang-test/os.cpp index 4bc3d8e6d..63db4f9ad 100644 --- a/tools/slang-test/os.cpp +++ b/tools/slang-test/os.cpp @@ -5,7 +5,7 @@ #include #include -using namespace CoreLib::Basic; +using namespace Slang; // Platform-specific code follows @@ -54,8 +54,8 @@ bool OSFindFilesResult::findNextFile() } OSFindFilesResult osFindFilesInDirectoryMatchingPattern( - CoreLib::Basic::String directoryPath, - CoreLib::Basic::String pattern) + Slang::String directoryPath, + Slang::String pattern) { // TODO: add separator to end of directory path if needed @@ -87,13 +87,13 @@ OSFindFilesResult osFindFilesInDirectoryMatchingPattern( } OSFindFilesResult osFindFilesInDirectory( - CoreLib::Basic::String directoryPath) + Slang::String directoryPath) { return osFindFilesInDirectoryMatchingPattern(directoryPath, "*"); } OSFindFilesResult osFindChildDirectories( - CoreLib::Basic::String directoryPath) + Slang::String directoryPath) { // TODO: add separator to end of directory path if needed @@ -189,7 +189,7 @@ static DWORD WINAPI osReaderThreadProc(LPVOID threadParam) } bytesRead = (DWORD)(writeCursor - buffer); - // Note: Current Slang CoreLib gives no way to know + // Note: Current "core" implementation gives no way to know // the length of the buffer, so we ultimately have // to just assume null termination... outputBuilder.Append(buffer, bytesRead); @@ -201,7 +201,7 @@ static DWORD WINAPI osReaderThreadProc(LPVOID threadParam) } void OSProcessSpawner::pushExecutableName( - CoreLib::Basic::String executableName) + Slang::String executableName) { executableName_ = executableName; commandLine_.Append(executableName); @@ -209,7 +209,7 @@ void OSProcessSpawner::pushExecutableName( } void OSProcessSpawner::pushExecutablePath( - CoreLib::Basic::String executablePath) + Slang::String executablePath) { executableName_ = executablePath; commandLine_.Append(executablePath); @@ -217,7 +217,7 @@ void OSProcessSpawner::pushExecutablePath( } void OSProcessSpawner::pushArgument( - CoreLib::Basic::String argument) + Slang::String argument) { // TODO(tfoley): handle cases where arguments need some escaping commandLine_.Append(" "); -- cgit v1.2.3