diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-06 23:04:27 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-06 23:04:27 -0600 |
commit | 71d0033b6f65260698cf0bf367002a9b6429a3fd (patch) | |
tree | 63fc939f0e613a1828fc0b7b473bc6c29578f074 /src/textual.cc | |
parent | 488355e5d92923e1d764625457b866f4fc83d58b (diff) | |
download | fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.tar.gz fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.tar.bz2 fork-ledger-71d0033b6f65260698cf0bf367002a9b6429a3fd.zip |
Corrected several compile and link problems
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/textual.cc b/src/textual.cc index cf15f048..258a4d76 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -107,10 +107,12 @@ namespace { return (in.good() && ! in.eof() && (in.peek() == ' ' || in.peek() == '\t')); } +#if defined(HAVE_BOOST_PYTHON) bool peek_blank_line() { return (in.good() && ! in.eof() && (in.peek() == '\n' || in.peek() == '\r')); } +#endif void read_next_directive(); @@ -943,9 +945,11 @@ void instance_t::account_alias_directive(account_t * account, string alias) // (account), add a reference to the account in the `account_aliases' // map, which is used by the post parser to resolve alias references. trim(alias); - std::pair<accounts_map::iterator, bool> result - = context.journal - ->account_aliases.insert(accounts_map::value_type(alias, account)); +#if defined(DEBUG_ON) + std::pair<accounts_map::iterator, bool> result = +#endif + context.journal->account_aliases.insert + (accounts_map::value_type(alias, account)); assert(result.second); } |