You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/09/24 23:13:28 UTC

svn commit: r1526012 - /subversion/trunk/subversion/include/svn_types.h

Author: stefan2
Date: Tue Sep 24 21:13:28 2013
New Revision: 1526012

URL: http://svn.apache.org/r1526012
Log:
Introduce SVN_EXPERIMENTAL as a counterpart to SVN_DEPRECATED.
it has less compiler support than the latter but at least GCC
issues a warning.

* subversion/include/svn_types.h
  (SVN_EXPERIMENTAL): define new function marker

Modified:
    subversion/trunk/subversion/include/svn_types.h

Modified: subversion/trunk/subversion/include/svn_types.h
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/include/svn_types.h?rev=1526012&r1=1526011&r2=1526012&view=diff
==============================================================================
--- subversion/trunk/subversion/include/svn_types.h (original)
+++ subversion/trunk/subversion/include/svn_types.h Tue Sep 24 21:13:28 2013
@@ -64,6 +64,23 @@ extern "C" {
 #endif
 
 
+/** Macro used to mark experimental functions.
+ *
+ * @since New in 1.9.
+ */
+#ifndef SVN_EXPERIMENTAL
+# if !defined(SWIGPERL) && !defined(SWIGPYTHON) && !defined(SWIGRUBY)
+#  if defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__==3 && __GNUC_MINOR__>=1))
+#   define SVN_EXPERIMENTAL __attribute__((warning("experimental function used")))
+#  else
+#   define SVN_EXPERIMENTAL
+#  endif
+# else
+#  define SVN_EXPERIMENTAL
+# endif
+#endif
+
+
 /** Indicate whether the current platform supports unaligned data access.
  *
  * On the majority of machines running SVN (x86 / x64), unaligned access