diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-03 20:53:22 -0600 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 11:47:16 -0600 |
commit | e6321aa6a668376c40bc2792a3bd392e94c29ad6 (patch) | |
tree | fe4028a6278a7d3f49ff79f0e5150b49f225685f /newlib/libc/string | |
parent | 0403b9c8c40a351ba72f587add10669df225680b (diff) | |
download | newlib-e6321aa6a668376c40bc2792a3bd392e94c29ad6.zip newlib-e6321aa6a668376c40bc2792a3bd392e94c29ad6.tar.gz newlib-e6321aa6a668376c40bc2792a3bd392e94c29ad6.tar.bz2 |
ansification: remove _PTR
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/string')
-rw-r--r-- | newlib/libc/string/memccpy.c | 10 | ||||
-rw-r--r-- | newlib/libc/string/memchr.c | 4 | ||||
-rw-r--r-- | newlib/libc/string/memcmp.c | 4 | ||||
-rw-r--r-- | newlib/libc/string/memcpy.c | 8 | ||||
-rw-r--r-- | newlib/libc/string/memmove.c | 6 | ||||
-rw-r--r-- | newlib/libc/string/mempcpy.c | 6 | ||||
-rw-r--r-- | newlib/libc/string/memrchr.c | 4 | ||||
-rw-r--r-- | newlib/libc/string/memset.c | 4 | ||||
-rw-r--r-- | newlib/libc/string/rawmemchr.c | 4 |
9 files changed, 25 insertions, 25 deletions
diff --git a/newlib/libc/string/memccpy.c b/newlib/libc/string/memccpy.c index b03b504..9b94061 100644 --- a/newlib/libc/string/memccpy.c +++ b/newlib/libc/string/memccpy.c @@ -55,16 +55,16 @@ PORTABILITY #endif -_PTR +void * _DEFUN (memccpy, (dst0, src0, endchar, len0), - _PTR __restrict dst0, - const _PTR __restrict src0, + void *__restrict dst0, + const void *__restrict src0, int endchar0, size_t len0) { #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) - _PTR ptr = NULL; + void *ptr = NULL; char *dst = (char *) dst0; char *src = (char *) src0; char endchar = endchar0 & 0xff; @@ -80,7 +80,7 @@ _DEFUN (memccpy, (dst0, src0, endchar, len0), return ptr; #else - _PTR ptr = NULL; + void *ptr = NULL; char *dst = dst0; const char *src = src0; long *aligned_dst; diff --git a/newlib/libc/string/memchr.c b/newlib/libc/string/memchr.c index 9660ed3..91f0b37 100644 --- a/newlib/libc/string/memchr.c +++ b/newlib/libc/string/memchr.c @@ -61,9 +61,9 @@ QUICKREF to fill (long)MASK. */ #define DETECTCHAR(X,MASK) (DETECTNULL(X ^ MASK)) -_PTR +void * _DEFUN (memchr, (src_void, c, length), - const _PTR src_void, + const void *src_void, int c, size_t length) { diff --git a/newlib/libc/string/memcmp.c b/newlib/libc/string/memcmp.c index 37d653a..c05cf57 100644 --- a/newlib/libc/string/memcmp.c +++ b/newlib/libc/string/memcmp.c @@ -44,8 +44,8 @@ QUICKREF int _DEFUN (memcmp, (m1, m2, n), - const _PTR m1, - const _PTR m2, + const void *m1, + const void *m2, size_t n) { #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) diff --git a/newlib/libc/string/memcpy.c b/newlib/libc/string/memcpy.c index 9193790..e1ae0ff 100644 --- a/newlib/libc/string/memcpy.c +++ b/newlib/libc/string/memcpy.c @@ -43,17 +43,17 @@ QUICKREF /* Threshhold for punting to the byte copier. */ #define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE) -_PTR +void * _DEFUN (memcpy, (dst0, src0, len0), - _PTR __restrict dst0, - const _PTR __restrict src0, + void *__restrict dst0, + const void *__restrict src0, size_t len0) { #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) char *dst = (char *) dst0; char *src = (char *) src0; - _PTR save = dst0; + void *save = dst0; while (len0--) { diff --git a/newlib/libc/string/memmove.c b/newlib/libc/string/memmove.c index e50ab58..70adb83 100644 --- a/newlib/libc/string/memmove.c +++ b/newlib/libc/string/memmove.c @@ -48,11 +48,11 @@ QUICKREF #define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE) /*SUPPRESS 20*/ -_PTR +void * __inhibit_loop_to_libcall _DEFUN (memmove, (dst_void, src_void, length), - _PTR dst_void, - const _PTR src_void, + void *dst_void, + const void *src_void, size_t length) { #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) diff --git a/newlib/libc/string/mempcpy.c b/newlib/libc/string/mempcpy.c index 79cbf23..babaea0 100644 --- a/newlib/libc/string/mempcpy.c +++ b/newlib/libc/string/mempcpy.c @@ -42,10 +42,10 @@ PORTABILITY /* Threshhold for punting to the byte copier. */ #define TOO_SMALL(LEN) ((LEN) < BIGBLOCKSIZE) -_PTR +void * _DEFUN (mempcpy, (dst0, src0, len0), - _PTR dst0, - const _PTR src0, + void *dst0, + const void *src0, size_t len0) { #if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__) diff --git a/newlib/libc/string/memrchr.c b/newlib/libc/string/memrchr.c index 7a28e27..432f462 100644 --- a/newlib/libc/string/memrchr.c +++ b/newlib/libc/string/memrchr.c @@ -61,9 +61,9 @@ QUICKREF to fill (long)MASK. */ #define DETECTCHAR(X,MASK) (DETECTNULL(X ^ MASK)) -_PTR +void * _DEFUN (memrchr, (src_void, c, length), - const _PTR src_void, + const void *src_void, int c, size_t length) { diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c index 284c36e..5ce15c5 100644 --- a/newlib/libc/string/memset.c +++ b/newlib/libc/string/memset.c @@ -33,10 +33,10 @@ QUICKREF #define UNALIGNED(X) ((long)X & (LBLOCKSIZE - 1)) #define TOO_SMALL(LEN) ((LEN) < LBLOCKSIZE) -_PTR +void * __inhibit_loop_to_libcall _DEFUN (memset, (m, c, n), - _PTR m, + void *m, int c, size_t n) { diff --git a/newlib/libc/string/rawmemchr.c b/newlib/libc/string/rawmemchr.c index b2078dc..881bd23 100644 --- a/newlib/libc/string/rawmemchr.c +++ b/newlib/libc/string/rawmemchr.c @@ -60,9 +60,9 @@ QUICKREF to fill (long)MASK. */ #define DETECTCHAR(X,MASK) (DETECTNULL(X ^ MASK)) -_PTR +void * _DEFUN (rawmemchr, (src_void, c), - const _PTR src_void, + const void *src_void, int c) { const unsigned char *src = (const unsigned char *) src_void; |