(x)memcoll: minor tweaks
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Jul 2010 01:16:40 +0000 (18:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Jul 2010 01:24:39 +0000 (18:24 -0700)
commit277aeb362143c763a4297d67c3ce55923649a6bd
treeed2f875dc0af561ac054f8a8eecec96b594bc37b
parent9f31a7914f9d65fbc1225f503491dcc90e90c357
(x)memcoll: minor tweaks

* lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
is after the type that it qualifies.
(memcoll0): Likewise.
* lib/memcoll.h (memcoll0): Likewise.
* lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
* lib/xmemcoll.h (xmemcoll0): Likewise.
* lib/memcoll.c (memcoll0): Correct the comment.  This function
differs from memcoll in that the NUL byte is part of the argument.
Omit the abort-checks, as performance is a real issue here.  Plus,
the checks were wrong anyway (an off-by-one error).  Omit local
variable 'diff', as it's a bit clearer that way.
* m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
no longer needed.
ChangeLog
lib/memcoll.c
lib/memcoll.h
lib/xmemcoll.c
lib/xmemcoll.h
m4/memcoll.m4