projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mountlist: add support for deallocating returned list entries
[gnulib.git]
/
lib
/
gl_linkedhash_list.c
diff --git
a/lib/gl_linkedhash_list.c
b/lib/gl_linkedhash_list.c
index
467e411
..
2f4e05f
100644
(file)
--- a/
lib/gl_linkedhash_list.c
+++ b/
lib/gl_linkedhash_list.c
@@
-1,5
+1,5
@@
/* Sequential list data type implemented by a hash table with a linked list.
/* Sequential list data type implemented by a hash table with a linked list.
- Copyright (C) 2006, 2008-201
0
Free Software Foundation, Inc.
+ Copyright (C) 2006, 2008-201
3
Free Software Foundation, Inc.
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
Written by Bruno Haible <bruno@clisp.org>, 2006.
This program is free software: you can redistribute it and/or modify
@@
-43,7
+43,7
@@
#include "gl_anyhash_list2.h"
/* Resize the hash table if needed, after list->count was incremented. */
#include "gl_anyhash_list2.h"
/* Resize the hash table if needed, after list->count was incremented. */
-static
inline
void
+static void
hash_resize_after_add (gl_list_t list)
{
size_t count = list->count;
hash_resize_after_add (gl_list_t list)
{
size_t count = list->count;
@@
-53,7
+53,7
@@
hash_resize_after_add (gl_list_t list)
}
/* Add a node to the hash table structure. */
}
/* Add a node to the hash table structure. */
-static
inline
void
+static void
add_to_bucket (gl_list_t list, gl_list_node_t node)
{
size_t bucket = node->h.hashcode % list->table_size;
add_to_bucket (gl_list_t list, gl_list_node_t node)
{
size_t bucket = node->h.hashcode % list->table_size;
@@
-65,7
+65,7
@@
add_to_bucket (gl_list_t list, gl_list_node_t node)
#define add_to_bucket(list,node) ((add_to_bucket) (list, node), 0)
/* Remove a node from the hash table structure. */
#define add_to_bucket(list,node) ((add_to_bucket) (list, node), 0)
/* Remove a node from the hash table structure. */
-static
inline
void
+static void
remove_from_bucket (gl_list_t list, gl_list_node_t node)
{
size_t bucket = node->h.hashcode % list->table_size;
remove_from_bucket (gl_list_t list, gl_list_node_t node)
{
size_t bucket = node->h.hashcode % list->table_size;