From bf12d3f9a153863c49088d1ecb3640b8df7f4f57 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Nov 2016 08:48:10 +0200 Subject: Minor cleanup --- build2/parser.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'build2/parser.cxx') diff --git a/build2/parser.cxx b/build2/parser.cxx index 56081fa..1ecf808 100644 --- a/build2/parser.cxx +++ b/build2/parser.cxx @@ -270,7 +270,7 @@ namespace build2 if (tt == type::word && keyword (t)) { const string& n (t.value); - void (parser::*f) (token&, token_type&) = nullptr; + void (parser::*f) (token&, type&) = nullptr; if (n == "print") { @@ -1546,7 +1546,7 @@ namespace build2 apply_value_attributes (const variable* var, value& v, value&& rhs, - token_type kind) + type kind) { attributes a (attributes_pop ()); const location& l (a.loc); @@ -1600,7 +1600,7 @@ namespace build2 fail (l) << "conflicting variable " << var->name << " type " << var->type->name << " and value type " << type->name; - if (kind == token_type::assign) + if (kind == type::assign) { if (type != v.type) { @@ -1622,12 +1622,12 @@ namespace build2 if (null) { - if (kind == token_type::assign) // Ignore for prepend/append. + if (kind == type::assign) // Ignore for prepend/append. v = nullptr; } else { - if (kind == token_type::assign) + if (kind == type::assign) { if (rhs) v.assign (move (rhs).as (), var); @@ -1636,7 +1636,7 @@ namespace build2 } else if (rhs) // Don't append/prepent NULL. { - if (kind == token_type::prepend) + if (kind == type::prepend) v.prepend (move (rhs).as (), var); else v.append (move (rhs).as (), var); @@ -1820,7 +1820,7 @@ namespace build2 } pair parser:: - attributes_push (token& t, token_type& tt, bool standalone) + attributes_push (token& t, type& tt, bool standalone) { location l (get_location (t)); bool has (tt == type::lsbrace); -- cgit v1.1