diff options
| author | Soikk | 2022-04-29 03:28:34 +0200 |
|---|---|---|
| committer | Soikk | 2022-04-29 03:28:34 +0200 |
| commit | 2b1838ecf30fd91575a71b877965ed3363356138 (patch) | |
| tree | d723d47caabe42f8ec02576177c0e203dd4aa5e5 /strnatcmp.c | |
| parent | 8a2981d9137357d4b2c86e8037e4f2ca9cea5578 (diff) | |
| download | soikk-DB-2b1838ecf30fd91575a71b877965ed3363356138.tar.xz soikk-DB-2b1838ecf30fd91575a71b877965ed3363356138.tar.zst | |
Add or remove tags
Diffstat (limited to 'strnatcmp.c')
| -rw-r--r-- | strnatcmp.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/strnatcmp.c b/strnatcmp.c index 21370c3..46b7946 100644 --- a/strnatcmp.c +++ b/strnatcmp.c @@ -134,7 +134,16 @@ static int strnatcmp0(nat_char const *a, nat_char const *b, int fold_case) /* process run of digits */ if (nat_isdigit(ca) && nat_isdigit(cb)) { - fractional = (ca == '0' || cb == '0'); + /* + Modified by Soikk for the purpose of DB + To revert to original version, remove this comment, + the uncommented code inside this if statement and + uncomment the remaining piece of code inside this + if statement + */ + if ((result = compare_right(a+ai, b+bi)) != 0) + return result; + /*fractional = (ca == '0' || cb == '0'); if (fractional) { if ((result = compare_left(a+ai, b+bi)) != 0) @@ -142,7 +151,7 @@ static int strnatcmp0(nat_char const *a, nat_char const *b, int fold_case) } else { if ((result = compare_right(a+ai, b+bi)) != 0) return result; - } + }*/ } if (!ca && !cb) { |
