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

Jason Ekstrand jason at jlekstrand.net
Tue Mar 10 17:48:20 PDT 2015


On Tue, Mar 10, 2015 at 5:45 PM, Matt Turner <mattst88 at gmail.com> wrote:

> 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.
>

Ken,
Are you ok with that?  If so, do you want to make the change or shall I?
--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150310/dc79c893/attachment.html>


More information about the mesa-dev mailing list