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
- Host: GitHub
- URL: https://github.com/lu-zero/capi-testcase
- Owner: lu-zero
- Created: 2020-05-20T08:45:18.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T08:50:06.000Z (about 6 years ago)
- Last Synced: 2025-01-17T13:17:05.566Z (over 1 year ago)
- Language: Rust
- Size: 1000 Bytes
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.