aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-10-24 16:11:50 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:35 +0200
commitb0bed0e1205f44ae73850fac521f9162f29adef5 (patch)
tree27c8c1fe846dbc51abbcb582d82013917ba0096b /build2/test/script/parser.cxx
parent5c325b8613a4323ee47bd42ce6d962b9ab9f2d90 (diff)
Support >+ and <+ redirects in parser
Diffstat (limited to 'build2/test/script/parser.cxx')
-rw-r--r--build2/test/script/parser.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx
index 84368b4..183b8ac 100644
--- a/build2/test/script/parser.cxx
+++ b/build2/test/script/parser.cxx
@@ -506,6 +506,7 @@ namespace build2
//
switch (tt)
{
+ case type::in_std:
case type::in_null:
case type::in_str:
case type::in_str_nn:
@@ -517,6 +518,7 @@ namespace build2
break;
}
+ case type::out_std:
case type::out_null:
case type::out_str:
case type::out_str_nn:
@@ -533,6 +535,9 @@ namespace build2
redirect_type rt;
switch (tt)
{
+ case type::in_std:
+ case type::out_std: rt = redirect_type::std; break;
+
case type::in_null:
case type::out_null: rt = redirect_type::null; break;
@@ -553,6 +558,7 @@ namespace build2
switch (rt)
{
case redirect_type::none:
+ case redirect_type::std:
case redirect_type::null:
break;
case redirect_type::here_string:
@@ -595,6 +601,9 @@ namespace build2
break;
}
+ case type::in_std:
+ case type::out_std:
+
case type::in_null:
case type::out_null:
@@ -650,6 +659,9 @@ namespace build2
//
switch (tt)
{
+ case type::in_std:
+ case type::out_std:
+
case type::in_null:
case type::out_null:
@@ -789,6 +801,9 @@ namespace build2
//
switch (tt)
{
+ case type::in_std:
+ case type::out_std:
+
case type::in_null:
case type::out_null: