glfw: move constants into separate modules

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-16 11:33:46 -07:00
parent 166d621797
commit 6308a2f8dd
4 changed files with 30 additions and 25 deletions

View file

@ -262,7 +262,7 @@ fn confirmAppleSDKAgreement(allocator: *std.mem.Allocator) !bool {
if (try stdin.readUntilDelimiterOrEof(buf[0..], '\n')) |user_input| {
try stdout.print("\n", .{});
var in = user_input;
if (in[in.len-1] == '\r') in = in[0..in.len-1];
if (in[in.len - 1] == '\r') in = in[0 .. in.len - 1];
return std.mem.eql(u8, in, "y") or std.mem.eql(u8, in, "Y") or std.mem.eql(u8, in, "yes") or std.mem.eql(u8, in, "");
} else {
return false;