code: update to zig master in prep for 0.7.0

This commit makes the minimal necessary changes to get things working,
there are further changes which can be made to take advantage of new
features.
This commit is contained in:
Isaac Freund
2020-08-31 15:23:01 +02:00
parent 0bd8274bd4
commit 27b666dbba
14 changed files with 35 additions and 35 deletions

View File

@ -32,7 +32,7 @@ pub fn enterMode(
const config = seat.input_manager.server.config;
const target_mode = args[1];
seat.mode_id = config.mode_to_id.getValue(target_mode) orelse {
seat.mode_id = config.mode_to_id.get(target_mode) orelse {
out.* = try std.fmt.allocPrint(
allocator,
"cannot enter non-existant mode '{}'",

View File

@ -149,7 +149,7 @@ pub fn mapPointer(
fn modeNameToId(allocator: *std.mem.Allocator, seat: *Seat, mode_name: []const u8, out: *?[]const u8) !usize {
const config = seat.input_manager.server.config;
return config.mode_to_id.getValue(mode_name) orelse {
return config.mode_to_id.get(mode_name) orelse {
out.* = try std.fmt.allocPrint(
allocator,
"cannot add mapping to non-existant mode '{}p'",