summaryrefslogtreecommitdiff
path: root/src/scope.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-07 12:46:46 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-07 12:46:46 -0600
commit7e250696e02e0392bc865f66570da296ced124ab (patch)
tree8195a38ca7c6e04610f2ca3cecea900ff08f66de /src/scope.cc
parent77292ac3cda2f1052559991b9d53f1ad7c1fec9a (diff)
downloadfork-ledger-7e250696e02e0392bc865f66570da296ced124ab.tar.gz
fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.tar.bz2
fork-ledger-7e250696e02e0392bc865f66570da296ced124ab.zip
Many options now have additive effect
For example, -A and -V used to override each other, whereas now: -A report the average amount -V report all amounts at current value -AV report the current value of the average -VA report the average of all current values
Diffstat (limited to 'src/scope.cc')
-rw-r--r--src/scope.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/scope.cc b/src/scope.cc
index 160a97c9..00327159 100644
--- a/src/scope.cc
+++ b/src/scope.cc
@@ -35,7 +35,8 @@
namespace ledger {
-scope_t * scope_t::default_scope = NULL;
+scope_t * scope_t::default_scope = NULL;
+empty_scope_t * scope_t::empty_scope = NULL;
void symbol_scope_t::define(const symbol_t::kind_t kind,
const string& name, expr_t::ptr_op_t def)