summaryrefslogtreecommitdiff
path: root/token.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-03 21:38:53 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-03 21:38:53 -0400
commitbbdab793029f156425180282e0e7a2a7090c1c4a (patch)
tree55ed87b2ed57b2da5ecf17ca0dd4ac53bd2988c4 /token.cc
parent3e4b01694070be141728d19f505926b277ac70b3 (diff)
downloadfork-ledger-bbdab793029f156425180282e0e7a2a7090c1c4a.tar.gz
fork-ledger-bbdab793029f156425180282e0e7a2a7090c1c4a.tar.bz2
fork-ledger-bbdab793029f156425180282e0e7a2a7090c1c4a.zip
Rearranged the code a bit, breaking walk.cc into several different files:
compare compare_items<T> handler item_handler<T> iterators used to iterators sets of journal objects filters derived from item_handler, they morph the result set output derived from item_handler, these do the printing Also, created a new 'help' files which contains just Ledger's help text.
Diffstat (limited to 'token.cc')
-rw-r--r--token.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/token.cc b/token.cc
index deafdb40..d1d70a38 100644
--- a/token.cc
+++ b/token.cc
@@ -243,36 +243,8 @@ void expr_t::token_t::next(std::istream& in, const uint_least8_t pflags)
kind = COLON;
break;
- case 'c':
- case 'C':
- case 'p':
- case 'w':
- case 'W':
- case 'e':
case '/': {
- bool code_mask = c == 'c';
- bool commodity_mask = c == 'C';
- bool payee_mask = c == 'p';
- bool note_mask = c == 'e';
- bool short_account_mask = c == 'w';
-
in.get(c);
- if (c == '/') {
- c = peek_next_nonws(in);
- if (c == '/') {
- in.get(c);
- c = in.peek();
- if (c == '/') {
- in.get(c);
- c = in.peek();
- short_account_mask = true;
- } else {
- payee_mask = true;
- }
- }
- } else {
- in.get(c);
- }
// Read in the regexp
char buf[256];