mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00

* update zig * pkg/fontconfig: clean up @as * pkg/freetype,harfbuzz: clean up @as * pkg/imgui: clean up @as * pkg/macos: clean up @as * pkg/pixman,utf8proc: clean up @as * clean up @as * lots more @as cleanup * undo flatpak changes * clean up @as
21 lines
412 B
Zig
21 lines
412 B
Zig
const c = @import("c.zig");
|
|
|
|
pub const ComparisonResult = enum(c_int) {
|
|
less = -1,
|
|
equal = 0,
|
|
greater = 1,
|
|
};
|
|
|
|
pub const Range = extern struct {
|
|
location: c.CFIndex,
|
|
length: c.CFIndex,
|
|
|
|
pub fn init(loc: usize, len: usize) Range {
|
|
return @bitCast(c.CFRangeMake(@intCast(loc), @intCast(len)));
|
|
}
|
|
|
|
pub fn cval(self: Range) c.CFRange {
|
|
return @bitCast(self);
|
|
}
|
|
};
|