summaryrefslogtreecommitdiff
path: root/list.h
AgeCommit message (Collapse)Author
2010-06-23exec_node: Add new talloc-based new()Carl Worth
And fix all callers to use the tallbac-based new for exec_node construction. We make ready use of talloc_parent in order to get valid, (and appropriate) talloc owners for everything we construct without having to add new 'ctx' parameters up and down all the call trees. This closes the majority of the memory leaks in the glsl-orangebook-ch06-bump.frag test: total heap usage: 55,623 allocs, 42,672 frees (was 14,533 frees) Now 76.7% leak-free. Woo-hoo!
2010-06-11Add queries to determine if a node is a list sentinalIan Romanick
2010-05-10exec_list: Add foreach_list_typed and foreach_list_typed_constIan Romanick
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-10exec_list: Add simpler exec_list for-each macrosIan Romanick
2010-05-10exec_list: Add macros to get ptr to structure containing a nodeIan Romanick
This has some ugly hackery to work-around C++ fail. I have emperically determined that it works in all the cases that matter.
2010-04-08Inline functions consisting of a return of an expression.Eric Anholt
2010-03-31Fix exec_list::move_nodes_to when the source list is emptyIan Romanick
2010-03-26Add missing parenthesis in foreach_iterIan Romanick
This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'.
2010-03-08Add yet-another linked list typeIan Romanick
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.