Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
341ba0f6
Commit
341ba0f6
authored
Aug 29, 2005
by
Juan Lang
Committed by
Alexandre Julliard
Aug 29, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a LIST_FOR_EACH_ENTRY_SAFE helper macro.
parent
8d1cf4eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
list.h
include/wine/list.h
+8
-0
No files found.
include/wine/list.h
View file @
341ba0f6
...
@@ -155,6 +155,14 @@ inline static void list_init( struct list *list )
...
@@ -155,6 +155,14 @@ inline static void list_init( struct list *list )
&(elem)->field != (list); \
&(elem)->field != (list); \
(elem) = LIST_ENTRY((elem)->field.next, type, field))
(elem) = LIST_ENTRY((elem)->field.next, type, field))
/* iterate through the list using a list entry, with safety against removal */
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field) \
for ((cursor) = LIST_ENTRY((list)->next, type, field), \
(cursor2) = LIST_ENTRY((cursor)->field.next, type, field); \
&(cursor)->field != (list); \
(cursor) = (cursor2), \
(cursor2) = LIST_ENTRY((cursor)->field.next, type, field))
/* macros for statically initialized lists */
/* macros for statically initialized lists */
#define LIST_INIT(list) { &(list), &(list) }
#define LIST_INIT(list) { &(list), &(list) }
...
...
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