Ian Romanick
7c40a32054
Add queries to determine if a node is a list sentinal
15 years ago
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.
15 years ago
Ian Romanick
752c905b8c
exec_list: Add simpler exec_list for-each macros
15 years ago
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.
15 years ago
Eric Anholt
cad9766118
Inline functions consisting of a return of an expression.
15 years ago
Ian Romanick
acce380a3f
Fix exec_list::move_nodes_to when the source list is empty
15 years ago
Ian Romanick
605ff69b0d
Add missing parenthesis in foreach_iter
This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'.
15 years ago
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.
15 years ago