Use spaces for indentation, not tabs.
[gnulib.git] / lib / gl_list.h
index 41fdfc8..53cfc53 100644 (file)
@@ -57,8 +57,8 @@ extern "C" {
    n elements:
 
    Operation                  ARRAY    LINKED    TREE    LINKEDHASH   TREEHASH
-                             CARRAY                   with|without with|without
-                                                        duplicates  duplicates
+                              CARRAY                   with|without with|without
+                                                         duplicates  duplicates
 
    gl_list_size                O(1)     O(1)     O(1)      O(1)         O(1)
    gl_list_node_value          O(1)     O(1)     O(1)      O(1)         O(1)
@@ -130,10 +130,10 @@ typedef const struct gl_list_implementation * gl_list_implementation_t;
    ALLOW_DUPLICATES is false if duplicate elements shall not be allowed in
    the list. The implementation may verify this at runtime.  */
 extern gl_list_t gl_list_create_empty (gl_list_implementation_t implementation,
-                                      gl_listelement_equals_fn equals_fn,
-                                      gl_listelement_hashcode_fn hashcode_fn,
-                                      gl_listelement_dispose_fn dispose_fn,
-                                      bool allow_duplicates);
+                                       gl_listelement_equals_fn equals_fn,
+                                       gl_listelement_hashcode_fn hashcode_fn,
+                                       gl_listelement_dispose_fn dispose_fn,
+                                       bool allow_duplicates);
 
 /* Create a list with given contents.
    IMPLEMENTATION is one of GL_ARRAY_LIST, GL_CARRAY_LIST, GL_LINKED_LIST,
@@ -147,11 +147,11 @@ extern gl_list_t gl_list_create_empty (gl_list_implementation_t implementation,
    COUNT is the number of initial elements.
    CONTENTS[0..COUNT-1] is the initial contents.  */
 extern gl_list_t gl_list_create (gl_list_implementation_t implementation,
-                                gl_listelement_equals_fn equals_fn,
-                                gl_listelement_hashcode_fn hashcode_fn,
-                                gl_listelement_dispose_fn dispose_fn,
-                                bool allow_duplicates,
-                                size_t count, const void **contents);
+                                 gl_listelement_equals_fn equals_fn,
+                                 gl_listelement_hashcode_fn hashcode_fn,
+                                 gl_listelement_dispose_fn dispose_fn,
+                                 bool allow_duplicates,
+                                 size_t count, const void **contents);
 
 /* Return the current number of elements in a list.  */
 extern size_t gl_list_size (gl_list_t list);
@@ -161,7 +161,7 @@ extern const void * gl_list_node_value (gl_list_t list, gl_list_node_t node);
 
 /* Replace the element value represented by a list node.  */
 extern void gl_list_node_set_value (gl_list_t list, gl_list_node_t node,
-                                   const void *elt);
+                                    const void *elt);
 
 /* Return the node immediately after the given node in the list, or NULL
    if the given node is the last (rightmost) one in the list.  */
@@ -179,7 +179,7 @@ extern const void * gl_list_get_at (gl_list_t list, size_t position);
    POSITION must be >= 0 and < gl_list_size (list).
    Return its node.  */
 extern gl_list_node_t gl_list_set_at (gl_list_t list, size_t position,
-                                     const void *elt);
+                                      const void *elt);
 
 /* Search whether an element is already in the list.
    Return its node if found, or NULL if not present in the list.  */
@@ -189,15 +189,15 @@ extern gl_list_node_t gl_list_search (gl_list_t list, const void *elt);
    at a position >= START_INDEX.
    Return its node if found, or NULL if not present in the list.  */
 extern gl_list_node_t gl_list_search_from (gl_list_t list, size_t start_index,
-                                          const void *elt);
+                                           const void *elt);
 
 /* Search whether an element is already in the list,
    at a position >= START_INDEX and < END_INDEX.
    Return its node if found, or NULL if not present in the list.  */
 extern gl_list_node_t gl_list_search_from_to (gl_list_t list,
-                                             size_t start_index,
-                                             size_t end_index,
-                                             const void *elt);
+                                              size_t start_index,
+                                              size_t end_index,
+                                              const void *elt);
 
 /* Search whether an element is already in the list.
    Return its position if found, or (size_t)(-1) if not present in the list.  */
@@ -207,14 +207,14 @@ extern size_t gl_list_indexof (gl_list_t list, const void *elt);
    at a position >= START_INDEX.
    Return its position if found, or (size_t)(-1) if not present in the list.  */
 extern size_t gl_list_indexof_from (gl_list_t list, size_t start_index,
-                                   const void *elt);
+                                    const void *elt);
 
 /* Search whether an element is already in the list,
    at a position >= START_INDEX and < END_INDEX.
    Return its position if found, or (size_t)(-1) if not present in the list.  */
 extern size_t gl_list_indexof_from_to (gl_list_t list,
-                                      size_t start_index, size_t end_index,
-                                      const void *elt);
+                                       size_t start_index, size_t end_index,
+                                       const void *elt);
 
 /* Add an element as the first element of the list.
    Return its node.  */
@@ -227,17 +227,17 @@ extern gl_list_node_t gl_list_add_last (gl_list_t list, const void *elt);
 /* Add an element before a given element node of the list.
    Return its node.  */
 extern gl_list_node_t gl_list_add_before (gl_list_t list, gl_list_node_t node,
-                                         const void *elt);
+                                          const void *elt);
 
 /* Add an element after a given element node of the list.
    Return its node.  */
 extern gl_list_node_t gl_list_add_after (gl_list_t list, gl_list_node_t node,
-                                        const void *elt);
+                                         const void *elt);
 
 /* Add an element add a given position in the list.
    POSITION must be >= 0 and <= gl_list_size (list).  */
 extern gl_list_node_t gl_list_add_at (gl_list_t list, size_t position,
-                                     const void *elt);
+                                      const void *elt);
 
 /* Remove an element from the list.
    Return true.  */
@@ -285,14 +285,14 @@ extern gl_list_iterator_t gl_list_iterator (gl_list_t list);
    The list contents must not be modified while the iterator is in use,
    except for replacing or removing the last returned element.  */
 extern gl_list_iterator_t gl_list_iterator_from_to (gl_list_t list,
-                                                   size_t start_index,
-                                                   size_t end_index);
+                                                    size_t start_index,
+                                                    size_t end_index);
 
 /* If there is a next element, store the next element in *ELTP, store its
    node in *NODEP if NODEP is non-NULL, advance the iterator and return true.
    Otherwise, return false.  */
 extern bool gl_list_iterator_next (gl_list_iterator_t *iterator,
-                                  const void **eltp, gl_list_node_t *nodep);
+                                   const void **eltp, gl_list_node_t *nodep);
 
 /* Free an iterator.  */
 extern void gl_list_iterator_free (gl_list_iterator_t *iterator);
@@ -312,8 +312,8 @@ typedef int (*gl_listelement_compar_fn) (const void *elt1, const void *elt2);
    If the list contains several copies of ELT, the node of the leftmost one is
    returned.  */
 extern gl_list_node_t gl_sortedlist_search (gl_list_t list,
-                                           gl_listelement_compar_fn compar,
-                                           const void *elt);
+                                            gl_listelement_compar_fn compar,
+                                            const void *elt);
 
 /* Search whether an element is already in the list.
    The list is assumed to be sorted with COMPAR.
@@ -324,10 +324,10 @@ extern gl_list_node_t gl_sortedlist_search (gl_list_t list,
    If the list contains several copies of ELT, the node of the leftmost one is
    returned.  */
 extern gl_list_node_t gl_sortedlist_search_from_to (gl_list_t list,
-                                                   gl_listelement_compar_fn compar,
-                                                   size_t start_index,
-                                                   size_t end_index,
-                                                   const void *elt);
+                                                    gl_listelement_compar_fn compar,
+                                                    size_t start_index,
+                                                    size_t end_index,
+                                                    const void *elt);
 
 /* Search whether an element is already in the list.
    The list is assumed to be sorted with COMPAR.
@@ -335,8 +335,8 @@ extern gl_list_node_t gl_sortedlist_search_from_to (gl_list_t list,
    If the list contains several copies of ELT, the position of the leftmost one
    is returned.  */
 extern size_t gl_sortedlist_indexof (gl_list_t list,
-                                    gl_listelement_compar_fn compar,
-                                    const void *elt);
+                                     gl_listelement_compar_fn compar,
+                                     const void *elt);
 
 /* Search whether an element is already in the list.
    The list is assumed to be sorted with COMPAR.
@@ -347,17 +347,17 @@ extern size_t gl_sortedlist_indexof (gl_list_t list,
    If the list contains several copies of ELT, the position of the leftmost one
    is returned.  */
 extern size_t gl_sortedlist_indexof_from_to (gl_list_t list,
-                                            gl_listelement_compar_fn compar,
-                                            size_t start_index,
-                                            size_t end_index,
-                                            const void *elt);
+                                             gl_listelement_compar_fn compar,
+                                             size_t start_index,
+                                             size_t end_index,
+                                             const void *elt);
 
 /* Add an element at the appropriate position in the list.
    The list is assumed to be sorted with COMPAR.
    Return its node.  */
 extern gl_list_node_t gl_sortedlist_add (gl_list_t list,
-                                        gl_listelement_compar_fn compar,
-                                        const void *elt);
+                                         gl_listelement_compar_fn compar,
+                                         const void *elt);
 
 /* Search and remove an element from the list.
    The list is assumed to be sorted with COMPAR.
@@ -365,8 +365,8 @@ extern gl_list_node_t gl_sortedlist_add (gl_list_t list,
    If the list contains several copies of ELT, only the leftmost one is
    removed.  */
 extern bool gl_sortedlist_remove (gl_list_t list,
-                                 gl_listelement_compar_fn compar,
-                                 const void *elt);
+                                  gl_listelement_compar_fn compar,
+                                  const void *elt);
 
 /* ------------------------ Implementation Details ------------------------ */
 
@@ -374,16 +374,16 @@ struct gl_list_implementation
 {
   /* gl_list_t functions.  */
   gl_list_t (*create_empty) (gl_list_implementation_t implementation,
-                            gl_listelement_equals_fn equals_fn,
-                            gl_listelement_hashcode_fn hashcode_fn,
-                            gl_listelement_dispose_fn dispose_fn,
-                            bool allow_duplicates);
+                             gl_listelement_equals_fn equals_fn,
+                             gl_listelement_hashcode_fn hashcode_fn,
+                             gl_listelement_dispose_fn dispose_fn,
+                             bool allow_duplicates);
   gl_list_t (*create) (gl_list_implementation_t implementation,
-                      gl_listelement_equals_fn equals_fn,
-                      gl_listelement_hashcode_fn hashcode_fn,
-                      gl_listelement_dispose_fn dispose_fn,
-                      bool allow_duplicates,
-                      size_t count, const void **contents);
+                       gl_listelement_equals_fn equals_fn,
+                       gl_listelement_hashcode_fn hashcode_fn,
+                       gl_listelement_dispose_fn dispose_fn,
+                       bool allow_duplicates,
+                       size_t count, const void **contents);
   size_t (*size) (gl_list_t list);
   const void * (*node_value) (gl_list_t list, gl_list_node_t node);
   void (*node_set_value) (gl_list_t list, gl_list_node_t node, const void *elt);
@@ -392,17 +392,17 @@ struct gl_list_implementation
   const void * (*get_at) (gl_list_t list, size_t position);
   gl_list_node_t (*set_at) (gl_list_t list, size_t position, const void *elt);
   gl_list_node_t (*search_from_to) (gl_list_t list, size_t start_index,
-                                   size_t end_index, const void *elt);
+                                    size_t end_index, const void *elt);
   size_t (*indexof_from_to) (gl_list_t list, size_t start_index,
-                            size_t end_index, const void *elt);
+                             size_t end_index, const void *elt);
   gl_list_node_t (*add_first) (gl_list_t list, const void *elt);
   gl_list_node_t (*add_last) (gl_list_t list, const void *elt);
   gl_list_node_t (*add_before) (gl_list_t list, gl_list_node_t node,
-                               const void *elt);
+                                const void *elt);
   gl_list_node_t (*add_after) (gl_list_t list, gl_list_node_t node,
-                              const void *elt);
+                               const void *elt);
   gl_list_node_t (*add_at) (gl_list_t list, size_t position,
-                           const void *elt);
+                            const void *elt);
   bool (*remove_node) (gl_list_t list, gl_list_node_t node);
   bool (*remove_at) (gl_list_t list, size_t position);
   bool (*remove_elt) (gl_list_t list, const void *elt);
@@ -410,33 +410,33 @@ struct gl_list_implementation
   /* gl_list_iterator_t functions.  */
   gl_list_iterator_t (*iterator) (gl_list_t list);
   gl_list_iterator_t (*iterator_from_to) (gl_list_t list,
-                                         size_t start_index,
-                                         size_t end_index);
+                                          size_t start_index,
+                                          size_t end_index);
   bool (*iterator_next) (gl_list_iterator_t *iterator,
-                        const void **eltp, gl_list_node_t *nodep);
+                         const void **eltp, gl_list_node_t *nodep);
   void (*iterator_free) (gl_list_iterator_t *iterator);
   /* Sorted gl_list_t functions.  */
   gl_list_node_t (*sortedlist_search) (gl_list_t list,
-                                      gl_listelement_compar_fn compar,
-                                      const void *elt);
+                                       gl_listelement_compar_fn compar,
+                                       const void *elt);
   gl_list_node_t (*sortedlist_search_from_to) (gl_list_t list,
-                                              gl_listelement_compar_fn compar,
-                                              size_t start_index,
-                                              size_t end_index,
-                                              const void *elt);
+                                               gl_listelement_compar_fn compar,
+                                               size_t start_index,
+                                               size_t end_index,
+                                               const void *elt);
   size_t (*sortedlist_indexof) (gl_list_t list,
-                               gl_listelement_compar_fn compar,
-                               const void *elt);
+                                gl_listelement_compar_fn compar,
+                                const void *elt);
   size_t (*sortedlist_indexof_from_to) (gl_list_t list,
-                                       gl_listelement_compar_fn compar,
-                                       size_t start_index, size_t end_index,
-                                       const void *elt);
+                                        gl_listelement_compar_fn compar,
+                                        size_t start_index, size_t end_index,
+                                        const void *elt);
   gl_list_node_t (*sortedlist_add) (gl_list_t list,
-                                   gl_listelement_compar_fn compar,
-                                   const void *elt);
+                                    gl_listelement_compar_fn compar,
+                                    const void *elt);
   bool (*sortedlist_remove) (gl_list_t list,
-                            gl_listelement_compar_fn compar,
-                            const void *elt);
+                             gl_listelement_compar_fn compar,
+                             const void *elt);
 };
 
 struct gl_list_impl_base
@@ -457,26 +457,26 @@ struct gl_list_impl_base
 # define gl_list_create_empty gl_list_create_empty_inline
 static inline gl_list_t
 gl_list_create_empty (gl_list_implementation_t implementation,
-                     gl_listelement_equals_fn equals_fn,
-                     gl_listelement_hashcode_fn hashcode_fn,
-                     gl_listelement_dispose_fn dispose_fn,
-                     bool allow_duplicates)
+                      gl_listelement_equals_fn equals_fn,
+                      gl_listelement_hashcode_fn hashcode_fn,
+                      gl_listelement_dispose_fn dispose_fn,
+                      bool allow_duplicates)
 {
   return implementation->create_empty (implementation, equals_fn, hashcode_fn,
-                                      dispose_fn, allow_duplicates);
+                                       dispose_fn, allow_duplicates);
 }
 
 # define gl_list_create gl_list_create_inline
 static inline gl_list_t
 gl_list_create (gl_list_implementation_t implementation,
-               gl_listelement_equals_fn equals_fn,
-               gl_listelement_hashcode_fn hashcode_fn,
-               gl_listelement_dispose_fn dispose_fn,
-               bool allow_duplicates,
-               size_t count, const void **contents)
+                gl_listelement_equals_fn equals_fn,
+                gl_listelement_hashcode_fn hashcode_fn,
+                gl_listelement_dispose_fn dispose_fn,
+                bool allow_duplicates,
+                size_t count, const void **contents)
 {
   return implementation->create (implementation, equals_fn, hashcode_fn,
-                                dispose_fn, allow_duplicates, count, contents);
+                                 dispose_fn, allow_duplicates, count, contents);
 }
 
 # define gl_list_size gl_list_size_inline
@@ -484,7 +484,7 @@ static inline size_t
 gl_list_size (gl_list_t list)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->size (list);
+         ->size (list);
 }
 
 # define gl_list_node_value gl_list_node_value_inline
@@ -492,7 +492,7 @@ static inline const void *
 gl_list_node_value (gl_list_t list, gl_list_node_t node)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->node_value (list, node);
+         ->node_value (list, node);
 }
 
 # define gl_list_node_set_value gl_list_node_set_value_inline
@@ -508,7 +508,7 @@ static inline gl_list_node_t
 gl_list_next_node (gl_list_t list, gl_list_node_t node)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->next_node (list, node);
+         ->next_node (list, node);
 }
 
 # define gl_list_previous_node gl_list_previous_node_inline
@@ -516,7 +516,7 @@ static inline gl_list_node_t
 gl_list_previous_node (gl_list_t list, gl_list_node_t node)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->previous_node (list, node);
+         ->previous_node (list, node);
 }
 
 # define gl_list_get_at gl_list_get_at_inline
@@ -524,7 +524,7 @@ static inline const void *
 gl_list_get_at (gl_list_t list, size_t position)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->get_at (list, position);
+         ->get_at (list, position);
 }
 
 # define gl_list_set_at gl_list_set_at_inline
@@ -532,7 +532,7 @@ static inline gl_list_node_t
 gl_list_set_at (gl_list_t list, size_t position, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->set_at (list, position, elt);
+         ->set_at (list, position, elt);
 }
 
 # define gl_list_search gl_list_search_inline
@@ -541,7 +541,7 @@ gl_list_search (gl_list_t list, const void *elt)
 {
   size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list);
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->search_from_to (list, 0, size, elt);
+         ->search_from_to (list, 0, size, elt);
 }
 
 # define gl_list_search_from gl_list_search_from_inline
@@ -550,16 +550,16 @@ gl_list_search_from (gl_list_t list, size_t start_index, const void *elt)
 {
   size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list);
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->search_from_to (list, start_index, size, elt);
+         ->search_from_to (list, start_index, size, elt);
 }
 
 # define gl_list_search_from_to gl_list_search_from_to_inline
 static inline gl_list_node_t
 gl_list_search_from_to (gl_list_t list, size_t start_index, size_t end_index,
-                       const void *elt)
+                        const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->search_from_to (list, start_index, end_index, elt);
+         ->search_from_to (list, start_index, end_index, elt);
 }
 
 # define gl_list_indexof gl_list_indexof_inline
@@ -568,7 +568,7 @@ gl_list_indexof (gl_list_t list, const void *elt)
 {
   size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list);
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->indexof_from_to (list, 0, size, elt);
+         ->indexof_from_to (list, 0, size, elt);
 }
 
 # define gl_list_indexof_from gl_list_indexof_from_inline
@@ -577,16 +577,16 @@ gl_list_indexof_from (gl_list_t list, size_t start_index, const void *elt)
 {
   size_t size = ((const struct gl_list_impl_base *) list)->vtable->size (list);
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->indexof_from_to (list, start_index, size, elt);
+         ->indexof_from_to (list, start_index, size, elt);
 }
 
 # define gl_list_indexof_from_to gl_list_indexof_from_to_inline
 static inline size_t
 gl_list_indexof_from_to (gl_list_t list, size_t start_index, size_t end_index,
-                        const void *elt)
+                         const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->indexof_from_to (list, start_index, end_index, elt);
+         ->indexof_from_to (list, start_index, end_index, elt);
 }
 
 # define gl_list_add_first gl_list_add_first_inline
@@ -594,7 +594,7 @@ static inline gl_list_node_t
 gl_list_add_first (gl_list_t list, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->add_first (list, elt);
+         ->add_first (list, elt);
 }
 
 # define gl_list_add_last gl_list_add_last_inline
@@ -602,7 +602,7 @@ static inline gl_list_node_t
 gl_list_add_last (gl_list_t list, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->add_last (list, elt);
+         ->add_last (list, elt);
 }
 
 # define gl_list_add_before gl_list_add_before_inline
@@ -610,7 +610,7 @@ static inline gl_list_node_t
 gl_list_add_before (gl_list_t list, gl_list_node_t node, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->add_before (list, node, elt);
+         ->add_before (list, node, elt);
 }
 
 # define gl_list_add_after gl_list_add_after_inline
@@ -618,7 +618,7 @@ static inline gl_list_node_t
 gl_list_add_after (gl_list_t list, gl_list_node_t node, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->add_after (list, node, elt);
+         ->add_after (list, node, elt);
 }
 
 # define gl_list_add_at gl_list_add_at_inline
@@ -626,7 +626,7 @@ static inline gl_list_node_t
 gl_list_add_at (gl_list_t list, size_t position, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->add_at (list, position, elt);
+         ->add_at (list, position, elt);
 }
 
 # define gl_list_remove_node gl_list_remove_node_inline
@@ -634,7 +634,7 @@ static inline bool
 gl_list_remove_node (gl_list_t list, gl_list_node_t node)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->remove_node (list, node);
+         ->remove_node (list, node);
 }
 
 # define gl_list_remove_at gl_list_remove_at_inline
@@ -642,7 +642,7 @@ static inline bool
 gl_list_remove_at (gl_list_t list, size_t position)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->remove_at (list, position);
+         ->remove_at (list, position);
 }
 
 # define gl_list_remove gl_list_remove_inline
@@ -650,7 +650,7 @@ static inline bool
 gl_list_remove (gl_list_t list, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->remove_elt (list, elt);
+         ->remove_elt (list, elt);
 }
 
 # define gl_list_free gl_list_free_inline
@@ -665,7 +665,7 @@ static inline gl_list_iterator_t
 gl_list_iterator (gl_list_t list)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->iterator (list);
+         ->iterator (list);
 }
 
 # define gl_list_iterator_from_to gl_list_iterator_from_to_inline
@@ -673,13 +673,13 @@ static inline gl_list_iterator_t
 gl_list_iterator_from_to (gl_list_t list, size_t start_index, size_t end_index)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->iterator_from_to (list, start_index, end_index);
+         ->iterator_from_to (list, start_index, end_index);
 }
 
 # define gl_list_iterator_next gl_list_iterator_next_inline
 static inline bool
 gl_list_iterator_next (gl_list_iterator_t *iterator,
-                      const void **eltp, gl_list_node_t *nodep)
+                       const void **eltp, gl_list_node_t *nodep)
 {
   return iterator->vtable->iterator_next (iterator, eltp, nodep);
 }
@@ -696,7 +696,7 @@ static inline gl_list_node_t
 gl_sortedlist_search (gl_list_t list, gl_listelement_compar_fn compar, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->sortedlist_search (list, compar, elt);
+         ->sortedlist_search (list, compar, elt);
 }
 
 # define gl_sortedlist_search_from_to gl_sortedlist_search_from_to_inline
@@ -704,8 +704,8 @@ static inline gl_list_node_t
 gl_sortedlist_search_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->sortedlist_search_from_to (list, compar, start_index, end_index,
-                                     elt);
+         ->sortedlist_search_from_to (list, compar, start_index, end_index,
+                                      elt);
 }
 
 # define gl_sortedlist_indexof gl_sortedlist_indexof_inline
@@ -713,7 +713,7 @@ static inline size_t
 gl_sortedlist_indexof (gl_list_t list, gl_listelement_compar_fn compar, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->sortedlist_indexof (list, compar, elt);
+         ->sortedlist_indexof (list, compar, elt);
 }
 
 # define gl_sortedlist_indexof_from_to gl_sortedlist_indexof_from_to_inline
@@ -721,8 +721,8 @@ static inline size_t
 gl_sortedlist_indexof_from_to (gl_list_t list, gl_listelement_compar_fn compar, size_t start_index, size_t end_index, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->sortedlist_indexof_from_to (list, compar, start_index, end_index,
-                                      elt);
+         ->sortedlist_indexof_from_to (list, compar, start_index, end_index,
+                                       elt);
 }
 
 # define gl_sortedlist_add gl_sortedlist_add_inline
@@ -730,7 +730,7 @@ static inline gl_list_node_t
 gl_sortedlist_add (gl_list_t list, gl_listelement_compar_fn compar, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->sortedlist_add (list, compar, elt);
+         ->sortedlist_add (list, compar, elt);
 }
 
 # define gl_sortedlist_remove gl_sortedlist_remove_inline
@@ -738,7 +738,7 @@ static inline bool
 gl_sortedlist_remove (gl_list_t list, gl_listelement_compar_fn compar, const void *elt)
 {
   return ((const struct gl_list_impl_base *) list)->vtable
-        ->sortedlist_remove (list, compar, elt);
+         ->sortedlist_remove (list, compar, elt);
 }
 
 #endif