Procházet zdrojové kódy

Use library function for numeric sort

master
Arun Prakash Jana před 6 roky
rodič
revize
1b494b0d26
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: A75979F35C080412
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. +3
    -1
      src/nnn.c

+ 3
- 1
src/nnn.c Zobrazit soubor

@@ -1038,6 +1038,7 @@ static bool xdiraccess(const char *path)
return TRUE;
}

#if 0
/*
* We assume none of the strings are NULL.
*
@@ -1091,6 +1092,7 @@ static int xstricmp(const char * const s1, const char * const s2)

return strcoll(s1, s2);
}
#endif

/* Return the integer value of a char representing HEX */
static char xchartohex(char c)
@@ -1167,7 +1169,7 @@ static int entrycmp(const void *va, const void *vb)
return -1;
}

return xstricmp(pa->name, pb->name);
return strverscmp(pa->name, pb->name);
}

/*


Načítá se…
Zrušit
Uložit