* libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
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 "// ..." -> "/* ... */".
This commit is contained in:
parent
657ca84427
commit
633cf9b5dd
|
@ -1,3 +1,19 @@
|
||||||
|
2014-10-09 Freddie Chopin <freddie_chopin@op.pl>
|
||||||
|
|
||||||
|
* libc/string/memccpy.c (memccpy): Fix warning about signed-unsigned
|
||||||
|
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
|
||||||
|
"// ..." -> "/* ... */".
|
||||||
|
|
||||||
2014-10-08 Steve Ellcey <sellcey@mips.com>
|
2014-10-08 Steve Ellcey <sellcey@mips.com>
|
||||||
|
|
||||||
* newlib/libc/machine/mips/strcmp.c: Remove.
|
* newlib/libc/machine/mips/strcmp.c: Remove.
|
||||||
|
|
|
@ -6,7 +6,7 @@ int _EXFUN (__wcwidth, (wint_t));
|
||||||
|
|
||||||
/* Defined in locale/locale.c. Returns a value != 0 if the current
|
/* Defined in locale/locale.c. Returns a value != 0 if the current
|
||||||
language is assumed to use CJK fonts. */
|
language is assumed to use CJK fonts. */
|
||||||
int __locale_cjk_lang ();
|
int _EXFUN (__locale_cjk_lang, (void));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Taken from glibc:
|
Taken from glibc:
|
||||||
|
|
|
@ -98,7 +98,7 @@ _DEFUN (memccpy, (dst0, src0, endchar, len0),
|
||||||
then punt into the byte copy loop. This should be rare. */
|
then punt into the byte copy loop. This should be rare. */
|
||||||
if (!TOO_SMALL(len0) && !UNALIGNED (src, dst))
|
if (!TOO_SMALL(len0) && !UNALIGNED (src, dst))
|
||||||
{
|
{
|
||||||
int i;
|
unsigned int i;
|
||||||
unsigned long mask = 0;
|
unsigned long mask = 0;
|
||||||
|
|
||||||
aligned_dst = (long*)dst;
|
aligned_dst = (long*)dst;
|
||||||
|
|
|
@ -80,7 +80,7 @@ _DEFUN (memchr, (src_void, c, length),
|
||||||
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
||||||
unsigned long *asrc;
|
unsigned long *asrc;
|
||||||
unsigned long mask;
|
unsigned long mask;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
while (UNALIGNED (src))
|
while (UNALIGNED (src))
|
||||||
{
|
{
|
||||||
|
|
|
@ -80,7 +80,7 @@ _DEFUN (memrchr, (src_void, c, length),
|
||||||
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
||||||
unsigned long *asrc;
|
unsigned long *asrc;
|
||||||
unsigned long mask;
|
unsigned long mask;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
while (UNALIGNED (src))
|
while (UNALIGNED (src))
|
||||||
{
|
{
|
||||||
|
|
|
@ -50,7 +50,7 @@ _DEFUN (memset, (m, c, n),
|
||||||
char *s = (char *) m;
|
char *s = (char *) m;
|
||||||
|
|
||||||
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
||||||
int i;
|
unsigned int i;
|
||||||
unsigned long buffer;
|
unsigned long buffer;
|
||||||
unsigned long *aligned_addr;
|
unsigned long *aligned_addr;
|
||||||
unsigned int d = c & 0xff; /* To avoid sign extension, copy C to an
|
unsigned int d = c & 0xff; /* To avoid sign extension, copy C to an
|
||||||
|
|
|
@ -77,7 +77,7 @@ _DEFUN (rawmemchr, (src_void, c),
|
||||||
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
#if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__)
|
||||||
unsigned long *asrc;
|
unsigned long *asrc;
|
||||||
unsigned long mask;
|
unsigned long mask;
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
while (UNALIGNED (src))
|
while (UNALIGNED (src))
|
||||||
{
|
{
|
||||||
|
@ -110,7 +110,7 @@ _DEFUN (rawmemchr, (src_void, c),
|
||||||
|
|
||||||
src = (unsigned char *) asrc;
|
src = (unsigned char *) asrc;
|
||||||
|
|
||||||
#endif // !PREFER_SIZE_OVER_SPEED && !__OPTIMIZE_SIZE__
|
#endif /* !PREFER_SIZE_OVER_SPEED && !__OPTIMIZE_SIZE__ */
|
||||||
|
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,8 +96,9 @@ QUICKREF
|
||||||
* Find the first occurrence of find in s, ignore case.
|
* Find the first occurrence of find in s, ignore case.
|
||||||
*/
|
*/
|
||||||
char *
|
char *
|
||||||
strcasestr(s, find)
|
_DEFUN (strcasestr, (s, find),
|
||||||
const char *s, *find;
|
_CONST char *s _AND
|
||||||
|
_CONST char *find)
|
||||||
{
|
{
|
||||||
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
|
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
|
||||||
|
|
||||||
|
|
|
@ -6,5 +6,10 @@ _DEFUN(_user_strerror, (errnum, internal, errptr),
|
||||||
int internal _AND
|
int internal _AND
|
||||||
int *errptr)
|
int *errptr)
|
||||||
{
|
{
|
||||||
|
/* prevent warning about unused parameters */
|
||||||
|
_CAST_VOID errnum;
|
||||||
|
_CAST_VOID internal;
|
||||||
|
_CAST_VOID errptr;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue