diff options
author | John Wiegley <johnw@newartisans.com> | 2006-03-01 23:22:15 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 02:41:28 -0400 |
commit | 7d3e45958e805f8acaf399ef14d53757979240ab (patch) | |
tree | a730fbdfcc6aef4402fc70a10c95370493632302 | |
parent | 68813448cbac88cff9c7f60021a0e255e2445375 (diff) | |
download | fork-ledger-7d3e45958e805f8acaf399ef14d53757979240ab.tar.gz fork-ledger-7d3e45958e805f8acaf399ef14d53757979240ab.tar.bz2 fork-ledger-7d3e45958e805f8acaf399ef14d53757979240ab.zip |
*** empty log message ***
-rw-r--r-- | main.cc | 2 | ||||
-rw-r--r-- | textual.cc | 5 |
2 files changed, 1 insertions, 6 deletions
@@ -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); @@ -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; } |