mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Revert "some zig functions need to accept arguments by-pointer now"
This reverts commit fcb34272da
.
This commit is contained in:
parent
4e3644a4c6
commit
74f9443a3e
1 changed files with 3 additions and 3 deletions
|
@ -443,8 +443,8 @@ pub fn init(bytes_ptr: [*]const u8, length: usize) callconv(.C) RocStr {
|
|||
}
|
||||
|
||||
// Str.equal
|
||||
pub fn strEqual(self: *RocStr, other: *RocStr) callconv(.C) bool {
|
||||
return self.eq(other.*);
|
||||
pub fn strEqual(self: RocStr, other: RocStr) callconv(.C) bool {
|
||||
return self.eq(other);
|
||||
}
|
||||
|
||||
// Str.numberOfBytes
|
||||
|
@ -837,7 +837,7 @@ test "countSegments: delimiter interspered" {
|
|||
|
||||
// Str.countGraphemeClusters
|
||||
const grapheme = @import("helpers/grapheme.zig");
|
||||
pub fn countGraphemeClusters(string: *RocStr) callconv(.C) usize {
|
||||
pub fn countGraphemeClusters(string: RocStr) callconv(.C) usize {
|
||||
if (string.isEmpty()) {
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue