Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3d8cdfb1
Commit
3d8cdfb1
authored
Dec 04, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 06, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wine/list.h: Added list_move_head and list_move_tail.
parent
13b974bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
list.h
include/wine/list.h
+24
-0
No files found.
include/wine/list.h
View file @
3d8cdfb1
...
...
@@ -139,6 +139,30 @@ inline static void list_init( struct list *list )
list
->
next
=
list
->
prev
=
list
;
}
/* move all elements from src to the tail of dst */
inline
static
void
list_move_tail
(
struct
list
*
dst
,
struct
list
*
src
)
{
if
(
list_empty
(
src
))
return
;
dst
->
prev
->
next
=
src
->
next
;
src
->
next
->
prev
=
dst
->
prev
;
dst
->
prev
=
src
->
prev
;
src
->
prev
->
next
=
dst
;
list_init
(
src
);
}
/* move all elements from src to the head of dst */
inline
static
void
list_move_head
(
struct
list
*
dst
,
struct
list
*
src
)
{
if
(
list_empty
(
src
))
return
;
dst
->
next
->
prev
=
src
->
prev
;
src
->
prev
->
next
=
dst
->
next
;
dst
->
next
=
src
->
next
;
src
->
next
->
prev
=
dst
;
list_init
(
src
);
}
/* iterate through the list */
#define LIST_FOR_EACH(cursor,list) \
for ((cursor) = (list)->next; (cursor) != (list); (cursor) = (cursor)->next)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment