summaryrefslogtreecommitdiff
path: root/main.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 /main.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 'main.cc')
-rw-r--r--main.cc34
1 files changed, 6 insertions, 28 deletions
diff --git a/main.cc b/main.cc
index 10f6e15f..188b21d9 100644
--- a/main.cc
+++ b/main.cc
@@ -1,31 +1,9 @@
-#include <iostream>
-#include <fstream>
-#include <sstream>
-#include <algorithm>
-#include <exception>
-#include <iterator>
-#include <string>
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-
-#include "option.h"
-#include "timing.h"
-#include "acconf.h"
-
-#ifdef HAVE_UNIX_PIPES
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <unistd.h>
-#include "fdstream.hpp"
-#endif
-
-#ifdef USE_BOOST_PYTHON
-#include "pyledger.h"
+#if defined(USE_BOOST_PYTHON)
+#include <pyledger.h>
#else
-#include "ledger.h"
+#include <ledger.h>
#endif
-#include "debug.h"
+#include <option.h>
using namespace ledger;
@@ -38,7 +16,7 @@ class print_addr : public repitem_t::select_callback_t {
#endif
static int read_and_report(report_t * report, int argc, char * argv[],
- char * envp[])
+ char * envp[])
{
session_t& session(*report->session);
@@ -398,7 +376,7 @@ static int read_and_report(report_t * report, int argc, char * argv[],
#ifdef DEBUG_ENABLED
extern int new_calls;
-extern long long new_size;
+extern unsigned long new_size;
#endif
int main(int argc, char * argv[], char * envp[])