stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r449771 - /incubator/stdcxx/trunk/etc/config/src/
Date Mon, 25 Sep 2006 18:48:05 GMT
Author: faridz
Date: Mon Sep 25 11:47:58 2006
New Revision: 449771

URL: http://svn.apache.org/viewvc?view=rev&rev=449771
Log:
2006-09-25 Farid Zaripov <faridz@kyiv.vdiweb.com>

	* BAD_ALLOC_COPY_CTOR.cpp: Added dependency on RUNTIME_IN_STD.cpp
	* BAD_ALLOC_DEFAULT_CTOR.cpp: Ditto
	* BAD_ALLOC_DTOR.cpp: Ditto
	* BAD_ALLOC_WHAT.cpp: Ditto
	* BAD_CAST_ASSIGNMENT.cpp: Ditto
	* BAD_CAST_COPY_CTOR.cpp: Ditto
	* BAD_CAST_DEFAULT_CTOR.cpp: Ditto
	* BAD_CAST_DTOR.cpp: Ditto
	* BAD_CAST_WHAT.cpp: Ditto
	* BAD_EXCEPTION_ASSIGNMENT.cpp: Ditto
	* BAD_EXCEPTION_COPY_CTOR.cpp: Ditto
	* BAD_EXCEPTION_DEFAULT_CTOR.cpp: Ditto
	* BAD_EXCEPTION_DTOR.cpp: Ditto
	* BAD_EXCEPTION_WHAT.cpp: Ditto
	* BAD_TYPEID_ASSIGNMENT.cpp: Ditto
	* BAD_TYPEID_COPY_CTOR.cpp: Ditto
	* BAD_TYPEID_DEFAULT_CTOR.cpp: Ditto
	* BAD_TYPEID_DTOR.cpp: Ditto
	* BAD_TYPEID_WHAT.cpp: Ditto
	* EXCEPTION_ASSIGNMENT.cpp: Ditto
	* EXCEPTION_COPY_CTOR.cpp: Ditto
	* EXCEPTION_DEFAULT_CTOR.cpp: Ditto
	* EXCEPTION_DTOR.cpp: Ditto
	* EXCEPTION_WHAT.cpp: Ditto
	* libc_decl.sh: Removed checking of the wctomb and wcstombs in wchar.h header
	* wthread.h: New file with definitions of Win32 POSIX compatibility layer functions
	* THREAD_SAFE_ERRNO.cpp [_WIN32]: Ported to Windows platform
	* THREAD_SAFE_EXCEPTIONS.cpp [_WIN32]: Ported to Windows platform
	* TLS.cpp: Added print out the #definition of the _RWSTD_THREAD macro
	[_MSC_VER]: Used modifier __declspec (thread) instead of __thread

Added:
    incubator/stdcxx/trunk/etc/config/src/wthread.h   (with props)
Modified:
    incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_COPY_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DEFAULT_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_WHAT.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_CAST_ASSIGNMENT.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_CAST_COPY_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DEFAULT_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_CAST_WHAT.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_ASSIGNMENT.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_COPY_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DEFAULT_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_WHAT.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_ASSIGNMENT.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_COPY_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DEFAULT_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_WHAT.cpp
    incubator/stdcxx/trunk/etc/config/src/EXCEPTION_ASSIGNMENT.cpp
    incubator/stdcxx/trunk/etc/config/src/EXCEPTION_COPY_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DEFAULT_CTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DTOR.cpp
    incubator/stdcxx/trunk/etc/config/src/EXCEPTION_WHAT.cpp
    incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_ERRNO.cpp
    incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp
    incubator/stdcxx/trunk/etc/config/src/TLS.cpp
    incubator/stdcxx/trunk/etc/config/src/libc_decl.sh

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_COPY_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_COPY_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_COPY_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_COPY_CTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_COPY_CTOR
 #define main      test_bad_alloc_copy_ctor
 #include "BAD_ALLOC_ASSIGNMENT.cpp"

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DEFAULT_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DEFAULT_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DEFAULT_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DEFAULT_CTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DEFAULT_CTOR
 #define main test_bad_alloc_default_ctor
 #include "BAD_ALLOC_ASSIGNMENT.cpp"

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_DTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DTOR
 #define main test_bad_alloc_dtor
 #include "BAD_ALLOC_ASSIGNMENT.cpp"

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_WHAT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_WHAT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_WHAT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_ALLOC_WHAT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_WHAT
 #define main test_bad_alloc_what
 #include "BAD_ALLOC_ASSIGNMENT.cpp"

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_CAST_ASSIGNMENT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_CAST_ASSIGNMENT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_CAST_ASSIGNMENT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_CAST_ASSIGNMENT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_ASSIGNMENT
 #define bad_alloc bad_cast
 #define main      test_bad_cast_assignment

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_CAST_COPY_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_CAST_COPY_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_CAST_COPY_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_CAST_COPY_CTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_COPY_CTOR
 #define bad_alloc bad_cast
 #define main      test_bad_cast_copy_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DEFAULT_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DEFAULT_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DEFAULT_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DEFAULT_CTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DEFAULT_CTOR
 #define bad_alloc bad_cast
 #define main      test_bad_cast_default_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_CAST_DTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DTOR
 #define bad_alloc bad_cast
 #define main      test_bad_cast_dtor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_CAST_WHAT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_CAST_WHAT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_CAST_WHAT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_CAST_WHAT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_WHAT
 #define bad_alloc bad_cast
 #define main      test_bad_cast_what

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_ASSIGNMENT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_ASSIGNMENT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_ASSIGNMENT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_ASSIGNMENT.cpp Mon Sep 25 11:47:58
2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_ASSIGNMENT
 #define bad_alloc bad_exception
 #define main      test_bad_exception_assignment

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_COPY_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_COPY_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_COPY_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_COPY_CTOR.cpp Mon Sep 25 11:47:58
2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_COPY_CTOR
 #define bad_alloc bad_exception
 #define main      test_bad_exception_copy_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DEFAULT_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DEFAULT_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DEFAULT_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DEFAULT_CTOR.cpp Mon Sep 25 11:47:58
2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DEFAULT_CTOR
 #define bad_alloc bad_exception
 #define main      test_bad_exception_default_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_DTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DTOR
 #define bad_alloc bad_exception
 #define main      test_bad_exception_dtor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_WHAT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_WHAT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_WHAT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_EXCEPTION_WHAT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_WHAT
 #define bad_alloc bad_exception
 #define main      test_bad_exception_what

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_ASSIGNMENT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_ASSIGNMENT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_ASSIGNMENT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_ASSIGNMENT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_ASSIGNMENT
 #define bad_alloc bad_typeid
 #define main      test_bad_typeid_assignment

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_COPY_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_COPY_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_COPY_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_COPY_CTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_COPY_CTOR
 #define bad_alloc bad_typeid
 #define main      test_bad_typeid_copy_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DEFAULT_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DEFAULT_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DEFAULT_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DEFAULT_CTOR.cpp Mon Sep 25 11:47:58
2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DEFAULT_CTOR
 #define bad_alloc bad_typeid
 #define main      test_bad_typeid_default_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_DTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DTOR
 #define bad_alloc bad_typeid
 #define main      test_bad_typeid_dtor

Modified: incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_WHAT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_WHAT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_WHAT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/BAD_TYPEID_WHAT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_WHAT
 #define bad_alloc bad_typeid
 #define main      test_bad_typeid_what

Modified: incubator/stdcxx/trunk/etc/config/src/EXCEPTION_ASSIGNMENT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/EXCEPTION_ASSIGNMENT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/EXCEPTION_ASSIGNMENT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/EXCEPTION_ASSIGNMENT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_ASSIGNMENT
 #define bad_alloc exception
 #define main      test_exception_assignment

Modified: incubator/stdcxx/trunk/etc/config/src/EXCEPTION_COPY_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/EXCEPTION_COPY_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/EXCEPTION_COPY_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/EXCEPTION_COPY_CTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_COPY_CTOR
 #define bad_alloc exception
 #define main      test_exception_copy_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DEFAULT_CTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DEFAULT_CTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DEFAULT_CTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DEFAULT_CTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DEFAULT_CTOR
 #define bad_alloc exception
 #define main      test_exception_default_ctor

Modified: incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DTOR.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DTOR.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DTOR.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/EXCEPTION_DTOR.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_DTOR
 #define bad_alloc exception
 #define main      test_exception_dtor

Modified: incubator/stdcxx/trunk/etc/config/src/EXCEPTION_WHAT.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/EXCEPTION_WHAT.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/EXCEPTION_WHAT.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/EXCEPTION_WHAT.cpp Mon Sep 25 11:47:58 2006
@@ -4,6 +4,12 @@
 #  include "config.h"
 #endif
 
+#if 0   // guard invalid preprocessor symbol below
+   // establish a dependency on RUNTIME_IN_STD.cpp
+#  ifndef _RWSTD_NO_RUNTIME_IN_STD
+#  endif   // _RWSTD_NO_RUNTIME_IN_STD
+#endif   // 0
+
 #define TEST_WHAT
 #define bad_alloc exception
 #define main      test_exception_what

Modified: incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_ERRNO.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_ERRNO.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_ERRNO.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_ERRNO.cpp Mon Sep 25 11:47:58 2006
@@ -1,7 +1,16 @@
 // checking if errno is thread safe
 
 #include <errno.h>
+
+#ifndef _WIN32
+
 #include <pthread.h>
+
+#else
+
+#include "wthread.h"
+
+#endif
 
 
 void *errno_addr = 0;

Modified: incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/THREAD_SAFE_EXCEPTIONS.cpp Mon Sep 25 11:47:58 2006
@@ -1,15 +1,24 @@
 // checking if exceptions are thread safe
 
+#ifndef _WIN32
+
 #include <pthread.h>
 
 #if defined (__sun) && defined (__SVR4)
-   // use the Solaris threads API in case this is Solaris 2.6
-   // where the POSIX pthread_setconcurrency() API is missing
+// use the Solaris threads API in case this is Solaris 2.6
+// where the POSIX pthread_setconcurrency() API is missing
 #  include <thread.h>
 #  define set_concurrency(n)   thr_setconcurrency (n)
 #else
 #  define set_concurrency(n)   pthread_setconcurrency (n)
 #endif   // __sun && __SVR4
+
+#else
+
+#include "wthread.h"
+#define set_concurrency(n) 
+
+#endif
 
 
 extern "C" void* thread_proc (void *arg)

Modified: incubator/stdcxx/trunk/etc/config/src/TLS.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/TLS.cpp?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/TLS.cpp (original)
+++ incubator/stdcxx/trunk/etc/config/src/TLS.cpp Mon Sep 25 11:47:58 2006
@@ -1,13 +1,31 @@
 // checking for thread-local storage
 
-__thread int tls_i;
+#include <stdio.h>
 
-static __thread char tls_static_array [256];
-extern __thread char tls_extern_array [256];
+#ifdef _MSC_VER
+#define _RWSTD_THREAD __declspec (thread)
+#define _RWSTD_THREAD_STR "__declspec (thread)"
+#else
+#define _RWSTD_THREAD __thread
+#define _RWSTD_THREAD_STR "__thread"
+#endif
 
-__thread char tls_extern_array [256];
+#define STR(x) #x
+#define PRINT_MACRO(name) printf ("#define " #name " " STR(##name) "\n")
+
+_RWSTD_THREAD int tls_i;
+
+static _RWSTD_THREAD char tls_static_array [256];
+extern _RWSTD_THREAD char tls_extern_array [256];
+
+_RWSTD_THREAD char tls_extern_array [256];
 
 int main ()
 {
-    return tls_i + tls_static_array [0] + tls_extern_array [0];
+    int result = tls_i + tls_static_array [0] + tls_extern_array [0];
+
+    if (0 == result)
+        PRINT_MACRO(_RWSTD_THREAD);
+
+    return result;
 }

Modified: incubator/stdcxx/trunk/etc/config/src/libc_decl.sh
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/libc_decl.sh?view=diff&rev=449771&r1=449770&r2=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/libc_decl.sh (original)
+++ incubator/stdcxx/trunk/etc/config/src/libc_decl.sh Mon Sep 25 11:47:58 2006
@@ -284,7 +284,7 @@
     ;;
 
     wchar)
-        funs="btowc fgetwc fgetws fputwc fputws fwide fwprintf fwscanf getwc getwchar mbrlen
mbrtowc mbsinit mbsrtowcs putwc putwchar swprintf swscanf ungetwc vfwprintf vswprintf vwprintf
vwscanf wcrtomb wcscat wcschr((wchar_t*)0,0) wcscmp wcscoll wcscpy wcscspn wcsftime wcslen
wcsncat wcsncmp wcsncpy wcspbrk((wchar_t*)0,(wchar_t*)0) wcsrchr((wchar_t*)0,0) wcsrtombs
wcsspn wcsstr((wchar_t*)0,(wchar_t*)0) wcstod wcstod wcstof wcstok wcstol wcstold wcstoll
wcstombs wcstoul wcstoull wcsxfrm wctob wctomb wmemchr((wchar_t*)0,0,0) wmemcmp wmemcpy wmemmove
wmemset wprintf wscanf"
+        funs="btowc fgetwc fgetws fputwc fputws fwide fwprintf fwscanf getwc getwchar mbrlen
mbrtowc mbsinit mbsrtowcs putwc putwchar swprintf swscanf ungetwc vfwprintf vswprintf vwprintf
vwscanf wcrtomb wcscat wcschr((wchar_t*)0,0) wcscmp wcscoll wcscpy wcscspn wcsftime wcslen
wcsncat wcsncmp wcsncpy wcspbrk((wchar_t*)0,(wchar_t*)0) wcsrchr((wchar_t*)0,0) wcsrtombs
wcsspn wcsstr((wchar_t*)0,(wchar_t*)0) wcstod wcstod wcstof wcstok wcstol wcstold wcstoll
wcstoul wcstoull wcsxfrm wctob wmemchr((wchar_t*)0,0,0) wmemcmp wmemcpy wmemmove wmemset wprintf
wscanf"
         lib=c
     ;;
 

Added: incubator/stdcxx/trunk/etc/config/src/wthread.h
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/src/wthread.h?view=auto&rev=449771
==============================================================================
--- incubator/stdcxx/trunk/etc/config/src/wthread.h (added)
+++ incubator/stdcxx/trunk/etc/config/src/wthread.h Mon Sep 25 11:47:58 2006
@@ -0,0 +1,62 @@
+// definitions of Win32 POSIX compatibility layer functions
+
+#include <windows.h>
+
+struct pthread_attr_t;
+
+struct pthread_t
+{
+    long  id;
+    void* handle;
+};
+
+int pthread_create(pthread_t *thread, const pthread_attr_t *attr,
+                   void *(*start_routine)(void*), void *arg)
+{
+    int result = 0;
+
+    pthread_t tmpid;
+
+    if (0 == thread)
+        thread = &tmpid;
+
+    DWORD nid;
+
+    const HANDLE hthread = CreateThread (0, 0,
+        (LPTHREAD_START_ROUTINE)start_routine,
+        arg, 0, &nid);
+
+    if (INVALID_HANDLE_VALUE == hthread) {
+        thread->id     = -1;
+        thread->handle = 0;
+        result         = -1;
+    }
+    else {
+        thread->id     = nid;
+        thread->handle = hthread;
+    }
+
+    return result;
+}
+
+int pthread_join(pthread_t thread, void **value_ptr)
+{
+    int result = 0;
+
+    const DWORD retcode = WaitForSingleObject (thread.handle, INFINITE);
+
+    if (WAIT_OBJECT_0 == retcode) {
+        if (value_ptr) {
+            DWORD exit_code;
+
+            if (GetExitCodeThread (thread.handle, &exit_code))
+                *value_ptr = (void*)exit_code;
+            else
+                result = -1;
+        }
+    }
+    else
+        result = -1;
+
+    return result;
+}

Propchange: incubator/stdcxx/trunk/etc/config/src/wthread.h
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/stdcxx/trunk/etc/config/src/wthread.h
------------------------------------------------------------------------------
    svn:keywords = Id



Mime
View raw message