polish help in radlink

This commit is contained in:
Nikita Smith committed 2026-02-13 19:17:53 -08:00
1 parent 519bc154ec
commit fbc3cbd6eb
13 files changed
+480 -526

No files matched your search

+16 -2
View File
@@ -92,8 +92,7 @@ internal LNK_CmdOption *
lnk_cmd_line_push_option_list(Arena *arena, LNK_CmdLine *cmd_line, String8 string, String8List value_strings)
{
// fill out node
LNK_CmdOption *opt = push_array_no_zero(arena, LNK_CmdOption, 1);
opt->next = 0;
LNK_CmdOption *opt = push_array(arena, LNK_CmdOption, 1);
opt->string = string;
opt->value_strings = value_strings;
@@ -126,6 +125,21 @@ lnk_cmd_line_push_option_if_not_present(Arena *arena, LNK_CmdLine *cmd_line, cha
return 0;
}
internal void
lnk_cmd_line_concat_in_place(LNK_CmdLine *list, LNK_CmdLine *to_concat)
{
if (list->option_count > 0) {
list->option_count += to_concat->option_count;
list->last_option->next = to_concat->first_option;
list->last_option = to_concat->last_option;
str8_list_concat_in_place(&list->input_list, &to_concat->input_list);
str8_list_concat_in_place(&list->raw_cmd_line, &to_concat->raw_cmd_line);
} else {
*list = *to_concat;
}
MemoryZeroStruct(to_concat);
}
internal LNK_CmdLine
lnk_cmd_line_parse_windows_rules(Arena *arena, String8List arg_list)
{