pkg/freetype: remove usingns

This commit is contained in:
Mitchell Hashimoto
2024-08-16 15:34:46 -07:00
parent c49b3b94b9
commit 91431a90a1
6 changed files with 16 additions and 10 deletions

View File

@ -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;

View File

@ -1,3 +1,3 @@
pub usingnamespace @cImport({ pub const c = @cImport({
@cInclude("freetype-zig.h"); @cInclude("freetype-zig.h");
}); });

View File

@ -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.

View File

@ -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

View File

@ -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;

View File

@ -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());