summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-04 19:55:27 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-04 19:55:27 -0400
commit2d941730b1c60342be5b108d2d654723b3b7c2cb (patch)
tree6a3f4b7305857e85d2684670492007bafc3668d0 /src/account.h
parent73cf3b01fbd50c3a8a4fd96ff69643c28394d8fe (diff)
downloadfork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.gz
fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.bz2
fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.zip
Largely removed all of Ledger's use of global variables, for the REPL's sake.
Diffstat (limited to 'src/account.h')
-rw-r--r--src/account.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/account.h b/src/account.h
index ad59a5b8..565a11af 100644
--- a/src/account.h
+++ b/src/account.h
@@ -112,6 +112,7 @@ class account_t : public scope_t
}
account_t * find_account(const string& name, bool auto_create = true);
+ account_t * find_account_re(const string& regexp);
virtual expr_t::ptr_op_t lookup(const string& name);
@@ -177,7 +178,7 @@ class account_t : public scope_t
return *xdata_;
}
- void calculate_sums(expr_t& amount_expr);
+ void calculate_sums(expr_t& amount_expr, scope_t& scope);
};
std::ostream& operator<<(std::ostream& out, const account_t& account);