diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2010-07-08 18:16:40 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-07-08 18:24:39 -0700 |
commit | 277aeb362143c763a4297d67c3ce55923649a6bd (patch) | |
tree | ed2f875dc0af561ac054f8a8eecec96b594bc37b /lib/memcoll.h | |
parent | 9f31a7914f9d65fbc1225f503491dcc90e90c357 (diff) | |
download | gnulib-277aeb362143c763a4297d67c3ce55923649a6bd.tar.gz |
(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.
Diffstat (limited to 'lib/memcoll.h')
-rw-r--r-- | lib/memcoll.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/memcoll.h b/lib/memcoll.h index b43a96e6c3..1e8ce48481 100644 --- a/lib/memcoll.h +++ b/lib/memcoll.h @@ -23,6 +23,6 @@ # include <stddef.h> int memcoll (char *, size_t, char *, size_t); -int memcoll0 (const char *, size_t, const char *, size_t); +int memcoll0 (char const *, size_t, char const *, size_t); #endif /* MEMCOLL_H_ */ |