Mercurial > hg > octave-kai > gnulib-hg
diff lib/gl_list.c @ 9686:25f7280c9cf0
New abstract list operation 'node_set_value'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 10 Feb 2008 19:35:54 +0100 (2008-02-10) |
parents | bbbbbf4cd1c5 |
children | e0b4f68f21c2 |
line wrap: on
line diff
--- a/lib/gl_list.c +++ b/lib/gl_list.c @@ -1,5 +1,5 @@ /* Abstract sequential list data type. - 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 @@ -63,6 +63,13 @@ ->node_value (list, node); } +void +gl_list_node_set_value (gl_list_t list, gl_list_node_t node, const void *elt) +{ + ((const struct gl_list_impl_base *) list)->vtable + ->node_set_value (list, node, elt); +} + gl_list_node_t gl_list_next_node (gl_list_t list, gl_list_node_t node) {