Compare commits
2 commits
0c2cd5638e
...
c8f949fe96
Author | SHA1 | Date | |
---|---|---|---|
c8f949fe96 | |||
3de84b5a23 |
4 changed files with 8 additions and 4130 deletions
|
@ -359,7 +359,7 @@ test "noop" {
|
||||||
defer cmds.deinit();
|
defer cmds.deinit();
|
||||||
|
|
||||||
std.testing.expectEqual(cmds.len, 1);
|
std.testing.expectEqual(cmds.len, 1);
|
||||||
std.testing.expectEqual(cmds.at(0).command, .Noop);
|
std.testing.expectEqual(cmds.items[0].command, .Noop);
|
||||||
}
|
}
|
||||||
|
|
||||||
test "load, phaser, quicksave" {
|
test "load, phaser, quicksave" {
|
||||||
|
@ -376,7 +376,7 @@ test "load, phaser, quicksave" {
|
||||||
defer cmds.deinit();
|
defer cmds.deinit();
|
||||||
|
|
||||||
std.testing.expectEqual(cmds.len, 3);
|
std.testing.expectEqual(cmds.len, 3);
|
||||||
std.testing.expectEqual(cmds.at(0).command, .Load);
|
std.testing.expectEqual(cmds.items[0].command, .Load);
|
||||||
std.testing.expectEqual(cmds.at(1).command, .Phaser);
|
std.testing.expectEqual(cmds.items[1].command, .Phaser);
|
||||||
std.testing.expectEqual(cmds.at(2).command, .Quicksave);
|
std.testing.expectEqual(cmds.items[2].command, .Quicksave);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,9 @@ const images = @import("image.zig");
|
||||||
|
|
||||||
const Image = images.Image;
|
const Image = images.Image;
|
||||||
|
|
||||||
const mc = @import("magick_wand.zig");
|
const mc = @cImport({
|
||||||
|
@cInclude("wand/magick_wand.h");
|
||||||
|
});
|
||||||
|
|
||||||
pub const MagickContext = struct {
|
pub const MagickContext = struct {
|
||||||
wand: *mc.MagickWand,
|
wand: *mc.MagickWand,
|
||||||
|
|
4124
src/magick_wand.zig
4124
src/magick_wand.zig
File diff suppressed because it is too large
Load diff
|
@ -150,7 +150,7 @@ pub fn doRepl(allocator: *std.mem.Allocator, args_it: var) !void {
|
||||||
std.debug.warn("repl: error while parsing: {}\n", .{err});
|
std.debug.warn("repl: error while parsing: {}\n", .{err});
|
||||||
continue;
|
continue;
|
||||||
};
|
};
|
||||||
current = cmds_parsed.at(0);
|
current = cmds_parsed.items[0];
|
||||||
|
|
||||||
// by cloning the parent runner, we can iteratively write
|
// by cloning the parent runner, we can iteratively write
|
||||||
// whatever command we want and only commit the good results
|
// whatever command we want and only commit the good results
|
||||||
|
|
Loading…
Reference in a new issue