mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-19 18:42:23 -07:00
typo in str8 compar name
This commit is contained in:
@@ -76,15 +76,15 @@ str8_compar_ignore_case(const void *a, const void *b)
|
||||
}
|
||||
|
||||
internal int
|
||||
str8_compar_case_sensetive(const void *a, const void *b)
|
||||
str8_compar_case_sensitive(const void *a, const void *b)
|
||||
{
|
||||
return str8_compar(*(String8*)a, *(String8*)b, 0);
|
||||
}
|
||||
|
||||
internal int
|
||||
str8_is_before_case_sensetive(const void *a, const void *b)
|
||||
str8_is_before_case_sensitive(const void *a, const void *b)
|
||||
{
|
||||
int cmp = str8_compar_case_sensetive(a, b);
|
||||
int cmp = str8_compar_case_sensitive(a, b);
|
||||
return cmp < 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ internal U64 str8_find_needle_reverse(String8 string, U64 start_pos, String8 nee
|
||||
|
||||
internal int str8_compar(String8 a, String8 b, B32 ignore_case);
|
||||
internal int str8_compar_ignore_case(const void *a, const void *b);
|
||||
internal int str8_compar_case_sensetive(const void *a, const void *b);
|
||||
internal int str8_compar_case_sensitive(const void *a, const void *b);
|
||||
|
||||
#define str8_list_push_struct(a,l,d) str8_list_push_raw(a, l, d, sizeof(*d))
|
||||
internal String8Node * str8_list_push_raw(Arena *arena, String8List *list, void *data_ptr, U64 data_size);
|
||||
|
||||
+3
-3
@@ -197,7 +197,7 @@ lnk_input_import_is_before(void *raw_a, void *raw_b)
|
||||
LNK_InputImport **b = raw_b;
|
||||
int cmp = str8_compar_ignore_case(&(*a)->import_header.dll_name, &(*b)->import_header.dll_name);
|
||||
if (cmp == 0) {
|
||||
cmp = str8_compar_case_sensetive(&(*a)->import_header.func_name, &(*b)->import_header.func_name);
|
||||
cmp = str8_compar_case_sensitive(&(*a)->import_header.func_name, &(*b)->import_header.func_name);
|
||||
}
|
||||
return cmp < 0;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ lnk_input_import_compar(const void *raw_a, const void *raw_b)
|
||||
const LNK_InputImport **b = (const LNK_InputImport **) raw_b;
|
||||
int cmp = str8_compar_ignore_case(&(*a)->import_header.dll_name, &(*b)->import_header.dll_name);
|
||||
if (cmp == 0) {
|
||||
cmp = str8_compar_case_sensetive(&(*a)->import_header.func_name, &(*b)->import_header.func_name);
|
||||
cmp = str8_compar_case_sensitive(&(*a)->import_header.func_name, &(*b)->import_header.func_name);
|
||||
}
|
||||
return cmp;
|
||||
}
|
||||
@@ -390,7 +390,7 @@ lnk_res_string_id_is_before(void *raw_a, void *raw_b)
|
||||
PE_Resource *b = raw_b;
|
||||
Assert(a->id.type == COFF_ResourceIDType_STRING);
|
||||
Assert(b->id.type == COFF_ResourceIDType_STRING);
|
||||
int is_before = str8_is_before_case_sensetive(&a->id.u.string, &b->id.u.string);
|
||||
int is_before = str8_is_before_case_sensitive(&a->id.u.string, &b->id.u.string);
|
||||
return is_before;
|
||||
}
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ lnk_chunk_sort_index_is_before(void *raw_a, void *raw_b)
|
||||
LNK_ChunkPtr *b = raw_b;
|
||||
|
||||
// sort on section postfix
|
||||
int cmp = str8_compar_case_sensetive(&(*a)->sort_idx, &(*b)->sort_idx);
|
||||
int cmp = str8_compar_case_sensitive(&(*a)->sort_idx, &(*b)->sort_idx);
|
||||
|
||||
// sort on obj position on command line
|
||||
if (cmp == 0) {
|
||||
|
||||
@@ -6,7 +6,7 @@ lnk_export_name_compar(const void *a_, const void *b_)
|
||||
{
|
||||
const LNK_Export *a = (const LNK_Export *)a_;
|
||||
const LNK_Export *b = (const LNK_Export *)b_;
|
||||
return str8_compar_case_sensetive(&a->name, &b->name);
|
||||
return str8_compar_case_sensitive(&a->name, &b->name);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -74,7 +74,7 @@ lnk_lib_symbol_name_compar(const void *raw_a, const void *raw_b)
|
||||
{
|
||||
const LNK_Symbol *sa = (const LNK_Symbol *)raw_a;
|
||||
const LNK_Symbol *sb = (const LNK_Symbol *)raw_b;
|
||||
return str8_compar_case_sensetive(&sa->name, &sb->name);
|
||||
return str8_compar_case_sensitive(&sa->name, &sb->name);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
@@ -61,7 +61,7 @@ lnk_input_obj_compar(const void *raw_a, const void *raw_b)
|
||||
{
|
||||
const LNK_InputObj **a = (const LNK_InputObj **) raw_a;
|
||||
const LNK_InputObj **b = (const LNK_InputObj **) raw_b;
|
||||
int cmp = str8_compar_case_sensetive(&(*a)->path, &(*b)->path);
|
||||
int cmp = str8_compar_case_sensitive(&(*a)->path, &(*b)->path);
|
||||
return cmp;
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ lnk_input_obj_compar_is_before(void *raw_a, void *raw_b)
|
||||
{
|
||||
LNK_InputObj **a = raw_a;
|
||||
LNK_InputObj **b = raw_b;
|
||||
int cmp = str8_compar_case_sensetive(&(*a)->path, &(*b)->path);
|
||||
int cmp = str8_compar_case_sensitive(&(*a)->path, &(*b)->path);
|
||||
int is_before = cmp < 0;
|
||||
return is_before;
|
||||
}
|
||||
|
||||
@@ -300,7 +300,7 @@ lnk_section_table_push(LNK_SectionTable *st, String8 name, COFF_SectionFlags fla
|
||||
B32 found = 0;
|
||||
for (LNK_SectionNode *curr = sect_list->first, *prev = NULL; curr != NULL; prev = curr, curr = curr->next) {
|
||||
LNK_Section *sect = &curr->data;
|
||||
int cmp = str8_compar_case_sensetive(&sort_index, §->sort_index);
|
||||
int cmp = str8_compar_case_sensitive(&sort_index, §->sort_index);
|
||||
if (cmp < 0) {
|
||||
if (prev == NULL) {
|
||||
SLLQueuePushFront(sect_list->first, sect_list->last, sect_node);
|
||||
|
||||
Reference in New Issue
Block a user