Works around json parser bug
This commit is contained in:
parent
19dc741e3f
commit
7cd8f4c8c4
1 changed files with 3 additions and 1 deletions
|
|
@ -134,7 +134,9 @@ const Header = struct {
|
||||||
|
|
||||||
const Description = struct {
|
const Description = struct {
|
||||||
kind: enum { Type, Function, Array, Pointer, Builtin, User },
|
kind: enum { Type, Function, Array, Pointer, Builtin, User },
|
||||||
storage_classes: []const enum { @"const" } = &.{},
|
// We explicitly set the enum size to u8 as a workaround for
|
||||||
|
// https://github.com/ziglang/zig/issues/23168
|
||||||
|
storage_classes: []const enum(u8) { @"const" } = &.{},
|
||||||
inner_type: ?*Description = null,
|
inner_type: ?*Description = null,
|
||||||
bounds: ?[]const u8 = null, // Literal or variable
|
bounds: ?[]const u8 = null, // Literal or variable
|
||||||
builtin_type: ?Builtin = null,
|
builtin_type: ?Builtin = null,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue