Declaration should be done before any code.
authorcedric <cedric>
Tue, 23 Dec 2008 10:02:27 +0000 (10:02 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 23 Dec 2008 10:02:27 +0000 (10:02 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@38286 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/eina_hash.c

index 146ea6d..48acaa1 100644 (file)
@@ -471,8 +471,11 @@ _eina_foreach_cb(const Eina_Hash *hash, Eina_Hash_Tuple *data, Eina_Hash_Foreach
 static void *
 _eina_hash_iterator_data_get_content(Eina_Iterator_Hash *it)
 {
+   Eina_Hash_El *stuff;
+
    EINA_MAGIC_CHECK_HASH_ITERATOR(it);
-   Eina_Hash_El *stuff = it->el;
+
+   stuff = it->el;
 
    if (!stuff) return NULL;
    return stuff->tuple.data;
@@ -481,8 +484,11 @@ _eina_hash_iterator_data_get_content(Eina_Iterator_Hash *it)
 static void *
 _eina_hash_iterator_key_get_content(Eina_Iterator_Hash *it)
 {
+   Eina_Hash_El *stuff;
+
    EINA_MAGIC_CHECK_HASH_ITERATOR(it);
-   Eina_Hash_El *stuff = it->el;
+
+   stuff = it->el;
 
    if (!stuff) return NULL;
    return (void *) stuff->tuple.key;
@@ -491,8 +497,11 @@ _eina_hash_iterator_key_get_content(Eina_Iterator_Hash *it)
 static Eina_Hash_Tuple *
 _eina_hash_iterator_tuple_get_content(Eina_Iterator_Hash *it)
 {
+   Eina_Hash_El *stuff;
+
    EINA_MAGIC_CHECK_HASH_ITERATOR(it);
-   Eina_Hash_El *stuff = it->el;
+
+   stuff = it->el;
 
    if (!stuff) return NULL;
    return &stuff->tuple;