Replace usage of inline proc with #force_inline proc in the core library

This commit is contained in:
gingerBill
2021-02-23 16:14:47 +00:00
parent 41b854f192
commit aa93305015
26 changed files with 182 additions and 182 deletions
+4 -4
View File
@@ -185,19 +185,19 @@ _split :: proc(s, sep: []byte, sep_save, n: int, allocator := context.allocator)
return res[:i+1];
}
split :: inline proc(s, sep: []byte, allocator := context.allocator) -> [][]byte {
split :: proc(s, sep: []byte, allocator := context.allocator) -> [][]byte {
return _split(s, sep, 0, -1, allocator);
}
split_n :: inline proc(s, sep: []byte, n: int, allocator := context.allocator) -> [][]byte {
split_n :: proc(s, sep: []byte, n: int, allocator := context.allocator) -> [][]byte {
return _split(s, sep, 0, n, allocator);
}
split_after :: inline proc(s, sep: []byte, allocator := context.allocator) -> [][]byte {
split_after :: proc(s, sep: []byte, allocator := context.allocator) -> [][]byte {
return _split(s, sep, len(sep), -1, allocator);
}
split_after_n :: inline proc(s, sep: []byte, n: int, allocator := context.allocator) -> [][]byte {
split_after_n :: proc(s, sep: []byte, n: int, allocator := context.allocator) -> [][]byte {
return _split(s, sep, len(sep), n, allocator);
}