diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-04 05:53:22 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 20:47:16 +0300 |
commit | e6321aa6a668376c40bc2792a3bd392e94c29ad6 (patch) | |
tree | fe4028a6278a7d3f49ff79f0e5150b49f225685f /newlib/libc/machine | |
parent | 0403b9c8c40a351ba72f587add10669df225680b (diff) |
ansification: remove _PTR
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/machine')
-rw-r--r-- | newlib/libc/machine/powerpc/machine/malloc.h | 12 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/machine/stdlib.h | 12 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/vec_calloc.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/vec_free.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/vec_malloc.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/vec_realloc.c | 4 | ||||
-rw-r--r-- | newlib/libc/machine/powerpc/vfscanf.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/spu/fread.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/spu/fwrite.c | 2 | ||||
-rw-r--r-- | newlib/libc/machine/xstormy16/mallocr.c | 10 |
10 files changed, 25 insertions, 25 deletions
diff --git a/newlib/libc/machine/powerpc/machine/malloc.h b/newlib/libc/machine/powerpc/machine/malloc.h index 945a9651a..6be7eac80 100644 --- a/newlib/libc/machine/powerpc/machine/malloc.h +++ b/newlib/libc/machine/powerpc/machine/malloc.h @@ -3,14 +3,14 @@ # if defined(__ALTIVEC__) -_PTR _EXFUN(vec_calloc,(size_t __nmemb, size_t __size)); -_PTR _EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size)); -_VOID _EXFUN(vec_free,(_PTR)); +void *_EXFUN(vec_calloc,(size_t __nmemb, size_t __size)); +void *_EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size)); +_VOID _EXFUN(vec_free,(void *)); #define _vec_freer _freer -_PTR _EXFUN(vec_malloc,(size_t __size)); +void *_EXFUN(vec_malloc,(size_t __size)); #define _vec_mallocr _memalign_r -_PTR _EXFUN(vec_realloc,(_PTR __r, size_t __size)); -_PTR _EXFUN(_vec_realloc_r,(struct _reent *, _PTR __r, size_t __size)); +void *_EXFUN(vec_realloc,(void *__r, size_t __size)); +void *_EXFUN(_vec_realloc_r,(struct _reent *, void *__r, size_t __size)); # endif /* __ALTIVEC__ */ diff --git a/newlib/libc/machine/powerpc/machine/stdlib.h b/newlib/libc/machine/powerpc/machine/stdlib.h index 1cf18371a..bc9b9cfe9 100644 --- a/newlib/libc/machine/powerpc/machine/stdlib.h +++ b/newlib/libc/machine/powerpc/machine/stdlib.h @@ -5,14 +5,14 @@ # if defined(__ALTIVEC__) -_PTR _EXFUN(vec_calloc,(size_t __nmemb, size_t __size)); -_PTR _EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size)); -_VOID _EXFUN(vec_free,(_PTR)); +void *_EXFUN(vec_calloc,(size_t __nmemb, size_t __size)); +void *_EXFUN(_vec_calloc_r,(struct _reent *, size_t __nmemb, size_t __size)); +_VOID _EXFUN(vec_free,(void *)); #define _vec_freer _freer -_PTR _EXFUN(vec_malloc,(size_t __size)); +void *_EXFUN(vec_malloc,(size_t __size)); #define _vec_mallocr _memalign_r -_PTR _EXFUN(vec_realloc,(_PTR __r, size_t __size)); -_PTR _EXFUN(_vec_realloc_r,(struct _reent *, _PTR __r, size_t __size)); +void *_EXFUN(vec_realloc,(void *__r, size_t __size)); +void *_EXFUN(_vec_realloc_r,(struct _reent *, void *__r, size_t __size)); # endif /* __ALTIVEC__ */ diff --git a/newlib/libc/machine/powerpc/vec_calloc.c b/newlib/libc/machine/powerpc/vec_calloc.c index 8a10507d3..cc156bc76 100644 --- a/newlib/libc/machine/powerpc/vec_calloc.c +++ b/newlib/libc/machine/powerpc/vec_calloc.c @@ -43,7 +43,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, #ifndef _REENT_ONLY -_PTR +void * _DEFUN (vec_calloc, (n, size), size_t n, size_t size) diff --git a/newlib/libc/machine/powerpc/vec_free.c b/newlib/libc/machine/powerpc/vec_free.c index b55c52dde..fa2ea9686 100644 --- a/newlib/libc/machine/powerpc/vec_free.c +++ b/newlib/libc/machine/powerpc/vec_free.c @@ -7,7 +7,7 @@ void _DEFUN (vec_free, (aptr), - _PTR aptr) + void *aptr) { _free_r (_REENT, aptr); } diff --git a/newlib/libc/machine/powerpc/vec_malloc.c b/newlib/libc/machine/powerpc/vec_malloc.c index 181f360f0..ad62b119f 100644 --- a/newlib/libc/machine/powerpc/vec_malloc.c +++ b/newlib/libc/machine/powerpc/vec_malloc.c @@ -95,7 +95,7 @@ Supporting OS subroutines required: <<sbrk>>. */ #ifndef _REENT_ONLY -_PTR +void * _DEFUN (vec_malloc, (nbytes), size_t nbytes) /* get a block */ { diff --git a/newlib/libc/machine/powerpc/vec_realloc.c b/newlib/libc/machine/powerpc/vec_realloc.c index 7e857b55a..05ee82be1 100644 --- a/newlib/libc/machine/powerpc/vec_realloc.c +++ b/newlib/libc/machine/powerpc/vec_realloc.c @@ -6,9 +6,9 @@ #ifndef _REENT_ONLY -_PTR +void * _DEFUN (vec_realloc, (ap, nbytes), - _PTR ap, + void *ap, size_t nbytes) { return _vec_realloc_r (_REENT, ap, nbytes); diff --git a/newlib/libc/machine/powerpc/vfscanf.c b/newlib/libc/machine/powerpc/vfscanf.c index df5344e20..b27a0b81c 100644 --- a/newlib/libc/machine/powerpc/vfscanf.c +++ b/newlib/libc/machine/powerpc/vfscanf.c @@ -928,7 +928,7 @@ __svfscanf_r (rptr, fp, fmt0, ap) *p = 0; res = (*ccfn) (rptr, buf, (char **) NULL, base); if ((flags & POINTER) && !(flags & VECTOR)) - *(va_arg (ap, _PTR *)) = (_PTR) (unsigned _POINTER_INT) res; + *(va_arg (ap, void **)) = (void *) (unsigned _POINTER_INT) res; else if (flags & SHORT) { if (!(flags & VECTOR)) diff --git a/newlib/libc/machine/spu/fread.c b/newlib/libc/machine/spu/fread.c index 3ea24cc4a..8a6e9c417 100644 --- a/newlib/libc/machine/spu/fread.c +++ b/newlib/libc/machine/spu/fread.c @@ -50,7 +50,7 @@ typedef struct size_t _DEFUN (fread, (buf, size, count, fp), - _PTR __restrict buf, + void *__restrict buf, size_t size, size_t count, FILE *__restrict fp) diff --git a/newlib/libc/machine/spu/fwrite.c b/newlib/libc/machine/spu/fwrite.c index 149eb1345..0db2f549b 100644 --- a/newlib/libc/machine/spu/fwrite.c +++ b/newlib/libc/machine/spu/fwrite.c @@ -50,7 +50,7 @@ typedef struct size_t _DEFUN (fwrite, (buf, size, count, fp), - const _PTR __restrict buf, + const void *__restrict buf, size_t size, size_t count, FILE * fp) diff --git a/newlib/libc/machine/xstormy16/mallocr.c b/newlib/libc/machine/xstormy16/mallocr.c index 23e02f74c..07be53039 100644 --- a/newlib/libc/machine/xstormy16/mallocr.c +++ b/newlib/libc/machine/xstormy16/mallocr.c @@ -1,7 +1,7 @@ #include <malloc.h> #ifdef DEFINE_MALLOC -_PTR +void * _malloc_r (struct _reent *r, size_t sz) { return malloc (sz); @@ -9,7 +9,7 @@ _malloc_r (struct _reent *r, size_t sz) #endif #ifdef DEFINE_CALLOC -_PTR +void * _calloc_r (struct _reent *r, size_t a, size_t b) { return calloc (a, b); @@ -18,15 +18,15 @@ _calloc_r (struct _reent *r, size_t a, size_t b) #ifdef DEFINE_FREE void -_free_r (struct _reent *r, _PTR x) +_free_r (struct _reent *r, void *x) { free (x); } #endif #ifdef DEFINE_REALLOC -_PTR -_realloc_r (struct _reent *r, _PTR x, size_t sz) +void * +_realloc_r (struct _reent *r, void *x, size_t sz) { return realloc (x, sz); } |