From 0b7dcd69c801a7439de5bfc53ae4005ec3846634 Mon Sep 17 00:00:00 2001 From: Andree Buschmann Date: Mon, 22 Feb 2010 21:24:09 +0000 Subject: Remove tabs in firmware path (taking into account the original spacing). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24864 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/memchr.c | 50 ++++++++++++++++++++++++------------------------ 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'firmware/common/memchr.c') diff --git a/firmware/common/memchr.c b/firmware/common/memchr.c index a7ff222a61..26bdb9eea3 100644 --- a/firmware/common/memchr.c +++ b/firmware/common/memchr.c @@ -1,28 +1,28 @@ /* FUNCTION - <>---search for character in memory + <>---search for character in memory INDEX - memchr + memchr ANSI_SYNOPSIS - #include - void * memchr(const void *<[s1]>, int <[c]>, size_t <[n]>); + #include + void * memchr(const void *<[s1]>, int <[c]>, size_t <[n]>); TRAD_SYNOPSIS - #include - void * memchr(<[s1]>, <[c]>, <[n]>); - void *<[string]>; - int *<[c]>; - size_t *<[n]>; + #include + void * memchr(<[s1]>, <[c]>, <[n]>); + void *<[string]>; + int *<[c]>; + size_t *<[n]>; DESCRIPTION - This function scans the first <[n]> bytes of the memory pointed - to by <[s1]> for the character <[c]> (converted to a char). + This function scans the first <[n]> bytes of the memory pointed + to by <[s1]> for the character <[c]> (converted to a char). RETURNS - Returns a pointer to the matching byte, or a null pointer if - <[c]> does not occur in <[s1]>. + Returns a pointer to the matching byte, or a null pointer if + <[c]> does not occur in <[s1]>. PORTABILITY <> is ANSI C. @@ -30,7 +30,7 @@ PORTABILITY <> requires no supporting OS subroutines. QUICKREF - memchr ansi pure + memchr ansi pure */ #include @@ -59,8 +59,8 @@ QUICKREF void * _DEFUN (memchr, (s1, i, n), - _CONST void *s1 _AND - int i _AND size_t n) + _CONST void *s1 _AND + int i _AND size_t n) { _CONST unsigned char *s = (_CONST unsigned char *)s1; #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) @@ -69,9 +69,9 @@ _DEFUN (memchr, (s1, i, n), while (n-- > 0) { if (*s == c) - { + { return (void *)s; - } + } s++; } @@ -89,15 +89,15 @@ _DEFUN (memchr, (s1, i, n), aligned_addr = (unsigned long*)s; while ((!DETECTCHAR (*aligned_addr, mask)) && (n>LBLOCKSIZE)) - { + { aligned_addr++; - n -= LBLOCKSIZE; - } + n -= LBLOCKSIZE; + } /* The block of bytes currently pointed to by aligned_addr may contain the target character or there may be less than - LBLOCKSIZE bytes left to search. We check the last few - bytes using the bytewise search. */ + LBLOCKSIZE bytes left to search. We check the last few + bytes using the bytewise search. */ s = (unsigned char*)aligned_addr; } @@ -105,9 +105,9 @@ _DEFUN (memchr, (s1, i, n), while (n-- > 0) { if (*s == c) - { + { return (void *)s; - } + } s++; } -- cgit v1.2.3