minor fixes

This commit is contained in:
Nikita Smith
2026-06-02 12:10:06 -07:00
committed by Ryan Fleury
parent b7e86b038b
commit 61f7d0c43a
2 changed files with 10 additions and 4 deletions
+8 -2
View File
@@ -2861,10 +2861,16 @@ d2r_convert(Arena *arena, D2R_ConvertParams *params)
// make file path // make file path
String8 path; String8 path;
{ {
String8List path_list = {0}; Temp temp = temp_begin(scratch.arena);
str8_list_push_node(&path_list, &(String8Node){ .string = lookup->vm->header.dir_table.v[src->dir_idx] }); PathStyle path_style = PathStyle_Null;
path_style = path_style_from_str8(lookup->vm->header.dir_table.v[src->dir_idx]);
if (path_style == PathStyle_Relative) {
path_style = path_style_from_str8(src->path);
}
String8List path_list = str8_split_path(temp.arena, lookup->vm->header.dir_table.v[src->dir_idx]);
str8_list_push_node(&path_list, &(String8Node){ .string = src->path }); str8_list_push_node(&path_list, &(String8Node){ .string = src->path });
path = str8_path_list_join_by_style(arena, &path_list, path_style); path = str8_path_list_join_by_style(arena, &path_list, path_style);
temp_end(temp);
} }
// fill out source file // fill out source file
+2 -2
View File
@@ -36,11 +36,11 @@ int foo();
int main() /// 1: step_into int main() /// 1: step_into
{ /// 2: at { /// 2: at
/// 3: step_over /// 3: step_over
int x = foo(123); /// 4: at int x = foo(123); /// 4: at
/// 5: step_into /// 5: step_into
/// 10: at: -2 /// 10: at: -2
/// 11: step_over /// 11: step_over
printf("Hello, world!\n"); /// 12: at printf("Hello, world!\n"); /// 12: at
/// 13: step_over /// 13: step_over
/// 14: run /// 14: run
} }