stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r515619 - in /incubator/stdcxx/trunk/tests: self/0.alloc.cpp src/alloc.cpp
Date Wed, 07 Mar 2007 15:55:38 GMT
Author: faridz
Date: Wed Mar  7 07:55:37 2007
New Revision: 515619

URL: http://svn.apache.org/viewvc?view=rev&rev=515619
Log:
2007-03-07  Farid Zaripov <Farid_Zaripov@epam.com>

	* alloc.cpp: fixed typo (removed comma);
	* 0.alloc.cpp: use setjmp() instead sigsetjmp() on Cygwin

Modified:
    incubator/stdcxx/trunk/tests/self/0.alloc.cpp
    incubator/stdcxx/trunk/tests/src/alloc.cpp

Modified: incubator/stdcxx/trunk/tests/self/0.alloc.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/self/0.alloc.cpp?view=diff&rev=515619&r1=515618&r2=515619
==============================================================================
--- incubator/stdcxx/trunk/tests/self/0.alloc.cpp (original)
+++ incubator/stdcxx/trunk/tests/self/0.alloc.cpp Wed Mar  7 07:55:37 2007
@@ -31,11 +31,6 @@
 #include <rw_printf.h>   // for rw_printf
 #include <driver.h>
 
-#ifdef __CYGWIN__
-// use the Windows API on Cygwin
-#  define _WIN32
-#endif
-
 static jmp_buf mark;
 
 extern "C" {
@@ -48,7 +43,8 @@
 
 }
 
-#ifdef sigsetjmp
+// on Cygwin use setjmp
+#if !defined (__CYGWIN__) && defined (sigsetjmp)
 #define SETJMP(env) sigsetjmp (env, 1)
 #else
 #define SETJMP(env) setjmp (env)

Modified: incubator/stdcxx/trunk/tests/src/alloc.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/tests/src/alloc.cpp?view=diff&rev=515619&r1=515618&r2=515619
==============================================================================
--- incubator/stdcxx/trunk/tests/src/alloc.cpp (original)
+++ incubator/stdcxx/trunk/tests/src/alloc.cpp Wed Mar  7 07:55:37 2007
@@ -93,7 +93,7 @@
     PROT_READ  = 1 << 0,
     PROT_WRITE = 1 << 1,
     PROT_RDWR  = PROT_READ | PROT_WRITE,
-    PROT_EXEC  = 1 << 2,
+    PROT_EXEC  = 1 << 2
 };
 
 #define MAP_PRIVATE   0



Mime
View raw message