Skip to content

Conversation

@maxbachmann
Copy link
Contributor

@maxbachmann maxbachmann commented Jan 31, 2024

This replaces the only three occurrences of K&R style function declaration with the ANSI notation used everywhere else in the code base. This is required to compile with C23 since K&R style functions declarations got removed in C23.

@maxbachmann
Copy link
Contributor Author

I think this probably doesn't require issue / news entry, since it's just a minor internal cleanup. Let me know if it's needed though and I can create them.

@maxbachmann
Copy link
Contributor Author

This is required for c23 which removes support for K&R function declarations

@skirpichev
Copy link
Contributor

Beware, PR's with only code formatting changes are usually rejected, see https://devguide.python.org/getting-started/pull-request-lifecycle/#making-good-prs

@maxbachmann
Copy link
Contributor Author

In this specific case this is required for compilation with C23 since K&R functions have been removed (up to C23 they are deprecated).

@skirpichev

This comment was marked as resolved.

skirpichev

This comment was marked as resolved.

@vstinner vstinner merged commit 44c55c2 into python:main Mar 11, 2025
45 checks passed
@vstinner
Copy link
Member

Merged, thank you.

seehwan pushed a commit to seehwan/cpython that referenced this pull request Apr 16, 2025
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.

4 participants