mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-05-19 22:58:38 +03:00
19 lines
394 B
Zig
19 lines
394 B
Zig
const std = @import("std");
|
|
const assert = std.debug.assert;
|
|
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)));
|
|
}
|
|
};
|