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

ignore/allow extern on function definitions #144

Open
isonmad opened this issue Apr 14, 2017 · 0 comments
Open

ignore/allow extern on function definitions #144

isonmad opened this issue Apr 14, 2017 · 0 comments

Comments

@isonmad
Copy link

isonmad commented Apr 14, 2017

Currently extern is only allowed on function declarations, but compilers accept and ignore extern on function definitions just fine.

Trying to just patch in Just (CExtern _) -> return ([Rust.Attribute "no_mangle"], Rust.Public) isn't enough though, because that then causes an error runOnce action depends on itself; looks like interpretDeclarations is somehow matching anything with CExtern, not just declarations?

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 a pull request may close this issue.

1 participant