mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-28 11:36:34 +00:00
Lots of 0.14 changes
This commit is contained in:
@@ -37,7 +37,7 @@ pub const Transition = struct {
|
||||
fn genTableType(comptime optional: bool) type {
|
||||
const max_u8 = std.math.maxInt(u8);
|
||||
const stateInfo = @typeInfo(State);
|
||||
const max_state = stateInfo.Enum.fields.len;
|
||||
const max_state = stateInfo.@"enum".fields.len;
|
||||
const Elem = if (optional) ?Transition else Transition;
|
||||
return [max_u8 + 1][max_state]Elem;
|
||||
}
|
||||
@@ -56,7 +56,7 @@ fn genTable() Table {
|
||||
|
||||
// anywhere transitions
|
||||
const stateInfo = @typeInfo(State);
|
||||
inline for (stateInfo.Enum.fields) |field| {
|
||||
inline for (stateInfo.@"enum".fields) |field| {
|
||||
const source: State = @enumFromInt(field.value);
|
||||
|
||||
// anywhere => ground
|
||||
|
||||
Reference in New Issue
Block a user