|
Boost-Commit : |
From: gennadiy.rozental_at_[hidden]
Date: 2007-10-26 02:47:31
Author: rogeeff
Date: 2007-10-26 02:47:29 EDT (Fri, 26 Oct 2007)
New Revision: 40471
URL: http://svn.boost.org/trac/boost/changeset/40471
Log:
made it to compile if unicode is defined
avoid assertion for negative chars
Text files modified:
trunk/boost/test/impl/debug.ipp | 10 +++++-----
trunk/boost/test/impl/exception_safety.ipp | 2 +-
trunk/boost/test/impl/test_tools.ipp | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
Modified: trunk/boost/test/impl/debug.ipp
==============================================================================
--- trunk/boost/test/impl/debug.ipp (original)
+++ trunk/boost/test/impl/debug.ipp 2007-10-26 02:47:29 EDT (Fri, 26 Oct 2007)
@@ -124,10 +124,10 @@
inline void
dyn_symbol( T& res, char const* module_name, char const* symbol_name )
{
- HMODULE m = ::GetModuleHandle( module_name );
+ HMODULE m = ::GetModuleHandleA( module_name );
if( !m )
- m = ::LoadLibrary( module_name );
+ m = ::LoadLibraryA( module_name );
res = reinterpret_cast<T>( ::GetProcAddress( m, symbol_name ) );
}
@@ -136,8 +136,8 @@
static struct info_t {
typedef BOOL (WINAPI* IsDebuggerPresentT)();
- typedef LONG (WINAPI* RegQueryValueExT)( HKEY, LPTSTR, LPDWORD, LPDWORD, LPBYTE, LPDWORD );
- typedef LONG (WINAPI* RegOpenKeyT)( HKEY, LPCTSTR, PHKEY );
+ typedef LONG (WINAPI* RegQueryValueExT)( HKEY, char const* /*LPTSTR*/, LPDWORD, LPDWORD, LPBYTE, LPDWORD );
+ typedef LONG (WINAPI* RegOpenKeyT)( HKEY, char const* /*LPCTSTR*/, PHKEY );
typedef LONG (WINAPI* RegCloseKeyT)( HKEY );
info_t();
@@ -829,7 +829,7 @@
// debugger process s_info
PROCESS_INFORMATION debugger_info;
- bool created = !!::CreateProcess(
+ bool created = !!::CreateProcessA(
NULL, // pointer to name of executable module; NULL - use the one in command line
cmd_line, // pointer to command line string
NULL, // pointer to process security attributes; NULL - debugger's handle couldn't be inherited
Modified: trunk/boost/test/impl/exception_safety.ipp
==============================================================================
--- trunk/boost/test/impl/exception_safety.ipp (original)
+++ trunk/boost/test/impl/exception_safety.ipp 2007-10-26 02:47:29 EDT (Fri, 26 Oct 2007)
@@ -451,7 +451,7 @@
unsigned i;
for( i = 0; i < std::min<std::size_t>( it->m_alloc.size, 8 ); i++ ) {
unsigned char c = ((unsigned char*)it->m_alloc.ptr)[i];
- if( std::isprint( c ) )
+ if( (std::isprint)( c ) )
formatter << c;
else
formatter << '.';
Modified: trunk/boost/test/impl/test_tools.ipp
==============================================================================
--- trunk/boost/test/impl/test_tools.ipp (original)
+++ trunk/boost/test/impl/test_tools.ipp 2007-10-26 02:47:29 EDT (Fri, 26 Oct 2007)
@@ -361,7 +361,7 @@
void
print_log_value<char>::operator()( std::ostream& ostr, char t )
{
- if( (std::isprint)( t ) )
+ if( (std::isprint)( (unsigned char)t ) )
ostr << '\'' << t << '\'';
else
ostr << std::hex
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk