Commit daeea474 authored by Thierry Geraud's avatar Thierry Geraud
Browse files

2007-02-01 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>

	* mlc/case.hh (mlc_case_equipment_for_namespace):
	Rename NAMESPACE::internal into NAMESPACE::mlc_case_internal.
	* mlc/cmp.hh (is_not_value, is_not_bexpr): Shorten.



git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@728 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent f3857d7c
2007-02-01 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>
* mlc/case.hh (mlc_case_equipment_for_namespace):
Rename NAMESPACE::internal into NAMESPACE::mlc_case_internal.
* mlc/cmp.hh (is_not_value, is_not_bexpr): Shorten.
2006-11-30 Thierry GERAUD <theo@tegucigalpa.lrde.epita.fr>
* mlc/uint.hh: Fix inheritance.
......
......@@ -191,7 +191,7 @@ namespace NAMESPACE \
\
\
\
namespace internal \
namespace mlc_case_internal \
{ \
\
template <typename use, \
......@@ -393,33 +393,33 @@ namespace NAMESPACE \
template <typename context, typename data> \
struct get_case_ \
{ \
typedef typename NAMESPACE::internal::select_case_<mlc::internal::a_get_case, context, data>::ret ret; \
typedef typename NAMESPACE::mlc_case_internal::select_case_<mlc::internal::a_get_case, context, data>::ret ret; \
}; \
\
\
template <typename context, typename data> \
struct case_ <context, data, mlc::internal::unknown_case_id> \
\
: private mlc::assert_< mlc::neq_< mlc_comma_2(typename NAMESPACE::internal::select_case_<mlc::internal::a_simple_case, \
: private mlc::assert_< mlc::neq_< mlc_comma_2(typename NAMESPACE::mlc_case_internal::select_case_<mlc::internal::a_simple_case, \
context, data>::ret), \
mlc::none >, \
mlc::ERROR::NO_case_STATEMENT_CAN_BE_SELECTED > \
\
{ \
typedef typename NAMESPACE::internal::select_case_<mlc::internal::a_simple_case, context, data>::ret ret; \
typedef typename NAMESPACE::mlc_case_internal::select_case_<mlc::internal::a_simple_case, context, data>::ret ret; \
}; \
\
\
template <typename context, typename data> \
struct switch_ \
\
: private mlc::assert_< mlc::neq_< mlc_comma_2(typename NAMESPACE::internal::select_case_<mlc::internal::a_switch_case, \
: private mlc::assert_< mlc::neq_< mlc_comma_2(typename NAMESPACE::mlc_case_internal::select_case_<mlc::internal::a_switch_case, \
context, data>::ret), \
mlc::none >, \
mlc::ERROR::NO_case_STATEMENT_CAN_BE_SELECTED > \
\
{ \
typedef typename NAMESPACE::internal::select_case_<mlc::internal::a_switch_case, context, data>::ret case_t; \
typedef typename NAMESPACE::mlc_case_internal::select_case_<mlc::internal::a_switch_case, context, data>::ret case_t; \
typedef typename case_t::ret ret; \
}; \
\
......
......@@ -83,7 +83,7 @@ namespace mlc
/// Check whether \a T is not a mlc::abstract::value.
template <typename T>
struct is_not_value : public not_<mlc_is_a(T, mlc::abstract::value)>::bexpr
struct is_not_value : public mlc_is_not_a(T, mlc::abstract::value)::bexpr
{
};
......@@ -96,7 +96,7 @@ namespace mlc
/// Check whether \a T is not a mlc::abstract::bexpr.
template <typename T>
struct is_not_bexpr : public not_<mlc_is_a(T, mlc::abstract::bexpr)>::bexpr
struct is_not_bexpr : public mlc_is_not_a(T, mlc::abstract::bexpr)::bexpr
{
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment