Replace usage of inline proc with #force_inline proc in the core library
This commit is contained in:
1 parent
41b854f192
commit
aa93305015
26 files changed
+182
-182
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user