summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-05 19:12:23 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-05 19:12:23 -0400
commit7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da (patch)
treeee00c3c5b17534ff44bedc9ff125eb6f3e25e40a /textual.cc
parent1741c80fe4f9dd896d4c8912b2ba35b14500ca1c (diff)
downloadfork-ledger-7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da.tar.gz
fork-ledger-7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da.tar.bz2
fork-ledger-7e87a0a0b1a8b76c44f4f678d8bfb5129ba6c5da.zip
added back sorting support
Diffstat (limited to 'textual.cc')
-rw-r--r--textual.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/textual.cc b/textual.cc
index 2e7ef86f..2e8b0fd0 100644
--- a/textual.cc
+++ b/textual.cc
@@ -1,4 +1,3 @@
-#include "textual.h"
#include "datetime.h"
#include "autoxact.h"
#include "valexpr.h"
@@ -287,8 +286,8 @@ entry_t * parse_entry(std::istream& in, account_t * master)
return curr;
}
-unsigned int parse_textual_ledger(std::istream& in, ledger_t * journal,
- account_t * master)
+unsigned int parse_textual_journal(std::istream& in, journal_t * journal,
+ account_t * master)
{
static char line[MAX_LINE + 1];
char c;
@@ -518,8 +517,8 @@ unsigned int parse_textual_ledger(std::istream& in, ledger_t * journal,
unsigned int curr_linenum = linenum;
std::string curr_path = path;
- count += parse_textual_ledger(stream, journal,
- account_stack.front());
+ count += parse_textual_journal(stream, journal,
+ account_stack.front());
linenum = curr_linenum;
path = curr_path;