refactor: remove CH_FOLD macro

It should not be needed as utf_fold should already work on its own.
This commit is contained in:
dundargoc
2024-07-09 16:34:43 +02:00
committed by dundargoc
parent 4208223175
commit 3c5abf01bf
2 changed files with 2 additions and 12 deletions

View File

@@ -390,14 +390,14 @@ int path_fnamencmp(const char *const fname1, const char *const fname2, size_t le
c2 = utf_ptr2char(p2);
if ((c1 == NUL || c2 == NUL
|| (!((c1 == '/' || c1 == '\\') && (c2 == '\\' || c2 == '/'))))
&& (p_fic ? (c1 != c2 && CH_FOLD(c1) != CH_FOLD(c2)) : c1 != c2)) {
&& (p_fic ? (c1 != c2 && utf_fold(c1) != utf_fold(c2)) : c1 != c2)) {
break;
}
len -= (size_t)utfc_ptr2len(p1);
p1 += utfc_ptr2len(p1);
p2 += utfc_ptr2len(p2);
}
return p_fic ? CH_FOLD(c1) - CH_FOLD(c2) : c1 - c2;
return p_fic ? utf_fold(c1) - utf_fold(c2) : c1 - c2;
#else
if (p_fic) {
return mb_strnicmp(fname1, fname2, len);