helpers for matching string literals

This commit is contained in:
Nikita Smith committed 2025-01-18 17:39:11 -08:00
1 parent 89ff4d0de2
commit a1d5837ff3
13 files changed
+165 -196

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@ entry_point(CmdLine *cmdline)
if (str8_match(cmd->string, opt_name, StringMatchFlag_CaseInsensitive)) {
opt = g_rd_dump_option_map[opt_idx].opt;
break;
} else if (str8_match(cmd->string, str8_lit("all"), StringMatchFlag_CaseInsensitive)) {
} else if (str8_match_lit("all", cmd->string, StringMatchFlag_CaseInsensitive)) {
opt = ~0ull & ~(RD_Option_Help|RD_Option_Version);
break;
}