This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
pub const Options = std.StringHashMapUnmanaged(?[]const u8); | |
pub const Rc = struct { | |
plugin_ctrl: ?Options = null, | |
config_interface: ?Options = null, | |
display_library: ?Options = null, | |
cpu: ?Options = null, | |
cpuid: ?Options = null, | |
memory: ?Options = null, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const builtin = @import("builtin"); | |
const fs = std.fs; | |
const parseInt = std.fmt.parseInt; | |
pub const PathBuf = @import("PathBuf.zig"); | |
pub fn getHomeOf(user: []const u8) PathBuf { | |
return if (builtin.os.tag == .windows) getHomeOfW(user) else getHomeOfZ(user); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const std = @import("std"); | |
const builtin = @import("builtin"); | |
const fmt = std.fmt; | |
const fs = std.fs; | |
const path = fs.path; | |
const mem = std.mem; | |
const testing = std.testing; | |
buffer: [std.fs.max_path_bytes]u8, |