Skip to content
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

Add two new queue macros with tests, plus a warning fix. #94

Merged
merged 3 commits into from
Jul 21, 2024

Conversation

fhgwright
Copy link
Contributor

See the individual commit messages.

Fixes declaration visibility warning for "struct stat64", on 10.4
where this whole test is invalid, anyway.

Also removes unused FEEDBACK macro.

TESTED:
Warning is now gone on 10.4.
Several other queue macros are also missing, which is not covered by
this commit.

Closes: https://trac.macports.org/ticket/69890

TESTED:
Builds and passes tests on all platforms, including the new tests for
the new macros.
This adds a long-missing test for STAILQ_FOREACH, as well as a test
for the newly added SLIST_REMOVE_AFTER (which also tests
SLIST_HEAD_INITIALIZER).

Re: https://trac.macports.org/ticket/69890

TESTED:
Detects missing STAILQ_FOREACH in 10.4 SDK (without old fix).
Detects missing SLIST_HEAD_INITIALIZER in 10.4 SDK (without new fix).
Detects missing SLIST_REMOVE_AFTER in 10.4-10.6 SDKs (without new
fix).
With fixes, passes with all applicable SDKs on all platforms.
@fhgwright
Copy link
Contributor Author

@mascguy
This should be a much easier review than the last one. :-)

@mascguy
Copy link
Member

mascguy commented Jul 21, 2024

@mascguy
This should be a much easier review than the last one. :-)

Yes indeed, and looks good to me.

@mascguy mascguy merged commit a2cd305 into macports:master Jul 21, 2024
@fhgwright
Copy link
Contributor Author

I'll wait until an appropriately updated #93 is also merged before making another -devel update. This completes what I'd planned for this release cycle, so the next -devel will probably be an RC. With the extent of the changes, it might be a good idea to call for wider testing at that point.

@fhgwright fhgwright deleted the slist branch July 21, 2024 21:45
@mascguy
Copy link
Member

mascguy commented Jul 21, 2024

I'll wait until an appropriately updated #93 is also merged before making another -devel update. This completes what I'd planned for this release cycle, so the next -devel will probably be an RC. With the extent of the changes, it might be a good idea to call for wider testing at that point.

Sounds good. And agreed, wider testing would be a good thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants