summaryrefslogtreecommitdiff
path: root/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-02 17:07:04 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-02 17:07:04 -0400
commit7b3c8c03c56fa90f8e110ed14ce3af27fb49b458 (patch)
tree3c51d4b555e0cadf65003d359f249be0ac495864 /token.cc
parente52a6a9bd8e2bbf3a497696eed735eb00a8b9dde (diff)
downloadfork-ledger-7b3c8c03c56fa90f8e110ed14ce3af27fb49b458.tar.gz
fork-ledger-7b3c8c03c56fa90f8e110ed14ce3af27fb49b458.tar.bz2
fork-ledger-7b3c8c03c56fa90f8e110ed14ce3af27fb49b458.zip
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.
Diffstat (limited to 'token.cc')
-rw-r--r--token.cc12
1 files changed, 6 insertions, 6 deletions
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);