mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-16 11:31:00 +08:00
633cf9b5dd
comparison * libc/string/memchr.c (memchr): Ditto. * libc/string/memrchr.c (memrchr): Ditto. * libc/string/memset.c: (memset): Ditto. * libc/string/rawmemchr.c (rawmemchr): Ditto. * libc/string/local.h (__locale_cjk_lang): Fix "function declaration isn't a prototype" warning. * libc/string/strcasestr.c (strcasestr): Ditto. * libc/string/u_strerr.c (_user_strerror): Fix "unused parameter" warnings. * libc/string/rawmemchr.c (rawmemchr): Fix comment type "// ..." -> "/* ... */".
25 lines
691 B
C
25 lines
691 B
C
#include <_ansi.h>
|
|
#include <../ctype/local.h>
|
|
|
|
/* internal function to compute width of wide char. */
|
|
int _EXFUN (__wcwidth, (wint_t));
|
|
|
|
/* Defined in locale/locale.c. Returns a value != 0 if the current
|
|
language is assumed to use CJK fonts. */
|
|
int _EXFUN (__locale_cjk_lang, (void));
|
|
|
|
/*
|
|
Taken from glibc:
|
|
Add the compiler optimization to inhibit loop transformation to library
|
|
calls. This is used to avoid recursive calls in memset and memmove
|
|
default implementations.
|
|
*/
|
|
#ifdef _HAVE_CC_INHIBIT_LOOP_TO_LIBCALL
|
|
# define __inhibit_loop_to_libcall \
|
|
__attribute__ ((__optimize__ ("-fno-tree-loop-distribute-patterns")))
|
|
#else
|
|
# define __inhibit_loop_to_libcall
|
|
#endif
|
|
|
|
|