mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
pkg/freetype: remove usingns
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
const Library = @This();
|
const Library = @This();
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig").c;
|
||||||
const Face = @import("face.zig").Face;
|
const Face = @import("face.zig").Face;
|
||||||
const errors = @import("errors.zig");
|
const errors = @import("errors.zig");
|
||||||
const Error = errors.Error;
|
const Error = errors.Error;
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
pub usingnamespace @cImport({
|
pub const c = @cImport({
|
||||||
@cInclude("freetype-zig.h");
|
@cInclude("freetype-zig.h");
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig").c;
|
||||||
|
|
||||||
/// Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply
|
/// Compute (a*b)/0x10000 with maximum accuracy. Its main use is to multiply
|
||||||
/// a given value by a 16.16 fixed-point factor.
|
/// a given value by a 16.16 fixed-point factor.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
const c = @import("c.zig");
|
const c = @import("c.zig").c;
|
||||||
|
|
||||||
// Thanks to Mach (https://github.com/hexops/mach) for this work, I didn't
|
// Thanks to Mach (https://github.com/hexops/mach) for this work, I didn't
|
||||||
// do this manually. I wrote the other Freetype bindings by hand but this
|
// do this manually. I wrote the other Freetype bindings by hand but this
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
const Allocator = std.mem.Allocator;
|
const Allocator = std.mem.Allocator;
|
||||||
const c = @import("c.zig");
|
const c = @import("c.zig").c;
|
||||||
const errors = @import("errors.zig");
|
const errors = @import("errors.zig");
|
||||||
const Library = @import("Library.zig");
|
const Library = @import("Library.zig");
|
||||||
const Tag = @import("tag.zig").Tag;
|
const Tag = @import("tag.zig").Tag;
|
||||||
|
@ -1,10 +1,16 @@
|
|||||||
pub const c = @import("c.zig");
|
const computations = @import("computations.zig");
|
||||||
|
const errors = @import("errors.zig");
|
||||||
|
const face = @import("face.zig");
|
||||||
|
const tag = @import("tag.zig");
|
||||||
|
|
||||||
|
pub const c = @import("c.zig").c;
|
||||||
pub const testing = @import("test.zig");
|
pub const testing = @import("test.zig");
|
||||||
pub const Library = @import("Library.zig");
|
pub const Library = @import("Library.zig");
|
||||||
pub usingnamespace @import("computations.zig");
|
|
||||||
pub usingnamespace @import("errors.zig");
|
pub const Error = errors.Error;
|
||||||
pub usingnamespace @import("face.zig");
|
pub const Face = face.Face;
|
||||||
pub usingnamespace @import("tag.zig");
|
pub const Tag = tag.Tag;
|
||||||
|
pub const mulFix = computations.mulFix;
|
||||||
|
|
||||||
test {
|
test {
|
||||||
@import("std").testing.refAllDecls(@This());
|
@import("std").testing.refAllDecls(@This());
|
||||||
|
Reference in New Issue
Block a user