An open API service indexing awesome lists of open source software.

https://github.com/lu-zero/capi-testcase

Small testcase regarding cbindgen signature generation
https://github.com/lu-zero/capi-testcase

Last synced: 8 months ago
JSON representation

Small testcase regarding cbindgen signature generation

Awesome Lists containing this project

README

          

# Testcase for cbindgen generating faulty function signatures

In C arrays do not exist.
``` c
void f(t a[3]);
void f(t a[]);
void f(t *a);
```

Are all the same.

Current cbindgen has the faulty map:

``` rust
f(a: [t; 3]) -> ();
```
``` rust
void f(t a[3]);
```

This repo shows the problem.