/* Sequential list data type backed by another list.
- Copyright (C) 2006-2007 Free Software Foundation, Inc.
+ Copyright (C) 2006-2008 Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
return gl_list_get_at (list->whole, list->start + index);
}
+static void
+gl_sublist_node_set_value (gl_list_t list, gl_list_node_t node, const void *elt)
+{
+ uintptr_t index = NODE_TO_INDEX (node);
+ if (!(index < list->end - list->start))
+ /* Invalid argument. */
+ abort ();
+ gl_list_set_at (list->whole, list->start + index, elt);
+}
+
static gl_list_node_t
gl_sublist_next_node (gl_list_t list, gl_list_node_t node)
{
gl_sublist_create_fill,
gl_sublist_size,
gl_sublist_node_value,
+ gl_sublist_node_set_value,
gl_sublist_next_node,
gl_sublist_previous_node,
gl_sublist_get_at,