corrode icon indicating copy to clipboard operation
corrode copied to clipboard

C to Rust translator

Results 81 corrode issues
Sort by recently updated
recently updated
newest added

Running this (minimized) code through corrode gives an error when attempting to compile it with rustc. ```c int main() { while (1) { int i = 0; if (1) {...

In C, assignment expressions (including pre and post increment/decrement) are supposed to be grouped into sequence points and evaluated together. I haven't looked up the details yet, so I'm probably...

What does this mean: `corrode: internal error: runOnce action depends on itself, leading to an infinite loop`

This allows for builds on macOS, using the `assert.h`, `locale.h`, `setjmp.h`, `signal.h`, `stdarg.h`, `stdio.h`, `stdlib.h` and `string.h` system headers. `ctype.h`, `math.h` and `time.h` still do not translate. It still requires...

Hi, I've see a talk at Fosdem about Corrode and I wanted to give it a try on [libqrencode](https://github.com/fukuchi/libqrencode) I tried running: `corrode -DHAVE_CONFIG_H -I. -Wall -g -O2 -pthread qrencode.c`...

After #120 is accepted, language-c will parse `_Static_assert` successfully. In that PR, I just put in pattern match cases that just call `error`. Probably the most important issue is that...

On macOS, I get errors from the system headers due to usages of `__attribute__`. I end up just passing `-D"__attribute__(x)=/**/"` on the `corrode` command line for now to work around...

@jameysharp -- I recently saw your Rust Meetup [talk](https://air.mozilla.org/rust-meetup-january-2017/), where you mentioned (paraphrasing here) that control flow graph analysis was taking up a considerable about of your time and attention....

Getting this error on macOS, trying to use corrode with a signal.h inclusion. ```console /usr/include/signal.h:79: (column 19) [ERROR] >>> Syntax Error ! Syntax error ! The symbol `bsd_signal' does not...

```c #include ``` ```sh ~/.cabal/bin/corrode ./test.c ("/usr/include/math.h": line 205): illegal undefined variable; check whether a real C compiler accepts this: __builtin_fabsf ``` The header file looks like this: ```c __header_always_inline...