mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-19 07:31:30 -07:00
straighten out table coordinates <-> viz block coordinate space mappings, since search-backed tables no longer can assume those two things are the same; clang -> o2; fix clang build
This commit is contained in:
@@ -95,6 +95,21 @@ dbgi_hash_from_string(String8 string)
|
||||
return result;
|
||||
}
|
||||
|
||||
internal U64
|
||||
dbgi_fuzzy_item_num_from_array_element_idx__linear_search(DBGI_FuzzySearchItemArray *array, U64 element_idx)
|
||||
{
|
||||
U64 fuzzy_item_num = 0;
|
||||
for(U64 idx = 0; idx < array->count; idx += 1)
|
||||
{
|
||||
if(array->v[idx].idx == element_idx)
|
||||
{
|
||||
fuzzy_item_num = idx+1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return fuzzy_item_num;
|
||||
}
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Forced Override Cache Functions
|
||||
|
||||
@@ -1151,6 +1166,7 @@ dbgi_fuzzy_thread__entry_point(void *p)
|
||||
switch(target)
|
||||
{
|
||||
// NOTE(rjf): no default!
|
||||
case DBGI_FuzzySearchTarget_COUNT:{}break;
|
||||
case DBGI_FuzzySearchTarget_Procedures:
|
||||
{
|
||||
table_ptr_off = OffsetOf(RADDBG_Parsed, procedures);
|
||||
|
||||
@@ -378,6 +378,7 @@ internal void dbgi_ensure_tctx_inited(void);
|
||||
//~ rjf: Helpers
|
||||
|
||||
internal U64 dbgi_hash_from_string(String8 string);
|
||||
internal U64 dbgi_fuzzy_item_num_from_array_element_idx__linear_search(DBGI_FuzzySearchItemArray *array, U64 element_idx);
|
||||
|
||||
////////////////////////////////
|
||||
//~ rjf: Forced Override Cache Functions
|
||||
|
||||
Reference in New Issue
Block a user