mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-12 10:48:39 +03:00
Fix some basic build errors.
This commit is contained in:

committed by
Mitchell Hashimoto

parent
53423f1071
commit
c967a35abb
1
.gitignore
vendored
1
.gitignore
vendored
@ -7,6 +7,7 @@
|
||||
.direnv/
|
||||
.flatpak-builder/
|
||||
zig-cache/
|
||||
.zig-cache/
|
||||
zig-out/
|
||||
/result*
|
||||
example/*.wasm
|
||||
|
@ -31,7 +31,7 @@ pub fn run(alloc: std.mem.Allocator) !u8 {
|
||||
|
||||
var keys = std.ArrayList([]const u8).init(alloc);
|
||||
defer keys.deinit();
|
||||
for (x11_color.map.kvs) |kv| try keys.append(kv.key);
|
||||
for (x11_color.map.keys()) |key| try keys.append(key);
|
||||
|
||||
std.mem.sortUnstable([]const u8, keys.items, {}, struct {
|
||||
fn lessThan(_: void, lhs: []const u8, rhs: []const u8) bool {
|
||||
|
@ -44,7 +44,7 @@ pub const Entry = struct {
|
||||
/// key value for Entry.
|
||||
const code_to_key = code_to_key: {
|
||||
@setEvalBranchQuota(5000);
|
||||
break :code_to_key std.ComptimeStringMap(Key, .{
|
||||
break :code_to_key std.StaticStringMap(Key).initComptime(.{
|
||||
.{ "KeyA", .a },
|
||||
.{ "KeyB", .b },
|
||||
.{ "KeyC", .c },
|
||||
|
@ -123,8 +123,8 @@ fn logFn(
|
||||
const prefix = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): ";
|
||||
|
||||
// Lock so we are thread-safe
|
||||
std.debug.getStderrMutex().lock();
|
||||
defer std.debug.getStderrMutex().unlock();
|
||||
std.debug.lockStdErr();
|
||||
defer std.debug.unlockStdErr();
|
||||
|
||||
// On Mac, we use unified logging. To view this:
|
||||
//
|
||||
|
@ -65,7 +65,7 @@ pub fn encode(self: Source, writer: anytype) !void {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns a ComptimeStringMap for all of the capabilities in this terminfo.
|
||||
/// Returns a StaticStringMap for all of the capabilities in this terminfo.
|
||||
/// The value is the value that should be sent as a response to XTGETTCAP.
|
||||
/// Important: the value is the FULL response included the escape sequences.
|
||||
pub fn xtgettcapMap(comptime self: Source) std.StaticStringMap([]const u8) {
|
||||
|
Reference in New Issue
Block a user