]> Savannah Git Hosting - gnulib.git/commit
strverscmp: sync with glibc
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Aug 2016 15:23:44 +0000 (08:23 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 30 Aug 2016 15:44:58 +0000 (08:44 -0700)
commit5d856f70e9515ea5288d9cc9b15996af41bf4f7f
treea8d9dea9ab94f4162f8ff2e34ab919439a8356fc
parenta56908381dd1ed630007a04ad03db17b1795e539
strverscmp: sync with glibc

Although this doesn't exactly synchronize with glibc
byte-for-byte, it makes the code behave the same as glibc.
* lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
(ISDIGIT): Remove, as glibc is sticking with isdigit, and the
difference shouldn't matter in practical use.  All uses changed
back to isdigit.
(__strverscmp, strverscmp): Use new glibc method for weak aliases.
(next_state): Now unsigned char array; redo elements.
(result_type): Now signed char array; redo elements.
(__strverscmp): Fix glibc bug 9913 by using new states.
* tests/test-strverscmp.c (main): Test glibc bug 9913.
ChangeLog
lib/strverscmp.c
tests/test-strverscmp.c