Add bounded list search operations.
[gnulib.git] / lib / gl_linked_list.c
index e73dd5f..546766d 100644 (file)
@@ -16,9 +16,7 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 /* Specification.  */
 #include "gl_linked_list.h"
@@ -44,8 +42,8 @@ const struct gl_list_implementation gl_linked_list_implementation =
     gl_linked_previous_node,
     gl_linked_get_at,
     gl_linked_set_at,
-    gl_linked_search,
-    gl_linked_indexof,
+    gl_linked_search_from_to,
+    gl_linked_indexof_from_to,
     gl_linked_add_first,
     gl_linked_add_last,
     gl_linked_add_before,
@@ -60,7 +58,9 @@ const struct gl_list_implementation gl_linked_list_implementation =
     gl_linked_iterator_next,
     gl_linked_iterator_free,
     gl_linked_sortedlist_search,
+    gl_linked_sortedlist_search_from_to,
     gl_linked_sortedlist_indexof,
+    gl_linked_sortedlist_indexof_from_to,
     gl_linked_sortedlist_add,
     gl_linked_sortedlist_remove
   };