summaryrefslogtreecommitdiff
path: root/lib/util/dlinklist.h
Commit message (Collapse)AuthorAgeFilesLines
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-101-59/+111
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* Temporary changes to dlinklist to keep the implementation static whilstJeremy Allison2010-02-101-0/+16
| | | | | | | uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy.
* util: fix comment and clarify argument name in DLIST_DEMOTE()Michael Adam2009-08-271-3/+3
| | | | Michael
* Remove duplicate copy of dlinklist.h.Jelmer Vernooij2008-10-111-1/+1
|
* Move lib/util from source4 to top-level libutil.Jelmer Vernooij2008-10-111-0/+113
Conflicts: source4/Makefile