On Tue, Jul 8, 2014 at 12:20 PM, Connor Abbott <cwabbo...@gmail.com> wrote: > Signed-off-by: Connor Abbott <connor.abb...@intel.com> > --- > src/glsl/list.h | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > > diff --git a/src/glsl/list.h b/src/glsl/list.h > index ca6ee9d..68ab3fd 100644 > --- a/src/glsl/list.h > +++ b/src/glsl/list.h > @@ -324,6 +324,8 @@ struct exec_list { > > const exec_node *get_tail() const; > exec_node *get_tail(); > + > + unsigned get_size(); > > void push_head(exec_node *n); > void push_tail(exec_node *n); > @@ -405,6 +407,19 @@ exec_list_get_tail(struct exec_list *list) > return !exec_list_is_empty(list) ? list->tail_pred : NULL; > } > > +static inline unsigned > +exec_list_get_size(struct exec_list *list)
I'd probably name this _length(), and move the function below the macros so you can use foreach_in_list. Other than that, the series is Reviewed-by: Matt Turner <matts...@gmail.com> _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev