Skip to content

Static function declarations with no prototype should not be variadic - #7597

Merged
andrewrk merged 1 commit into
ziglang:masterfrom
ehaas:static-functions-no-prototype
Jan 3, 2021
Merged

Static function declarations with no prototype should not be variadic#7597
andrewrk merged 1 commit into
ziglang:masterfrom
ehaas:static-functions-no-prototype

Conversation

@ehaas

Copy link
Copy Markdown
Contributor

If a static function is defined with no argument list and no prototype
is given, it should be treated as a function that takes no arguments
rather than as a variadic function.

Fixes#7594

@ehaas
ehaasforce-pushed the static-functions-no-prototype branch 3 times, most recently from feef1f5 to df31c38CompareDecember 31, 2020 17:18
If a static function is defined with no argument list and no prototype
is given, it should be treated as a function that takes no arguments
rather than as a variadic function.
Fixesziglang#7594
@ehaas
ehaasforce-pushed the static-functions-no-prototype branch from df31c38 to 1a4ceccCompareJanuary 3, 2021 05:49
@andrewrk
andrewrk merged commit 5cc1310 into ziglang:masterJan 3, 2021
@andrewrk

Copy link
Copy Markdown
Member

Thanks!

Sign up for freeto 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.

translate-c erroneously translates macro into a function with variadic parameters.

2 participants

@ehaas@andrewrk