mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 21:38:40 +00:00
moved operating system -> string to base
This commit is contained in:
@@ -118,24 +118,4 @@ os_file_search(Arena *arena, String8List dir_list, String8 file_path)
|
||||
return match_list;
|
||||
}
|
||||
|
||||
static struct
|
||||
{
|
||||
String8 string;
|
||||
OperatingSystem os;
|
||||
} g_os_map[] = {
|
||||
{ str8_lit_comp("windows"), OperatingSystem_Windows, },
|
||||
{ str8_lit_comp("linux"), OperatingSystem_Linux, },
|
||||
{ str8_lit_comp("mac"), OperatingSystem_Mac, },
|
||||
};
|
||||
|
||||
internal OperatingSystem
|
||||
operating_system_from_string(String8 string)
|
||||
{
|
||||
for (U64 i = 0; i < ArrayCount(g_os_map); ++i) {
|
||||
if (str8_match(g_os_map[i].string, string, StringMatchFlag_CaseInsensitive)) {
|
||||
return g_os_map[i].os;
|
||||
}
|
||||
}
|
||||
return OperatingSystem_Null;
|
||||
}
|
||||
|
||||
|
||||
@@ -29,9 +29,5 @@ internal String8Array os_data_from_file_path_parallel(TP_Context *tp, Arena *are
|
||||
internal String8List os_file_search(Arena *arena, String8List dir_list, String8 file_path);
|
||||
internal B32 os_folder_path_exists(String8 path);
|
||||
|
||||
internal OperatingSystem operating_system_from_string(String8 string);
|
||||
|
||||
internal B32 os_set_large_pages(B32 toggle);
|
||||
|
||||
internal U32 os_get_process_start_time_unix(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user