dart-lang / dart-lang/native

Support for Incomplete-Array in structs.

Open
#506 6 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.