From 7d3e45958e805f8acaf399ef14d53757979240ab Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 1 Mar 2006 23:22:15 +0000 Subject: *** empty log message *** --- main.cc | 2 -- textual.cc | 5 +---- 2 files changed, 1 insertion(+), 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; } -- cgit v1.2.3