Changeset f520905 in mainline


Ignore:
Timestamp:
2008-05-04T15:31:54Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5a324099
Parents:
297f1197
Message:

Add functions for inserting items before or after other items in a boubly-linked
circular lists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/libadt/list.h

    r297f1197 rf520905  
    113113}
    114114
     115/** Insert item before another item in doubly-linked circular list. */
     116static inline void list_insert_before(link_t *l, link_t *r)
     117{
     118        list_append(l, r);
     119}
     120
     121/** Insert item after another item in doubly-linked circular list. */
     122static inline void list_insert_after(link_t *r, link_t *l)
     123{
     124        list_prepend(l, r);
     125}
     126
    115127/** Remove item from doubly-linked circular list
    116128 *
Note: See TracChangeset for help on using the changeset viewer.