summaryrefslogtreecommitdiff
path: root/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-19 17:55:33 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-19 17:55:33 -0400
commitaba3d3037a43f4c244b4065b7fd70a6f1d5656de (patch)
treeeaa48c8cdb91852cd440b0c246f38ed790f7e5ee /textual.cc
parentbf923ab33e9951d25611cb7193d6852e9113d929 (diff)
downloadfork-ledger-aba3d3037a43f4c244b4065b7fd70a6f1d5656de.tar.gz
fork-ledger-aba3d3037a43f4c244b4065b7fd70a6f1d5656de.tar.bz2
fork-ledger-aba3d3037a43f4c244b4065b7fd70a6f1d5656de.zip
added support for parsing QIF files
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 963cf78a..fde735c2 100644
--- a/textual.cc
+++ b/textual.cc
@@ -18,8 +18,8 @@ namespace ledger {
#define MAX_LINE 1024
-std::string path;
-unsigned int linenum;
+static std::string path;
+static unsigned int linenum;
#ifdef TIMELOG_SUPPORT
static std::time_t time_in;
@@ -54,7 +54,7 @@ transaction_t * parse_transaction_text(char * line, account_t * account,
{
// The account will be determined later...
- std::auto_ptr<transaction_t> xact(new transaction_t(entry, NULL));
+ std::auto_ptr<transaction_t> xact(new transaction_t(NULL));
// The call to `next_element' will skip past the account name,
// and return a pointer to the beginning of the amount. Once
@@ -392,8 +392,7 @@ unsigned int parse_textual_journal(std::istream& in, journal_t * journal,
time_commodity = amt.commodity;
transaction_t * xact
- = new transaction_t(curr.get(), last_account, amt, amt,
- TRANSACTION_VIRTUAL);
+ = new transaction_t(last_account, amt, amt, TRANSACTION_VIRTUAL);
curr->add_transaction(xact);
if (! finalize_entry(curr.get()) ||