aboutsummaryrefslogtreecommitdiff
path: root/core/c/frontend/preprocessor
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-06-21 01:17:05 +0100
committergingerBill <bill@gingerbill.org>2023-06-21 01:17:05 +0100
commit9b54b99bf696a65bc5c8358b2a5ace1f6dc4fdcc (patch)
tree1e20f43aa33209caf9015d9b63384633eed455a4 /core/c/frontend/preprocessor
parent67ca9166d36375fd42725c16ca3933d4c91ebfee (diff)
Use positional and named arguments within the core library
Diffstat (limited to 'core/c/frontend/preprocessor')
-rw-r--r--core/c/frontend/preprocessor/preprocess.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/c/frontend/preprocessor/preprocess.odin b/core/c/frontend/preprocessor/preprocess.odin
index 4cfad2c1c..b5eab0bb3 100644
--- a/core/c/frontend/preprocessor/preprocess.odin
+++ b/core/c/frontend/preprocessor/preprocess.odin
@@ -1118,7 +1118,7 @@ expand_macro :: proc(cpp: ^Preprocessor, rest: ^^Token, tok: ^Token) -> bool {
search_include_next :: proc(cpp: ^Preprocessor, filename: string) -> (path: string, ok: bool) {
for ; cpp.include_next_index < len(cpp.include_paths); cpp.include_next_index += 1 {
- tpath := filepath.join(elems={cpp.include_paths[cpp.include_next_index], filename}, allocator=context.temp_allocator)
+ tpath := filepath.join({cpp.include_paths[cpp.include_next_index], filename}, allocator=context.temp_allocator)
if os.exists(tpath) {
return strings.clone(tpath), true
}
@@ -1136,7 +1136,7 @@ search_include_paths :: proc(cpp: ^Preprocessor, filename: string) -> (path: str
}
for include_path in cpp.include_paths {
- tpath := filepath.join(elems={include_path, filename}, allocator=context.temp_allocator)
+ tpath := filepath.join({include_path, filename}, allocator=context.temp_allocator)
if os.exists(tpath) {
path, ok = strings.clone(tpath), true
cpp.filepath_cache[filename] = path