|
277aeb36
|
2010-07-08T18:16:40
|
|
(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.
|
|
9f31a791
|
2010-07-08T15:50:11
|
|
(x)memcoll: speedup when input is known to be NUL delimited
* lib/memcoll.c: Include stdlib.
(memcoll0) New function.
(strcoll_loop) New function, refactored for use in both memcoll
and memcoll0.
* lib/memcoll.h: Add prototype for memcoll0.
* lib/xmemcoll.c: (xmemcoll0) New function.
(collate_error) New function, refactored for use in both xmemcoll
and xmemcoll0.
* lib/xmemcoll.h: Add prototype for xmemcoll0.
* m4/memcoll.m4: add inline invocation.
|
|
5c7070ea
|
2003-07-22T22:10:55
|
|
Sync with coreutils xalloc.h, xmalloc.c, xmemcoll.h, xmemcoll.c.
|
|
92295bc4
|
2003-06-04T19:22:29
|
|
.h files should stand alone, but we shouldn't include <sys/types.h>
if we can get away with just <stddef.h>.
|
|
94236dc1
|
2002-01-22T08:02:55
|
|
*** empty log message ***
|