stabilize build system: depends, installer, boost/bdb fixes, cross targets groundwork
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_DIGIT_EXPECTED_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_DIGIT_EXPECTED_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(digit_expected, "Digit expected");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
#ifndef BOOST_METAPARSE_V1_END_OF_INPUT_EXPECTED_HPP
|
||||
#define BOOST_METAPARSE_V1_END_OF_INPUT_EXPECTED_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(
|
||||
end_of_input_expected,
|
||||
"End of input expected"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_EXPECTED_TO_FAIL_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_EXPECTED_TO_FAIL_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(
|
||||
expected_to_fail,
|
||||
"Parser expected to fail"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_INDEX_OUT_OF_RANGE_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_INDEX_OUT_OF_RANGE_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
template <int From, int To, int N>
|
||||
struct index_out_of_range
|
||||
{
|
||||
typedef index_out_of_range type;
|
||||
|
||||
static std::string get_value()
|
||||
{
|
||||
std::ostringstream s;
|
||||
s
|
||||
<< "index (" << N << ") out of range ["
|
||||
<< From << "-" << To << "]";
|
||||
return s.str();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_LETTER_EXPECTED_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_LETTER_EXPECTED_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(letter_expected, "Letter expected");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_LITERAL_EXPECTED_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_LITERAL_EXPECTED_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
template <char C>
|
||||
struct literal_expected
|
||||
{
|
||||
typedef literal_expected type;
|
||||
|
||||
static std::string get_value()
|
||||
{
|
||||
return std::string("Expected: ") + C;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_NONE_OF_THE_EXPECTED_CASES_FOUND_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_NONE_OF_THE_EXPECTED_CASES_FOUND_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(
|
||||
none_of_the_expected_cases_found,
|
||||
"None of the expected cases found"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_UNEXPECTED_CHARACTER_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_UNEXPECTED_CHARACTER_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(
|
||||
unexpected_character,
|
||||
"Unexpected character"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_UNEXPECTED_END_OF_INPUT_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_UNEXPECTED_END_OF_INPUT_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(
|
||||
unexpected_end_of_input,
|
||||
"Unexpected end of input"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_UNPAIRED_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_UNPAIRED_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2015.
|
||||
// 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)
|
||||
|
||||
#include <boost/mpl/vector.hpp>
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
template <int Line, int Col, class Msg = boost::mpl::na>
|
||||
struct unpaired
|
||||
{
|
||||
typedef unpaired type;
|
||||
|
||||
static std::string get_value()
|
||||
{
|
||||
std::ostringstream s;
|
||||
s << Msg::get_value() << " (see " << Line << ":" << Col << ")";
|
||||
return s.str();
|
||||
}
|
||||
};
|
||||
|
||||
template <int Line, int Col>
|
||||
struct unpaired<Line, Col, boost::mpl::na>
|
||||
{
|
||||
typedef unpaired type;
|
||||
|
||||
template <class Msg = boost::mpl::na>
|
||||
struct apply : unpaired<Line, Col, Msg> {};
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
#ifndef BOOST_METAPARSE_V1_ERROR_WHITESPACE_EXPECTED_HPP
|
||||
#define BOOST_METAPARSE_V1_ERROR_WHITESPACE_EXPECTED_HPP
|
||||
|
||||
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2013.
|
||||
// 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)
|
||||
|
||||
#include <boost/metaparse/v1/define_error.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
namespace metaparse
|
||||
{
|
||||
namespace v1
|
||||
{
|
||||
namespace error
|
||||
{
|
||||
BOOST_METAPARSE_V1_DEFINE_ERROR(
|
||||
whitespace_expected,
|
||||
"Whitespace expected"
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user