aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Make the ptrlist using the sparse allocator.Christopher Li2007-02-221-8/+11
| | | | | | We can drop the whole allocator without freeing the ptrlist one by one. Signed-off-by: Christopher Li <sparse@chrisli.org>
* [PATCH] fix a memory leak in pack_ptr_listAlecs King2005-12-311-0/+1
| | | | | | | Free the last entry when the whole list gets empty. Signed-off-by: Alecs King <alecsk@gmail.com> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
* Add 'undo_ptr_list_last()' helper functionLinus Torvalds2005-08-111-0/+21
| | | | | | | | It's like 'delete_ptr_list_last()', except it doesn't de-allocate the ptrlist block that it removes the last entry from. Useful when you know you're going to add things back (ie basic block tail rewriting), and when you can't afford to de-allocate the ptrlist because you're in a loop.
* Move the ptrlist macros out of the sparse "lib.[ch]" files.Linus Torvalds2005-04-071-0/+223
They rate their own "ptrlist" library status, since they are definitely potentially useful outside of sparse.