forked from boostorg/regex
vc7 warning suppression.
[SVN r14064]
This commit is contained in:
@ -22,6 +22,12 @@
|
|||||||
|
|
||||||
#define BOOST_REGEX_SOURCE
|
#define BOOST_REGEX_SOURCE
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
# ifdef BOOST_MSVC
|
||||||
|
# pragma warning(disable: 4702)
|
||||||
|
# endif
|
||||||
|
|
||||||
#include <clocale>
|
#include <clocale>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <list>
|
#include <list>
|
||||||
@ -160,6 +166,8 @@ enum syntax_map_size
|
|||||||
map_size = UCHAR_MAX + 1
|
map_size = UCHAR_MAX + 1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::size_t BOOST_REGEX_CALL _re_get_message(char* buf, std::size_t len, std::size_t id);
|
||||||
|
|
||||||
#ifndef BOOST_NO_WREGEX
|
#ifndef BOOST_NO_WREGEX
|
||||||
|
|
||||||
BOOST_REGEX_DECL wchar_t re_zero_w;
|
BOOST_REGEX_DECL wchar_t re_zero_w;
|
||||||
@ -176,13 +184,7 @@ struct syntax_map_t
|
|||||||
|
|
||||||
std::list<syntax_map_t>* syntax;
|
std::list<syntax_map_t>* syntax;
|
||||||
|
|
||||||
#endif
|
std::size_t BOOST_REGEX_CALL re_get_message(wchar_t* buf, std::size_t len, std::size_t id)
|
||||||
|
|
||||||
|
|
||||||
std::size_t BOOST_REGEX_CALL _re_get_message(char* buf, std::size_t len, std::size_t id);
|
|
||||||
|
|
||||||
template <class charT>
|
|
||||||
std::size_t BOOST_REGEX_CALL re_get_message(charT* buf, std::size_t len, std::size_t id)
|
|
||||||
{
|
{
|
||||||
std::size_t size = _re_get_message(static_cast<char*>(0), 0, id);
|
std::size_t size = _re_get_message(static_cast<char*>(0), 0, id);
|
||||||
if(len < size)
|
if(len < size)
|
||||||
@ -192,6 +194,7 @@ std::size_t BOOST_REGEX_CALL re_get_message(charT* buf, std::size_t len, std::si
|
|||||||
size = boost::c_regex_traits<wchar_t>::strwiden(buf, len, cb.get());
|
size = boost::c_regex_traits<wchar_t>::strwiden(buf, len, cb.get());
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline std::size_t BOOST_REGEX_CALL re_get_message(char* buf, std::size_t len, std::size_t id)
|
inline std::size_t BOOST_REGEX_CALL re_get_message(char* buf, std::size_t len, std::size_t id)
|
||||||
{
|
{
|
||||||
|
@ -27,6 +27,10 @@
|
|||||||
|
|
||||||
#ifndef BOOST_NO_STD_LOCALE
|
#ifndef BOOST_NO_STD_LOCALE
|
||||||
|
|
||||||
|
# ifdef BOOST_MSVC
|
||||||
|
# pragma warning(disable:4786 4702 4127 4244)
|
||||||
|
# endif
|
||||||
|
|
||||||
#include <clocale>
|
#include <clocale>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
@ -39,9 +43,8 @@
|
|||||||
#include <boost/scoped_array.hpp>
|
#include <boost/scoped_array.hpp>
|
||||||
#include "primary_transform.hpp"
|
#include "primary_transform.hpp"
|
||||||
|
|
||||||
|
|
||||||
# ifdef BOOST_MSVC
|
# ifdef BOOST_MSVC
|
||||||
# pragma warning(disable:4786)
|
# pragma warning(disable:4786 4702 4127 4244)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
namespace{
|
namespace{
|
||||||
|
Reference in New Issue
Block a user