Compare commits

..

No commits in common. "c8f949fe96f0a909ec835d3e0fd9515919fb989e" and "0c2cd5638e938539d781e252d2d5dcc76ba679e5" have entirely different histories.

4 changed files with 4130 additions and 8 deletions

View file

@ -359,7 +359,7 @@ test "noop" {
defer cmds.deinit();
std.testing.expectEqual(cmds.len, 1);
std.testing.expectEqual(cmds.items[0].command, .Noop);
std.testing.expectEqual(cmds.at(0).command, .Noop);
}
test "load, phaser, quicksave" {
@ -376,7 +376,7 @@ test "load, phaser, quicksave" {
defer cmds.deinit();
std.testing.expectEqual(cmds.len, 3);
std.testing.expectEqual(cmds.items[0].command, .Load);
std.testing.expectEqual(cmds.items[1].command, .Phaser);
std.testing.expectEqual(cmds.items[2].command, .Quicksave);
std.testing.expectEqual(cmds.at(0).command, .Load);
std.testing.expectEqual(cmds.at(1).command, .Phaser);
std.testing.expectEqual(cmds.at(2).command, .Quicksave);
}

View file

@ -4,9 +4,7 @@ const images = @import("image.zig");
const Image = images.Image;
const mc = @cImport({
@cInclude("wand/magick_wand.h");
});
const mc = @import("magick_wand.zig");
pub const MagickContext = struct {
wand: *mc.MagickWand,

4124
src/magick_wand.zig Normal file

File diff suppressed because it is too large Load diff

View file

@ -150,7 +150,7 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
std.debug.warn("repl: error while parsing: {}\n", .{err});
continue;
};
current = cmds_parsed.items[0];
current = cmds_parsed.at(0);
// by cloning the parent runner, we can iteratively write
// whatever command we want and only commit the good results