1.1 --- a/epoc32/include/stdapis/boost/preprocessor/seq/for_each_i.hpp Tue Mar 16 16:12:26 2010 +0000
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,61 +0,0 @@
1.4 -# /* **************************************************************************
1.5 -# * *
1.6 -# * (C) Copyright Paul Mensonides 2002.
1.7 -# * Distributed under the Boost Software License, Version 1.0. (See
1.8 -# * accompanying file LICENSE_1_0.txt or copy at
1.9 -# * http://www.boost.org/LICENSE_1_0.txt)
1.10 -# * *
1.11 -# ************************************************************************** */
1.12 -#
1.13 -# /* See http://www.boost.org for most recent version. */
1.14 -#
1.15 -# ifndef BOOST_PREPROCESSOR_SEQ_FOR_EACH_I_HPP
1.16 -# define BOOST_PREPROCESSOR_SEQ_FOR_EACH_I_HPP
1.17 -#
1.18 -# include <boost/preprocessor/arithmetic/dec.hpp>
1.19 -# include <boost/preprocessor/arithmetic/inc.hpp>
1.20 -# include <boost/preprocessor/config/config.hpp>
1.21 -# include <boost/preprocessor/repetition/for.hpp>
1.22 -# include <boost/preprocessor/seq/seq.hpp>
1.23 -# include <boost/preprocessor/seq/size.hpp>
1.24 -# include <boost/preprocessor/tuple/elem.hpp>
1.25 -# include <boost/preprocessor/tuple/rem.hpp>
1.26 -#
1.27 -# /* BOOST_PP_SEQ_FOR_EACH_I */
1.28 -#
1.29 -# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
1.30 -# define BOOST_PP_SEQ_FOR_EACH_I(macro, data, seq) BOOST_PP_FOR((macro, data, seq (nil), 0), BOOST_PP_SEQ_FOR_EACH_I_P, BOOST_PP_SEQ_FOR_EACH_I_O, BOOST_PP_SEQ_FOR_EACH_I_M)
1.31 -# else
1.32 -# define BOOST_PP_SEQ_FOR_EACH_I(macro, data, seq) BOOST_PP_SEQ_FOR_EACH_I_I(macro, data, seq)
1.33 -# define BOOST_PP_SEQ_FOR_EACH_I_I(macro, data, seq) BOOST_PP_FOR((macro, data, seq (nil), 0), BOOST_PP_SEQ_FOR_EACH_I_P, BOOST_PP_SEQ_FOR_EACH_I_O, BOOST_PP_SEQ_FOR_EACH_I_M)
1.34 -# endif
1.35 -#
1.36 -# define BOOST_PP_SEQ_FOR_EACH_I_P(r, x) BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(BOOST_PP_TUPLE_ELEM(4, 2, x)))
1.37 -#
1.38 -# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
1.39 -# define BOOST_PP_SEQ_FOR_EACH_I_O(r, x) BOOST_PP_SEQ_FOR_EACH_I_O_I x
1.40 -# else
1.41 -# define BOOST_PP_SEQ_FOR_EACH_I_O(r, x) BOOST_PP_SEQ_FOR_EACH_I_O_I(BOOST_PP_TUPLE_ELEM(4, 0, x), BOOST_PP_TUPLE_ELEM(4, 1, x), BOOST_PP_TUPLE_ELEM(4, 2, x), BOOST_PP_TUPLE_ELEM(4, 3, x))
1.42 -# endif
1.43 -#
1.44 -# define BOOST_PP_SEQ_FOR_EACH_I_O_I(macro, data, seq, i) (macro, data, BOOST_PP_SEQ_TAIL(seq), BOOST_PP_INC(i))
1.45 -#
1.46 -# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()
1.47 -# define BOOST_PP_SEQ_FOR_EACH_I_M(r, x) BOOST_PP_SEQ_FOR_EACH_I_M_IM(r, BOOST_PP_TUPLE_REM_4 x)
1.48 -# define BOOST_PP_SEQ_FOR_EACH_I_M_IM(r, im) BOOST_PP_SEQ_FOR_EACH_I_M_I(r, im)
1.49 -# else
1.50 -# define BOOST_PP_SEQ_FOR_EACH_I_M(r, x) BOOST_PP_SEQ_FOR_EACH_I_M_I(r, BOOST_PP_TUPLE_ELEM(4, 0, x), BOOST_PP_TUPLE_ELEM(4, 1, x), BOOST_PP_TUPLE_ELEM(4, 2, x), BOOST_PP_TUPLE_ELEM(4, 3, x))
1.51 -# endif
1.52 -#
1.53 -# define BOOST_PP_SEQ_FOR_EACH_I_M_I(r, macro, data, seq, i) macro(r, data, i, BOOST_PP_SEQ_HEAD(seq))
1.54 -#
1.55 -# /* BOOST_PP_SEQ_FOR_EACH_I_R */
1.56 -#
1.57 -# if ~BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_EDG()
1.58 -# define BOOST_PP_SEQ_FOR_EACH_I_R(r, macro, data, seq) BOOST_PP_FOR_ ## r((macro, data, seq (nil), 0), BOOST_PP_SEQ_FOR_EACH_I_P, BOOST_PP_SEQ_FOR_EACH_I_O, BOOST_PP_SEQ_FOR_EACH_I_M)
1.59 -# else
1.60 -# define BOOST_PP_SEQ_FOR_EACH_I_R(r, macro, data, seq) BOOST_PP_SEQ_FOR_EACH_I_R_I(r, macro, data, seq)
1.61 -# define BOOST_PP_SEQ_FOR_EACH_I_R_I(r, macro, data, seq) BOOST_PP_FOR_ ## r((macro, data, seq (nil), 0), BOOST_PP_SEQ_FOR_EACH_I_P, BOOST_PP_SEQ_FOR_EACH_I_O, BOOST_PP_SEQ_FOR_EACH_I_M)
1.62 -# endif
1.63 -#
1.64 -# endif