summaryrefslogtreecommitdiff
path: root/session.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-23 21:22:24 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:31 -0400
commit9039e728b2015b54dc87da52f450c27683303392 (patch)
treeac914e05db5dc03f6971cd8c165ee3791a614d18 /session.cc
parent340dacf118f2f457ffc962cb46e8b3ef59017376 (diff)
downloadfork-ledger-9039e728b2015b54dc87da52f450c27683303392.tar.gz
fork-ledger-9039e728b2015b54dc87da52f450c27683303392.tar.bz2
fork-ledger-9039e728b2015b54dc87da52f450c27683303392.zip
All system headers (except Boost) now included through system.hh;
also, added support for pre-compiled headers since I'm now using a centralized resource for system headers.
Diffstat (limited to 'session.cc')
-rw-r--r--session.cc17
1 files changed, 11 insertions, 6 deletions
diff --git a/session.cc b/session.cc
index f0a6b837..8cd86e11 100644
--- a/session.cc
+++ b/session.cc
@@ -1,8 +1,4 @@
#include "session.h"
-#include "debug.h"
-#include "timing.h"
-
-#include <fstream>
namespace ledger {
@@ -189,13 +185,22 @@ xml::xpath_t::op_t * session_t::lookup(const string& name)
return xml::xpath_t::scope_t::lookup(name);
}
+void initialize()
+{
+ amount_t::initialize();
+}
+
+void shutdown()
+{
+ amount_t::shutdown();
+ assert(live_count.size() == 0);
+}
+
} // namespace ledger
#if 0
#ifdef USE_BOOST_PYTHON
-#include <boost/python.hpp>
-
using namespace boost::python;
using namespace ledger;