diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-03-02 02:07:13 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-03-02 02:07:13 +0000 |
| commit | 4fd02fdd42cb389e2b63c7f1fd86377c4780b1d7 (patch) | |
| tree | 95ca22b8155a860ae5517e0868c0cc1eb4140fb4 | |
| parent | c64575231414a7fbc40d58402e6204b3274c334e (diff) | |
| download | rockbox-4fd02fdd42cb389e2b63c7f1fd86377c4780b1d7.zip rockbox-4fd02fdd42cb389e2b63c7f1fd86377c4780b1d7.tar.gz rockbox-4fd02fdd42cb389e2b63c7f1fd86377c4780b1d7.tar.bz2 rockbox-4fd02fdd42cb389e2b63c7f1fd86377c4780b1d7.tar.xz | |
FS#9972 - Simplify strnatcmp. As we do ignore leading zeros (as opposed to the original version), we can remove some unused code.
Also, change the header to state that we changed it and do not use the original version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20166 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | firmware/common/strnatcmp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/common/strnatcmp.c b/firmware/common/strnatcmp.c index 84e0d38..c67bda6 100644 --- a/firmware/common/strnatcmp.c +++ b/firmware/common/strnatcmp.c @@ -1,5 +1,4 @@ -/* -*- mode: c; c-file-style: "k&r" -*- - +/* Based on: strnatcmp.c -- Perform 'natural order' comparisons of strings in C. Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net> @@ -28,6 +27,10 @@ * Eric Sosman pointed out that ctype functions take a parameter whose * value must be that of an unsigned int, even on platforms that have * negative chars in their default char type. + * + * + * This version is changed to ignore leading zeros, it does not equal to the + * original software. */ #include <ctype.h> |