-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove anonymous struct; - fix union namespace; - remove comptime global variables
- Loading branch information
Showing
5 changed files
with
66 additions
and
18 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 +1,21 @@ | ||
const std = @import("std"); | ||
|
||
pub const Foo_Bar = extern struct { | ||
something: ?*i32, | ||
}; | ||
|
||
pub const Bar_Tag = enum { | ||
Min, | ||
Max, | ||
Other, | ||
}; | ||
|
||
pub const Bar = extern union { | ||
tag: Bar_Tag, | ||
min_tag: Bar_Tag, | ||
min: Foo_Bar, | ||
max_tag: Bar_Tag, | ||
max: Foo_Bar, | ||
}; | ||
|
||
pub extern fn root(b: Bar) anyopaque; |