diff options
-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 { |