-
-
Couldn't load subscription status.
- Fork 20
Open
Labels
enhancementNew feature or requestNew feature or request
Description
If upstream C sources are willing to add extra annotations to their header files, Zig can perform better automatic translation. Here are some examples of things that could be annotated:
- Pointer types could be annotated as non-null
- Pointer types could be annotated as single-item, unknown-length, or null-terminated (#265)
GCC/Clang have the nonnull attribute which can be applied to function parameters, but not types in general. Certainly Zig should respect this attribute on function parameters, but there is also room for coming up with a way to annotate types as well.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request