Partial work on changes post-review of Predef library:

* shorter category names
* CXX => COMP to be generic compiler category
* add predef for string name of item
* renamed all version make/extraction macros for clarity
* C++ standard predef to use 1970.0.0 epoc date offset
* subcategories for OS_BSD
* start rewrite to support older preprocessors

git-svn-id: http://svn.boost.org/svn/boost/sandbox/predef@79517 b8fc166d-592f-0410-95f2-cb63ce0dd405
This commit is contained in:
Rene Rivera committed 2012-07-15 03:37:23 +00:00
1 parent 4f4e109ab5
commit 7f08aede99
107 files changed
+2341 -1228

No files matched your search

+17 -6
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software Inc 2011
Copyright Redshift Software Inc 2011-2012
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)
@@ -12,20 +12,31 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_CXX`]
[heading `BOOST_LIB_STD_CXX`]
[@http://libcxx.llvm.org/ libc++] C++ Standard Library.
If available version number as major, minor, and patch.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_CXX BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_CXX BOOST_VERSION_NUMBER(0,0,0)
#if defined(_LIBCPP_VERSION)
#undef BOOST_LIBSTD_CXX
#define BOOST_LIBSTD_CXX BOOST_PREDEF_MAKE_N__NNN(_LIBCPP_VERSION)
# undef BOOST_LIB_STD_CXX
# define BOOST_LIB_STD_CXX BOOST_PREDEF_MAKE_10_VPPP(_LIBCPP_VERSION)
#endif
#define BOOST_LIB_STD_CXX_NAME "libc++"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_CXX,"libc++")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_CXX,BOOST_LIB_STD_CXX_NAME)
#endif
+21 -10
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,24 +12,35 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_DINKUMWARE`]
[heading `BOOST_LIB_STD_DINKUMWARE`]
[@http://en.wikipedia.org/wiki/Dinkumware Dinkumware] Standard C++ Library.
If available version number as major, minor, and patch.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_DINKUMWARE BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_DINKUMWARE BOOST_VERSION_NUMBER(0,0,0)
#if (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
#undef BOOST_LIBSTD_DINKUMWARE
#if defined(_CPPLIB_VER)
#define BOOST_LIBSTD_DINKUMWARE BOOST_PREDEF_MAKE_NN_NN(_CPPLIB_VER)
#else
#define BOOST_LIBSTD_DINKUMWARE BOOST_VERSION_NUMBER(0,0,1)
#endif
# undef BOOST_LIB_STD_DINKUMWARE
# if defined(_CPPLIB_VER)
# define BOOST_LIB_STD_DINKUMWARE BOOST_PREDEF_MAKE_10_VVRR(_CPPLIB_VER)
# else
# define BOOST_LIB_STD_DINKUMWARE BOOST_VERSION_NUMBER(0,0,1)
# endif
#endif
#define BOOST_LIB_STD_DINKUMWARE_NAME "Dinkumware"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_DINKUMWARE,"Dinkumware")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_DINKUMWARE,BOOST_LIB_STD_DINKUMWARE_NAME)
#endif
+17 -6
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,20 +12,31 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_COMO`]
[heading `BOOST_LIB_STD_COMO`]
[@http://www.comeaucomputing.com/libcomo/ Comeau Computing] Standard C++ Library.
Version number available as major.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_COMO BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_COMO BOOST_VERSION_NUMBER(0,0,0)
#if defined(__LIBCOMO__)
#undef BOOST_LIBSTD_COMO
#define BOOST_LIBSTD_COMO BOOST_VERSION_NUMBER(__LIBCOMO_VERSION__,0,0)
# undef BOOST_LIB_STD_COMO
# define BOOST_LIB_STD_COMO BOOST_VERSION_NUMBER(__LIBCOMO_VERSION__,0,0)
#endif
#define BOOST_LIB_STD_COMO_NAME "Comeau Computing"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_COMO,"Comeau Computing")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_COMO,BOOST_LIB_STD_COMO_NAME)
#endif
+17 -6
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,19 +12,30 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_MSIPL`]
[heading `BOOST_LIB_STD_MSIPL`]
[@http://modena.us/ Modena Software Lib++] Standard C++ Library.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_MSIPL BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_MSIPL BOOST_VERSION_NUMBER(0,0,0)
#if defined(MSIPL_COMPILE_H) || defined(__MSIPL_COMPILE_H)
#undef BOOST_LIBSTD_MSIPL
#define BOOST_LIBSTD_MSIPL BOOST_VERSION_NUMBER(0,0,1)
# undef BOOST_LIB_STD_MSIPL
# define BOOST_LIB_STD_MSIPL BOOST_VERSION_NUMBER(0,0,1)
#endif
#define BOOST_LIB_STD_MSIPL_NAME "Modena Software Lib++"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_MSIPL,"Modena Software Lib++")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_MSIPL,BOOST_LIB_STD_MSIPL_NAME)
#endif
+21 -10
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,24 +12,35 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_MSL`]
[heading `BOOST_LIB_STD_MSL`]
[@http://www.freescale.com/ Metrowerks] Standard C++ Library.
Version number available as major, minor, and patch.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_MSL BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_MSL BOOST_VERSION_NUMBER(0,0,0)
#if defined(__MSL_CPP__) || defined(__MSL__)
#undef BOOST_LIBSTD_MSL
#if defined(__MSL_CPP__)
#define BOOST_LIBSTD_MSL BOOST_PREDEF_MAKE_F_F_FF(__MSL_CPP__)
#else
#define BOOST_LIBSTD_MSL BOOST_PREDEF_MAKE_F_F_FF(__MSL__)
#endif
# undef BOOST_LIB_STD_MSL
# if defined(__MSL_CPP__)
# define BOOST_LIB_STD_MSL BOOST_PREDEF_MAKE_0X_VRPP(__MSL_CPP__)
# else
# define BOOST_LIB_STD_MSL BOOST_PREDEF_MAKE_0X_VRPP(__MSL__)
# endif
#endif
#define BOOST_LIB_STD_MSL_NAME "Metrowerks"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_MSL,"Metrowerks")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_MSL,BOOST_LIB_STD_MSL_NAME)
#endif
+25 -14
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,28 +12,39 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_RW`]
[heading `BOOST_LIB_STD_RW`]
[@http://stdcxx.apache.org/ Roguewave] Standard C++ library.
If available version number as major, minor, and patch.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_RW BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_RW BOOST_VERSION_NUMBER(0,0,0)
#if defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
#undef BOOST_LIBSTD_RW
#if defined(_RWSTD_VER)
#if _RWSTD_VER < 0x010000
#define BOOST_LIBSTD_RW BOOST_PREDEF_MAKE_FF_FF_F(_RWSTD_VER)
#else
#define BOOST_LIBSTD_RW BOOST_PREDEF_MAKE_FF_FF_FF(_RWSTD_VER)
#endif
#else
#define BOOST_LIBSTD_RW BOOST_VERSION_NUMBER(0,0,1)
#endif
# undef BOOST_LIB_STD_RW
# if defined(_RWSTD_VER)
# if _RWSTD_VER < 0x010000
# define BOOST_LIB_STD_RW BOOST_PREDEF_MAKE_0X_VVRRP(_RWSTD_VER)
# else
# define BOOST_LIB_STD_RW BOOST_PREDEF_MAKE_FF_FF_FF(_RWSTD_VER)
# endif
# else
# define BOOST_LIB_STD_RW BOOST_VERSION_NUMBER(0,0,1)
# endif
#endif
#define BOOST_LIB_STD_RW_NAME "Roguewave"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_RW,"Roguewave")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_RW,BOOST_LIB_STD_RW_NAME)
#endif
+21 -10
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,24 +12,35 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_SGI`]
[heading `BOOST_LIB_STD_SGI`]
[@http://www.sgi.com/tech/stl/ SGI] Standard C++ library.
If available version number as major, minor, and patch.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_SGI BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_SGI BOOST_VERSION_NUMBER(0,0,0)
#if defined(__STL_CONFIG_H)
#undef BOOST_LIBSTD_SGI
#if defined(__SGI_STL)
#define BOOST_LIBSTD_SGI BOOST_PREDEF_MAKE_F_F_F(__SGI_STL)
#else
#define BOOST_LIBSTD_SGI BOOST_VERSION_NUMBER(0,0,1)
#endif
# undef BOOST_LIB_STD_SGI
# if defined(__SGI_STL)
# define BOOST_LIB_STD_SGI BOOST_PREDEF_MAKE_0X_VRP(__SGI_STL)
# else
# define BOOST_LIB_STD_SGI BOOST_VERSION_NUMBER(0,0,1)
# endif
#endif
#define BOOST_LIB_STD_SGI_NAME "SGI"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_SGI,"SGI")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_SGI,BOOST_LIB_STD_SGI_NAME)
#endif
+21 -10
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,24 +12,35 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_GNU`]
[heading `BOOST_LIB_STD_GNU`]
[@http://gcc.gnu.org/libstdc++/ GNU libstdc++] Standard C++ library.
Version number available as year (from 1970), month, and day.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_GNU BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_GNU BOOST_VERSION_NUMBER(0,0,0)
#if defined(__GLIBCPP__) || defined(__GLIBCXX__)
#undef BOOST_LIBSTD_GNU
#if defined(__GLIBCXX__)
#define BOOST_LIBSTD_GNU BOOST_PREDEF_MAKE_YYYY_MM_DD(__GLIBCXX__)
#else
#define BOOST_LIBSTD_GNU BOOST_PREDEF_MAKE_YYYY_MM_DD(__GLIBCPP__)
#endif
# undef BOOST_LIB_STD_GNU
# if defined(__GLIBCXX__)
# define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCXX__)
# else
# define BOOST_LIB_STD_GNU BOOST_PREDEF_MAKE_YYYYMMDD(__GLIBCPP__)
# endif
#endif
#define BOOST_LIB_STD_GNU_NAME "GNU"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_GNU,"GNU")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_GNU,BOOST_LIB_STD_GNU_NAME)
#endif
+23 -12
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,27 +12,38 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_STLPORT`]
[heading `BOOST_LIB_STD_STLPORT`]
[@http://sourceforge.net/projects/stlport/ STLport Standard C++] library.
Version number available as major, minor, and patch.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_STLPORT BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_STLPORT BOOST_VERSION_NUMBER(0,0,0)
#if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
#undef BOOST_LIBSTD_STLPORT
#if defined(_STLPORT_MAJOR)
#define BOOST_LIBSTD_STLPORT \
# undef BOOST_LIB_STD_STLPORT
# if defined(_STLPORT_MAJOR)
# define BOOST_LIB_STD_STLPORT \
BOOST_VERSION_NUMBER(_STLPORT_MAJOR,_STLPORT_MINOR,_STLPORT_PATCHLEVEL)
#elif defined(_STLPORT_VERSION)
#define BOOST_LIBSTD_STLPORT BOOST_PREDEF_MAKE_F_F_F(_STLPORT_VERSION)
#else
#define BOOST_LIBSTD_STLPORT BOOST_PREDEF_MAKE_F_F_F(__SGI_STL_PORT)
#endif
# elif defined(_STLPORT_VERSION)
# define BOOST_LIB_STD_STLPORT BOOST_PREDEF_MAKE_0X_VRP(_STLPORT_VERSION)
# else
# define BOOST_LIB_STD_STLPORT BOOST_PREDEF_MAKE_0X_VRP(__SGI_STL_PORT)
# endif
#endif
#define BOOST_LIB_STD_STLPORT_NAME "STLport"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_STLPORT,"STLport")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_STLPORT,BOOST_LIB_STD_STLPORT_NAME)
#endif
+17 -6
View File
@@ -1,5 +1,5 @@
/*
Copyright Redshift Software, Inc. 2008-2011
Copyright Redshift Software, Inc. 2008-2012
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)
@@ -12,19 +12,30 @@ http://www.boost.org/LICENSE_1_0.txt)
#include <boost/predef/make.h>
/*`
[heading `BOOST_LIBSTD_IBM`]
[heading `BOOST_LIB_STD_IBM`]
[@http://www.ibm.com/software/awdtools/xlcpp/ IBM VACPP Standard C++] library.
[table
[[__predef_symbol__] [__predef_version__]]
[[``] [__predef_detection__]]
[[``] [V.R.P]]
]
*/
#define BOOST_LIBSTD_IBM BOOST_VERSION_NUMBER(0,0,0)
#define BOOST_LIB_STD_IBM BOOST_VERSION_NUMBER(0,0,0)
#if defined(__IBMCPP__)
#undef BOOST_LIBSTD_IBM
#define BOOST_LIBSTD_IBM BOOST_VERSION_NUMBER(0,0,1)
# undef BOOST_LIB_STD_IBM
# define BOOST_LIB_STD_IBM BOOST_VERSION_NUMBER(0,0,1)
#endif
#define BOOST_LIB_STD_IBM_NAME "IBM VACPP"
#include <boost/predef/detail/test.h>
BOOST_PREDEF_DECLARE_TEST(BOOST_LIBSTD_IBM,"IBM VACPP")
BOOST_PREDEF_DECLARE_TEST(BOOST_LIB_STD_IBM,BOOST_LIB_STD_IBM_NAME)
#endif