summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 03:39:51 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 03:39:51 -0400
commitaeb2fd0d39f0506ce4352ec29093e2c0f332525c (patch)
tree8d8ccd1e7ebcc3a1a6bdbc816a0d7910dbd3bf31
parentb00999893006891affccc15cfd5d60b9adb7af8c (diff)
downloadfork-ledger-aeb2fd0d39f0506ce4352ec29093e2c0f332525c.tar.gz
fork-ledger-aeb2fd0d39f0506ce4352ec29093e2c0f332525c.tar.bz2
fork-ledger-aeb2fd0d39f0506ce4352ec29093e2c0f332525c.zip
misc cleanup
-rw-r--r--Makefile6
-rw-r--r--amount.cc2
-rw-r--r--balance.cc2
-rw-r--r--binary.cc1
-rw-r--r--debug.cc2
-rw-r--r--ledger.h8
-rw-r--r--valexpr.cc1
7 files changed, 11 insertions, 11 deletions
diff --git a/Makefile b/Makefile
index 84c6a360..2f5eaa65 100644
--- a/Makefile
+++ b/Makefile
@@ -21,9 +21,9 @@ OBJS = $(patsubst %.cc,%.o,$(CODE))
CXX = g++
CFLAGS = -Wall -ansi -pedantic
-#DFLAGS = -O3 -fomit-frame-pointer -DRELEASE_LEVEL=0 -DNO_CLEANUP
-DFLAGS = -g -DRELEASE_LEVEL=4 -DNO_CLEANUP
-#DFLAGS = -g -DRELEASE_LEVEL=2 -pg -DNO_CLEANUP
+#DFLAGS = -O3 -fomit-frame-pointer -DRELEASE_LEVEL=0
+DFLAGS = -g -DRELEASE_LEVEL=4
+#DFLAGS = -g -DRELEASE_LEVEL=2 -pg
INCS = -I/sw/include \
-I/usr/include/gcc/darwin/3.3/c++ \
diff --git a/amount.cc b/amount.cc
index c2bc6465..b1cde175 100644
--- a/amount.cc
+++ b/amount.cc
@@ -1,4 +1,4 @@
-#include "ledger.h"
+#include "amount.h"
#include "gmp.h"
diff --git a/balance.cc b/balance.cc
index 7ecdab4e..f5340195 100644
--- a/balance.cc
+++ b/balance.cc
@@ -1,4 +1,4 @@
-#include "ledger.h"
+#include "balance.h"
namespace ledger {
diff --git a/binary.cc b/binary.cc
index 1f0fc106..9bdfac67 100644
--- a/binary.cc
+++ b/binary.cc
@@ -1,5 +1,4 @@
#include "ledger.h"
-#include "debug.h"
#include <vector>
#include <fstream>
diff --git a/debug.cc b/debug.cc
index ab073894..02613210 100644
--- a/debug.cc
+++ b/debug.cc
@@ -102,4 +102,4 @@ static struct init_streams {
} // namespace ledger
-#endif DEBUG_ENABLED
+#endif // DEBUG_ENABLED
diff --git a/ledger.h b/ledger.h
index 885e451a..e645860a 100644
--- a/ledger.h
+++ b/ledger.h
@@ -16,15 +16,17 @@
#include <ctime>
#include <iostream>
-#include "amount.h"
-#include "balance.h"
-
#ifdef RELEASE_LEVEL
#if RELEASE_LEVEL >= 2
#include "debug.h"
+#elif RELEASE_LEVEL == 0
+#define NO_CLEANUP 1
#endif
#endif
+#include "amount.h"
+#include "balance.h"
+
namespace ledger {
// These flags persist with the object
diff --git a/valexpr.cc b/valexpr.cc
index 2f83a033..cd6664b1 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -1,7 +1,6 @@
#include "valexpr.h"
#include "error.h"
#include "datetime.h"
-#include "debug.h"
#include <vector>