From db0edaafe15831ba6fa9c2109da37942506c62b1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 23 Jan 2016 11:14:05 +0200 Subject: Cleanup absolute/relative path diagnostics by introducing stream verbosity --- build2/b.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build2/b.cxx') diff --git a/build2/b.cxx b/build2/b.cxx index cc87cec..c6a118e 100644 --- a/build2/b.cxx +++ b/build2/b.cxx @@ -151,7 +151,7 @@ main (int argc, char* argv[]) istringstream is (s); is.exceptions (istringstream::failbit | istringstream::badbit); - lexer l (is, ""); + lexer l (is, path ("")); token t (l.next ()); if (t.type == token_type::eos) @@ -202,7 +202,7 @@ main (int argc, char* argv[]) is.exceptions (istringstream::failbit | istringstream::badbit); parser p; - bspec = p.parse_buildspec (is, ""); + bspec = p.parse_buildspec (is, path ("")); } catch (const istringstream::failure&) { @@ -227,7 +227,8 @@ main (int argc, char* argv[]) for (opspec& os: ms) { - const location l ("", 1, 0); //@@ TODO + const path p (""); + const location l (&p, 1, 0); //@@ TODO if (os.empty ()) // Default target: dir{}. os.push_back (targetspec (name ("dir", string ()))); -- cgit v1.1