forked from bytecodealliance/wit-bindgen
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several tidyings in the C bindings (bytecodealliance#885)
* Several tidyings in the C bindings - Add several comments to the C bindings output - Move the `#include <stdlib.h>` out of the `.h` file and into the `.c` file, since it's for `realloc`/`free` etc. and those are only used in the `.c` file. - Use named structs inside of typedefs, so that the structs have names in the generated debug info. * Fix `<stdlib.h>` for the Go bindings. * Fix a stray backslash. * Ensure that <uchar.h> is included in the header file when needed. * Remove `__used__` attributes. * Re-add `__weak__`.
- Loading branch information
1 parent
b6c9de7
commit 046ddcb
Showing
5 changed files
with
63 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#include <assert.h> | ||
#include <variants.h> | ||
#include <stddef.h> | ||
|
||
void variants_test_imports() { | ||
{ | ||
|