stabilize build system: depends, installer, boost/bdb fixes, cross targets groundwork
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+56
@@ -0,0 +1,56 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2002-2003 Joel de Guzman
|
||||
Copyright (c) 2002-2003 Hartmut Kaiser
|
||||
http://spirit.sourceforge.net/
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#if !defined(BOOST_SPIRIT_CLOSURE_CONTEXT_HPP)
|
||||
#define BOOST_SPIRIT_CLOSURE_CONTEXT_HPP
|
||||
|
||||
#include <boost/spirit/home/classic/namespace.hpp>
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
namespace boost { namespace spirit {
|
||||
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
|
||||
|
||||
#if !defined(BOOST_SPIRIT_CLOSURE_CONTEXT_LINKER_DEFINED)
|
||||
#define BOOST_SPIRIT_CLOSURE_CONTEXT_LINKER_DEFINED
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// closure_context_linker
|
||||
// { helper template for the closure extendability }
|
||||
//
|
||||
// This classes can be 'overloaded' (defined elsewhere), to plug
|
||||
// in additional functionality into the closure parsing process.
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template<typename ContextT>
|
||||
struct closure_context_linker : public ContextT
|
||||
{
|
||||
template <typename ParserT>
|
||||
closure_context_linker(ParserT const& p)
|
||||
: ContextT(p) {}
|
||||
|
||||
template <typename ParserT, typename ScannerT>
|
||||
void pre_parse(ParserT const& p, ScannerT const& scan)
|
||||
{ ContextT::pre_parse(p, scan); }
|
||||
|
||||
template <typename ResultT, typename ParserT, typename ScannerT>
|
||||
ResultT&
|
||||
post_parse(ResultT& hit, ParserT const& p, ScannerT const& scan)
|
||||
{ return ContextT::post_parse(hit, p, scan); }
|
||||
};
|
||||
|
||||
#endif // !defined(BOOST_SPIRIT_CLOSURE_CONTEXT_LINKER_DEFINED)
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_END
|
||||
|
||||
}} // namespace BOOST_SPIRIT_CLASSIC_NS
|
||||
|
||||
#endif // BOOST_SPIRIT_CLOSURE_CONTEXT_HPP
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2006 Tobias Schwinger
|
||||
http://spirit.sourceforge.net/
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#if !defined(BOOST_SPIRIT_CLOSURE_FWD_HPP)
|
||||
#define BOOST_SPIRIT_CLOSURE_FWD_HPP
|
||||
|
||||
#include <boost/spirit/home/classic/namespace.hpp>
|
||||
#include <boost/spirit/home/classic/phoenix/tuples.hpp>
|
||||
|
||||
#if !defined(BOOST_SPIRIT_CLOSURE_LIMIT)
|
||||
# define BOOST_SPIRIT_CLOSURE_LIMIT PHOENIX_LIMIT
|
||||
#endif
|
||||
|
||||
namespace boost { namespace spirit {
|
||||
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
|
||||
|
||||
template<typename ClosureT>
|
||||
class closure_context;
|
||||
|
||||
template <typename ClosureT>
|
||||
class init_closure_context;
|
||||
|
||||
template <typename ParserT, typename ActorTupleT>
|
||||
struct init_closure_parser;
|
||||
|
||||
template <
|
||||
typename DerivedT
|
||||
, typename T0 = ::phoenix::nil_t
|
||||
, typename T1 = ::phoenix::nil_t
|
||||
, typename T2 = ::phoenix::nil_t
|
||||
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 3
|
||||
, typename T3 = ::phoenix::nil_t
|
||||
, typename T4 = ::phoenix::nil_t
|
||||
, typename T5 = ::phoenix::nil_t
|
||||
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 6
|
||||
, typename T6 = ::phoenix::nil_t
|
||||
, typename T7 = ::phoenix::nil_t
|
||||
, typename T8 = ::phoenix::nil_t
|
||||
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 9
|
||||
, typename T9 = ::phoenix::nil_t
|
||||
, typename T10 = ::phoenix::nil_t
|
||||
, typename T11 = ::phoenix::nil_t
|
||||
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 12
|
||||
, typename T12 = ::phoenix::nil_t
|
||||
, typename T13 = ::phoenix::nil_t
|
||||
, typename T14 = ::phoenix::nil_t
|
||||
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
>
|
||||
struct closure;
|
||||
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_END
|
||||
|
||||
}} // namespace BOOST_SPIRIT_CLASSIC_NS
|
||||
|
||||
#endif
|
||||
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2001-2003 Joel de Guzman
|
||||
http://spirit.sourceforge.net/
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#ifndef BOOST_SPIRIT_PARAMETRIC_HPP
|
||||
#define BOOST_SPIRIT_PARAMETRIC_HPP
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
#include <boost/spirit/home/classic/namespace.hpp>
|
||||
#include <boost/spirit/home/classic/core/parser.hpp>
|
||||
#include <boost/spirit/home/classic/core/composite/composite.hpp>
|
||||
#include <boost/spirit/home/classic/core/primitives/primitives.hpp>
|
||||
|
||||
namespace boost { namespace spirit {
|
||||
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// f_chlit class [ functional version of chlit ]
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
template <typename ChGenT>
|
||||
struct f_chlit : public char_parser<f_chlit<ChGenT> >
|
||||
{
|
||||
f_chlit(ChGenT chgen_)
|
||||
: chgen(chgen_) {}
|
||||
|
||||
template <typename T>
|
||||
bool test(T ch) const
|
||||
{ return ch == chgen(); }
|
||||
|
||||
ChGenT chgen;
|
||||
};
|
||||
|
||||
template <typename ChGenT>
|
||||
inline f_chlit<ChGenT>
|
||||
f_ch_p(ChGenT chgen)
|
||||
{ return f_chlit<ChGenT>(chgen); }
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// f_range class [ functional version of range ]
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
template <typename ChGenAT, typename ChGenBT>
|
||||
struct f_range : public char_parser<f_range<ChGenAT, ChGenBT> >
|
||||
{
|
||||
f_range(ChGenAT first_, ChGenBT last_)
|
||||
: first(first_), last(last_)
|
||||
{}
|
||||
|
||||
template <typename T>
|
||||
bool test(T ch) const
|
||||
{
|
||||
BOOST_SPIRIT_ASSERT(first() <= last());
|
||||
return (ch >= first()) && (ch <= last());
|
||||
}
|
||||
|
||||
ChGenAT first;
|
||||
ChGenBT last;
|
||||
};
|
||||
|
||||
template <typename ChGenAT, typename ChGenBT>
|
||||
inline f_range<ChGenAT, ChGenBT>
|
||||
f_range_p(ChGenAT first, ChGenBT last)
|
||||
{ return f_range<ChGenAT, ChGenBT>(first, last); }
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// f_chseq class [ functional version of chseq ]
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
template <typename IterGenAT, typename IterGenBT>
|
||||
class f_chseq : public parser<f_chseq<IterGenAT, IterGenBT> >
|
||||
{
|
||||
public:
|
||||
|
||||
typedef f_chseq<IterGenAT, IterGenBT> self_t;
|
||||
|
||||
f_chseq(IterGenAT first_, IterGenBT last_)
|
||||
: first(first_), last(last_) {}
|
||||
|
||||
template <typename ScannerT>
|
||||
typename parser_result<self_t, ScannerT>::type
|
||||
parse(ScannerT const& scan) const
|
||||
{
|
||||
typedef typename parser_result<self_t, ScannerT>::type result_t;
|
||||
return impl::string_parser_parse<result_t>(first(), last(), scan);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
IterGenAT first;
|
||||
IterGenBT last;
|
||||
};
|
||||
|
||||
template <typename IterGenAT, typename IterGenBT>
|
||||
inline f_chseq<IterGenAT, IterGenBT>
|
||||
f_chseq_p(IterGenAT first, IterGenBT last)
|
||||
{ return f_chseq<IterGenAT, IterGenBT>(first, last); }
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// f_strlit class [ functional version of strlit ]
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
template <typename IterGenAT, typename IterGenBT>
|
||||
class f_strlit : public parser<f_strlit<IterGenAT, IterGenBT> >
|
||||
{
|
||||
public:
|
||||
|
||||
typedef f_strlit<IterGenAT, IterGenBT> self_t;
|
||||
|
||||
f_strlit(IterGenAT first, IterGenBT last)
|
||||
: seq(first, last) {}
|
||||
|
||||
template <typename ScannerT>
|
||||
typename parser_result<self_t, ScannerT>::type
|
||||
parse(ScannerT const& scan) const
|
||||
{
|
||||
typedef typename parser_result<self_t, ScannerT>::type result_t;
|
||||
return impl::contiguous_parser_parse<result_t>
|
||||
(seq, scan, scan);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
f_chseq<IterGenAT, IterGenBT> seq;
|
||||
};
|
||||
|
||||
template <typename IterGenAT, typename IterGenBT>
|
||||
inline f_strlit<IterGenAT, IterGenBT>
|
||||
f_str_p(IterGenAT first, IterGenBT last)
|
||||
{ return f_strlit<IterGenAT, IterGenBT>(first, last); }
|
||||
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_END
|
||||
|
||||
}} // namespace BOOST_SPIRIT_CLASSIC_NS
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,67 @@
|
||||
/*=============================================================================
|
||||
Copyright (c) 2006 Tobias Schwinger
|
||||
http://spirit.sourceforge.net/
|
||||
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
=============================================================================*/
|
||||
#if !defined(BOOST_SPIRIT_ATTRIBUTE_TYPEOF_HPP)
|
||||
#define BOOST_SPIRIT_ATTRIBUTE_TYPEOF_HPP
|
||||
|
||||
#include <boost/typeof/typeof.hpp>
|
||||
|
||||
#include <boost/spirit/home/classic/namespace.hpp>
|
||||
#include <boost/spirit/home/classic/core/typeof.hpp>
|
||||
#include <boost/spirit/home/classic/attribute/closure_fwd.hpp>
|
||||
|
||||
namespace boost { namespace spirit {
|
||||
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
|
||||
|
||||
// parametric.hpp
|
||||
template<typename ChGenT> struct f_chlit;
|
||||
template<typename ChGenAT, typename ChGenBT> struct f_range;
|
||||
template<typename IterGenAT, typename IterGenBT> class f_chseq;
|
||||
template<typename IterGenAT, typename IterGenBT> class f_strlit;
|
||||
|
||||
BOOST_SPIRIT_CLASSIC_NAMESPACE_END
|
||||
|
||||
}} // namespace BOOST_SPIRIT_CLASSIC_NS
|
||||
|
||||
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
|
||||
|
||||
// parametric.hpp
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_chlit,1)
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_range,2)
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_chseq,2)
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_strlit,2)
|
||||
|
||||
|
||||
// closure.hpp (has forward header)
|
||||
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure,BOOST_SPIRIT_CLOSURE_LIMIT)
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure_context,1)
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::init_closure_context,1)
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::init_closure_parser,2)
|
||||
|
||||
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 12
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure,12)
|
||||
#endif
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 9
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure, 9)
|
||||
#endif
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 6
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure, 6)
|
||||
#endif
|
||||
#if BOOST_SPIRIT_CLOSURE_LIMIT > 3
|
||||
BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure, 3)
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user