corrode
corrode copied to clipboard
C to Rust translator
Hello @jameysharp , Tinkering with legacy and Corrode has become a please of fun past time of mine now. Recently, I ran into an error ```sh Corroded/Aria git/master* ❯ corrode...
- https://www.haskell.org/cabal/users-guide/developing-packages.html - http://stackoverflow.com/questions/1044555/how-can-i-set-up-a-simple-test-with-cabal relates to #43
So can't compile this: ``` #include int main() { fprintf(stdout, "Hello, world\n"); return 0; } ``` The error is: ``` :0:1: warning: undefining "__LINE__" ("/usr/include/libio.h": line 310): Corrode doesn't handle...
Hello, I'm new to Haskell and would like to take on some of the more "beginner" tasks that Corrode has as I learn the language. I see that https://github.com/jameysharp/corrode/issues/94 is...
This adds the simplest possible regression test to corrode which only runs a c file through gcc as well as corrode + rustc and then runs both applications checking that...
The main function which corrode generates uses `::std::os::unix::ffi::OsStringExt` which does not exist on Windows. The easy way of doing this for Windows would probably be to just pass the UTF-8...
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...
https://people.mozilla.org/~jmuizelaar/tmp/out.c translates with uninitialized variable errors. https://people.mozilla.org/~jmuizelaar/tmp/out-good.c translates fine. ``` error[E0381]: use of possibly uninitialized variable: `next` --> out.rs:46:25 | 46 | state = next; | ^^^^ use of possibly...