mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
setup before zig work
This commit is contained in:
parent
8e36b5797b
commit
ac001598e8
6 changed files with 116 additions and 30 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ comptime {
|
|||
exportListFn(list.listRepeat, "repeat");
|
||||
exportListFn(list.listAppend, "append");
|
||||
exportListFn(list.listRange, "range");
|
||||
exportListFn(list.listSortWith, "sort_with");
|
||||
}
|
||||
|
||||
// Dict Module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue