diff options
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/src/textual.cc b/src/textual.cc index 1665d4dd..a5ae2f68 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -40,7 +40,7 @@ #include "query.h" #include "pstream.h" #include "pool.h" -#if defined(HAVE_BOOST_PYTHON) +#if HAVE_BOOST_PYTHON #include "pyinterp.h" #endif @@ -126,7 +126,7 @@ namespace { return (in.good() && ! in.eof() && (in.peek() == ' ' || in.peek() == '\t')); } -#if defined(HAVE_BOOST_PYTHON) +#if HAVE_BOOST_PYTHON bool peek_blank_line() { return (in.good() && ! in.eof() && (in.peek() == '\n' || in.peek() == '\r')); @@ -221,15 +221,6 @@ namespace { DEBUG("textual.parse", "Parsed an amount expression"); -#if defined(DEBUG_ENABLED) - DEBUG_IF("textual.parse") { - if (_debug_stream) { - ledger::dump_value_expr(*_debug_stream, expr); - *_debug_stream << std::endl; - } - } -#endif - if (expr) { if (amount_expr) *amount_expr = expr; @@ -835,7 +826,7 @@ void instance_t::apply_account_directive(char * line) { if (account_t * acct = top_account()->find_account(line)) apply_stack.push_front(application_t("account", acct)); -#if !defined(NO_ASSERTS) +#if !NO_ASSERTS else assert("Failed to create account" == NULL); #endif @@ -1168,7 +1159,7 @@ void instance_t::comment_directive(char * line) } } -#if defined(HAVE_BOOST_PYTHON) +#if HAVE_BOOST_PYTHON void instance_t::import_directive(char * line) { |