eina: Revise documentation for eina_hash_foreach
authorBryce Harrington <bryce@osg.samsung.com>
Wed, 2 May 2018 23:45:59 +0000 (19:45 -0400)
committerWonki Kim <wonki_.kim@samsung.com>
Thu, 31 May 2018 07:17:08 +0000 (16:17 +0900)
Summary: Reword description to clarify what it does.

Reviewers: cedric

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D6022

src/lib/eina/eina_hash.h

index cdaaf88..ea77768 100644 (file)
@@ -996,11 +996,11 @@ EAPI Eina_Iterator *eina_hash_iterator_tuple_new(const Eina_Hash *hash) EINA_MAL
  * @param func The function to call on each parameter.
  * @param fdata The data pointer to pass to the function being called.
  *
- * This function goes through every entry in the hash table @p hash and calls
- * the function @p func on each member. The function should @b not modify the
- * hash table contents if it returns @c 1. @b If the hash table contents are
- * modified by this function or the function wishes to stop processing it must
- * return @c 0, otherwise return @c 1 to keep processing.
+ * This function iterates over the hash table @p hash, calling the
+ * function @p func on each member. If @p func modifies the contents
+ * of the hash table, or wishes to stop processing it should return
+ * #EINA_FALSE.  If @p func returns #EINA_TRUE the foreach loop will
+ * keep processing.
  *
  * Example:
  * @code
@@ -1011,7 +1011,7 @@ EAPI Eina_Iterator *eina_hash_iterator_tuple_new(const Eina_Hash *hash) EINA_MAL
  * {
  *   printf("Func data: %s, Hash entry: %s / %p\n",
  *          fdata, (const char *)key, data);
- *   return 1;
+ *   return EINA_TRUE;
  * }
  *
  * int main(int argc, char **argv)