Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 include/lib/hash-map.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/lib/hash-map.h b/include/lib/hash-map.h
index f4826b1..42c243f 100644
--- a/include/lib/hash-map.h
+++ b/include/lib/hash-map.h
@@ -27,6 +27,10 @@ int hash_map_get(struct hash_map *map, const void *key, void 
**value_p);
 int hash_map_remove(struct hash_map *map, const void *key);
 bool hash_map_contains(struct hash_map *map, const void *key);
 
+#define hash_map_for_each_entry(this, hashmap)                         \
+       for (unsigned long __i = 0; __i < (hashmap)->size; __i++)       \
+               list_for_each_entry(this, &(hashmap)->table[__i], list_node)
+
 hash_fn string_hash;
 compare_fn string_compare;
 
-- 
1.6.0.6


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to