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

Translate parameterless C functions #1978

Merged
merged 2 commits into from Feb 18, 2019

Conversation

Projects
None yet
2 participants
@LemonBoy
Copy link
Contributor

LemonBoy commented Feb 17, 2019

Both FunctionNoProto and FunctionProto are subclasses of FunctionType,
the only difference is that the former is parameterless.

Fixes #1970

Translate parameterless C functions
Both FunctionNoProto and FunctionProto are subclasses of FunctionType,
the only difference is that the former is parameterless.
@andrewrk

This comment has been minimized.

Copy link
Member

andrewrk commented Feb 18, 2019

Thanks for the patch! Can you add a corresponding test in test/translate_c.zig ?

@LemonBoy

This comment has been minimized.

Copy link
Contributor Author

LemonBoy commented Feb 18, 2019

Can you add a corresponding test in test/translate_c.zig

Ack. I forgot to include it in the previous commit.

@andrewrk andrewrk merged commit e280dce into ziglang:master Feb 18, 2019

1 of 2 checks passed

ziglang.zig in progress
Details
builds.sr.ht: freebsd.yml builds.sr.ht job completed successfully
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.