summaryrefslogtreecommitdiff
path: root/src/lookup.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-19 19:32:40 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-05-20 04:48:05 -0500
commit4681e58d7f3cda2a2ac6d05b6ec1a106f568e029 (patch)
tree488d6531d688c68713baa5c1d70fb37be198b861 /src/lookup.cc
parent303976e563608d8a1f4eb09ac5c9402ae5ce74fd (diff)
downloadfork-ledger-4681e58d7f3cda2a2ac6d05b6ec1a106f568e029.tar.gz
fork-ledger-4681e58d7f3cda2a2ac6d05b6ec1a106f568e029.tar.bz2
fork-ledger-4681e58d7f3cda2a2ac6d05b6ec1a106f568e029.zip
Converted the Ledger build system to use CMake
Diffstat (limited to 'src/lookup.cc')
-rw-r--r--src/lookup.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lookup.cc b/src/lookup.cc
index 6f0c33ea..9edc3bbc 100644
--- a/src/lookup.cc
+++ b/src/lookup.cc
@@ -67,7 +67,7 @@ lookup_probable_account(const string& ident,
{
scorecard_t scores;
-#if !defined(HAVE_BOOST_REGEX_UNICODE)
+#if !HAVE_BOOST_REGEX_UNICODE
string lident = ident;
to_lower(lident);
unistring lowered_ident(lident);
@@ -78,7 +78,7 @@ lookup_probable_account(const string& ident,
DEBUG("lookup.account",
"Looking up identifier '" << lowered_ident.extract() << "'");
-#if defined(DEBUG_ON)
+#if DEBUG_ON
if (ref_account != NULL)
DEBUG("lookup.account",
" with reference account: " << ref_account->fullname());
@@ -100,7 +100,7 @@ lookup_probable_account(const string& ident,
break;
}
-#if !defined(HAVE_BOOST_REGEX_UNICODE)
+#if !HAVE_BOOST_REGEX_UNICODE
string payee = xact->payee;
to_lower(payee);
unistring value_key(payee);
@@ -187,7 +187,7 @@ lookup_probable_account(const string& ident,
addend++;
#if 0
-#if !defined(HAVE_BOOST_REGEX_UNICODE)
+#if !HAVE_BOOST_REGEX_UNICODE
if (pos == 0 || (pos > 0 && !std::isalnum(value_key[pos - 1])))
addend++;
#else
@@ -268,7 +268,7 @@ lookup_probable_account(const string& ident,
}
if (account_usage.size() > 0) {
-#if defined(DEBUG_ON)
+#if DEBUG_ON
if (SHOW_DEBUG("lookup.account")) {
foreach (const account_use_pair& value, account_usage) {
DEBUG("lookup.account",