X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrverscmp.c;h=1e87461905a0a08daf6290deb62e7cb976e1eb25;hb=e4d055afbfccd4b30e65e80e01503c24fe91c774;hp=b3926f25e0df1b4adff13ba795ab64c012e32fe9;hpb=26c04f08d1be95166675f0864c296430af99346c;p=gnulib.git diff --git a/lib/strverscmp.c b/lib/strverscmp.c index b3926f25e..1e8746190 100644 --- a/lib/strverscmp.c +++ b/lib/strverscmp.c @@ -43,9 +43,7 @@ */ int -strverscmp (s1, s2) - const char *s1; - const char *s2; +strverscmp (const char *s1, const char *s2) { const unsigned char *p1 = (const unsigned char *) s1; const unsigned char *p2 = (const unsigned char *) s2; @@ -71,11 +69,11 @@ strverscmp (s1, s2) /* S_N */ CMP, CMP, CMP, CMP, CMP, LEN, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, - /* S_I */ CMP, -1, -1, CMP, +1, LEN, LEN, CMP, - +1, LEN, LEN, CMP, CMP, CMP, CMP, CMP, + /* S_I */ CMP, -1, -1, CMP, 1, LEN, LEN, CMP, + 1, LEN, LEN, CMP, CMP, CMP, CMP, CMP, /* S_F */ CMP, CMP, CMP, CMP, CMP, LEN, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, - /* S_Z */ CMP, +1, +1, CMP, -1, CMP, CMP, CMP, + /* S_Z */ CMP, 1, 1, CMP, -1, CMP, CMP, CMP, -1, CMP, CMP, CMP };