-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
c apiNix as a C library with a stable interfaceNix as a C library with a stable interfacefeatureFeature request or proposalFeature request or proposal
Milestone
Description
Is your feature request related to a problem? Please describe.
- Currently the C compiler will not catch certain errors such as switched arguments, because all
void *typedefs are assumed interchangeable. - Similarly, generated bindings forward the problem.
Describe the solution you'd like
Use forward declarations.
struct nix_foo;
typedef struct nix_foo nix_foo;Describe alternatives you've considered
Maybe some bindings generator had an annoying behavior, compared to void pointers? I find this unlikely.
Additional context
Priorities
Add 👍 to issues you find important.
Ericson2314 and prednaz
Metadata
Metadata
Assignees
Labels
c apiNix as a C library with a stable interfaceNix as a C library with a stable interfacefeatureFeature request or proposalFeature request or proposal