Compare commits

...

2 commits

Author SHA1 Message Date
c8f949fe96 remove embedded magick_wand in favor of cimport 2020-05-12 17:48:20 -03:00
3de84b5a23 finish arraylist updates 2020-05-12 17:48:15 -03:00
4 changed files with 8 additions and 4130 deletions

View file

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

View file

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

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}); 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