diff options
author | Chen Guo <chenguo4@yahoo.com> | 2010-07-08 15:50:11 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2010-07-08 15:50:11 -0700 |
commit | 9f31a7914f9d65fbc1225f503491dcc90e90c357 (patch) | |
tree | e5166d4f43ee68147ade3035bf95eb5accc4d9bf /m4 | |
parent | 4e559a98f6969a994791ea916306b50ed1a25b8d (diff) | |
download | gnulib-9f31a7914f9d65fbc1225f503491dcc90e90c357.tar.gz |
(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.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/memcoll.m4 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/memcoll.m4 b/m4/memcoll.m4 index 1c4bd61c00..0edf30ca42 100644 --- a/m4/memcoll.m4 +++ b/m4/memcoll.m4 @@ -7,6 +7,7 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_MEMCOLL], [ + AC_REQUIRE([AC_C_INLINE]) AC_LIBOBJ([memcoll]) dnl Prerequisites of lib/memcoll.c. |