glsl: Convert piles of foreach_iter to the newer foreach_list macro.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 22 Nov 2013 09:25:42 +0000 (01:25 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Jan 2014 19:38:19 +0000 (11:38 -0800)
commit5f7e778fa1b1e969a1b15e3650dec49b0026ed08
tree40bd6e3e5175ccd2ca49a783b7680ee2c947b775
parentfb6d9798a0c6eefd512f5b0f19eed34af8f4f257
glsl: Convert piles of foreach_iter to the newer foreach_list macro.

foreach_iter and exec_list_iterators have been deprecated for some time now;
we just hadn't ever bothered to convert code to the newer foreach_list
and foreach_list_safe macros.

In these cases, we aren't editing the list, so we can use foreach_list
rather than foreach_list_safe.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
26 files changed:
src/glsl/ast_to_hir.cpp
src/glsl/builtin_functions.cpp
src/glsl/ir.cpp
src/glsl/ir_basic_block.cpp
src/glsl/ir_clone.cpp
src/glsl/ir_expression_flattening.cpp
src/glsl/ir_function.cpp
src/glsl/ir_print_visitor.cpp
src/glsl/ir_reader.cpp
src/glsl/ir_validate.cpp
src/glsl/linker.cpp
src/glsl/lower_if_to_cond_assign.cpp
src/glsl/opt_array_splitting.cpp
src/glsl/opt_constant_propagation.cpp
src/glsl/opt_constant_variable.cpp
src/glsl/opt_copy_propagation.cpp
src/glsl/opt_copy_propagation_elements.cpp
src/glsl/opt_dead_code.cpp
src/glsl/opt_dead_code_local.cpp
src/glsl/opt_dead_functions.cpp
src/glsl/opt_function_inlining.cpp
src/glsl/opt_structure_splitting.cpp
src/glsl/s_expression.cpp
src/mesa/drivers/dri/i965/brw_vec4_reg_allocate.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/state_tracker/st_glsl_to_tgsi.cpp