git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
87d83a4
)
fixed nasty bug in dict iterator
author
Matthias Kramm
<kramm@quiss.org>
Thu, 21 Jan 2010 00:50:31 +0000
(16:50 -0800)
committer
Matthias Kramm
<kramm@quiss.org>
Thu, 21 Jan 2010 00:50:31 +0000
(16:50 -0800)
lib/q.h
patch
|
blob
|
history
diff --git
a/lib/q.h
b/lib/q.h
index
2ea7fe1
..
2be015f
100644
(file)
--- a/
lib/q.h
+++ b/
lib/q.h
@@
-225,7
+225,7
@@
void dict_destroy(dict_t*dict);
#define DICT_ITERATE_ITEMS(d,t1,v1,t2,v2) \
int v1##_i;dictentry_t*v1##_e;t1 v1;t2 v2; \
for(v1##_i=0;v1##_i<(d)->hashsize;v1##_i++) \
#define DICT_ITERATE_ITEMS(d,t1,v1,t2,v2) \
int v1##_i;dictentry_t*v1##_e;t1 v1;t2 v2; \
for(v1##_i=0;v1##_i<(d)->hashsize;v1##_i++) \
- for(v1##_e=(d)->slots[v1##_i]; v1##_e && (((v1=(t1)v1##_e->key)&&(v2=(t2)v1##_e->data))||1); v1##_e=v1##_e->next)
+ for(v1##_e=(d)->slots[v1##_i]; v1##_e && (((v1=(t1)v1##_e->key)||1)&&((v2=(t2)v1##_e->data)||1)); v1##_e=v1##_e->next)
void map_init(map_t*map);
void map_put(map_t*map, string_t t1, string_t t2);
void map_init(map_t*map);
void map_put(map_t*map, string_t t1, string_t t2);