Ian Romanick
4cfbad9e4d
exec_list: Add foreach_list_typed and foreach_list_typed_const
...
These variations are parameterized by the type of the nodes in the
list. This enables skipping the explicit usage of exec_node_data in
the loop body.
2010-05-10 17:40:41 -07:00
Ian Romanick
752c905b8c
exec_list: Add simpler exec_list for-each macros
2010-05-10 11:17:23 -07:00
Ian Romanick
43bfc2b6b5
exec_list: Add macros to get ptr to structure containing a node
...
This has some ugly hackery to work-around C++ fail. I have
emperically determined that it works in all the cases that matter.
2010-05-10 11:16:24 -07:00
Eric Anholt
cad9766118
Inline functions consisting of a return of an expression.
2010-04-08 11:24:06 -07:00
Ian Romanick
acce380a3f
Fix exec_list::move_nodes_to when the source list is empty
2010-03-31 18:15:50 -07:00
Ian Romanick
605ff69b0d
Add missing parenthesis in foreach_iter
...
This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'.
2010-03-26 17:17:41 -07:00
Ian Romanick
7e4ce71923
Add yet-another linked list type
...
The use of macros to access existing linked list type makes it
unsuitable for its current use as a base class. Since this type and
the accompanying macros are used all over the place in Mesa, we can't
really change them.
2010-03-08 23:42:45 -08:00