Skip to content

replace k&r function declarations with ANSI declarations#114818

Merged
vstinner merged 4 commits into
python:mainfrom
maxbachmann:k_and_r
Mar 11, 2025
Merged

replace k&r function declarations with ANSI declarations#114818
vstinner merged 4 commits into
python:mainfrom
maxbachmann:k_and_r

Conversation

@maxbachmann

@maxbachmann maxbachmann commented Jan 31, 2024

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@skirpichev

Copy link
Copy Markdown
Member

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
Copy Markdown
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
@vstinner

Copy link
Copy Markdown
Member

Merged, thank you.

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