Fixed Borland warning suppression.

Changed config to use BOOST_HAS_DECLSPEC


[SVN r19781]
This commit is contained in:
John Maddock
2003-08-26 10:49:41 +00:00
parent 2e1ed31f34
commit 51ef8177d3
7 changed files with 58 additions and 36 deletions

View File

@ -27,9 +27,6 @@
#ifdef BOOST_HAS_ABI_HEADERS
# include BOOST_ABI_PREFIX
#endif
#ifdef __BORLANDC__
#pragma option push -w-8008 -w-8066 -w-8004
#endif
namespace boost{
namespace re_detail{
@ -415,6 +412,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_char_repea
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable:4127)
#endif
#ifdef __BORLANDC__
#pragma option push -w-8008 -w-8066 -w-8004
#endif
const re_repeat* rep = static_cast<const re_repeat*>(pstate);
assert(1 == static_cast<const re_literal*>(rep->next.p)->length);
@ -479,6 +479,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_char_repea
position = ++save_pos;
++count;
}while(true);
#ifdef __BORLANDC__
#pragma option pop
#endif
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
@ -490,6 +493,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_set_repeat
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable:4127)
#endif
#ifdef __BORLANDC__
#pragma option push -w-8008 -w-8066 -w-8004
#endif
const re_repeat* rep = static_cast<const re_repeat*>(pstate);
const unsigned char* map = static_cast<const re_set*>(rep->next.p)->_map;
@ -553,6 +559,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_set_repeat
position = ++save_pos;
++count;
}while(true);
#ifdef __BORLANDC__
#pragma option pop
#endif
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
@ -564,6 +573,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_long_set_r
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable:4127)
#endif
#ifdef __BORLANDC__
#pragma option push -w-8008 -w-8066 -w-8004
#endif
const re_repeat* rep = static_cast<const re_repeat*>(pstate);
const re_set_long* set = static_cast<const re_set_long*>(pstate->next.p);
@ -627,6 +639,9 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::match_long_set_r
position = ++save_pos;
++count;
}while(true);
#ifdef __BORLANDC__
#pragma option pop
#endif
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
@ -686,9 +701,6 @@ bool perl_matcher<BidiIterator, Allocator, traits, Allocator2>::backtrack_till_m
} // namespace re_detail
} // namespace boost
#ifdef __BORLANDC__
#pragma option pop
#endif
#ifdef BOOST_HAS_ABI_HEADERS
# include BOOST_ABI_SUFFIX
#endif