diff options
Diffstat (limited to 'build2/test/script/script')
-rw-r--r-- | build2/test/script/script | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/build2/test/script/script b/build2/test/script/script index 1be33bb..4f39c58 100644 --- a/build2/test/script/script +++ b/build2/test/script/script @@ -48,6 +48,11 @@ namespace build2 { line_type type; replay_tokens tokens; + + union + { + const variable* var; // Pre-entered for line_type::var. + }; }; // Most of the time we will have just one line (test command). @@ -296,6 +301,11 @@ namespace build2 value& append (const variable&); + // Reset special $*, $N variables based on the test.* values. + // + void + reset_special (); + // Cleanup. // public: @@ -400,9 +410,10 @@ namespace build2 const variable& opts_var; // test.options const variable& args_var; // test.arguments - const variable& cmd_var; // $* - const variable& wd_var; // $~ - const variable& id_var; // $@ + const variable& wd_var; // $~ + const variable& id_var; // $@ + const variable& cmd_var; // $* + const variable* cmdN_var[10]; // $N }; class script: public script_base, public group |