diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-06-15 15:54:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-15 15:54:35 -0700 |
| commit | 1353a7854a738ae173aa1b2f3361f54b82757095 (patch) | |
| tree | 199e9a54596c572015c7b0652e62b941418f483f /source/slang/preprocessor.cpp | |
| parent | c34a433d7aa3fdbfefee22f20d5aac2d960f392a (diff) | |
| parent | 04d43cd71f081f1b8d2f0fd803a47cb6342e4fcd (diff) | |
Merge pull request #26 from tfoleyNV/cleanup
Cleanup
Diffstat (limited to 'source/slang/preprocessor.cpp')
| -rw-r--r-- | source/slang/preprocessor.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/source/slang/preprocessor.cpp b/source/slang/preprocessor.cpp index 60329c275..b8a42d46d 100644 --- a/source/slang/preprocessor.cpp +++ b/source/slang/preprocessor.cpp @@ -10,15 +10,13 @@ #include <assert.h> -using namespace CoreLib; - // This file provides an implementation of a simple C-style preprocessor. // It does not aim for 100% compatibility with any particular preprocessor // specification, but the goal is to have it accept the most common // idioms for using the preprocessor, found in shader code in the wild. -namespace Slang{ namespace Compiler { +namespace Slang{ // State of a preprocessor conditional, which can change when // we encounter directives like `#elif` or `#endif` @@ -207,7 +205,7 @@ static void DestroyInputStream(Preprocessor* /*preprocessor*/, PreprocessorInput // Create an input stream to represent a pre-tokenized input file. // TODO(tfoley): pre-tokenizing files isn't going to work in the long run. -static PreprocessorInputStream* CreateInputStreamForSource(Preprocessor* preprocessor, CoreLib::String const& source, CoreLib::String const& fileName) +static PreprocessorInputStream* CreateInputStreamForSource(Preprocessor* preprocessor, String const& source, String const& fileName) { SourceTextInputStream* inputStream = new SourceTextInputStream(); InitializeInputStream(preprocessor, inputStream); @@ -2009,11 +2007,11 @@ static TokenList ReadAllTokens( } TokenList preprocessSource( - CoreLib::String const& source, - CoreLib::String const& fileName, + String const& source, + String const& fileName, DiagnosticSink* sink, IncludeHandler* includeHandler, - CoreLib::Dictionary<CoreLib::String, CoreLib::String> defines, + Dictionary<String, String> defines, ProgramSyntaxNode* syntax) { Preprocessor preprocessor; @@ -2056,4 +2054,4 @@ TokenList preprocessSource( return tokens; } -}} +} |
