Skip to content

Commit

Permalink
Remove inline keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuawarner32 committed Feb 2, 2025
1 parent 5f78885 commit 61a0779
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/check/parse/tokenize/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ pub const Cursor = struct {
return null;
}

inline fn maybeMessageForUppercaseBase(self: *Cursor, b: u8) void {
fn maybeMessageForUppercaseBase(self: *Cursor, b: u8) void {
if (b == 'X' or b == 'O' or b == 'B') {
self.pushMessageHere(.UppercaseBase);
}
Expand Down Expand Up @@ -713,12 +713,12 @@ pub const Tokenizer = struct {
}

// A simplified equivalent to the Rust macros:
inline fn pushToken(self: *Tokenizer, kind: T, start: usize) !void {
fn pushToken(self: *Tokenizer, kind: T, start: usize) !void {
const len = self.cursor.pos - start;
try self.output.pushToken(kind, start, len);
}

inline fn consumeBraceCloseAndContinueStringInterp(self: *Tokenizer, brace: BraceKind) !void {
fn consumeBraceCloseAndContinueStringInterp(self: *Tokenizer, brace: BraceKind) !void {
std.debug.assert(self.cursor.peek() == '}' or self.cursor.peek() == ']' or self.cursor.peek() == ')');
if (self.stack.items.len == 0) {
self.cursor.pushMessageHere(.OverClosedBrace);
Expand Down

0 comments on commit 61a0779

Please sign in to comment.