summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-19 22:36:08 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-19 22:36:08 -0400
commitf2f52066d2a9c82619ffea0f3972e48417a90b5b (patch)
tree3390b046e383309c4845be29dcf1d44c258c6d56 /src/journal.h
parent2694335e54316606ab169e957034ba71e8274144 (diff)
downloadfork-ledger-f2f52066d2a9c82619ffea0f3972e48417a90b5b.tar.gz
fork-ledger-f2f52066d2a9c82619ffea0f3972e48417a90b5b.tar.bz2
fork-ledger-f2f52066d2a9c82619ffea0f3972e48417a90b5b.zip
Added a --strict session option
When enabled, if any accounts or commodities are seen in an uncleared transaction, which were not seen previously in a cleared or pending transaction or a textual directive dealing with accounts or commodities, a warning is generated about the unknown item.
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/journal.h b/src/journal.h
index 8c72becc..b0d61c98 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -97,8 +97,9 @@ public:
std::size_t parse(std::istream& in,
scope_t& session_scope,
- account_t * master,
- const path * original_file);
+ account_t * master = NULL,
+ const path * original_file = NULL,
+ bool strict = false);
bool valid() const;
};