| 778 | |
| 779 | |
| 780 | void Preprocessor::IncludeFile(TokenSequence& is, |
| 781 | const std::string* filename) { |
| 782 | TokenSequence ts{ is.tokList_, is.begin_, is.begin_ }; |
| 783 | Scanner scanner(ReadFile(*filename), filename); |
| 784 | scanner.Tokenize(ts); |
| 785 | |
| 786 | // We done including header file |
| 787 | is.begin_ = ts.begin_; |
| 788 | } |
| 789 | void Preprocessor::IncludeSource(TokenSequence& is, const std::string* src, const std::string* filename) |
| 790 | { |
| 791 | TokenSequence ts{ is.tokList_, is.begin_, is.begin_ }; |