You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2015/03/07 02:00:39 UTC

svn commit: r1664771 - in /apr/apr/branches/1.6.x: include/apr_skiplist.h tables/apr_skiplist.c

Author: ylavic
Date: Sat Mar  7 01:00:39 2015
New Revision: 1664771

URL: http://svn.apache.org/r1664771
Log:
skiplist: merge r1664770 from trunk.

Provide apr_skiplist_element().

Modified:
    apr/apr/branches/1.6.x/include/apr_skiplist.h
    apr/apr/branches/1.6.x/tables/apr_skiplist.c

Modified: apr/apr/branches/1.6.x/include/apr_skiplist.h
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/include/apr_skiplist.h?rev=1664771&r1=1664770&r2=1664771&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/include/apr_skiplist.h (original)
+++ apr/apr/branches/1.6.x/include/apr_skiplist.h Sat Mar  7 01:00:39 2015
@@ -171,6 +171,12 @@ APR_DECLARE(void *) apr_skiplist_next(ap
 APR_DECLARE(void *) apr_skiplist_previous(apr_skiplist *sl, apr_skiplistnode **iter);
 
 /**
+ * Return the element of the skip list node
+ * @param iter The skip list node
+ */
+APR_DECLARE(void *) apr_skiplist_element(apr_skiplistnode *iter);
+
+/**
  * Insert an element into the skip list using the specified comparison function
  * allowing for duplicates.
  * @param sl The skip list

Modified: apr/apr/branches/1.6.x/tables/apr_skiplist.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.6.x/tables/apr_skiplist.c?rev=1664771&r1=1664770&r2=1664771&view=diff
==============================================================================
--- apr/apr/branches/1.6.x/tables/apr_skiplist.c (original)
+++ apr/apr/branches/1.6.x/tables/apr_skiplist.c Sat Mar  7 01:00:39 2015
@@ -384,6 +384,11 @@ APR_DECLARE(void *) apr_skiplist_previou
     return (*iter) ? ((*iter)->data) : NULL;
 }
 
+APR_DECLARE(void *) apr_skiplist_element(apr_skiplistnode *node)
+{
+    return node->data;
+}
+
 static apr_skiplistnode *insert_compare(apr_skiplist *sl, void *data,
                                         apr_skiplist_compare comp, int add)
 {