mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-04-20 00:18:53 +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/
|
.direnv/
|
||||||
.flatpak-builder/
|
.flatpak-builder/
|
||||||
zig-cache/
|
zig-cache/
|
||||||
|
.zig-cache/
|
||||||
zig-out/
|
zig-out/
|
||||||
/result*
|
/result*
|
||||||
example/*.wasm
|
example/*.wasm
|
||||||
|
@ -31,7 +31,7 @@ pub fn run(alloc: std.mem.Allocator) !u8 {
|
|||||||
|
|
||||||
var keys = std.ArrayList([]const u8).init(alloc);
|
var keys = std.ArrayList([]const u8).init(alloc);
|
||||||
defer keys.deinit();
|
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 {
|
std.mem.sortUnstable([]const u8, keys.items, {}, struct {
|
||||||
fn lessThan(_: void, lhs: []const u8, rhs: []const u8) bool {
|
fn lessThan(_: void, lhs: []const u8, rhs: []const u8) bool {
|
||||||
|
@ -44,7 +44,7 @@ pub const Entry = struct {
|
|||||||
/// key value for Entry.
|
/// key value for Entry.
|
||||||
const code_to_key = code_to_key: {
|
const code_to_key = code_to_key: {
|
||||||
@setEvalBranchQuota(5000);
|
@setEvalBranchQuota(5000);
|
||||||
break :code_to_key std.ComptimeStringMap(Key, .{
|
break :code_to_key std.StaticStringMap(Key).initComptime(.{
|
||||||
.{ "KeyA", .a },
|
.{ "KeyA", .a },
|
||||||
.{ "KeyB", .b },
|
.{ "KeyB", .b },
|
||||||
.{ "KeyC", .c },
|
.{ "KeyC", .c },
|
||||||
|
@ -123,8 +123,8 @@ fn logFn(
|
|||||||
const prefix = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): ";
|
const prefix = if (scope == .default) ": " else "(" ++ @tagName(scope) ++ "): ";
|
||||||
|
|
||||||
// Lock so we are thread-safe
|
// Lock so we are thread-safe
|
||||||
std.debug.getStderrMutex().lock();
|
std.debug.lockStdErr();
|
||||||
defer std.debug.getStderrMutex().unlock();
|
defer std.debug.unlockStdErr();
|
||||||
|
|
||||||
// On Mac, we use unified logging. To view this:
|
// 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.
|
/// 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.
|
/// Important: the value is the FULL response included the escape sequences.
|
||||||
pub fn xtgettcapMap(comptime self: Source) std.StaticStringMap([]const u8) {
|
pub fn xtgettcapMap(comptime self: Source) std.StaticStringMap([]const u8) {
|
||||||
|
Reference in New Issue
Block a user