mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-28 02:03:55 +00:00
osc: remove inline from Parser.next
This commit is contained in:
@@ -100,7 +100,7 @@ fn step(ptr: *anyopaque) Benchmark.Error!void {
|
||||
error.ReadFailed => return error.BenchmarkFailed,
|
||||
};
|
||||
|
||||
for (osc_buf[0..len]) |c| self.parser.next(c);
|
||||
for (osc_buf[0..len]) |c| @call(.always_inline, Parser.next, .{ &self.parser, c });
|
||||
std.mem.doNotOptimizeAway(self.parser.end(std.ascii.control_code.bel));
|
||||
self.parser.reset();
|
||||
}
|
||||
|
||||
@@ -359,7 +359,7 @@ inline fn doAction(self: *Parser, action: TransitionAction, c: u8) ?Action {
|
||||
break :param null;
|
||||
},
|
||||
.osc_put => osc_put: {
|
||||
self.osc_parser.next(c);
|
||||
@call(.always_inline, osc.Parser.next, .{ &self.osc_parser, c });
|
||||
break :osc_put null;
|
||||
},
|
||||
.csi_dispatch => csi_dispatch: {
|
||||
|
||||
@@ -486,7 +486,7 @@ pub const Parser = struct {
|
||||
}
|
||||
|
||||
/// Consume the next character c and advance the parser state.
|
||||
pub inline fn next(self: *Parser, c: u8) void {
|
||||
pub fn next(self: *Parser, c: u8) void {
|
||||
// If the state becomes invalid for any reason, just discard
|
||||
// any further input.
|
||||
if (self.state == .invalid) return;
|
||||
|
||||
Reference in New Issue
Block a user