-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LIST: Additional macros for iteration over the list #5
Comments
Sure can. But beware debuggers really don't like these macros. They get really confused. It seems to be both the size of the macro and that there is iteration. Why not post a patch to the mailing list? -Angus |
You mean to quarterback-devel@lists.fedorahosted.org ? -Basil |
patch applied, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We propose to include in qblist.h the following macros:
/**
_/
#define qb_list_for_each_entry_safe(pos, n, head, member)
for (pos = qb_list_entry((head)->next, typeof(_pos), member),
n = qb_list_entry(pos->member.next, typeof(_pos), member);
&pos->member != (head);
pos = n, n = qb_list_entry(n->member.next, typeof(_n), member))
/**
_/
#define qb_list_for_each_entry_safe_reverse(pos, n, head, member)
for (pos = qb_list_entry((head)->prev, typeof(_pos), member),
n = qb_list_entry(pos->member.prev, typeof(_pos), member);
&pos->member != (head);
pos = n, n = qb_list_entry(n->member.prev, typeof(_n), member))
The text was updated successfully, but these errors were encountered: