Merge pull request #260 from ZystemOS/feature/zig-update

Update to zig master
This commit is contained in:
Sam Tebbs 2020-11-02 19:10:46 +00:00 committed by GitHub
commit 6d65e6f0b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -180,7 +180,7 @@ fn parseChar(ptr: [*]const u8, end: *const u8) PanicError!u8 {
/// ///
fn parseWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 { fn parseWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 {
var i: u32 = 0; var i: u32 = 0;
while (std.fmt.isWhiteSpace(try parseChar(ptr + i, end))) : (i += 1) {} while (std.ascii.isSpace(try parseChar(ptr + i, end))) : (i += 1) {}
return ptr + i; return ptr + i;
} }
@ -202,7 +202,7 @@ fn parseWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 {
/// ///
fn parseNonWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 { fn parseNonWhitespace(ptr: [*]const u8, end: *const u8) PanicError![*]const u8 {
var i: u32 = 0; var i: u32 = 0;
while (!std.fmt.isWhiteSpace(try parseChar(ptr + i, end))) : (i += 1) {} while (!std.ascii.isSpace(try parseChar(ptr + i, end))) : (i += 1) {}
return ptr + i; return ptr + i;
} }