setup before zig work

This commit is contained in:
Eric Henry 2021-04-03 11:28:36 -04:00
parent 8e36b5797b
commit ac001598e8
6 changed files with 116 additions and 30 deletions

View file

@ -7,6 +7,7 @@ const Allocator = mem.Allocator;
const TAG_WIDTH = 8;
const EqFn = fn (?[*]u8, ?[*]u8) callconv(.C) bool;
const CompareFn = fn (?[*]u8, ?[*]u8, ?[*]u8) callconv(.C) u8;
const Opaque = ?[*]u8;
const Inc = fn (?[*]u8) callconv(.C) void;
@ -688,3 +689,7 @@ fn listRangeHelp(allocator: *Allocator, comptime T: type, low: T, high: T) RocLi
},
}
}
pub fn listSortWith(list: RocList, transform: Opaque, wrapper: CompareFn, alignment: usize, element_width: usize) callconv(.C) RocList {
return list;
}

View file

@ -20,6 +20,7 @@ comptime {
exportListFn(list.listRepeat, "repeat");
exportListFn(list.listAppend, "append");
exportListFn(list.listRange, "range");
exportListFn(list.listSortWith, "sort_with");
}
// Dict Module