diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-04-12 21:03:36 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-04-13 02:47:16 -0400 |
| commit | e2fe1907ecac075e4d4a37776359144318b6055a (patch) | |
| tree | fa8289bc558540dfe7fcfdc0d06eb99f0e189396 /src/value.zig | |
| parent | 856a9c2e3120d9ffa1166eed13641600230946da (diff) | |
| download | zig-e2fe1907ecac075e4d4a37776359144318b6055a.tar.gz zig-e2fe1907ecac075e4d4a37776359144318b6055a.zip | |
add c_char type
closes #875
Diffstat (limited to 'src/value.zig')
| -rw-r--r-- | src/value.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/value.zig b/src/value.zig index e677414c0f..bbe2659317 100644 --- a/src/value.zig +++ b/src/value.zig @@ -40,6 +40,7 @@ pub const Value = extern union { i128_type, usize_type, isize_type, + c_char_type, c_short_type, c_ushort_type, c_int_type, @@ -210,6 +211,7 @@ pub const Value = extern union { .i128_type, .usize_type, .isize_type, + .c_char_type, .c_short_type, .c_ushort_type, .c_int_type, @@ -413,6 +415,7 @@ pub const Value = extern union { .i128_type, .usize_type, .isize_type, + .c_char_type, .c_short_type, .c_ushort_type, .c_int_type, @@ -679,6 +682,7 @@ pub const Value = extern union { .i128_type => return out_stream.writeAll("i128"), .isize_type => return out_stream.writeAll("isize"), .usize_type => return out_stream.writeAll("usize"), + .c_char_type => return out_stream.writeAll("c_char"), .c_short_type => return out_stream.writeAll("c_short"), .c_ushort_type => return out_stream.writeAll("c_ushort"), .c_int_type => return out_stream.writeAll("c_int"), @@ -919,6 +923,7 @@ pub const Value = extern union { .i128_type => Type.initTag(.i128), .usize_type => Type.initTag(.usize), .isize_type => Type.initTag(.isize), + .c_char_type => Type.initTag(.c_char), .c_short_type => Type.initTag(.c_short), .c_ushort_type => Type.initTag(.c_ushort), .c_int_type => Type.initTag(.c_int), |
