Skip to content

Commit

Permalink
Merge branch 'modular-location-independent' of https://github.com/gra…
Browse files Browse the repository at this point in the history
  • Loading branch information
pdimov committed Feb 4, 2024
2 parents 3f3f1e0 + a3d0db9 commit fb8ebc8
Show file tree
Hide file tree
Showing 66 changed files with 77 additions and 76 deletions.
1 change: 1 addition & 0 deletions test/Jamfile.v2
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ project preprocessor_tests : requirements <warnings>on
<toolset>gcc-4.5.2:<warnings>all
<toolset>gcc-4.5.2:<cxxflags>-Wno-variadic-macros
<toolset>msvc:<warnings>all
<include>.
;

alias preprocessor : :
Expand Down
2 changes: 1 addition & 1 deletion test/arithmetic.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/arithmetic.cxx>
# include "arithmetic.cxx"
2 changes: 1 addition & 1 deletion test/arithmetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/arithmetic.cxx>
# include "arithmetic.cxx"
2 changes: 1 addition & 1 deletion test/arithmetic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# include <boost/preprocessor/config/limits.hpp>
# include <boost/preprocessor/arithmetic.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

/* addition */

Expand Down
2 changes: 1 addition & 1 deletion test/array.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/array.cxx>
# include "array.cxx"
2 changes: 1 addition & 1 deletion test/array.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/array.cxx>
# include "array.cxx"
2 changes: 1 addition & 1 deletion test/array.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#
# include <boost/preprocessor/config/limits.hpp>
# include <boost/preprocessor/array.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"
# include <boost/preprocessor/facilities/is_empty.hpp>
# include <boost/preprocessor/list/at.hpp>
# include <boost/preprocessor/list/size.hpp>
Expand Down
2 changes: 1 addition & 1 deletion test/checkempty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/checkempty.cxx>
# include "checkempty.cxx"
2 changes: 1 addition & 1 deletion test/checkempty.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/test.h>
# include "test.h"
# include <boost/preprocessor/facilities/check_empty.hpp>

# if BOOST_PP_VARIADIC_HAS_OPT()
Expand Down
2 changes: 1 addition & 1 deletion test/clang_cuda.cu
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/test_macro.h>
# include "test_macro.h"

#if defined(__clang__) && defined(__CUDACC__) && defined(__CUDA__)

Expand Down
2 changes: 1 addition & 1 deletion test/comparison.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/comparison.cxx>
# include "comparison.cxx"

2 changes: 1 addition & 1 deletion test/comparison.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/comparison.cxx>
# include "comparison.cxx"
2 changes: 1 addition & 1 deletion test/comparison.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# include <boost/preprocessor/config/limits.hpp>
# include <boost/preprocessor/comparison.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

/* equality */

Expand Down
2 changes: 1 addition & 1 deletion test/control.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/control.cxx>
# include "control.cxx"
2 changes: 1 addition & 1 deletion test/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/control.cxx>
# include "control.cxx"
2 changes: 1 addition & 1 deletion test/control.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# include <boost/preprocessor/arithmetic/add.hpp>
# include <boost/preprocessor/arithmetic/dec.hpp>
# include <boost/preprocessor/control.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

# define TR(x) 1

Expand Down
2 changes: 1 addition & 1 deletion test/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/debug.cxx>
# include "debug.cxx"
2 changes: 1 addition & 1 deletion test/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/debug.cxx>
# include "debug.cxx"
2 changes: 1 addition & 1 deletion test/debug.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# /* See http://www.boost.org for most recent version. */
#
# include <boost/preprocessor/debug.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

BEGIN sizeof(BOOST_PP_ASSERT_MSG(0, "text") "") / sizeof(char) != 1 END
BEGIN sizeof(BOOST_PP_ASSERT_MSG(1, "text") "") / sizeof(char) == 1 END
Expand Down
2 changes: 1 addition & 1 deletion test/facilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/facilities.cxx>
# include "facilities.cxx"
2 changes: 1 addition & 1 deletion test/facilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/facilities.cxx>
# include "facilities.cxx"
2 changes: 1 addition & 1 deletion test/facilities.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# include <boost/preprocessor/facilities.hpp>
# include <boost/preprocessor/arithmetic/add.hpp>
# include <boost/preprocessor/arithmetic/mul.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

BEGIN BOOST_PP_APPLY(BOOST_PP_NIL) 0 == 0 END
BEGIN BOOST_PP_APPLY((0)) == 0 END
Expand Down
2 changes: 1 addition & 1 deletion test/isempty.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/isempty.cxx>
# include "isempty.cxx"
2 changes: 1 addition & 1 deletion test/isempty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/isempty.cxx>
# include "isempty.cxx"
2 changes: 1 addition & 1 deletion test/isempty.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

# include <boost/preprocessor/facilities/empty.hpp>
# include <boost/preprocessor/facilities/is_empty.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

#define DATA
#define OBJECT OBJECT2
Expand Down
2 changes: 1 addition & 1 deletion test/isempty_variadic_standard_failure.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/isempty_variadic_standard_failure.cxx>
# include "isempty_variadic_standard_failure.cxx"
2 changes: 1 addition & 1 deletion test/isempty_variadic_standard_failure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/isempty_variadic_standard_failure.cxx>
# include "isempty_variadic_standard_failure.cxx"
2 changes: 1 addition & 1 deletion test/isempty_variadic_standard_failure.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# /* See http://www.boost.org for most recent version. */
#
# include <boost/preprocessor/facilities/is_empty.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

#if (BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()) && !BOOST_PP_VARIADICS_MSVC

Expand Down
2 changes: 1 addition & 1 deletion test/isempty_variadic_standard_failure2.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/isempty_variadic_standard_failure2.cxx>
# include "isempty_variadic_standard_failure2.cxx"
2 changes: 1 addition & 1 deletion test/isempty_variadic_standard_failure2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/isempty_variadic_standard_failure2.cxx>
# include "isempty_variadic_standard_failure2.cxx"
2 changes: 1 addition & 1 deletion test/isempty_variadic_standard_failure2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# /* See http://www.boost.org for most recent version. */
#
# include <boost/preprocessor/facilities/is_empty.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

#if (BOOST_PP_CONFIG_FLAGS() & BOOST_PP_CONFIG_STRICT()) && !BOOST_PP_VARIADICS_MSVC

Expand Down
4 changes: 2 additions & 2 deletions test/iteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#
# if !BOOST_PP_IS_SELFISH
#
# include <libs/preprocessor/test/iteration.h>
# include "iteration.h"
#
# define TEST(n) BEGIN n == n END
#
Expand All @@ -37,7 +37,7 @@
#
# endif
#
# define BOOST_PP_INDIRECT_SELF <libs/preprocessor/test/iteration.cpp>
# define BOOST_PP_INDIRECT_SELF "iteration.cpp"
# include BOOST_PP_INCLUDE_SELF()
#
# else
Expand Down
18 changes: 9 additions & 9 deletions test/iteration.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
# include <boost/preprocessor/control/expr_iif.hpp>
# include <boost/preprocessor/iteration.hpp>
# include <boost/preprocessor/logical/bitor.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"
#
# define NO_FLAGS
#
# define BOOST_PP_ITERATION_PARAMS_1 (3, (1, 10, <libs/preprocessor/test/iteration.h>))
# define BOOST_PP_ITERATION_PARAMS_1 (3, (1, 10, "iteration.h"))
# include BOOST_PP_ITERATE()
#
# undef NO_FLAGS
#
# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, <libs/preprocessor/test/iteration.h>, 0x0001))
# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, "iteration.h", 0x0001))
# include BOOST_PP_ITERATE()
#
# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, <libs/preprocessor/test/iteration.h>, 0x0002))
# define BOOST_PP_ITERATION_PARAMS_1 (4, (1, 5, "iteration.h", 0x0002))
# include BOOST_PP_ITERATE()
#
# if BOOST_PP_LIMIT_ITERATION == 512
Expand All @@ -53,7 +53,7 @@
) \
/* */
#
# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 512, <libs/preprocessor/test/iteration.h>, 0x0003))
# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 512, "iteration.h", 0x0003))
# include BOOST_PP_ITERATE()
#
# undef ITER100S
Expand All @@ -78,7 +78,7 @@
) \
/* */
#
# define BOOST_PP_ITERATION_PARAMS_1 (4, (512, 0, <libs/preprocessor/test/iteration.h>, 0x0004))
# define BOOST_PP_ITERATION_PARAMS_1 (4, (512, 0, "iteration.h", 0x0004))
# include BOOST_PP_ITERATE()
#
# undef ITER50S
Expand Down Expand Up @@ -127,7 +127,7 @@
) \
/* */
#
# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 1024, <libs/preprocessor/test/iteration.h>, 0x0005))
# define BOOST_PP_ITERATION_PARAMS_1 (4, (0, 1024, "iteration.h", 0x0005))
# include BOOST_PP_ITERATE()
#
# undef ITER100SA
Expand Down Expand Up @@ -172,7 +172,7 @@
) \
/* */
#
# define BOOST_PP_ITERATION_PARAMS_1 (4, (1024, 0, <libs/preprocessor/test/iteration.h>, 0x0006))
# define BOOST_PP_ITERATION_PARAMS_1 (4, (1024, 0, "iteration.h", 0x0006))
# include BOOST_PP_ITERATE()
#
# undef ITER50SA
Expand All @@ -197,7 +197,7 @@ struct BOOST_PP_CAT(Y, BOOST_PP_ITERATION()) { };
# elif BOOST_PP_ITERATION_DEPTH() == 1 \
&& BOOST_PP_ITERATION_FLAGS() == 0x0002

# define BOOST_PP_ITERATION_PARAMS_2 (3, (1, BOOST_PP_ITERATION(), <libs/preprocessor/test/iteration.h>))
# define BOOST_PP_ITERATION_PARAMS_2 (3, (1, BOOST_PP_ITERATION(), "iteration.h"))
# include BOOST_PP_ITERATE()

# elif BOOST_PP_ITERATION_DEPTH() == 1 \
Expand Down
2 changes: 1 addition & 1 deletion test/list.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/list.cxx>
# include "list.cxx"
2 changes: 1 addition & 1 deletion test/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/list.cxx>
# include "list.cxx"
2 changes: 1 addition & 1 deletion test/list.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# include <boost/preprocessor/seq/elem.hpp>
# include <boost/preprocessor/seq/size.hpp>
# include <boost/preprocessor/variadic/elem.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

# define LISTNIL BOOST_PP_NIL
# define LIST (4, (1, (5, (2, BOOST_PP_NIL))))
Expand Down
2 changes: 1 addition & 1 deletion test/logical.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/logical.cxx>
# include "logical.cxx"
2 changes: 1 addition & 1 deletion test/logical.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/logical.cxx>
# include "logical.cxx"
2 changes: 1 addition & 1 deletion test/logical.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# include <boost/preprocessor/config/limits.hpp>
# include <boost/preprocessor/logical.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

BEGIN BOOST_PP_NOT(0) == 1 END
BEGIN BOOST_PP_NOT(2) == 0 END
Expand Down
2 changes: 1 addition & 1 deletion test/punctuation.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/punctuation.cxx>
# include "punctuation.cxx"
2 changes: 1 addition & 1 deletion test/punctuation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/punctuation.cxx>
# include "punctuation.cxx"
2 changes: 1 addition & 1 deletion test/punctuation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# /* See http://www.boost.org for most recent version. */
#
# include <boost/preprocessor/punctuation.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

# define A_TUPLE (*,#,zz)
# define A_TUPLE2 (*,#,(zz,44,(e7)))
Expand Down
2 changes: 1 addition & 1 deletion test/quick.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// https://www.boost.org/LICENSE_1_0.txt

#include <boost/preprocessor/comparison.hpp>
#include "test_macro.h"
# include "test_macro.h"

/* equality */

Expand Down
2 changes: 1 addition & 1 deletion test/repetition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# include <boost/preprocessor/facilities/intercept.hpp>
# include <boost/preprocessor/logical/bitor.hpp>
# include <boost/preprocessor/repetition.hpp>
# include <libs/preprocessor/test/test.h>
# include "test.h"

# define MAX 10

Expand Down
2 changes: 1 addition & 1 deletion test/selection.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#
# /* See http://www.boost.org for most recent version. */
#
# include <libs/preprocessor/test/selection.cxx>
# include "selection.cxx"
Loading

0 comments on commit fb8ebc8

Please sign in to comment.