summaryrefslogtreecommitdiff
path: root/src/journal.h
diff options
context:
space:
mode:
authorPeter Feigl <craven@gmx.net>2014-02-25 22:50:20 +0100
committerPeter Feigl <craven@gmx.net>2014-02-25 22:50:20 +0100
commitc80b4955467a38a2be3aaaa60c9f49b33edef774 (patch)
treef83e871677be813384f68563d4da8bf83134a1a5 /src/journal.h
parentbc08eed3cb1bdb4f67d1b77273f3254d0cf13be2 (diff)
downloadfork-ledger-c80b4955467a38a2be3aaaa60c9f49b33edef774.tar.gz
fork-ledger-c80b4955467a38a2be3aaaa60c9f49b33edef774.tar.bz2
fork-ledger-c80b4955467a38a2be3aaaa60c9f49b33edef774.zip
Adding support for recursive aliases.
Alias expansion is now a loop. If you define alias A=B:A alias B=C:B then A will expand to C:B:A. Also added a short section to the manual about this.
Diffstat (limited to 'src/journal.h')
-rw-r--r--src/journal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/journal.h b/src/journal.h
index 0d06e9f0..3c363962 100644
--- a/src/journal.h
+++ b/src/journal.h
@@ -167,6 +167,8 @@ public:
account_t * find_account(const string& name, bool auto_create = true);
account_t * find_account_re(const string& regexp);
+ account_t * expand_aliases(string name);
+
account_t * register_account(const string& name, post_t * post,
account_t * master = NULL);
string register_payee(const string& name, xact_t * xact);