diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-09 09:45:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-09 09:45:25 +0200 |
commit | fa6f9986dd73627643469c238b32dd92607f5214 (patch) | |
tree | de7ee1f4253ab815767b45c9ec0b03d802d01704 /build/lexer | |
parent | 2e98d3ec3aa57c7b1776d3bf5e7e219a9a3cb3af (diff) |
Add support for skipping already loaded/included buildfiles at top level
The idea is that a buildfile shall be included/loaded only once for any
given out_root.
Diffstat (limited to 'build/lexer')
-rw-r--r-- | build/lexer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build/lexer b/build/lexer index 787ba72..98a1390 100644 --- a/build/lexer +++ b/build/lexer @@ -127,8 +127,8 @@ namespace build bool eos_ {false}; lexer_mode mode_ {lexer_mode::normal}; - lexer_mode next_mode_; // Mode to switch to for the next token. - lexer_mode prev_mode_; // Mode to return to after this mode expires. + lexer_mode next_mode_ {lexer_mode::normal}; // Switch to for next token. + lexer_mode prev_mode_; // Return to after current mode expires. }; } |