Skip to content

shims: correct list macros #472

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

Merged
merged 1 commit into from
Apr 25, 2019
Merged

Conversation

compnerd
Copy link
Member

This adjusts the LIST_ENTRY to define the structure correctly. This
allows for the LIST_REMOVE and LIST_INSERT_HEAD macros to be defined
properly and set the fields previous pointers as well when updating the
list. This is needed to enable the use of the macros for list
manipulations. Found while implementing file sources for Windows.

@compnerd
Copy link
Member Author

CC: @ktopley-apple

@compnerd
Copy link
Member Author

@swift-ci please test

This adjusts the `LIST_ENTRY` to define the structure correctly.  This
allows for the `LIST_REMOVE` and `LIST_INSERT_HEAD` macros to be defined
properly and set the fields previous pointers as well when updating the
list.  This is needed to enable the use of the macros for list
manipulations.  Found while implementing file sources for Windows.
@compnerd
Copy link
Member Author

@swift-ci please test

1 similar comment
@compnerd
Copy link
Member Author

@swift-ci please test

@ktopley-apple ktopley-apple merged commit a3bff44 into swiftlang:master Apr 25, 2019
@compnerd compnerd deleted the prev-next-prev branch April 26, 2019 02:18
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
shims: correct list macros
Signed-off-by: Kim Topley <ktopley@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants