exec_list: Fix foreach_list_safe.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Jul 2010 21:49:34 +0000 (14:49 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Jul 2010 21:49:34 +0000 (14:49 -0700)
commit61a44ccaef63a8ad36ebd934e6944ede5587e4d5
tree92c18c53abea056b180b7a513bda76aeb6d4dd22
parent303c99f12fd1234a763147f9e081f2544433fc77
exec_list: Fix foreach_list_safe.

It now works correctly when nodes are removed, as it was originally
intended to do; it no longer processes nodes added to the list before
the current node, nor those added immediately after the current node.

This matches the behavior of Linux's list_for_each_safe.
src/glsl/ir_hv_accept.cpp
src/glsl/list.h