summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-03-01 23:22:15 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:28 -0400
commit7d3e45958e805f8acaf399ef14d53757979240ab (patch)
treea730fbdfcc6aef4402fc70a10c95370493632302
parent68813448cbac88cff9c7f60021a0e255e2445375 (diff)
downloadfork-ledger-7d3e45958e805f8acaf399ef14d53757979240ab.tar.gz
fork-ledger-7d3e45958e805f8acaf399ef14d53757979240ab.tar.bz2
fork-ledger-7d3e45958e805f8acaf399ef14d53757979240ab.zip
*** empty log message ***
-rw-r--r--main.cc2
-rw-r--r--textual.cc5
2 files changed, 1 insertions, 6 deletions
diff --git a/main.cc b/main.cc
index 5a8c7174..fb43d6a8 100644
--- a/main.cc
+++ b/main.cc
@@ -285,10 +285,8 @@ int parse_and_report(int argc, char * argv[], char * envp[])
formatter = new format_transactions(*out, *format);
if (command == "w") {
-#ifdef USE_EDITOR
write_textual_journal(*journal, first_arg, *formatter,
config.write_hdr_format, *out);
-#endif
} else {
formatter = config.chain_xact_handlers(command, formatter, journal.get(),
journal->master, formatter_ptrs);
diff --git a/textual.cc b/textual.cc
index 2ea2aae6..8c2c15cd 100644
--- a/textual.cc
+++ b/textual.cc
@@ -463,13 +463,12 @@ entry_t * parse_entry(std::istream& in, char * line, account_t * master,
xact->state == transaction_t::UNCLEARED)
xact->state = state;
-#ifdef USE_EDITOR
xact->beg_pos = beg_pos;
xact->beg_line = beg_line;
xact->end_pos = end_pos;
xact->end_line = linenum;
beg_pos = end_pos;
-#endif
+
curr->add_transaction(xact);
}
@@ -738,13 +737,11 @@ unsigned int textual_parser_t::parse(std::istream& in,
if (parse_transactions(in, account_stack.front(), *ae,
"automated", end_pos)) {
journal->auto_entries.push_back(ae);
-#ifdef USE_EDITOR
ae->src_idx = src_idx;
ae->beg_pos = beg_pos;
ae->beg_line = beg_line;
ae->end_pos = end_pos;
ae->end_line = linenum;
-#endif
}
break;
}