osc: remove inline from Parser.next

This commit is contained in:
Jeffrey C. Ollie
2026-01-08 14:12:16 -06:00
parent 6ee1b3998e
commit f180f1c9b8
3 changed files with 3 additions and 3 deletions

View File

@@ -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();
}

View File

@@ -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: {

View File

@@ -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;