Support for Incomplete-Array in structs.
Open
package:ffigen
waiting-on-dart-ffi
- Dominant language
- Dart
- Stars
- 275
- Forks
- 144
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 47
Description
C supports [Flexible-Arrays ](https://wiki.sei.cmu.edu/confluence/display/c/DCL38-C.+Use+the+correct+syntax+when+declaring+a+flexible+array+member#main-content:~:text=As%20a%20special%20case%2C%20the%20last,generate%20a%20pointer%20one%20past%20it.)as the last member of a struct having more than 1 member.
Structs of the following type -
```C
struct T{
int a;
int b[]; // flexible array member, can only be at the end.
}
```
are not supported currently.
Contributor guide
Assessment
This issue has not been assessed yet.