diff options
author | John Wiegley <johnw@newartisans.com> | 2008-08-02 22:45:35 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-08-02 22:45:35 -0400 |
commit | 5a90fe735772fd4d52216ae76ddad893bce177e6 (patch) | |
tree | 7f0f70fed0d3ae7deb5770a94ca451953b730625 /token.cc | |
parent | 7b3c8c03c56fa90f8e110ed14ce3af27fb49b458 (diff) | |
download | fork-ledger-5a90fe735772fd4d52216ae76ddad893bce177e6.tar.gz fork-ledger-5a90fe735772fd4d52216ae76ddad893bce177e6.tar.bz2 fork-ledger-5a90fe735772fd4d52216ae76ddad893bce177e6.zip |
Moved xact_xdata_t into xact_t itself, as a set of "extended data" that might
be gathered during reporting.
Removed the references to accounts and such from the mask logic, which means
that the value expression "acount =~ /foo/" is needed in place of just
"/foo/".
Diffstat (limited to 'token.cc')
-rw-r--r-- | token.cc | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -53,8 +53,6 @@ void expr_t::token_t::parse_ident(std::istream& in) kind = IDENT; length = 0; - clear_flags(); - char buf[256]; READ_INTO_(in, buf, 255, c, length, std::isalnum(c) || c == '_' || c == '.' || c == '-'); @@ -122,7 +120,7 @@ void expr_t::token_t::parse_ident(std::istream& in) value.set_string(buf); } -void expr_t::token_t::next(std::istream& in, const unsigned int pflags) +void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags) { if (in.eof()) { kind = TOK_EOF; @@ -284,19 +282,6 @@ void expr_t::token_t::next(std::istream& in, const unsigned int pflags) in.get(c); length++; - if (short_account_mask) - set_flags(MASK_SHORT_ACCOUNT); - else if (code_mask) - set_flags(MASK_CODE); - else if (commodity_mask) - set_flags(MASK_COMMODITY); - else if (payee_mask) - set_flags(MASK_PAYEE); - else if (note_mask) - set_flags(MASK_NOTE); - else - set_flags(MASK_ACCOUNT); - kind = MASK; value.set_string(buf); break; |