Skip to content

generate parameter names for function pointer stubs - #9

Merged
gabe-sherman merged 1 commit into
FuturesLab:mainfrom
mayant15:fix/param-names-picked
Sep 30, 2026
Merged

gabe-sherman merged 1 commit into
FuturesLab:mainfrom
mayant15:fix/param-names-picked

Conversation

@mayant15

Copy link
Copy Markdown
Contributor

Function pointer stubs fail to compile (until C23) because their function definitions are missing parameter names. This PR gives them names.

C function definitions required parameter names until very recently for even unused parameters:

Unlike function declarations, unnamed formal parameters are not allowed (otherwise, there would be conflicts in old-style (K&R) function definitions), they must be named even if they are not used within the function.

from https://en.cppreference.com/c/language/function_definition

@gabe-sherman

Copy link
Copy Markdown
Collaborator

LGTM, thanks for the contribution!

@gabe-sherman
gabe-sherman merged commit f877137 into FuturesLab:main Sep 30, 2026
1 check passed
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