From c80b4955467a38a2be3aaaa60c9f49b33edef774 Mon Sep 17 00:00:00 2001 From: Peter Feigl Date: Tue, 25 Feb 2014 22:50:20 +0100 Subject: 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. --- src/journal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/journal.h') 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); -- cgit v1.2.3