Compare commits

...

7 Commits

Author SHA1 Message Date
624ecc2777 This commit was manufactured by cvs2svn to create tag
'Version_1_31_0'.

[SVN r22162]
2004-02-04 15:24:32 +00:00
e6a5f6ce5b This commit was manufactured by cvs2svn to create branch 'RC_1_31_0'.
[SVN r21427]
2003-12-30 12:10:04 +00:00
d56c9b37a6 Fix broken links.
[SVN r21401]
2003-12-27 01:16:48 +00:00
6241d12f49 updated for Metrowerks' new pp
[SVN r21330]
2003-12-18 23:56:04 +00:00
9cc2279b2f tab removal
[SVN r21053]
2003-12-02 00:43:36 +00:00
85182b4426 evil VC bug fix
[SVN r18276]
2003-04-18 06:24:49 +00:00
7a652be8b4 fixed reversed results
[SVN r17875]
2003-03-13 06:51:21 +00:00
7 changed files with 18 additions and 17 deletions

View File

@ -21,7 +21,7 @@
</dl>
<h4>Remarks</h4>
<div>
If <i>x</i> is non-zero, this macro expands to <i>1</i>.&nbsp;
If <i>x</i> is zero, this macro expands to <i>1</i>.&nbsp;
Otherwise, it expands to <i>0</i>.
</div>
<div>

View File

@ -24,7 +24,7 @@
# define BOOST_PP_CONFIG_EDG() 0x0020
#
# ifndef BOOST_PP_CONFIG_FLAGS
# if defined(__SPIRIT_PP__)
# if defined(__SPIRIT_PP__) || defined(__MWERKS__) && __MWERKS__ >= 0x3200
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_STRICT())
# elif defined(__EDG__) || defined(__EDG_VERSION__)
# define BOOST_PP_CONFIG_FLAGS() (BOOST_PP_CONFIG_EDG() | BOOST_PP_CONFIG_STRICT())

View File

@ -14,6 +14,7 @@
# define BOOST_PREPROCESSOR_SEQ_ELEM_HPP
#
# include <boost/preprocessor/config/config.hpp>
# include <boost/preprocessor/facilities/empty.hpp>
#
# /* BOOST_PP_SEQ_ELEM */
#
@ -26,7 +27,7 @@
# if BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MSVC()
# define BOOST_PP_SEQ_ELEM_I(i, seq) BOOST_PP_SEQ_ELEM_II((BOOST_PP_SEQ_ELEM_ ## i seq))
# define BOOST_PP_SEQ_ELEM_II(res) BOOST_PP_SEQ_ELEM_IV(BOOST_PP_SEQ_ELEM_III res)
# define BOOST_PP_SEQ_ELEM_III(x, _) x
# define BOOST_PP_SEQ_ELEM_III(x, _) x BOOST_PP_EMPTY()
# define BOOST_PP_SEQ_ELEM_IV(x) x
# elif BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_MWCC()
# define BOOST_PP_SEQ_ELEM_I(par) BOOST_PP_SEQ_ELEM_II ## par

View File

@ -4,6 +4,6 @@
</head>
<body>
Automatic redirection failed, please go to
<a href="doc/index.htm">doc/index.html</a>.
<a href="doc/index.html">doc/index.html</a>.
</body>
</html>

View File

@ -32,25 +32,25 @@
# elif defined NO_FLAGS
struct BOOST_PP_CAT(X, BOOST_PP_ITERATION()) {
BEGIN
BOOST_PP_ITERATION() >= BOOST_PP_ITERATION_START() &&
BOOST_PP_ITERATION() <= BOOST_PP_ITERATION_FINISH()
END
BEGIN
BOOST_PP_ITERATION() >= BOOST_PP_ITERATION_START() &&
BOOST_PP_ITERATION() <= BOOST_PP_ITERATION_FINISH()
END
};
# elif BOOST_PP_ITERATION_DEPTH() == 1 \
&& BOOST_PP_ITERATION_FLAGS() == 0x0001
&& BOOST_PP_ITERATION_FLAGS() == 0x0001
struct BOOST_PP_CAT(Y, BOOST_PP_ITERATION()) { };
# elif BOOST_PP_ITERATION_DEPTH() == 1 \
&& BOOST_PP_ITERATION_FLAGS() == 0x0002
&& BOOST_PP_ITERATION_FLAGS() == 0x0002
# define BOOST_PP_ITERATION_PARAMS_2 (3, (1, BOOST_PP_ITERATION(), <libs/preprocessor/test/iteration.h>))
# include BOOST_PP_ITERATE()
# elif BOOST_PP_ITERATION_DEPTH() == 2 \
&& BOOST_PP_FRAME_FLAGS(1) == 0x0002
&& BOOST_PP_FRAME_FLAGS(1) == 0x0002
struct BOOST_PP_CAT(Z, BOOST_PP_CAT(BOOST_PP_ITERATION(), BOOST_PP_RELATIVE_ITERATION(1))) { };

View File

@ -23,7 +23,7 @@
# define NTH(z, n, data) data ## n
int add(BOOST_PP_ENUM_PARAMS(MAX, int x)) {
return BOOST_PP_REPEAT(MAX, NTH, + x);
return BOOST_PP_REPEAT(MAX, NTH, + x);
}
const int r = add(BOOST_PP_ENUM_PARAMS(MAX, 1 BOOST_PP_INTERCEPT));
@ -32,9 +32,9 @@ const int r = add(BOOST_PP_ENUM_PARAMS(MAX, 1 BOOST_PP_INTERCEPT));
const int BOOST_PP_ENUM(MAX, CONSTANT, default_param_);
# define TEST(n) \
void BOOST_PP_CAT(test_enum_params, n)(BOOST_PP_ENUM_PARAMS(n, int x)); \
void BOOST_PP_CAT(test_enum_params_with_a_default, n)(BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(n, int x, 0)); \
void BOOST_PP_CAT(test_enum_params_with_defaults, n)(BOOST_PP_ENUM_PARAMS_WITH_DEFAULTS(n, int x, default_param_));
void BOOST_PP_CAT(test_enum_params, n)(BOOST_PP_ENUM_PARAMS(n, int x)); \
void BOOST_PP_CAT(test_enum_params_with_a_default, n)(BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT(n, int x, 0)); \
void BOOST_PP_CAT(test_enum_params_with_defaults, n)(BOOST_PP_ENUM_PARAMS_WITH_DEFAULTS(n, int x, default_param_));
TEST(0)
TEST(MAX)

View File

@ -26,8 +26,8 @@ namespace std { }
using namespace std;
int main(void) {
printf("pass " __TIME__);
return 0;
printf("pass " __TIME__);
return 0;
}
# endif