Fix problem with getdate on mingw32 reported by Simon Josefsson
[gnulib.git] / lib / gl_linked_list.c
1 /* Sequential list data type implemented by a linked list.
2    Copyright (C) 2006 Free Software Foundation, Inc.
3    Written by Bruno Haible <bruno@clisp.org>, 2006.
4
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 3 of the License, or
8    (at your option) any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
17
18 #include <config.h>
19
20 /* Specification.  */
21 #include "gl_linked_list.h"
22
23 #include <stdlib.h>
24
25 #include "xalloc.h"
26
27 /* -------------------------- gl_list_t Data Type -------------------------- */
28
29 /* Generic linked list code.  */
30 #include "gl_anylinked_list1.h"
31 #include "gl_anylinked_list2.h"
32
33
34 const struct gl_list_implementation gl_linked_list_implementation =
35   {
36     gl_linked_create_empty,
37     gl_linked_create,
38     gl_linked_size,
39     gl_linked_node_value,
40     gl_linked_next_node,
41     gl_linked_previous_node,
42     gl_linked_get_at,
43     gl_linked_set_at,
44     gl_linked_search_from_to,
45     gl_linked_indexof_from_to,
46     gl_linked_add_first,
47     gl_linked_add_last,
48     gl_linked_add_before,
49     gl_linked_add_after,
50     gl_linked_add_at,
51     gl_linked_remove_node,
52     gl_linked_remove_at,
53     gl_linked_remove,
54     gl_linked_list_free,
55     gl_linked_iterator,
56     gl_linked_iterator_from_to,
57     gl_linked_iterator_next,
58     gl_linked_iterator_free,
59     gl_linked_sortedlist_search,
60     gl_linked_sortedlist_search_from_to,
61     gl_linked_sortedlist_indexof,
62     gl_linked_sortedlist_indexof_from_to,
63     gl_linked_sortedlist_add,
64     gl_linked_sortedlist_remove
65   };