Update of /cvsroot/boost/boost/libs/xpressive/test
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv29160
Modified Files:
regress.ipp test_cycles.cpp
Log Message:
clean up use of crtdbg.h on windows
Index: regress.ipp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/test/regress.ipp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- regress.ipp 28 Oct 2006 22:17:14 -0000 1.4
+++ regress.ipp 5 Mar 2007 20:48:10 -0000 1.5
@@ -11,10 +11,6 @@
7 March 2004 : Initial version.
*/
-#if defined(_MSC_VER) && defined(_DEBUG)
-# include <crtdbg.h>
-#endif
-
#include <locale>
#include <vector>
#include <fstream>
@@ -23,6 +19,11 @@
#include <boost/xpressive/xpressive.hpp>
#include <boost/test/unit_test.hpp>
+#if defined(_MSC_VER) && defined(_DEBUG)
+# define _CRTDBG_MAP_ALLOC
+# include <crtdbg.h>
+#endif
+
#define BOOST_XPR_CHECK(pred)
\
if(pred) {} else { BOOST_ERROR(format_msg(#pred).c_str()); }
Index: test_cycles.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/xpressive/test/test_cycles.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- test_cycles.cpp 22 Oct 2006 03:28:00 -0000 1.6
+++ test_cycles.cpp 5 Mar 2007 20:48:10 -0000 1.7
@@ -9,14 +9,15 @@
// leaks portably.
#define BOOST_XPRESSIVE_DEBUG_CYCLE_TEST
-#ifdef _MSC_VER
-# include <crtdbg.h>
-#endif
-
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <boost/xpressive/xpressive.hpp>
+#if defined(_MSC_VER) && defined(_DEBUG)
+# define _CRTDBG_MAP_ALLOC
+# include <crtdbg.h>
+#endif
+
using namespace boost::unit_test;
using namespace boost::xpressive;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs