core: clist: improve clist_foreach()#7768
Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom Nov 6, 2017
Merged
Conversation
327079b to
d272f2d
Compare
d272f2d to
615b1e6
Compare
miri64
approved these changes
Nov 6, 2017
Member
miri64
left a comment
There was a problem hiding this comment.
I guess I don't have to tell you that this basically has implications on our core-codesize ;-).
ACK (needs second ACK though, I believe)
Member
only just saw the minor label and I I agree. Go! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
previously,
clist_foreach()allowed to iterate a list, executing a function for every member, and possibly aborting.This PR adds an opaque
void*argument to the function call, allowingclist_foreach()to be used in more flexible ways.Waiting for #7655. (not directly dependent on it, but I'd like to save the hassle of rebasing, and they modify the same files)