summaryrefslogtreecommitdiff
path: root/src/textual.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/textual.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/textual.cc')
-rw-r--r--src/textual.cc17
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)
{