diff options
Diffstat (limited to 'libbuild2/build/script/parser.cxx')
-rw-r--r-- | libbuild2/build/script/parser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/build/script/parser.cxx b/libbuild2/build/script/parser.cxx index c64bcd9..9c397f1 100644 --- a/libbuild2/build/script/parser.cxx +++ b/libbuild2/build/script/parser.cxx @@ -240,7 +240,7 @@ namespace build2 // void parser:: - execute (environment& e, runner& r) + execute (const script& s, environment& e, runner& r) { path_ = nullptr; // Set by replays. @@ -248,7 +248,7 @@ namespace build2 set_lexer (nullptr); - script_ = nullptr; + script_ = const_cast<script*> (&s); runner_ = &r; environment_ = &e; @@ -258,7 +258,7 @@ namespace build2 void parser:: exec_script () { - const script& s (environment_->script); + const script& s (*script_); runner_->enter (*environment_, s.start_loc); |