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

Parser: set kind to param in old style parameter declarations #533

Merged
merged 1 commit into from
Nov 2, 2023

Conversation

danielsan901998
Copy link
Contributor

resolve #351
When parsing old style parameter declarations, declarator kind was not initialized as param but as normal, that generate an error for K&R style function definition when using static.
Added a test in cases/functions.c

@Vexu Vexu merged commit 45eb8a7 into Vexu:master Nov 2, 2023
3 checks passed
@Vexu
Copy link
Owner

Vexu commented Nov 2, 2023

Thanks!

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.

static keyword not allowed in array parameters for K&R style function definition
2 participants