From f6c2e3d51eb8cd0892e5beeae59b74f12d14c027 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 30 Sep 2003 11:31:45 +0000 Subject: *** empty log message *** --- ledger.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'ledger.h') diff --git a/ledger.h b/ledger.h index d9524b4a..d189d526 100644 --- a/ledger.h +++ b/ledger.h @@ -1,5 +1,5 @@ #ifndef _LEDGER_H -#define _LEDGER_H "$Revision: 1.5 $" +#define _LEDGER_H "$Revision: 1.6 $" ////////////////////////////////////////////////////////////////////// // @@ -17,6 +17,8 @@ #include #include +#include // Perl regular expression library + namespace ledger { // Format of a ledger entry (GNUcash account files are also supported): @@ -279,6 +281,24 @@ typedef std::pair accounts_entry; extern accounts_t accounts; +struct mask +{ + bool exclude; + pcre * regexp; + + mask(bool exc, pcre * re) : exclude(exc), regexp(re) {} +}; + +extern void record_regexp(char * pattern, std::list& regexps); +extern void read_regexps(const char * path, std::list& regexps); +extern bool matches(const std::list& regexps, + const std::string& str); + +#ifdef HUQUQULLAH +extern bool compute_huquq; +extern std::list huquq_categories; +#endif + extern bool use_warnings; } // namespace ledger -- cgit v1.2.3