Skip to content

Remove _IO_cookie_io_functions_t in favor of cookie_io_functions_t #12236

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

Closed
wants to merge 1 commit into from

Conversation

petk
Copy link
Member

@petk petk commented Sep 18, 2023

As noted in glibc, the cookie_io_functions_t should be used instead of internal _IO_cookie_io_functions_t.

The _IO_cookie_io_functions_t was once used as a convenience for not having the cookie_io_functions_t available (glibc <=2.1.1) as noted in 67bb9d1.

Check in the build system was also always setting the COOKIE_IO_FUNCTIONS_T to cookie_io_functions_t due to a typo. There is unused variable have_IO_cookie_io_functions_t vs.
have_cookie_io_functions_t.

  • COOKIE_IO_FUNCTIONS_T removed

As noted in glibc, the cookie_io_functions_t should be used instead of
internal _IO_cookie_io_functions_t.

The _IO_cookie_io_functions_t was once used as a convenience for not
having the cookie_io_functions_t available (glibc <=2.1.1) as noted in
67bb9d1.

Check in the build system was also always setting the
COOKIE_IO_FUNCTIONS_T to cookie_io_functions_t due to a typo. There is
unused variable have_IO_cookie_io_functions_t vs.
have_cookie_io_functions_t.

- COOKIE_IO_FUNCTIONS_T removed
@petk
Copy link
Member Author

petk commented Sep 19, 2023

If everyone's fine with this change, I'll merge this in the following days. I've rechecked it and works splendidly. It's just a small step towards making the Autoconf build system a bit less complex.

Copy link
Member

@bukka bukka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot. I had to look into it for a bit to see the actual typo that you were talking about... :) Obviously have_IO_cookie_io_functions_t is not checked have_cookie_io_functions_t. Makes sense to remove it though.

@petk petk closed this in abed8b8 Sep 22, 2023
@petk petk deleted the patch-fopencookie branch September 27, 2023 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants