瀏覽代碼

Use library function for numeric sort

master
Arun Prakash Jana 6 年之前
父節點
當前提交
1b494b0d26
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/nnn.c

+ 3
- 1
src/nnn.c 查看文件

@@ -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);
}

/*


Loading…
取消
儲存