stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r703216 - in /stdcxx/branches/4.2.x: src/locale_body.h util/path.cpp
Date Thu, 09 Oct 2008 17:50:18 GMT
Author: faridz
Date: Thu Oct  9 10:50:18 2008
New Revision: 703216

URL: http://svn.apache.org/viewvc?rev=703216&view=rev
Log:
2008-10-09  Farid Zaripov  <faridz@apache.org>

        * src/locale_body.h: Revert changes, accidentally committed in r703124. 
        * util/path.cpp: Replace __CYGWIN32__ to __CYGWIN__ for consistency.

Modified:
    stdcxx/branches/4.2.x/src/locale_body.h
    stdcxx/branches/4.2.x/util/path.cpp

Modified: stdcxx/branches/4.2.x/src/locale_body.h
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/src/locale_body.h?rev=703216&r1=703215&r2=703216&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/src/locale_body.h (original)
+++ stdcxx/branches/4.2.x/src/locale_body.h Thu Oct  9 10:50:18 2008
@@ -91,6 +91,8 @@
     // (i.e., one with the same id) in the locale object
     _RWSTD_SIZE_T _C_byname_facet_bits;
 
+    __rw_mutex    _C_mutex;
+
     friend struct _STD::locale;
 
 public:
@@ -163,6 +165,14 @@
         return _RWSTD_ATOMIC_PREDECREMENT (__facet._C_ref, false);
     }
 
+    _RWSTD_SIZE_T _C_add_ref () {
+        return _RWSTD_ATOMIC_PREINCREMENT (_C_ref, _C_mutex);
+    }
+
+    _RWSTD_SIZE_T _C_remove_ref () {
+        return _RWSTD_ATOMIC_PREDECREMENT (_C_ref, _C_mutex);
+    }
+
     // access private facet name
     static const char* _C_get_cat_name (const __rw_facet &__facet) {
         return __facet._C_name;

Modified: stdcxx/branches/4.2.x/util/path.cpp
URL: http://svn.apache.org/viewvc/stdcxx/branches/4.2.x/util/path.cpp?rev=703216&r1=703215&r2=703216&view=diff
==============================================================================
--- stdcxx/branches/4.2.x/util/path.cpp (original)
+++ stdcxx/branches/4.2.x/util/path.cpp Thu Oct  9 10:50:18 2008
@@ -69,7 +69,7 @@
 }
 
 
-#if !defined (_WIN32) && !defined (__CYGWIN32__)
+#if !defined (_WIN32) && !defined (__CYGWIN__)
 
 void
 create_symlink (const std::string &dir, 
@@ -112,7 +112,7 @@
     }
 }
 
-#endif  // !_WIN32 && !__CYGWIN32__
+#endif  // !_WIN32 && !__CYGWIN__
 
 
 inline int



Mime
View raw message