mirror of
https://sourceware.org/git/glibc.git
synced 2025-06-27 00:01:05 +03:00
string: Hook up the default implementation on test-strncmp
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@ -90,6 +90,22 @@ typedef int (*proto_t) (const CHAR *, const CHAR *, size_t);
|
|||||||
|
|
||||||
IMPL (STRNCMP, 1)
|
IMPL (STRNCMP, 1)
|
||||||
|
|
||||||
|
/* Also check the default implementation. */
|
||||||
|
#undef STRNCMP
|
||||||
|
#undef libc_hidden_builtin_def
|
||||||
|
#define libc_hidden_builtin_def(a)
|
||||||
|
#undef attribute_hidden
|
||||||
|
#define attribute_hidden
|
||||||
|
#ifndef WIDE
|
||||||
|
# define STRNCMP __strncmp_default
|
||||||
|
# include "string/strncmp.c"
|
||||||
|
# define STRNCMP_DEFAULT STRNCMP
|
||||||
|
#else
|
||||||
|
# define WCSNCMP __wcsncmp_default
|
||||||
|
# include "wcsmbs/wcsncmp.c"
|
||||||
|
# define STRNCMP_DEFAULT WCSNCMP
|
||||||
|
#endif
|
||||||
|
IMPL (STRNCMP_DEFAULT, 1)
|
||||||
|
|
||||||
static int
|
static int
|
||||||
check_result (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t n,
|
check_result (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t n,
|
||||||
|
Reference in New Issue
Block a user