projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8343550
)
Add missing parenthesis in foreach_iter
author
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:17:41 +0000
(17:17 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Sat, 27 Mar 2010 00:17:41 +0000
(17:17 -0700)
This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'.
list.h
patch
|
blob
|
history
diff --git
a/list.h
b/list.h
index d122369f13b1f83181daaac5280ecc47f8377872..33b038ce8daf2ea16032f99c7ada0b2e6f5c3f55 100644
(file)
--- a/
list.h
+++ b/
list.h
@@
-183,7
+183,7
@@
private:
};
#define foreach_iter(iter_type, iter, container) \
- for (iter_type iter =
container
. iterator(); iter.has_next(); iter.next())
+ for (iter_type iter =
(container)
. iterator(); iter.has_next(); iter.next())
#endif