summaryrefslogtreecommitdiff
path: root/journal.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-02-25 13:17:36 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:26 -0400
commit70b3eda8d13fd6f8805791b52c1191619cf1fc03 (patch)
tree507771356689066b331fdff138b539c287d2306d /journal.h
parent88a895a4944efcae0f7dbc7e7d73bef817cd317e (diff)
downloadfork-ledger-70b3eda8d13fd6f8805791b52c1191619cf1fc03.tar.gz
fork-ledger-70b3eda8d13fd6f8805791b52c1191619cf1fc03.tar.bz2
fork-ledger-70b3eda8d13fd6f8805791b52c1191619cf1fc03.zip
*** no comment ***
Diffstat (limited to 'journal.h')
-rw-r--r--journal.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/journal.h b/journal.h
index a5953921..e0007634 100644
--- a/journal.h
+++ b/journal.h
@@ -22,6 +22,7 @@ namespace ledger {
#define TRANSACTION_BALANCE 0x0002
#define TRANSACTION_AUTO 0x0004
#define TRANSACTION_BULK_ALLOC 0x0008
+#define TRANSACTION_CALCULATED 0x0010
class entry_t;
class account_t;
@@ -132,10 +133,18 @@ class entry_base_t
#endif
transactions_list transactions;
- entry_base_t() : journal(NULL) {
+ entry_base_t() : journal(NULL),
+#ifdef USE_EDITOR
+ beg_pos(0), beg_line(0), end_pos(0), end_line(0)
+#endif
+ {
DEBUG_PRINT("ledger.memory.ctors", "ctor entry_base_t");
}
- entry_base_t(const entry_base_t& e) : journal(NULL) {
+ entry_base_t(const entry_base_t& e) : journal(NULL),
+#ifdef USE_EDITOR
+ beg_pos(0), beg_line(0), end_pos(0), end_line(0)
+#endif
+ {
DEBUG_PRINT("ledger.memory.ctors", "ctor entry_base_t");
for (transactions_list::const_iterator i = e.transactions.begin();
i != e.transactions.end();