Moved several #includes to facilitate the use of pre-compiled headers.

This commit is contained in:
John Wiegley 2009-02-08 19:05:06 -04:00
parent 769b4ba1d0
commit e003502193
21 changed files with 27 additions and 77 deletions

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "chain.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,9 +33,6 @@
#include "pyutils.h"
#include "amount.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "entry.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "flags.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "format.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "global.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "item.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "journal.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "report.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "scope.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "session.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "timelog.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -32,8 +32,6 @@
#include "pyinterp.h"
#include "pyutils.h"
#include <datetime.h>
// jww (2007-05-04): Convert time duration objects to PyDelta
namespace ledger {

View file

@ -32,10 +32,6 @@
#include "pyinterp.h"
#include "pyutils.h"
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/to_python_converter.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "value.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -33,10 +33,6 @@
#include "pyutils.h"
#include "xact.h"
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -31,8 +31,6 @@
#include "pyinterp.h"
#include <boost/python/module_init.hpp>
namespace ledger {
using namespace boost::python;

View file

@ -37,9 +37,6 @@
#if defined(HAVE_BOOST_PYTHON)
#include <boost/python.hpp>
#include <Python.h>
namespace ledger {
class python_interpreter_t : public session_t

View file

@ -46,13 +46,8 @@
#ifndef _FORMAT_H
#define _FORMAT_H
#define SUPPORT_UNICODE 1
#include "journal.h"
#include "expr.h"
#if defined(SUPPORT_UNICODE)
#include "utf8.h"
#endif
namespace ledger {

View file

@ -31,12 +31,6 @@
#include "utils.h"
#ifdef HAVE_UNIX_PIPES
#include <sys/types.h>
#include <sys/wait.h>
#include "fdstream.h"
#endif
namespace ledger {
namespace {

View file

@ -129,9 +129,19 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <pwd.h>
#endif
#ifdef HAVE_UNIX_PIPES
#include <sys/types.h>
#include <sys/wait.h>
#include "fdstream.h"
#endif
#include <gmp.h>
#include <mpfr.h>
#include "sha1.h"
#define SUPPORT_UNICODE 1
#if defined(SUPPORT_UNICODE)
#include "utf8.h"
#endif
#ifdef HAVE_LIBEDIT
#include <editline/readline.h>
@ -159,4 +169,21 @@ typedef std::ostream::pos_type ostream_pos_type;
#include <boost/regex.hpp>
#include <boost/variant.hpp>
#if defined(HAVE_BOOST_PYTHON)
#include <boost/python.hpp>
#include <Python.h>
#include <datetime.h>
#include <boost/python/exception_translator.hpp>
#include <boost/python/implicit.hpp>
#include <boost/python/args.hpp>
#include <boost/python/module.hpp>
#include <boost/python/def.hpp>
#include <boost/python/to_python_converter.hpp>
#include <boost/python/module_init.hpp>
#endif // HAVE_BOOST_PYTHON
#endif // _SYSTEM_HH