From 6fcea95b2a49f9da93409814aa3cdf1bf1d98bd5 Mon Sep 17 00:00:00 2001 From: englebass Date: Sun, 26 Oct 2008 17:24:52 +0000 Subject: [PATCH] Make internal inline functions static inline git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@37161 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore/ecore_hash.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/ecore/ecore_hash.c b/src/lib/ecore/ecore_hash.c index 3fe93b7..14a71f0 100644 --- a/src/lib/ecore/ecore_hash.c +++ b/src/lib/ecore/ecore_hash.c @@ -23,10 +23,10 @@ static int _ecore_hash_node_add(Ecore_Hash *hash, Ecore_Hash_Node *node); static Ecore_Hash_Node * _ecore_hash_node_get(Ecore_Hash *hash, const void *key); static int _ecore_hash_increase(Ecore_Hash *hash); static int _ecore_hash_decrease(Ecore_Hash *hash); -inline int _ecore_hash_rehash(Ecore_Hash *hash, Ecore_Hash_Node **old_table, int old_size); +static inline int _ecore_hash_rehash(Ecore_Hash *hash, Ecore_Hash_Node **old_table, int old_size); static int _ecore_hash_bucket_destroy(Ecore_Hash_Node *list, Ecore_Free_Cb keyd, Ecore_Free_Cb valued); -inline Ecore_Hash_Node * _ecore_hash_bucket_get(Ecore_Hash *hash, +static inline Ecore_Hash_Node * _ecore_hash_bucket_get(Ecore_Hash *hash, Ecore_Hash_Node *bucket, const void *key); static Ecore_Hash_Node *_ecore_hash_node_new(void *key, void *value); @@ -621,7 +621,7 @@ _ecore_hash_node_get(Ecore_Hash *hash, const void *key) * @param key: the key to search for in the list * @return Returns NULL on error or not found, the found node on success */ -inline Ecore_Hash_Node * +static inline Ecore_Hash_Node * _ecore_hash_bucket_get(Ecore_Hash *hash, Ecore_Hash_Node *bucket, const void *key) { Ecore_Hash_Node *prev = NULL; @@ -773,7 +773,7 @@ _ecore_hash_decrease(Ecore_Hash *hash) * @param table: the table to remove the nodes from and place in hash * @return Returns TRUE on success, FALSE on error */ -inline int +static inline int _ecore_hash_rehash(Ecore_Hash *hash, Ecore_Hash_Node **old_table, int old_size) { unsigned int i; -- 2.7.4