From 7b3c8c03c56fa90f8e110ed14ce3af27fb49b458 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 2 Aug 2008 17:07:04 -0400 Subject: Changed the way that bare masks are parsed. There is still some coupling here, albeit just through flag values. It needs to be changed, though. --- token.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'token.cc') diff --git a/token.cc b/token.cc index f17163c8..2cb21d0d 100644 --- a/token.cc +++ b/token.cc @@ -285,17 +285,17 @@ void expr_t::token_t::next(std::istream& in, const unsigned int pflags) length++; if (short_account_mask) - set_flags(TOKEN_SHORT_ACCOUNT_MASK); + set_flags(MASK_SHORT_ACCOUNT); else if (code_mask) - set_flags(TOKEN_CODE_MASK); + set_flags(MASK_CODE); else if (commodity_mask) - set_flags(TOKEN_COMMODITY_MASK); + set_flags(MASK_COMMODITY); else if (payee_mask) - set_flags(TOKEN_PAYEE_MASK); + set_flags(MASK_PAYEE); else if (note_mask) - set_flags(TOKEN_NOTE_MASK); + set_flags(MASK_NOTE); else - set_flags(TOKEN_ACCOUNT_MASK); + set_flags(MASK_ACCOUNT); kind = MASK; value.set_string(buf); -- cgit v1.2.3