summaryrefslogtreecommitdiff
path: root/core/Addon.zig
diff options
context:
space:
mode:
Diffstat (limited to 'core/Addon.zig')
-rw-r--r--core/Addon.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Addon.zig b/core/Addon.zig
index ec2f796a..c60f2430 100644
--- a/core/Addon.zig
+++ b/core/Addon.zig
@@ -236,9 +236,9 @@ fn fileOf(fd: c_int) ?[5]i64 {
/// library exports. A static binary cannot dlopen, and the loader below
/// is Linux's (a memfd): this is how either has image and PDF panes.
/// A build with -Dpdf=false has the image addon alone.
-const compiled_in: []const *const Kind.Ops = if (!@import("builtin_addons").on)
+const compiled_in: []const *const Kind.Ops = if (!@import("pardes_options").builtin_addons)
&.{}
-else if (@import("builtin_addons").pdf)
+else if (@import("pardes_options").builtin_pdf)
&.{ &@import("image_addon").pardes_addon, &@import("pdf_addon").pardes_addon }
else
&.{&@import("image_addon").pardes_addon};
@@ -911,7 +911,7 @@ test "addon reload gives migration the old record version and saves the new vers
return if (version == 1 and n == 1 and bytes[0] == 7) Kind.c.PA_OK else 1;
}
};
- const p = try @import("ninep/testing.zig").withFile(std.testing.allocator, "x\n");
+ const p = try @import("ninep/harness.zig").withFile(std.testing.allocator, "x\n");
defer p.deinit();
var old = std.mem.zeroInit(Kind.Ops, .{ .head = std.mem.zeroInit(Kind.c.pa_head, .{ .size = @sizeOf(Kind.c.pa_head), .abi = Kind.abi, .version = 1 }), .open = Fake.open, .paint = Fake.paint, .dump = Fake.save, .load = Fake.load });
@memcpy(old.head.name[0..7], "migrate");