c2v icon indicating copy to clipboard operation
c2v copied to clipboard

C/C++ to V translator

Results 79 c2v issues
Sort by recently updated
recently updated
newest added

For now, when using `translate wrapper` command on .h file, it creates methods without comments. I think copying original comments will be a good idea in some cases. I think...

Enhancement

C2V - https://github.com/vlang/c2v/commit/c08add0b0a14157732616c853e2bddc3b0546253 V - 0.2.4 (ccc3271493019feb13ed1c96b035199e159fe863) .h file - https://github.com/SanderMertens/flecs/blob/master/flecs.h `fmt error` ``` flecs.v:78:2: error: duplicate attribute `c2v_variadic` 76 | } 77 | [c2v_variadic] 78 | [c2v_variadic] | ~~~~~~~~~~~~...

Bug

OS: linux, "Arch Linux" V full version: V 0.2.4 e5bbb23.ccc3271 C and V have difference operator precedence for bitwise operations, programs converted using C2V are inherently broken. Take this C...

Bug

Hi, I am wrapping the odbc sql.h in linux using c2v but seems like the out file does not compile. Repro steps: (I copied the sql.h from /usr/include to v...

Bug

```c #include int main(){ printf("Hello World!\n"); return 0; } ``` translates to: ```v [translated] module main type Size_t = i64 type Ssize_t = i64 type Rsize_t = Usize type Intptr_t...

Bug

You can run this test in C2V folder -> tests -> `v run run_tests.vsh` ``` tests/5.if_paren_call.v:6:8: error: unexpected token `=`, expecting `)` 4 | fn main() { 5 | a...

Bug

V - v0.3.0 C2V - 55f73a5d106effdcf91fc10bbb9e916027f6e63d File to generate a wrapper for - https://github.com/SanderMertens/flecs/blob/master/flecs.h Error ``` flecs.v:418:13: error: unexpected token `(`, expecting name 416 | } 417 | struct Ecs_iter_private_t...

Bug

This C code ```C typedef struct AAA AAA; struct AAA { int x; }; ``` should produce ```V @[translated] // module main etc struct AAA { x int } ```...

``` $ v version V 0.4.6 fccd7cd ``` Given a C file that includes a function with the prototype `int main(int argc, char **argv)`, V produces incorrect code referencing e.g....

test.h ```c #include bool fna(); ``` c2v wrapper test.h This will create a empty file, no function declare for `fna` in it. ```sh @[translated] module gocv ```