[Mesa-dev] [PATCH 1/2] util: Fix foreach_list_typed_safe when exec_node is not at offset 0.

Matt Turner mattst88 at gmail.com
Tue Mar 10 17:45:04 PDT 2015


On Tue, Mar 10, 2015 at 1:09 PM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> How about we do things slightly differently and check "(__node)->field.next
> != NULL" just like we do on regular versions.  Since the check happens
> between the increment step and running the user's code, __node is valid for
> every invocation of the checking condition.  Would that make you feel better
> about it?

Yeah, that seems a lot clearer.


More information about the mesa-dev mailing list