From 60fa58e847fd8368059e13e6d9b941fc0e75291b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 10 Oct 2003 18:53:27 +0000 Subject: *** empty log message *** --- ledger.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ledger.cc') diff --git a/ledger.cc b/ledger.cc index b77b8856..d0006d0b 100644 --- a/ledger.cc +++ b/ledger.cc @@ -4,7 +4,6 @@ namespace ledger { -bool use_warnings = false; book * main_ledger; commodity::~commodity() @@ -251,6 +250,15 @@ mask::mask(const std::string& pat) : exclude(false) << std::endl; } +mask::mask(const mask& m) : exclude(m.exclude), pattern(m.pattern) +{ + const char *error; + int erroffset; + regexp = pcre_compile(pattern.c_str(), PCRE_CASELESS, + &error, &erroffset, NULL); + assert(regexp); +} + void read_regexps(const std::string& path, regexps_map& regexps) { if (access(path.c_str(), R_OK) != -1) { -- cgit v1.2.3