diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-21 16:15:55 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-21 16:15:55 -0400 |
commit | c1e5119e975857002fe4d59e047bb81ae4e5f132 (patch) | |
tree | 72f96b4dce8e6a5736963fd8d934065b5a167b51 | |
parent | 000bfe1cece3ecbfee8f07a46d1f0b000dbbc983 (diff) | |
download | fork-ledger-c1e5119e975857002fe4d59e047bb81ae4e5f132.tar.gz fork-ledger-c1e5119e975857002fe4d59e047bb81ae4e5f132.tar.bz2 fork-ledger-c1e5119e975857002fe4d59e047bb81ae4e5f132.zip |
fixes so that ledger will build optimized
-rw-r--r-- | amount.cc | 1 | ||||
-rw-r--r-- | debug.h | 2 | ||||
-rw-r--r-- | format.cc | 2 | ||||
-rw-r--r-- | quotes.cc | 1 | ||||
-rw-r--r-- | value.h | 1 |
5 files changed, 6 insertions, 1 deletions
@@ -2,6 +2,7 @@ #include "binary.h" #include "error.h" #include "util.h" +#include "debug.h" #include <deque> @@ -104,6 +104,8 @@ bool _debug_active(const char * const cls); #define DEBUG_() 0 #define DEBUG_PRINT(cls, x) #define DEBUG_PRINT_(x) +#define DEBUG_PRINT_TIME(cls, x) +#define DEBUG_PRINT_TIME_(x) #define VALIDATE(x) @@ -184,7 +184,7 @@ void format_t::format_elements(std::ostream& out, case element_t::VALUE: case element_t::TOTAL: case element_t::VALUE_EXPR: { - value_expr_t * expr; + value_expr_t * expr = NULL; switch (elem->type) { #ifdef NO_CLEANUP case element_t::VALUE: expr = value_expr; break; @@ -1,5 +1,6 @@ #include "quotes.h" #include "datetime.h" +#include "debug.h" #include <fstream> @@ -3,6 +3,7 @@ #include "amount.h" #include "balance.h" +#include "debug.h" namespace ledger { |