diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-04 04:31:41 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 20:47:05 +0300 |
commit | 6783860a2e4e4183c073f62e4bb938cea0e096c3 (patch) | |
tree | ab2289b4902fdfc7266edcb8bcfbd8f5601948bd /newlib/libc/stdio | |
parent | 1e39db3062f941778e748f833e1f88dd5c7399a3 (diff) |
ansification: remove _AND
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/stdio')
114 files changed, 525 insertions, 525 deletions
diff --git a/newlib/libc/stdio/asiprintf.c b/newlib/libc/stdio/asiprintf.c index 0c363d5ea..86996737f 100644 --- a/newlib/libc/stdio/asiprintf.c +++ b/newlib/libc/stdio/asiprintf.c @@ -26,8 +26,8 @@ int _DEFUN(_asiprintf_r, (ptr, strp, fmt), - struct _reent *ptr _AND - char **strp _AND + struct _reent *ptr, + char **strp, const char *fmt _DOTS) { int ret; @@ -54,7 +54,7 @@ _DEFUN(_asiprintf_r, (ptr, strp, fmt), int _DEFUN(asiprintf, (strp, fmt), - char **strp _AND + char **strp, const char *fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/asniprintf.c b/newlib/libc/stdio/asniprintf.c index 16ccfde63..f033f1b6b 100644 --- a/newlib/libc/stdio/asniprintf.c +++ b/newlib/libc/stdio/asniprintf.c @@ -15,9 +15,9 @@ char * _DEFUN(_asniprintf_r, (ptr, buf, lenp, fmt), - struct _reent *ptr _AND - char *buf _AND - size_t *lenp _AND + struct _reent *ptr, + char *buf, + size_t *lenp, const char *fmt _DOTS) { int ret; @@ -62,8 +62,8 @@ _DEFUN(_asniprintf_r, (ptr, buf, lenp, fmt), char * _DEFUN(asniprintf, (buf, lenp, fmt), - char *buf _AND - size_t *lenp _AND + char *buf, + size_t *lenp, const char *fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/asnprintf.c b/newlib/libc/stdio/asnprintf.c index 2e8d8aabb..e80ca06cb 100644 --- a/newlib/libc/stdio/asnprintf.c +++ b/newlib/libc/stdio/asnprintf.c @@ -15,9 +15,9 @@ char * _DEFUN(_asnprintf_r, (ptr, buf, lenp, fmt), - struct _reent *__restrict ptr _AND - char *buf _AND - size_t *lenp _AND + struct _reent *__restrict ptr, + char *buf, + size_t *lenp, const char *__restrict fmt _DOTS) { int ret; @@ -68,8 +68,8 @@ _EXFUN(_asniprintf_r, (struct _reent *, char *, size_t *, const char *, ...) char * _DEFUN(asnprintf, (buf, lenp, fmt), - char *__restrict buf _AND - size_t *__restrict lenp _AND + char *__restrict buf, + size_t *__restrict lenp, const char *__restrict fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/asprintf.c b/newlib/libc/stdio/asprintf.c index bf214f9af..1e75174d4 100644 --- a/newlib/libc/stdio/asprintf.c +++ b/newlib/libc/stdio/asprintf.c @@ -26,8 +26,8 @@ int _DEFUN(_asprintf_r, (ptr, strp, fmt), - struct _reent *ptr _AND - char **__restrict strp _AND + struct _reent *ptr, + char **__restrict strp, const char *__restrict fmt _DOTS) { int ret; @@ -60,7 +60,7 @@ _EXFUN(_asiprintf_r, (struct _reent *, char **, const char *, ...) int _DEFUN(asprintf, (strp, fmt), - char **__restrict strp _AND + char **__restrict strp, const char *__restrict fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/diprintf.c b/newlib/libc/stdio/diprintf.c index fde6ea44c..f57cbac81 100644 --- a/newlib/libc/stdio/diprintf.c +++ b/newlib/libc/stdio/diprintf.c @@ -50,8 +50,8 @@ Supporting OS subroutines required: <<sbrk>>, <<write>>. int _DEFUN(_diprintf_r, (ptr, fd, format), - struct _reent *ptr _AND - int fd _AND + struct _reent *ptr, + int fd, const char *format _DOTS) { va_list ap; @@ -67,7 +67,7 @@ _DEFUN(_diprintf_r, (ptr, fd, format), int _DEFUN(diprintf, (fd, format), - int fd _AND + int fd, const char *format _DOTS) { va_list ap; diff --git a/newlib/libc/stdio/dprintf.c b/newlib/libc/stdio/dprintf.c index 7389eefaa..831fe208c 100644 --- a/newlib/libc/stdio/dprintf.c +++ b/newlib/libc/stdio/dprintf.c @@ -54,8 +54,8 @@ Supporting OS subroutines required: <<sbrk>>, <<write>>. int _DEFUN(_dprintf_r, (ptr, fd, format), - struct _reent *ptr _AND - int fd _AND + struct _reent *ptr, + int fd, const char *__restrict format _DOTS) { va_list ap; @@ -77,7 +77,7 @@ _EXFUN(_diprintf_r, (struct _reent *, int, const char *, ...) int _DEFUN(dprintf, (fd, format), - int fd _AND + int fd, const char *__restrict format _DOTS) { va_list ap; diff --git a/newlib/libc/stdio/fclose.c b/newlib/libc/stdio/fclose.c index 3325a8920..264d2e48f 100644 --- a/newlib/libc/stdio/fclose.c +++ b/newlib/libc/stdio/fclose.c @@ -57,7 +57,7 @@ Required OS subroutines: <<close>>, <<fstat>>, <<isatty>>, <<lseek>>, int _DEFUN(_fclose_r, (rptr, fp), - struct _reent *rptr _AND + struct _reent *rptr, register FILE * fp) { int r; diff --git a/newlib/libc/stdio/fdopen.c b/newlib/libc/stdio/fdopen.c index e0268ed87..7dda3c359 100644 --- a/newlib/libc/stdio/fdopen.c +++ b/newlib/libc/stdio/fdopen.c @@ -54,8 +54,8 @@ PORTABILITY FILE * _DEFUN(_fdopen_r, (ptr, fd, mode), - struct _reent *ptr _AND - int fd _AND + struct _reent *ptr, + int fd, _CONST char *mode) { register FILE *fp; @@ -124,7 +124,7 @@ _DEFUN(_fdopen_r, (ptr, fd, mode), FILE * _DEFUN(fdopen, (fd, mode), - int fd _AND + int fd, _CONST char *mode) { return _fdopen_r (_REENT, fd, mode); diff --git a/newlib/libc/stdio/fflush.c b/newlib/libc/stdio/fflush.c index 199acbdc3..18d6d3e74 100644 --- a/newlib/libc/stdio/fflush.c +++ b/newlib/libc/stdio/fflush.c @@ -101,7 +101,7 @@ No supporting OS subroutines are required. directly from __srefill. */ int _DEFUN(__sflush_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE * fp) { register unsigned char *p; @@ -240,7 +240,7 @@ _DEFUN(__sflush_r, (ptr, fp), writing. */ int _DEFUN(__sflushw_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { return (fp->_flags & __SWR) ? __sflush_r (ptr, fp) : 0; @@ -251,7 +251,7 @@ _DEFUN(__sflushw_r, (ptr, fp), int _DEFUN(_fflush_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE * fp) { int ret; diff --git a/newlib/libc/stdio/fgetc.c b/newlib/libc/stdio/fgetc.c index 54322a069..45404d30e 100644 --- a/newlib/libc/stdio/fgetc.c +++ b/newlib/libc/stdio/fgetc.c @@ -86,7 +86,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(_fgetc_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, FILE * fp) { int result; diff --git a/newlib/libc/stdio/fgetc_u.c b/newlib/libc/stdio/fgetc_u.c index 5bbd5a549..45ee3b1b5 100644 --- a/newlib/libc/stdio/fgetc_u.c +++ b/newlib/libc/stdio/fgetc_u.c @@ -30,7 +30,7 @@ int _DEFUN(_fgetc_unlocked_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, FILE * fp) { CHECK_INIT(ptr, fp); diff --git a/newlib/libc/stdio/fgetpos.c b/newlib/libc/stdio/fgetpos.c index 3074526b4..373adfd8e 100644 --- a/newlib/libc/stdio/fgetpos.c +++ b/newlib/libc/stdio/fgetpos.c @@ -66,8 +66,8 @@ No supporting OS subroutines are required. int _DEFUN(_fgetpos_r, (ptr, fp, pos), - struct _reent * ptr _AND - FILE *__restrict fp _AND + struct _reent * ptr, + FILE *__restrict fp, _fpos_t *__restrict pos) { *pos = _ftell_r (ptr, fp); @@ -83,7 +83,7 @@ _DEFUN(_fgetpos_r, (ptr, fp, pos), int _DEFUN(fgetpos, (fp, pos), - FILE *__restrict fp _AND + FILE *__restrict fp, _fpos_t *__restrict pos) { return _fgetpos_r (_REENT, fp, pos); diff --git a/newlib/libc/stdio/fgets.c b/newlib/libc/stdio/fgets.c index 54097510d..5edeef957 100644 --- a/newlib/libc/stdio/fgets.c +++ b/newlib/libc/stdio/fgets.c @@ -95,9 +95,9 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, char * _DEFUN(_fgets_r, (ptr, buf, n, fp), - struct _reent * ptr _AND - char *__restrict buf _AND - int n _AND + struct _reent * ptr, + char *__restrict buf, + int n, FILE *__restrict fp) { size_t len; @@ -190,8 +190,8 @@ _DEFUN(_fgets_r, (ptr, buf, n, fp), char * _DEFUN(fgets, (buf, n, fp), - char *__restrict buf _AND - int n _AND + char *__restrict buf, + int n, FILE *__restrict fp) { return _fgets_r (_REENT, buf, n, fp); diff --git a/newlib/libc/stdio/fgetwc.c b/newlib/libc/stdio/fgetwc.c index 07731487d..718b53a16 100644 --- a/newlib/libc/stdio/fgetwc.c +++ b/newlib/libc/stdio/fgetwc.c @@ -126,7 +126,7 @@ PORTABILITY wint_t _DEFUN(__fgetwc, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { wchar_t wc; @@ -173,7 +173,7 @@ _DEFUN(__fgetwc, (ptr, fp), wint_t _DEFUN(_fgetwc_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { wint_t r; diff --git a/newlib/libc/stdio/fgetwc_u.c b/newlib/libc/stdio/fgetwc_u.c index 4ccd5765c..f3a4fea61 100644 --- a/newlib/libc/stdio/fgetwc_u.c +++ b/newlib/libc/stdio/fgetwc_u.c @@ -31,7 +31,7 @@ wint_t _DEFUN(_fgetwc_unlocked_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { ORIENT(fp, 1); diff --git a/newlib/libc/stdio/fgetws.c b/newlib/libc/stdio/fgetws.c index 3dbf3ef74..8ca95d170 100644 --- a/newlib/libc/stdio/fgetws.c +++ b/newlib/libc/stdio/fgetws.c @@ -100,9 +100,9 @@ PORTABILITY wchar_t * _DEFUN(_fgetws_r, (ptr, ws, n, fp), - struct _reent *ptr _AND - wchar_t * ws _AND - int n _AND + struct _reent *ptr, + wchar_t * ws, + int n, FILE * fp) { wchar_t *wsp; @@ -173,8 +173,8 @@ error: wchar_t * _DEFUN(fgetws, (ws, n, fp), - wchar_t *__restrict ws _AND - int n _AND + wchar_t *__restrict ws, + int n, FILE *__restrict fp) { struct _reent *reent = _REENT; diff --git a/newlib/libc/stdio/findfp.c b/newlib/libc/stdio/findfp.c index 737bde102..3d928c15d 100644 --- a/newlib/libc/stdio/findfp.c +++ b/newlib/libc/stdio/findfp.c @@ -45,8 +45,8 @@ _NOINLINE_STATIC _VOID static _VOID #endif _DEFUN(std, (ptr, flags, file), - FILE *ptr _AND - int flags _AND + FILE *ptr, + int flags, int file) { ptr->_p = 0; @@ -125,7 +125,7 @@ struct glue_with_file { struct _glue * _DEFUN(__sfmoreglue, (d, n), - struct _reent *d _AND + struct _reent *d, register int n) { struct glue_with_file *g; diff --git a/newlib/libc/stdio/fiprintf.c b/newlib/libc/stdio/fiprintf.c index 7d417f88c..1510556b2 100644 --- a/newlib/libc/stdio/fiprintf.c +++ b/newlib/libc/stdio/fiprintf.c @@ -23,8 +23,8 @@ int _DEFUN(_fiprintf_r, (ptr, fp, fmt), - struct _reent *ptr _AND - FILE * fp _AND + struct _reent *ptr, + FILE * fp, const char *fmt _DOTS) { int ret; @@ -40,7 +40,7 @@ _DEFUN(_fiprintf_r, (ptr, fp, fmt), int _DEFUN(fiprintf, (fp, fmt), - FILE * fp _AND + FILE * fp, const char *fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/flags.c b/newlib/libc/stdio/flags.c index 518cc33f1..b8f660ec4 100644 --- a/newlib/libc/stdio/flags.c +++ b/newlib/libc/stdio/flags.c @@ -31,8 +31,8 @@ int _DEFUN(__sflags, (ptr, mode, optr), - struct _reent *ptr _AND - register char *mode _AND + struct _reent *ptr, + register char *mode, int *optr) { register int ret, m, o; diff --git a/newlib/libc/stdio/fmemopen.c b/newlib/libc/stdio/fmemopen.c index 520ba1b80..6a6153fbd 100644 --- a/newlib/libc/stdio/fmemopen.c +++ b/newlib/libc/stdio/fmemopen.c @@ -84,9 +84,9 @@ typedef struct fmemcookie { COOKIE; return number of bytes read (0 on EOF). */ static _READ_WRITE_RETURN_TYPE _DEFUN(fmemreader, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - char *buf _AND + struct _reent *ptr, + void *cookie, + char *buf, _READ_WRITE_BUFSIZE_TYPE n) { fmemcookie *c = (fmemcookie *) cookie; @@ -104,9 +104,9 @@ _DEFUN(fmemreader, (ptr, cookie, buf, n), returning the number of bytes written or EOF on failure. */ static _READ_WRITE_RETURN_TYPE _DEFUN(fmemwriter, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - const char *buf _AND + struct _reent *ptr, + void *cookie, + const char *buf, _READ_WRITE_BUFSIZE_TYPE n) { fmemcookie *c = (fmemcookie *) cookie; @@ -160,9 +160,9 @@ _DEFUN(fmemwriter, (ptr, cookie, buf, n), COOKIE; return resulting position or fail with EOF. */ static _fpos_t _DEFUN(fmemseeker, (ptr, cookie, pos, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos_t pos _AND + struct _reent *ptr, + void *cookie, + _fpos_t pos, int whence) { fmemcookie *c = (fmemcookie *) cookie; @@ -215,9 +215,9 @@ _DEFUN(fmemseeker, (ptr, cookie, pos, whence), #ifdef __LARGE64_FILES static _fpos64_t _DEFUN(fmemseeker64, (ptr, cookie, pos, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos64_t pos _AND + struct _reent *ptr, + void *cookie, + _fpos64_t pos, int whence) { _off64_t offset = (_off64_t) pos; @@ -257,7 +257,7 @@ _DEFUN(fmemseeker64, (ptr, cookie, pos, whence), /* Reclaim resources used by stream described by COOKIE. */ static int _DEFUN(fmemcloser, (ptr, cookie), - struct _reent *ptr _AND + struct _reent *ptr, void *cookie) { fmemcookie *c = (fmemcookie *) cookie; @@ -269,9 +269,9 @@ _DEFUN(fmemcloser, (ptr, cookie), Return the new stream, or fail with NULL. */ FILE * _DEFUN(_fmemopen_r, (ptr, buf, size, mode), - struct _reent *ptr _AND - void *__restrict buf _AND - size_t size _AND + struct _reent *ptr, + void *__restrict buf, + size_t size, const char *__restrict mode) { FILE *fp; @@ -362,8 +362,8 @@ _DEFUN(_fmemopen_r, (ptr, buf, size, mode), #ifndef _REENT_ONLY FILE * _DEFUN(fmemopen, (buf, size, mode), - void *__restrict buf _AND - size_t size _AND + void *__restrict buf, + size_t size, const char *__restrict mode) { return _fmemopen_r (_REENT, buf, size, mode); diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c index 2551befed..92ec70670 100644 --- a/newlib/libc/stdio/fopen.c +++ b/newlib/libc/stdio/fopen.c @@ -114,8 +114,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; FILE * _DEFUN(_fopen_r, (ptr, file, mode), - struct _reent *ptr _AND - _CONST char *__restrict file _AND + struct _reent *ptr, + _CONST char *__restrict file, _CONST char *__restrict mode) { register FILE *fp; @@ -164,7 +164,7 @@ _DEFUN(_fopen_r, (ptr, file, mode), FILE * _DEFUN(fopen, (file, mode), - _CONST char *file _AND + _CONST char *file, _CONST char *mode) { return _fopen_r (_REENT, file, mode); diff --git a/newlib/libc/stdio/fopencookie.c b/newlib/libc/stdio/fopencookie.c index eb9861392..4ea1ab1d1 100644 --- a/newlib/libc/stdio/fopencookie.c +++ b/newlib/libc/stdio/fopencookie.c @@ -99,9 +99,9 @@ typedef struct fccookie { static _READ_WRITE_RETURN_TYPE _DEFUN(fcreader, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - char *buf _AND + struct _reent *ptr, + void *cookie, + char *buf, _READ_WRITE_BUFSIZE_TYPE n) { int result; @@ -114,9 +114,9 @@ _DEFUN(fcreader, (ptr, cookie, buf, n), static _READ_WRITE_RETURN_TYPE _DEFUN(fcwriter, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - const char *buf _AND + struct _reent *ptr, + void *cookie, + const char *buf, _READ_WRITE_BUFSIZE_TYPE n) { int result; @@ -137,9 +137,9 @@ _DEFUN(fcwriter, (ptr, cookie, buf, n), static _fpos_t _DEFUN(fcseeker, (ptr, cookie, pos, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos_t pos _AND + struct _reent *ptr, + void *cookie, + _fpos_t pos, int whence) { fccookie *c = (fccookie *) cookie; @@ -165,9 +165,9 @@ _DEFUN(fcseeker, (ptr, cookie, pos, whence), #ifdef __LARGE64_FILES static _fpos64_t _DEFUN(fcseeker64, (ptr, cookie, pos, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos64_t pos _AND + struct _reent *ptr, + void *cookie, + _fpos64_t pos, int whence) { _off64_t offset; @@ -181,7 +181,7 @@ _DEFUN(fcseeker64, (ptr, cookie, pos, whence), static int _DEFUN(fccloser, (ptr, cookie), - struct _reent *ptr _AND + struct _reent *ptr, void *cookie) { int result = 0; @@ -198,9 +198,9 @@ _DEFUN(fccloser, (ptr, cookie), FILE * _DEFUN(_fopencookie_r, (ptr, cookie, mode, functions), - struct _reent *ptr _AND - void *cookie _AND - const char *mode _AND + struct _reent *ptr, + void *cookie, + const char *mode, cookie_io_functions_t functions) { FILE *fp; @@ -254,8 +254,8 @@ _DEFUN(_fopencookie_r, (ptr, cookie, mode, functions), #ifndef _REENT_ONLY FILE * _DEFUN(fopencookie, (cookie, mode, functions), - void *cookie _AND - const char *mode _AND + void *cookie, + const char *mode, cookie_io_functions_t functions) { return _fopencookie_r (_REENT, cookie, mode, functions); diff --git a/newlib/libc/stdio/fprintf.c b/newlib/libc/stdio/fprintf.c index fe92a5b99..6a98237a2 100644 --- a/newlib/libc/stdio/fprintf.c +++ b/newlib/libc/stdio/fprintf.c @@ -23,8 +23,8 @@ int _DEFUN(_fprintf_r, (ptr, fp, fmt), - struct _reent *ptr _AND - FILE *__restrict fp _AND + struct _reent *ptr, + FILE *__restrict fp, const char *__restrict fmt _DOTS) { int ret; @@ -46,7 +46,7 @@ _EXFUN(_fiprintf_r, (struct _reent *, FILE *, const char *, ...) int _DEFUN(fprintf, (fp, fmt), - FILE *__restrict fp _AND + FILE *__restrict fp, const char *__restrict fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/fpurge.c b/newlib/libc/stdio/fpurge.c index de621feb6..acd177a69 100644 --- a/newlib/libc/stdio/fpurge.c +++ b/newlib/libc/stdio/fpurge.c @@ -61,7 +61,7 @@ No supporting OS subroutines are required. int _DEFUN(_fpurge_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE * fp) { int t; diff --git a/newlib/libc/stdio/fputc.c b/newlib/libc/stdio/fputc.c index f9273d6ae..452bb2961 100644 --- a/newlib/libc/stdio/fputc.c +++ b/newlib/libc/stdio/fputc.c @@ -88,8 +88,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(_fputc_r, (ptr, ch, file), - struct _reent *ptr _AND - int ch _AND + struct _reent *ptr, + int ch, FILE * file) { int result; @@ -103,7 +103,7 @@ _DEFUN(_fputc_r, (ptr, ch, file), #ifndef _REENT_ONLY int _DEFUN(fputc, (ch, file), - int ch _AND + int ch, FILE * file) { #if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED) diff --git a/newlib/libc/stdio/fputc_u.c b/newlib/libc/stdio/fputc_u.c index ac64b0bc2..27690e213 100644 --- a/newlib/libc/stdio/fputc_u.c +++ b/newlib/libc/stdio/fputc_u.c @@ -30,8 +30,8 @@ int _DEFUN(_fputc_unlocked_r, (ptr, ch, file), - struct _reent *ptr _AND - int ch _AND + struct _reent *ptr, + int ch, FILE * file) { CHECK_INIT(ptr, file); @@ -41,7 +41,7 @@ _DEFUN(_fputc_unlocked_r, (ptr, ch, file), #ifndef _REENT_ONLY int _DEFUN(fputc_unlocked, (ch, file), - int ch _AND + int ch, FILE * file) { #if !defined(__OPTIMIZE_SIZE__) && !defined(PREFER_SIZE_OVER_SPEED) diff --git a/newlib/libc/stdio/fputs.c b/newlib/libc/stdio/fputs.c index c4588265b..7adb89a04 100644 --- a/newlib/libc/stdio/fputs.c +++ b/newlib/libc/stdio/fputs.c @@ -87,8 +87,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, */ int _DEFUN(_fputs_r, (ptr, s, fp), - struct _reent * ptr _AND - char _CONST *__restrict s _AND + struct _reent * ptr, + char _CONST *__restrict s, FILE *__restrict fp) { #ifdef _FVWRITE_IN_STREAMIO @@ -136,7 +136,7 @@ error: #ifndef _REENT_ONLY int _DEFUN(fputs, (s, fp), - char _CONST *__restrict s _AND + char _CONST *__restrict s, FILE *__restrict fp) { return _fputs_r (_REENT, s, fp); diff --git a/newlib/libc/stdio/fputwc.c b/newlib/libc/stdio/fputwc.c index 5e2a9e322..4943cef99 100644 --- a/newlib/libc/stdio/fputwc.c +++ b/newlib/libc/stdio/fputwc.c @@ -129,8 +129,8 @@ PORTABILITY wint_t _DEFUN(__fputwc, (ptr, wc, fp), - struct _reent *ptr _AND - wchar_t wc _AND + struct _reent *ptr, + wchar_t wc, FILE *fp) { char buf[MB_LEN_MAX]; @@ -164,8 +164,8 @@ _DEFUN(__fputwc, (ptr, wc, fp), wint_t _DEFUN(_fputwc_r, (ptr, wc, fp), - struct _reent *ptr _AND - wchar_t wc _AND + struct _reent *ptr, + wchar_t wc, FILE *fp) { wint_t r; @@ -179,7 +179,7 @@ _DEFUN(_fputwc_r, (ptr, wc, fp), wint_t _DEFUN(fputwc, (wc, fp), - wchar_t wc _AND + wchar_t wc, FILE *fp) { struct _reent *reent = _REENT; diff --git a/newlib/libc/stdio/fputwc_u.c b/newlib/libc/stdio/fputwc_u.c index 43be648f7..4d4f07a0a 100644 --- a/newlib/libc/stdio/fputwc_u.c +++ b/newlib/libc/stdio/fputwc_u.c @@ -31,8 +31,8 @@ wint_t _DEFUN(_fputwc_unlocked_r, (ptr, wc, fp), - struct _reent *ptr _AND - wchar_t wc _AND + struct _reent *ptr, + wchar_t wc, FILE *fp) { ORIENT(fp, 1); @@ -41,7 +41,7 @@ _DEFUN(_fputwc_unlocked_r, (ptr, wc, fp), wint_t _DEFUN(fputwc_unlocked, (wc, fp), - wchar_t wc _AND + wchar_t wc, FILE *fp) { struct _reent *reent = _REENT; diff --git a/newlib/libc/stdio/fputws.c b/newlib/libc/stdio/fputws.c index c68241c92..8a470fcfb 100644 --- a/newlib/libc/stdio/fputws.c +++ b/newlib/libc/stdio/fputws.c @@ -95,8 +95,8 @@ PORTABILITY int _DEFUN(_fputws_r, (ptr, ws, fp), - struct _reent *ptr _AND - const wchar_t *ws _AND + struct _reent *ptr, + const wchar_t *ws, FILE *fp) { size_t nbytes; @@ -159,7 +159,7 @@ error: int _DEFUN(fputws, (ws, fp), - const wchar_t *__restrict ws _AND + const wchar_t *__restrict ws, FILE *__restrict fp) { struct _reent *reent = _REENT; diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c index c2e60bedc..cff60efe1 100644 --- a/newlib/libc/stdio/fread.c +++ b/newlib/libc/stdio/fread.c @@ -94,10 +94,10 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, #ifdef __SCLE static size_t _DEFUN(crlf_r, (ptr, fp, buf, count, eof), - struct _reent * ptr _AND - FILE * fp _AND - char * buf _AND - size_t count _AND + struct _reent * ptr, + FILE * fp, + char * buf, + size_t count, int eof) { int r; @@ -143,10 +143,10 @@ _DEFUN(crlf_r, (ptr, fp, buf, count, eof), size_t _DEFUN(_fread_r, (ptr, buf, size, count, fp), - struct _reent * ptr _AND - _PTR __restrict buf _AND - size_t size _AND - size_t count _AND + struct _reent * ptr, + _PTR __restrict buf, + size_t size, + size_t count, FILE * __restrict fp) { register size_t resid; @@ -261,9 +261,9 @@ _DEFUN(_fread_r, (ptr, buf, size, count, fp), #ifndef _REENT_ONLY size_t _DEFUN(fread, (buf, size, count, fp), - _PTR __restrict buf _AND - size_t size _AND - size_t count _AND + _PTR __restrict buf, + size_t size, + size_t count, FILE *__restrict fp) { return _fread_r (_REENT, buf, size, count, fp); diff --git a/newlib/libc/stdio/freopen.c b/newlib/libc/stdio/freopen.c index e5bb73a26..b9fee0c7b 100644 --- a/newlib/libc/stdio/freopen.c +++ b/newlib/libc/stdio/freopen.c @@ -76,9 +76,9 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, FILE * _DEFUN(_freopen_r, (ptr, file, mode, fp), - struct _reent *ptr _AND - const char *__restrict file _AND - const char *__restrict mode _AND + struct _reent *ptr, + const char *__restrict file, + const char *__restrict mode, register FILE *__restrict fp) { register int f; @@ -244,8 +244,8 @@ _DEFUN(_freopen_r, (ptr, file, mode, fp), FILE * _DEFUN(freopen, (file, mode, fp), - _CONST char *__restrict file _AND - _CONST char *__restrict mode _AND + _CONST char *__restrict file, + _CONST char *__restrict mode, register FILE *__restrict fp) { return _freopen_r (_REENT, file, mode, fp); diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c index b5bd979d3..4b8a1e099 100644 --- a/newlib/libc/stdio/fseek.c +++ b/newlib/libc/stdio/fseek.c @@ -82,9 +82,9 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(_fseek_r, (ptr, fp, offset, whence), - struct _reent *ptr _AND - register FILE *fp _AND - long offset _AND + struct _reent *ptr, + register FILE *fp, + long offset, int whence) { return _fseeko_r (ptr, fp, offset, whence); @@ -94,8 +94,8 @@ _DEFUN(_fseek_r, (ptr, fp, offset, whence), int _DEFUN(fseek, (fp, offset, whence), - register FILE *fp _AND - long offset _AND + register FILE *fp, + long offset, int whence) { return _fseek_r (_REENT, fp, offset, whence); diff --git a/newlib/libc/stdio/fseeko.c b/newlib/libc/stdio/fseeko.c index 52f978929..58bb9511b 100644 --- a/newlib/libc/stdio/fseeko.c +++ b/newlib/libc/stdio/fseeko.c @@ -94,9 +94,9 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(_fseeko_r, (ptr, fp, offset, whence), - struct _reent *ptr _AND - register FILE *fp _AND - _off_t offset _AND + struct _reent *ptr, + register FILE *fp, + _off_t offset, int whence) { _fpos_t _EXFNPTR(seekfn, (struct _reent *, _PTR, _fpos_t, int)); @@ -360,8 +360,8 @@ dumb: int _DEFUN(fseeko, (fp, offset, whence), - register FILE *fp _AND - _off_t offset _AND + register FILE *fp, + _off_t offset, int whence) { return _fseeko_r (_REENT, fp, offset, whence); diff --git a/newlib/libc/stdio/fsetlocking.c b/newlib/libc/stdio/fsetlocking.c index d62aef334..e27aa42fc 100644 --- a/newlib/libc/stdio/fsetlocking.c +++ b/newlib/libc/stdio/fsetlocking.c @@ -66,7 +66,7 @@ No supporting OS subroutines are required. int _DEFUN(__fsetlocking, (fp, type), - FILE * fp _AND + FILE * fp, int type) { int result; diff --git a/newlib/libc/stdio/fsetpos.c b/newlib/libc/stdio/fsetpos.c index a2a5d7b2e..ffc9d794c 100644 --- a/newlib/libc/stdio/fsetpos.c +++ b/newlib/libc/stdio/fsetpos.c @@ -60,8 +60,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(_fsetpos_r, (ptr, iop, pos), - struct _reent * ptr _AND - FILE * iop _AND + struct _reent * ptr, + FILE * iop, _CONST _fpos_t * pos) { int x = _fseek_r (ptr, iop, *pos, SEEK_SET); @@ -75,7 +75,7 @@ _DEFUN(_fsetpos_r, (ptr, iop, pos), int _DEFUN(fsetpos, (iop, pos), - FILE * iop _AND + FILE * iop, _CONST _fpos_t * pos) { return _fsetpos_r (_REENT, iop, pos); diff --git a/newlib/libc/stdio/ftell.c b/newlib/libc/stdio/ftell.c index 70eed84c0..1260d5ef4 100644 --- a/newlib/libc/stdio/ftell.c +++ b/newlib/libc/stdio/ftell.c @@ -84,7 +84,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; long _DEFUN(_ftell_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE * fp) { _fpos_t pos; diff --git a/newlib/libc/stdio/ftello.c b/newlib/libc/stdio/ftello.c index 90c4d321e..9d04a4516 100644 --- a/newlib/libc/stdio/ftello.c +++ b/newlib/libc/stdio/ftello.c @@ -84,7 +84,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; _off_t _DEFUN(_ftello_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, register FILE * fp) { _fpos_t pos; diff --git a/newlib/libc/stdio/funopen.c b/newlib/libc/stdio/funopen.c index 58b75648a..23bed7b8e 100644 --- a/newlib/libc/stdio/funopen.c +++ b/newlib/libc/stdio/funopen.c @@ -105,9 +105,9 @@ typedef struct funcookie { static _READ_WRITE_RETURN_TYPE _DEFUN(funreader, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - char *buf _AND + struct _reent *ptr, + void *cookie, + char *buf, _READ_WRITE_BUFSIZE_TYPE n) { int result; @@ -120,9 +120,9 @@ _DEFUN(funreader, (ptr, cookie, buf, n), static _READ_WRITE_RETURN_TYPE _DEFUN(funwriter, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - const char *buf _AND + struct _reent *ptr, + void *cookie, + const char *buf, _READ_WRITE_BUFSIZE_TYPE n) { int result; @@ -135,9 +135,9 @@ _DEFUN(funwriter, (ptr, cookie, buf, n), static _fpos_t _DEFUN(funseeker, (ptr, cookie, off, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos_t off _AND + struct _reent *ptr, + void *cookie, + _fpos_t off, int whence) { funcookie *c = (funcookie *) cookie; @@ -163,9 +163,9 @@ _DEFUN(funseeker, (ptr, cookie, off, whence), #ifdef __LARGE64_FILES static _fpos64_t _DEFUN(funseeker64, (ptr, cookie, off, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos64_t off _AND + struct _reent *ptr, + void *cookie, + _fpos64_t off, int whence) { _fpos64_t result; @@ -179,7 +179,7 @@ _DEFUN(funseeker64, (ptr, cookie, off, whence), static int _DEFUN(funcloser, (ptr, cookie), - struct _reent *ptr _AND + struct _reent *ptr, void *cookie) { int result = 0; @@ -196,11 +196,11 @@ _DEFUN(funcloser, (ptr, cookie), FILE * _DEFUN(_funopen_r, (ptr, cookie, readfn, writefn, seekfn, closefn), - struct _reent *ptr _AND - const void *cookie _AND - funread readfn _AND - funwrite writefn _AND - funseek seekfn _AND + struct _reent *ptr, + const void *cookie, + funread readfn, + funwrite writefn, + funseek seekfn, funclose closefn) { FILE *fp; @@ -268,10 +268,10 @@ _DEFUN(_funopen_r, (ptr, cookie, readfn, writefn, seekfn, closefn), #ifndef _REENT_ONLY FILE * _DEFUN(funopen, (cookie, readfn, writefn, seekfn, closefn), - const void *cookie _AND - funread readfn _AND - funwrite writefn _AND - funseek seekfn _AND + const void *cookie, + funread readfn, + funwrite writefn, + funseek seekfn, funclose closefn) { return _funopen_r (_REENT, cookie, readfn, writefn, seekfn, closefn); diff --git a/newlib/libc/stdio/fvwrite.c b/newlib/libc/stdio/fvwrite.c index 455666006..a0432a03d 100644 --- a/newlib/libc/stdio/fvwrite.c +++ b/newlib/libc/stdio/fvwrite.c @@ -46,8 +46,8 @@ int _DEFUN(__sfvwrite_r, (ptr, fp, uio), - struct _reent *ptr _AND - register FILE *fp _AND + struct _reent *ptr, + register FILE *fp, register struct __suio *uio) { register size_t len; diff --git a/newlib/libc/stdio/fwalk.c b/newlib/libc/stdio/fwalk.c index cceaa96c2..8b7b5b0e3 100644 --- a/newlib/libc/stdio/fwalk.c +++ b/newlib/libc/stdio/fwalk.c @@ -29,7 +29,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_fwalk, (ptr, function), - struct _reent *ptr _AND + struct _reent *ptr, register int (*function) (FILE *)) { register FILE *fp; @@ -56,7 +56,7 @@ _DEFUN(_fwalk, (ptr, function), I/O function (e.g. _fclose_r). */ int _DEFUN(_fwalk_reent, (ptr, reent_function), - struct _reent *ptr _AND + struct _reent *ptr, register int (*reent_function) (struct _reent *, FILE *)) { register FILE *fp; diff --git a/newlib/libc/stdio/fwide.c b/newlib/libc/stdio/fwide.c index a57a77c95..719a58acd 100644 --- a/newlib/libc/stdio/fwide.c +++ b/newlib/libc/stdio/fwide.c @@ -49,8 +49,8 @@ C99, POSIX.1-2001. int _DEFUN(_fwide_r, (ptr, fp, mode), - struct _reent *ptr _AND - FILE *fp _AND + struct _reent *ptr, + FILE *fp, int mode) { int ret; @@ -71,7 +71,7 @@ _DEFUN(_fwide_r, (ptr, fp, mode), int _DEFUN(fwide, (fp, mode), - FILE *fp _AND + FILE *fp, int mode) { return _fwide_r (_REENT, fp, mode); diff --git a/newlib/libc/stdio/fwprintf.c b/newlib/libc/stdio/fwprintf.c index 4b05824c4..00a8d41f9 100644 --- a/newlib/libc/stdio/fwprintf.c +++ b/newlib/libc/stdio/fwprintf.c @@ -24,8 +24,8 @@ int _DEFUN(_fwprintf_r, (ptr, fp, fmt), - struct _reent *ptr _AND - FILE *fp _AND + struct _reent *ptr, + FILE *fp, const wchar_t *fmt _DOTS) { int ret; @@ -41,7 +41,7 @@ _DEFUN(_fwprintf_r, (ptr, fp, fmt), int _DEFUN(fwprintf, (fp, fmt), - FILE *__restrict fp _AND + FILE *__restrict fp, const wchar_t *__restrict fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/fwrite.c b/newlib/libc/stdio/fwrite.c index 2ba71f38a..a805eff7f 100644 --- a/newlib/libc/stdio/fwrite.c +++ b/newlib/libc/stdio/fwrite.c @@ -109,10 +109,10 @@ static char sccsid[] = "%W% (Berkeley) %G%"; size_t _DEFUN(_fwrite_r, (ptr, buf, size, count, fp), - struct _reent * ptr _AND - _CONST _PTR __restrict buf _AND - size_t size _AND - size_t count _AND + struct _reent * ptr, + _CONST _PTR __restrict buf, + size_t size, + size_t count, FILE * __restrict fp) { size_t n; @@ -171,9 +171,9 @@ ret: #ifndef _REENT_ONLY size_t _DEFUN(fwrite, (buf, size, count, fp), - _CONST _PTR __restrict buf _AND - size_t size _AND - size_t count _AND + _CONST _PTR __restrict buf, + size_t size, + size_t count, FILE * fp) { return _fwrite_r (_REENT, buf, size, count, fp); diff --git a/newlib/libc/stdio/getc.c b/newlib/libc/stdio/getc.c index 37e345870..269bfb1d3 100644 --- a/newlib/libc/stdio/getc.c +++ b/newlib/libc/stdio/getc.c @@ -77,7 +77,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_getc_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { int result; diff --git a/newlib/libc/stdio/getc_u.c b/newlib/libc/stdio/getc_u.c index 6b71ce52d..2f9f0e818 100644 --- a/newlib/libc/stdio/getc_u.c +++ b/newlib/libc/stdio/getc_u.c @@ -70,7 +70,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_getc_unlocked_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { /* CHECK_INIT is called (eventually) by __srefill_r. */ diff --git a/newlib/libc/stdio/getdelim.c b/newlib/libc/stdio/getdelim.c index d806c02cf..4164be5c5 100644 --- a/newlib/libc/stdio/getdelim.c +++ b/newlib/libc/stdio/getdelim.c @@ -41,9 +41,9 @@ No supporting OS subroutines are directly required. ssize_t _DEFUN(__getdelim, (bufptr, n, delim, fp), - char **bufptr _AND - size_t *n _AND - int delim _AND + char **bufptr, + size_t *n, + int delim, FILE *fp) { char *buf; diff --git a/newlib/libc/stdio/getline.c b/newlib/libc/stdio/getline.c index 66ffd1990..b212a8c8f 100644 --- a/newlib/libc/stdio/getline.c +++ b/newlib/libc/stdio/getline.c @@ -38,8 +38,8 @@ extern ssize_t _EXFUN(__getdelim, (char **, size_t *, int, FILE *)); ssize_t _DEFUN(__getline, (lptr, n, fp), - char **lptr _AND - size_t *n _AND + char **lptr, + size_t *n, FILE *fp) { return __getdelim (lptr, n, '\n', fp); diff --git a/newlib/libc/stdio/gets.c b/newlib/libc/stdio/gets.c index a78d06b89..4e951efe3 100644 --- a/newlib/libc/stdio/gets.c +++ b/newlib/libc/stdio/gets.c @@ -64,7 +64,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, char * _DEFUN(_gets_r, (ptr, buf), - struct _reent *ptr _AND + struct _reent *ptr, char *buf) { register int c; diff --git a/newlib/libc/stdio/getwc.c b/newlib/libc/stdio/getwc.c index 6d88fa869..db9a43768 100644 --- a/newlib/libc/stdio/getwc.c +++ b/newlib/libc/stdio/getwc.c @@ -34,7 +34,7 @@ wint_t _DEFUN(_getwc_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, FILE *fp) { return _fgetwc_r (ptr, fp); diff --git a/newlib/libc/stdio/getwc_u.c b/newlib/libc/stdio/getwc_u.c index 613b69eca..913c3e08b 100644 --- a/newlib/libc/stdio/getwc_u.c +++ b/newlib/libc/stdio/getwc_u.c @@ -35,7 +35,7 @@ wint_t _DEFUN(_getwc_unlocked_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, FILE *fp) { return _fgetwc_unlocked_r (ptr, fp); diff --git a/newlib/libc/stdio/iprintf.c b/newlib/libc/stdio/iprintf.c index c55f7ce17..6c30c4257 100644 --- a/newlib/libc/stdio/iprintf.c +++ b/newlib/libc/stdio/iprintf.c @@ -43,7 +43,7 @@ _DEFUN(iprintf, (fmt), int _DEFUN(_iprintf_r, (ptr, fmt), - struct _reent *ptr _AND + struct _reent *ptr, const char *fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/makebuf.c b/newlib/libc/stdio/makebuf.c index ab20a0838..ac1276b48 100644 --- a/newlib/libc/stdio/makebuf.c +++ b/newlib/libc/stdio/makebuf.c @@ -36,7 +36,7 @@ _VOID _DEFUN(__smakebuf_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { register _PTR p; @@ -77,9 +77,9 @@ _DEFUN(__smakebuf_r, (ptr, fp), */ int _DEFUN(__swhatbuf_r, (ptr, fp, bufsize, couldbetty), - struct _reent *ptr _AND - FILE *fp _AND - size_t *bufsize _AND + struct _reent *ptr, + FILE *fp, + size_t *bufsize, int *couldbetty) { #ifdef _FSEEK_OPTIMIZATION diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c index 3ece9ab2c..37092496b 100644 --- a/newlib/libc/stdio/mktemp.c +++ b/newlib/libc/stdio/mktemp.c @@ -140,11 +140,11 @@ Supporting OS subroutines required: <<getpid>>, <<mkdir>>, <<open>>, <<stat>>. static int _DEFUN(_gettemp, (ptr, path, doopen, domkdir, suffixlen, flags), - struct _reent *ptr _AND - char *path _AND - register int *doopen _AND - int domkdir _AND - size_t suffixlen _AND + struct _reent *ptr, + char *path, + register int *doopen, + int domkdir, + size_t suffixlen, int flags) { register char *start, *trv; @@ -264,7 +264,7 @@ _DEFUN(_gettemp, (ptr, path, doopen, domkdir, suffixlen, flags), int _DEFUN(_mkstemp_r, (ptr, path), - struct _reent *ptr _AND + struct _reent *ptr, char *path) { int fd; @@ -275,7 +275,7 @@ _DEFUN(_mkstemp_r, (ptr, path), #if !defined _ELIX_LEVEL || _ELIX_LEVEL >= 4 char * _DEFUN(_mkdtemp_r, (ptr, path), - struct _reent *ptr _AND + struct _reent *ptr, char *path) { return (_gettemp (ptr, path, (int *) NULL, 1, 0, 0) ? path : NULL); @@ -283,8 +283,8 @@ _DEFUN(_mkdtemp_r, (ptr, path), int _DEFUN(_mkstemps_r, (ptr, path, len), - struct _reent *ptr _AND - char *path _AND + struct _reent *ptr, + char *path, int len) { int fd; @@ -294,8 +294,8 @@ _DEFUN(_mkstemps_r, (ptr, path, len), int _DEFUN(_mkostemp_r, (ptr, path, flags), - struct _reent *ptr _AND - char *path _AND + struct _reent *ptr, + char *path, int flags) { int fd; @@ -305,9 +305,9 @@ _DEFUN(_mkostemp_r, (ptr, path, flags), int _DEFUN(_mkostemps_r, (ptr, path, len, flags), - struct _reent *ptr _AND - char *path _AND - int len _AND + struct _reent *ptr, + char *path, + int len, int flags) { int fd; @@ -318,7 +318,7 @@ _DEFUN(_mkostemps_r, (ptr, path, len, flags), char * _DEFUN(_mktemp_r, (ptr, path), - struct _reent *ptr _AND + struct _reent *ptr, char *path) { return (_gettemp (ptr, path, (int *) NULL, 0, 0, 0) ? path : (char *) NULL); @@ -345,7 +345,7 @@ _DEFUN(mkdtemp, (path), int _DEFUN(mkstemps, (path, len), - char *path _AND + char *path, int len) { int fd; @@ -355,7 +355,7 @@ _DEFUN(mkstemps, (path, len), int _DEFUN(mkostemp, (path, flags), - char *path _AND + char *path, int flags) { int fd; @@ -365,8 +365,8 @@ _DEFUN(mkostemp, (path, flags), int _DEFUN(mkostemps, (path, len, flags), - char *path _AND - int len _AND + char *path, + int len, int flags) { int fd; diff --git a/newlib/libc/stdio/nano-vfprintf.c b/newlib/libc/stdio/nano-vfprintf.c index 663eb7149..f01e6a40b 100644 --- a/newlib/libc/stdio/nano-vfprintf.c +++ b/newlib/libc/stdio/nano-vfprintf.c @@ -183,9 +183,9 @@ static char *rcsid = "$Id$"; #ifdef STRING_ONLY int _DEFUN(__ssputs_r, (ptr, fp, buf, len), - struct _reent *ptr _AND - FILE *fp _AND - _CONST char *buf _AND + struct _reent *ptr, + FILE *fp, + _CONST char *buf, size_t len) { register int w; @@ -254,8 +254,8 @@ err: by a serial of functions like svfwprintf for wide char output. */ int _DEFUN(__ssprint_r, (ptr, fp, uio), - struct _reent *ptr _AND - FILE *fp _AND + struct _reent *ptr, + FILE *fp, register struct __suio *uio) { register size_t len; @@ -358,8 +358,8 @@ err: then reset it so that it can be reused. */ int _DEFUN(__sprint_r, (ptr, fp, uio), - struct _reent *ptr _AND - FILE *fp _AND + struct _reent *ptr, + FILE *fp, register struct __suio *uio) { register int err = 0; @@ -403,8 +403,8 @@ out: _NOINLINE_STATIC int _DEFUN(__sfputc_r, (ptr, c, fp), - struct _reent *ptr _AND - int c _AND + struct _reent *ptr, + int c, FILE *fp) { if (--fp->_w >= 0 || (fp->_w >= fp->_lbfsize && (char)c != '\n')) @@ -415,9 +415,9 @@ _DEFUN(__sfputc_r, (ptr, c, fp), int _DEFUN(__sfputs_r, (ptr, fp, buf, len), - struct _reent *ptr _AND - FILE *fp _AND - _CONST char *buf _AND + struct _reent *ptr, + FILE *fp, + _CONST char *buf, size_t len) { register int i; @@ -453,8 +453,8 @@ int _EXFUN(_VFPRINTF_R, (struct _reent *, FILE *, _CONST char *, va_list)); #ifndef STRING_ONLY int _DEFUN(VFPRINTF, (fp, fmt0, ap), - FILE * fp _AND - _CONST char *fmt0 _AND + FILE * fp, + _CONST char *fmt0, va_list ap) { int result; @@ -482,9 +482,9 @@ _EXFUN(vfiprintf, (FILE *, const char *, __VALIST) int _DEFUN(_VFPRINTF_R, (data, fp, fmt0, ap), - struct _reent *data _AND - FILE * fp _AND - _CONST char *fmt0 _AND + struct _reent *data, + FILE * fp, + _CONST char *fmt0, va_list ap) { register char *fmt; /* Format string. */ diff --git a/newlib/libc/stdio/nano-vfscanf.c b/newlib/libc/stdio/nano-vfscanf.c index 6467e5425..99c13f25e 100644 --- a/newlib/libc/stdio/nano-vfscanf.c +++ b/newlib/libc/stdio/nano-vfscanf.c @@ -145,8 +145,8 @@ Supporting OS subroutines required: int _DEFUN(VFSCANF, (fp, fmt, ap), - register FILE *fp _AND - _CONST char *fmt _AND + register FILE *fp, + _CONST char *fmt, va_list ap) { CHECK_INIT(_REENT, fp); @@ -159,8 +159,8 @@ _EXFUN(vfiscanf, (FILE *, const char *, __VALIST) int _DEFUN(__SVFSCANF, (fp, fmt0, ap), - register FILE *fp _AND - char _CONST *fmt0 _AND + register FILE *fp, + char _CONST *fmt0, va_list ap) { return __SVFSCANF_R (_REENT, fp, fmt0, ap); @@ -170,9 +170,9 @@ _DEFUN(__SVFSCANF, (fp, fmt0, ap), int _DEFUN(_VFSCANF_R, (data, fp, fmt, ap), - struct _reent *data _AND - register FILE *fp _AND - _CONST char *fmt _AND + struct _reent *data, + register FILE *fp, + _CONST char *fmt, va_list ap) { CHECK_INIT(data, fp); @@ -190,8 +190,8 @@ _EXFUN(_vfiscanf_r, (struct _reent *, FILE *, const char *, __VALIST) So, we create our own trimmed-down version. */ int _DEFUN(_sungetc_r, (data, fp, ch), - struct _reent *data _AND - int c _AND + struct _reent *data, + int c, register FILE *fp) { if (c == EOF) @@ -239,7 +239,7 @@ _DEFUN(_sungetc_r, (data, fp, ch), /* String only version of __srefill_r for sscanf family. */ int _DEFUN(__ssrefill_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, register FILE * fp) { /* Our only hope of further input is the ungetc buffer. @@ -269,9 +269,9 @@ size_t _EXFUN (_sfread_r, (struct _reent *, _PTR buf, size_t, size_t, FILE *)); int _DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap), - struct _reent *rptr _AND - register FILE *fp _AND - char _CONST *fmt0 _AND + struct _reent *rptr, + register FILE *fp, + char _CONST *fmt0, va_list ap) { register u_char *fmt = (u_char *) fmt0; diff --git a/newlib/libc/stdio/open_memstream.c b/newlib/libc/stdio/open_memstream.c index 9e6736f77..5dd64115b 100644 --- a/newlib/libc/stdio/open_memstream.c +++ b/newlib/libc/stdio/open_memstream.c @@ -94,9 +94,9 @@ typedef struct memstream { returning the number of bytes written or EOF on failure. */ static _READ_WRITE_RETURN_TYPE _DEFUN(memwriter, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - const char *buf _AND + struct _reent *ptr, + void *cookie, + const char *buf, _READ_WRITE_BUFSIZE_TYPE n) { memstream *c = (memstream *) cookie; @@ -148,9 +148,9 @@ _DEFUN(memwriter, (ptr, cookie, buf, n), COOKIE; return resulting position or fail with EOF. */ static _fpos_t _DEFUN(memseeker, (ptr, cookie, pos, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos_t pos _AND + struct _reent *ptr, + void *cookie, + _fpos_t pos, int whence) { memstream *c = (memstream *) cookie; @@ -216,9 +216,9 @@ _DEFUN(memseeker, (ptr, cookie, pos, whence), #ifdef __LARGE64_FILES static _fpos64_t _DEFUN(memseeker64, (ptr, cookie, pos, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos64_t pos _AND + struct _reent *ptr, + void *cookie, + _fpos64_t pos, int whence) { _off64_t offset = (_off64_t) pos; @@ -276,7 +276,7 @@ _DEFUN(memseeker64, (ptr, cookie, pos, whence), /* Reclaim resources used by stream described by COOKIE. */ static int _DEFUN(memcloser, (ptr, cookie), - struct _reent *ptr _AND + struct _reent *ptr, void *cookie) { memstream *c = (memstream *) cookie; @@ -296,9 +296,9 @@ _DEFUN(memcloser, (ptr, cookie), Return the new stream, or fail with NULL. */ static FILE * _DEFUN(internal_open_memstream_r, (ptr, buf, size, wide), - struct _reent *ptr _AND - char **buf _AND - size_t *size _AND + struct _reent *ptr, + char **buf, + size_t *size, int wide) { FILE *fp; @@ -379,8 +379,8 @@ _DEFUN(internal_open_memstream_r, (ptr, buf, size, wide), FILE * _DEFUN(_open_memstream_r, (ptr, buf, size), - struct _reent *ptr _AND - char **buf _AND + struct _reent *ptr, + char **buf, size_t *size) { return internal_open_memstream_r (ptr, buf, size, -1); @@ -388,8 +388,8 @@ _DEFUN(_open_memstream_r, (ptr, buf, size), FILE * _DEFUN(_open_wmemstream_r, (ptr, buf, size), - struct _reent *ptr _AND - wchar_t **buf _AND + struct _reent *ptr, + wchar_t **buf, size_t *size) { return internal_open_memstream_r (ptr, (char **)buf, size, 1); @@ -398,7 +398,7 @@ _DEFUN(_open_wmemstream_r, (ptr, buf, size), #ifndef _REENT_ONLY FILE * _DEFUN(open_memstream, (buf, size), - char **buf _AND + char **buf, size_t *size) { return _open_memstream_r (_REENT, buf, size); @@ -406,7 +406,7 @@ _DEFUN(open_memstream, (buf, size), FILE * _DEFUN(open_wmemstream, (buf, size), - wchar_t **buf _AND + wchar_t **buf, size_t *size) { return _open_wmemstream_r (_REENT, buf, size); diff --git a/newlib/libc/stdio/perror.c b/newlib/libc/stdio/perror.c index 0f0259632..cd1829180 100644 --- a/newlib/libc/stdio/perror.c +++ b/newlib/libc/stdio/perror.c @@ -60,7 +60,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, _VOID _DEFUN(_perror_r, (ptr, s), - struct _reent *ptr _AND + struct _reent *ptr, _CONST char *s) { char *error; diff --git a/newlib/libc/stdio/printf.c b/newlib/libc/stdio/printf.c index d5dedf906..ba5b76850 100644 --- a/newlib/libc/stdio/printf.c +++ b/newlib/libc/stdio/printf.c @@ -24,7 +24,7 @@ int _DEFUN(_printf_r, (ptr, fmt), - struct _reent *ptr _AND + struct _reent *ptr, const char *__restrict fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/putc.c b/newlib/libc/stdio/putc.c index a00aaad08..e69841d17 100644 --- a/newlib/libc/stdio/putc.c +++ b/newlib/libc/stdio/putc.c @@ -79,8 +79,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_putc_r, (ptr, c, fp), - struct _reent *ptr _AND - int c _AND + struct _reent *ptr, + int c, register FILE *fp) { int result; @@ -94,7 +94,7 @@ _DEFUN(_putc_r, (ptr, c, fp), #ifndef _REENT_ONLY int _DEFUN(putc, (c, fp), - int c _AND + int c, register FILE *fp) { #if !defined(PREFER_SIZE_OVER_SPEED) && !defined(__OPTIMIZE_SIZE__) diff --git a/newlib/libc/stdio/putc_u.c b/newlib/libc/stdio/putc_u.c index f710aaf57..b53060bed 100644 --- a/newlib/libc/stdio/putc_u.c +++ b/newlib/libc/stdio/putc_u.c @@ -71,8 +71,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_putc_unlocked_r, (ptr, c, fp), - struct _reent *ptr _AND - int c _AND + struct _reent *ptr, + int c, register FILE *fp) { /* CHECK_INIT is (eventually) called by __swbuf. */ @@ -83,7 +83,7 @@ _DEFUN(_putc_unlocked_r, (ptr, c, fp), #ifndef _REENT_ONLY int _DEFUN(putc_unlocked, (c, fp), - int c _AND + int c, register FILE *fp) { /* CHECK_INIT is (eventually) called by __swbuf. */ diff --git a/newlib/libc/stdio/putchar.c b/newlib/libc/stdio/putchar.c index a4b669832..813144a2b 100644 --- a/newlib/libc/stdio/putchar.c +++ b/newlib/libc/stdio/putchar.c @@ -68,7 +68,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_putchar_r, (ptr, c), - struct _reent *ptr _AND + struct _reent *ptr, int c) { _REENT_SMALL_CHECK_INIT (ptr); diff --git a/newlib/libc/stdio/putchar_u.c b/newlib/libc/stdio/putchar_u.c index a866c7799..e0ed8f7d7 100644 --- a/newlib/libc/stdio/putchar_u.c +++ b/newlib/libc/stdio/putchar_u.c @@ -62,7 +62,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_putchar_unlocked_r, (ptr, c), - struct _reent *ptr _AND + struct _reent *ptr, int c) { return putc_unlocked (c, _stdout_r (ptr)); diff --git a/newlib/libc/stdio/puts.c b/newlib/libc/stdio/puts.c index 72f929eea..36cc83203 100644 --- a/newlib/libc/stdio/puts.c +++ b/newlib/libc/stdio/puts.c @@ -66,7 +66,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_puts_r, (ptr, s), - struct _reent *ptr _AND + struct _reent *ptr, _CONST char * s) { #ifdef _FVWRITE_IN_STREAMIO diff --git a/newlib/libc/stdio/putw.c b/newlib/libc/stdio/putw.c index d4f785814..1e3c78c3e 100644 --- a/newlib/libc/stdio/putw.c +++ b/newlib/libc/stdio/putw.c @@ -50,7 +50,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(putw, (w, fp), - int w _AND + int w, register FILE *fp) { if (fwrite ((_CONST char*)&w, sizeof (w), 1, fp) != 1) diff --git a/newlib/libc/stdio/putwc.c b/newlib/libc/stdio/putwc.c index 9a84f35fb..7c31d23d8 100644 --- a/newlib/libc/stdio/putwc.c +++ b/newlib/libc/stdio/putwc.c @@ -34,8 +34,8 @@ wint_t _DEFUN(_putwc_r, (ptr, wc, fp), - struct _reent *ptr _AND - wchar_t wc _AND + struct _reent *ptr, + wchar_t wc, FILE *fp) { return _fputwc_r (ptr, wc, fp); @@ -46,7 +46,7 @@ _DEFUN(_putwc_r, (ptr, wc, fp), */ wint_t _DEFUN(putwc, (wc, fp), - wchar_t wc _AND + wchar_t wc, FILE *fp) { return fputwc (wc, fp); diff --git a/newlib/libc/stdio/putwc_u.c b/newlib/libc/stdio/putwc_u.c index bb71acc2a..cb09fd2db 100644 --- a/newlib/libc/stdio/putwc_u.c +++ b/newlib/libc/stdio/putwc_u.c @@ -35,8 +35,8 @@ wint_t _DEFUN(_putwc_unlocked_r, (ptr, wc, fp), - struct _reent *ptr _AND - wchar_t wc _AND + struct _reent *ptr, + wchar_t wc, FILE *fp) { return _fputwc_unlocked_r (ptr, wc, fp); @@ -47,7 +47,7 @@ _DEFUN(_putwc_unlocked_r, (ptr, wc, fp), */ wint_t _DEFUN(putwc_unlocked, (wc, fp), - wchar_t wc _AND + wchar_t wc, FILE *fp) { return fputwc_unlocked (wc, fp); diff --git a/newlib/libc/stdio/putwchar.c b/newlib/libc/stdio/putwchar.c index 248d5922d..66ed30ac0 100644 --- a/newlib/libc/stdio/putwchar.c +++ b/newlib/libc/stdio/putwchar.c @@ -88,7 +88,7 @@ PORTABILITY wint_t _DEFUN(_putwchar_r, (ptr, wc), - struct _reent *ptr _AND + struct _reent *ptr, wchar_t wc) { return _fputwc_r (ptr, wc, stdout); diff --git a/newlib/libc/stdio/putwchar_u.c b/newlib/libc/stdio/putwchar_u.c index 3235472a2..68c5abe26 100644 --- a/newlib/libc/stdio/putwchar_u.c +++ b/newlib/libc/stdio/putwchar_u.c @@ -35,7 +35,7 @@ wint_t _DEFUN(_putwchar_unlocked_r, (ptr, wc), - struct _reent *ptr _AND + struct _reent *ptr, wchar_t wc) { return _fputwc_unlocked_r (ptr, wc, stdout); diff --git a/newlib/libc/stdio/refill.c b/newlib/libc/stdio/refill.c index 9d853f94d..fc738d455 100644 --- a/newlib/libc/stdio/refill.c +++ b/newlib/libc/stdio/refill.c @@ -38,7 +38,7 @@ _DEFUN(lflush, (fp), int _DEFUN(__srefill_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, register FILE * fp) { /* make sure stdio is set up */ diff --git a/newlib/libc/stdio/remove.c b/newlib/libc/stdio/remove.c index 7b8d3060f..18c468d61 100644 --- a/newlib/libc/stdio/remove.c +++ b/newlib/libc/stdio/remove.c @@ -60,7 +60,7 @@ Supporting OS subroutine required: <<unlink>>. int _DEFUN(_remove_r, (ptr, filename), - struct _reent *ptr _AND + struct _reent *ptr, _CONST char *filename) { if (_unlink_r (ptr, filename) == -1) diff --git a/newlib/libc/stdio/rename.c b/newlib/libc/stdio/rename.c index 1b807f8b2..a2b0d4188 100644 --- a/newlib/libc/stdio/rename.c +++ b/newlib/libc/stdio/rename.c @@ -55,7 +55,7 @@ Supporting OS subroutines required: <<link>>, <<unlink>>, or <<rename>>. int _DEFUN(rename, (old, new), - _CONST char *old _AND + _CONST char *old, _CONST char *new) { return _rename_r (_REENT, old, new); diff --git a/newlib/libc/stdio/rewind.c b/newlib/libc/stdio/rewind.c index 417a5963d..873083b85 100644 --- a/newlib/libc/stdio/rewind.c +++ b/newlib/libc/stdio/rewind.c @@ -53,7 +53,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; _VOID _DEFUN(_rewind_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, register FILE * fp) { _CAST_VOID _fseek_r (ptr, fp, 0L, SEEK_SET); diff --git a/newlib/libc/stdio/rget.c b/newlib/libc/stdio/rget.c index 9474bd9f6..d76f307d7 100644 --- a/newlib/libc/stdio/rget.c +++ b/newlib/libc/stdio/rget.c @@ -33,7 +33,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(__srget_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE *fp) { /* Ensure that any fake std stream is resolved before diff --git a/newlib/libc/stdio/sccl.c b/newlib/libc/stdio/sccl.c index b01801145..d0bdfd936 100644 --- a/newlib/libc/stdio/sccl.c +++ b/newlib/libc/stdio/sccl.c @@ -32,7 +32,7 @@ u_char * _DEFUN(__sccl, (tab, fmt), - register char *tab _AND + register char *tab, register u_char *fmt) { register int c, n, v; diff --git a/newlib/libc/stdio/setbuf.c b/newlib/libc/stdio/setbuf.c index 29f5377a7..a7df3a1f4 100644 --- a/newlib/libc/stdio/setbuf.c +++ b/newlib/libc/stdio/setbuf.c @@ -66,7 +66,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, _VOID _DEFUN(setbuf, (fp, buf), - FILE *__restrict fp _AND + FILE *__restrict fp, char *__restrict buf) { _CAST_VOID setvbuf (fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ); diff --git a/newlib/libc/stdio/setbuffer.c b/newlib/libc/stdio/setbuffer.c index 880779d13..cbcbde3db 100644 --- a/newlib/libc/stdio/setbuffer.c +++ b/newlib/libc/stdio/setbuffer.c @@ -66,8 +66,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, _VOID _DEFUN(setbuffer, (fp, buf, size), - FILE * fp _AND - char *buf _AND + FILE * fp, + char *buf, int size) { _CAST_VOID setvbuf (fp, buf, buf ? _IOFBF : _IONBF, (size_t) size); diff --git a/newlib/libc/stdio/setvbuf.c b/newlib/libc/stdio/setvbuf.c index 6fa0252b0..684a8b582 100644 --- a/newlib/libc/stdio/setvbuf.c +++ b/newlib/libc/stdio/setvbuf.c @@ -89,9 +89,9 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(setvbuf, (fp, buf, mode, size), - register FILE * fp _AND - char *buf _AND - register int mode _AND + register FILE * fp, + char *buf, + register int mode, register size_t size) { int ret = 0; diff --git a/newlib/libc/stdio/siprintf.c b/newlib/libc/stdio/siprintf.c index d9559c359..861fc8d67 100644 --- a/newlib/libc/stdio/siprintf.c +++ b/newlib/libc/stdio/siprintf.c @@ -105,8 +105,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int #ifdef _HAVE_STDC _DEFUN(_siprintf_r, (ptr, str, fmt), - struct _reent *ptr _AND - char *str _AND + struct _reent *ptr, + char *str, _CONST char *fmt _DOTS) #else _siprintf_r(ptr, str, fmt, va_alist) @@ -140,7 +140,7 @@ _siprintf_r(ptr, str, fmt, va_alist) int #ifdef _HAVE_STDC _DEFUN(siprintf, (str, fmt), - char *str _AND + char *str, _CONST char *fmt _DOTS) #else siprintf(str, fmt, va_alist) diff --git a/newlib/libc/stdio/siscanf.c b/newlib/libc/stdio/siscanf.c index c89eb7c8d..81d60d0ba 100644 --- a/newlib/libc/stdio/siscanf.c +++ b/newlib/libc/stdio/siscanf.c @@ -88,7 +88,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, #ifdef _HAVE_STDC int _DEFUN(siscanf, (str, fmt), - _CONST char *str _AND + _CONST char *str, _CONST char *fmt _DOTS) #else int @@ -124,8 +124,8 @@ siscanf(str, fmt, va_alist) #ifdef _HAVE_STDC int _DEFUN(_siscanf_r, (ptr, str, fmt), - struct _reent *ptr _AND - _CONST char *str _AND + struct _reent *ptr, + _CONST char *str, _CONST char *fmt _DOTS) #else int diff --git a/newlib/libc/stdio/sniprintf.c b/newlib/libc/stdio/sniprintf.c index 98a2c2509..65e5b067f 100644 --- a/newlib/libc/stdio/sniprintf.c +++ b/newlib/libc/stdio/sniprintf.c @@ -33,9 +33,9 @@ int #ifdef _HAVE_STDC _DEFUN (_sniprintf_r, (ptr, str, size, fmt), - struct _reent *ptr _AND - char *str _AND - size_t size _AND + struct _reent *ptr, + char *str, + size_t size, _CONST char *fmt _DOTS) #else _sniprintf_r (ptr, str, size, fmt, va_alist) @@ -78,8 +78,8 @@ _sniprintf_r (ptr, str, size, fmt, va_alist) int #ifdef _HAVE_STDC _DEFUN (sniprintf, (str, size, fmt), - char *str _AND - size_t size _AND + char *str, + size_t size, _CONST char *fmt _DOTS) #else sniprintf (str, size, fmt, va_alist) diff --git a/newlib/libc/stdio/snprintf.c b/newlib/libc/stdio/snprintf.c index d2408b2f0..2066a56ba 100644 --- a/newlib/libc/stdio/snprintf.c +++ b/newlib/libc/stdio/snprintf.c @@ -32,9 +32,9 @@ int #ifdef _HAVE_STDC _DEFUN(_snprintf_r, (ptr, str, size, fmt), - struct _reent *ptr _AND - char *__restrict str _AND - size_t size _AND + struct _reent *ptr, + char *__restrict str, + size_t size, _CONST char *__restrict fmt _DOTS) #else _snprintf_r(ptr, str, size, fmt, va_alist) @@ -83,8 +83,8 @@ _EXFUN(_sniprintf_r, (struct _reent *, char *, size_t, const char *, ...) int #ifdef _HAVE_STDC _DEFUN(snprintf, (str, size, fmt), - char *__restrict str _AND - size_t size _AND + char *__restrict str, + size_t size, _CONST char *__restrict fmt _DOTS) #else snprintf(str, size, fmt, va_alist) diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c index 7fc9e6821..7ed0a0fd4 100644 --- a/newlib/libc/stdio/sprintf.c +++ b/newlib/libc/stdio/sprintf.c @@ -581,8 +581,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int #ifdef _HAVE_STDC _DEFUN(_sprintf_r, (ptr, str, fmt), - struct _reent *ptr _AND - char *__restrict str _AND + struct _reent *ptr, + char *__restrict str, _CONST char *__restrict fmt _DOTS) #else _sprintf_r(ptr, str, fmt, va_alist) @@ -622,7 +622,7 @@ _EXFUN(_siprintf_r, (struct _reent *, char *, const char *, ...) int #ifdef _HAVE_STDC _DEFUN(sprintf, (str, fmt), - char *__restrict str _AND + char *__restrict str, _CONST char *__restrict fmt _DOTS) #else sprintf(str, fmt, va_alist) diff --git a/newlib/libc/stdio/sscanf.c b/newlib/libc/stdio/sscanf.c index d2d9dfe8b..bfec067e9 100644 --- a/newlib/libc/stdio/sscanf.c +++ b/newlib/libc/stdio/sscanf.c @@ -427,7 +427,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, #ifdef _HAVE_STDC int _DEFUN(sscanf, (str, fmt), - _CONST char *__restrict str _AND + _CONST char *__restrict str, _CONST char * fmt _DOTS) #else int @@ -469,8 +469,8 @@ _EXFUN(siscanf, (const char *, const char *, ...) #ifdef _HAVE_STDC int _DEFUN(_sscanf_r, (ptr, str, fmt), - struct _reent *ptr _AND - _CONST char *__restrict str _AND + struct _reent *ptr, + _CONST char *__restrict str, _CONST char *__restrict fmt _DOTS) #else int diff --git a/newlib/libc/stdio/stdio.c b/newlib/libc/stdio/stdio.c index a6e28f5a9..e64c061dd 100644 --- a/newlib/libc/stdio/stdio.c +++ b/newlib/libc/stdio/stdio.c @@ -31,9 +31,9 @@ _READ_WRITE_RETURN_TYPE _DEFUN(__sread, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - char *buf _AND + struct _reent *ptr, + void *cookie, + char *buf, _READ_WRITE_BUFSIZE_TYPE n) { register FILE *fp = (FILE *) cookie; @@ -64,9 +64,9 @@ _DEFUN(__sread, (ptr, cookie, buf, n), /* Dummy function used in sscanf/swscanf. */ _READ_WRITE_RETURN_TYPE _DEFUN(__seofread, (ptr, cookie, buf, len), - struct _reent *_ptr _AND - _PTR cookie _AND - char *buf _AND + struct _reent *_ptr, + _PTR cookie, + char *buf, _READ_WRITE_BUFSIZE_TYPE len) { return 0; @@ -74,9 +74,9 @@ _DEFUN(__seofread, (ptr, cookie, buf, len), _READ_WRITE_RETURN_TYPE _DEFUN(__swrite, (ptr, cookie, buf, n), - struct _reent *ptr _AND - void *cookie _AND - char const *buf _AND + struct _reent *ptr, + void *cookie, + char const *buf, _READ_WRITE_BUFSIZE_TYPE n) { register FILE *fp = (FILE *) cookie; @@ -106,9 +106,9 @@ _DEFUN(__swrite, (ptr, cookie, buf, n), _fpos_t _DEFUN(__sseek, (ptr, cookie, offset, whence), - struct _reent *ptr _AND - void *cookie _AND - _fpos_t offset _AND + struct _reent *ptr, + void *cookie, + _fpos_t offset, int whence) { register FILE *fp = (FILE *) cookie; @@ -127,7 +127,7 @@ _DEFUN(__sseek, (ptr, cookie, offset, whence), int _DEFUN(__sclose, (ptr, cookie), - struct _reent *ptr _AND + struct _reent *ptr, void *cookie) { FILE *fp = (FILE *) cookie; diff --git a/newlib/libc/stdio/swprintf.c b/newlib/libc/stdio/swprintf.c index fe106f036..0ddc492ee 100644 --- a/newlib/libc/stdio/swprintf.c +++ b/newlib/libc/stdio/swprintf.c @@ -554,9 +554,9 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(_swprintf_r, (ptr, str, size, fmt), - struct _reent *ptr _AND - wchar_t *str _AND - size_t size _AND + struct _reent *ptr, + wchar_t *str, + size_t size, _CONST wchar_t *fmt _DOTS) { int ret; @@ -595,8 +595,8 @@ _DEFUN(_swprintf_r, (ptr, str, size, fmt), int _DEFUN(swprintf, (str, size, fmt), - wchar_t *__restrict str _AND - size_t size _AND + wchar_t *__restrict str, + size_t size, _CONST wchar_t *__restrict fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/tmpnam.c b/newlib/libc/stdio/tmpnam.c index 765d27afd..fbd60fc7c 100644 --- a/newlib/libc/stdio/tmpnam.c +++ b/newlib/libc/stdio/tmpnam.c @@ -87,11 +87,11 @@ The global pointer <<environ>> is also required. static int _DEFUN(worker, (ptr, result, part1, part2, part3, part4), - struct _reent *ptr _AND - char *result _AND - _CONST char *part1 _AND - _CONST char *part2 _AND - int part3 _AND + struct _reent *ptr, + char *result, + _CONST char *part1, + _CONST char *part2, + int part3, int *part4) { /* Generate the filename and make sure that there isn't one called @@ -119,7 +119,7 @@ _DEFUN(worker, (ptr, result, part1, part2, part3, part4), char * _DEFUN(_tmpnam_r, (p, s), - struct _reent *p _AND + struct _reent *p, char *s) { char *result; @@ -148,8 +148,8 @@ _DEFUN(_tmpnam_r, (p, s), char * _DEFUN(_tempnam_r, (p, dir, pfx), - struct _reent *p _AND - _CONST char *dir _AND + struct _reent *p, + _CONST char *dir, _CONST char *pfx) { char *filename; @@ -175,7 +175,7 @@ _DEFUN(_tempnam_r, (p, dir, pfx), char * _DEFUN(tempnam, (dir, pfx), - _CONST char *dir _AND + _CONST char *dir, _CONST char *pfx) { return _tempnam_r (_REENT, dir, pfx); diff --git a/newlib/libc/stdio/ungetc.c b/newlib/libc/stdio/ungetc.c index da4b19d3c..98590478b 100644 --- a/newlib/libc/stdio/ungetc.c +++ b/newlib/libc/stdio/ungetc.c @@ -78,7 +78,7 @@ static char sccsid[] = "%W% (Berkeley) %G%"; /*static*/ int _DEFUN(__submore, (rptr, fp), - struct _reent *rptr _AND + struct _reent *rptr, register FILE *fp) { register int i; @@ -112,8 +112,8 @@ _DEFUN(__submore, (rptr, fp), int _DEFUN(_ungetc_r, (rptr, c, fp), - struct _reent *rptr _AND - int c _AND + struct _reent *rptr, + int c, register FILE *fp) { if (c == EOF) @@ -209,7 +209,7 @@ _DEFUN(_ungetc_r, (rptr, c, fp), #ifndef _REENT_ONLY int _DEFUN(ungetc, (c, fp), - int c _AND + int c, register FILE *fp) { return _ungetc_r (_REENT, c, fp); diff --git a/newlib/libc/stdio/ungetwc.c b/newlib/libc/stdio/ungetwc.c index 000d4bdbb..60f3e5b49 100644 --- a/newlib/libc/stdio/ungetwc.c +++ b/newlib/libc/stdio/ungetwc.c @@ -75,8 +75,8 @@ C99 wint_t _DEFUN(_ungetwc_r, (ptr, wc, fp), - struct _reent *ptr _AND - wint_t wc _AND + struct _reent *ptr, + wint_t wc, register FILE *fp) { char buf[MB_LEN_MAX]; @@ -107,7 +107,7 @@ _DEFUN(_ungetwc_r, (ptr, wc, fp), */ wint_t _DEFUN(ungetwc, (wint_t wc, FILE *fp), - wint_t wc _AND + wint_t wc, FILE *fp) { struct _reent *reent = _REENT; diff --git a/newlib/libc/stdio/vasiprintf.c b/newlib/libc/stdio/vasiprintf.c index f96de0d79..259d44b0e 100644 --- a/newlib/libc/stdio/vasiprintf.c +++ b/newlib/libc/stdio/vasiprintf.c @@ -32,8 +32,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(vasiprintf, (strp, fmt, ap), - char **strp _AND - const char *fmt _AND + char **strp, + const char *fmt, va_list ap) { return _vasiprintf_r (_REENT, strp, fmt, ap); @@ -43,9 +43,9 @@ _DEFUN(vasiprintf, (strp, fmt, ap), int _DEFUN(_vasiprintf_r, (ptr, strp, fmt, ap), - struct _reent *ptr _AND - char **strp _AND - const char *fmt _AND + struct _reent *ptr, + char **strp, + const char *fmt, va_list ap) { int ret; diff --git a/newlib/libc/stdio/vasniprintf.c b/newlib/libc/stdio/vasniprintf.c index 56db45ec0..9bbe30c59 100644 --- a/newlib/libc/stdio/vasniprintf.c +++ b/newlib/libc/stdio/vasniprintf.c @@ -15,10 +15,10 @@ char * _DEFUN(_vasniprintf_r, (ptr, buf, lenp, fmt, ap), - struct _reent *ptr _AND - char *buf _AND - size_t *lenp _AND - const char *fmt _AND + struct _reent *ptr, + char *buf, + size_t *lenp, + const char *fmt, va_list ap) { int ret; @@ -60,9 +60,9 @@ _DEFUN(_vasniprintf_r, (ptr, buf, lenp, fmt, ap), char * _DEFUN(vasniprintf, (buf, lenp, fmt, ap), - char *buf _AND - size_t *lenp _AND - const char *fmt _AND + char *buf, + size_t *lenp, + const char *fmt, va_list ap) { return _vasniprintf_r (_REENT, buf, lenp, fmt, ap); diff --git a/newlib/libc/stdio/vasnprintf.c b/newlib/libc/stdio/vasnprintf.c index 4cb43ce7a..6edb47398 100644 --- a/newlib/libc/stdio/vasnprintf.c +++ b/newlib/libc/stdio/vasnprintf.c @@ -15,10 +15,10 @@ char * _DEFUN(_vasnprintf_r, (ptr, buf, lenp, fmt, ap), - struct _reent *ptr _AND - char *buf _AND - size_t *lenp _AND - const char *fmt _AND + struct _reent *ptr, + char *buf, + size_t *lenp, + const char *fmt, va_list ap) { int ret; @@ -67,9 +67,9 @@ _EXFUN(_vasniprintf_r, (struct _reent*, char *, size_t *, char * _DEFUN(vasnprintf, (buf, lenp, fmt, ap), - char *buf _AND - size_t *lenp _AND - const char *fmt _AND + char *buf, + size_t *lenp, + const char *fmt, va_list ap) { return _vasnprintf_r (_REENT, buf, lenp, fmt, ap); diff --git a/newlib/libc/stdio/vasprintf.c b/newlib/libc/stdio/vasprintf.c index 5ba817d7b..c0961de01 100644 --- a/newlib/libc/stdio/vasprintf.c +++ b/newlib/libc/stdio/vasprintf.c @@ -32,8 +32,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(vasprintf, (strp, fmt, ap), - char **strp _AND - const char *fmt _AND + char **strp, + const char *fmt, va_list ap) { return _vasprintf_r (_REENT, strp, fmt, ap); @@ -49,9 +49,9 @@ _EXFUN(vasiprintf, (char **, const char *, __VALIST) int _DEFUN(_vasprintf_r, (ptr, strp, fmt, ap), - struct _reent *ptr _AND - char **strp _AND - const char *fmt _AND + struct _reent *ptr, + char **strp, + const char *fmt, va_list ap) { int ret; diff --git a/newlib/libc/stdio/vdiprintf.c b/newlib/libc/stdio/vdiprintf.c index 51bdb000e..73a3b19d1 100644 --- a/newlib/libc/stdio/vdiprintf.c +++ b/newlib/libc/stdio/vdiprintf.c @@ -14,9 +14,9 @@ int _DEFUN(_vdiprintf_r, (ptr, fd, format, ap), - struct _reent *ptr _AND - int fd _AND - const char *format _AND + struct _reent *ptr, + int fd, + const char *format, va_list ap) { char *p; @@ -37,8 +37,8 @@ _DEFUN(_vdiprintf_r, (ptr, fd, format, ap), int _DEFUN(vdiprintf, (fd, format, ap), - int fd _AND - const char *format _AND + int fd, + const char *format, va_list ap) { return _vdiprintf_r (_REENT, fd, format, ap); diff --git a/newlib/libc/stdio/vdprintf.c b/newlib/libc/stdio/vdprintf.c index c295a3959..1b50e8833 100644 --- a/newlib/libc/stdio/vdprintf.c +++ b/newlib/libc/stdio/vdprintf.c @@ -14,9 +14,9 @@ int _DEFUN(_vdprintf_r, (ptr, fd, format, ap), - struct _reent *ptr _AND - int fd _AND - const char *__restrict format _AND + struct _reent *ptr, + int fd, + const char *__restrict format, va_list ap) { char *p; @@ -43,8 +43,8 @@ _EXFUN(_vdiprintf_r, (struct _reent *, int, const char *, __VALIST) int _DEFUN(vdprintf, (fd, format, ap), - int fd _AND - const char *__restrict format _AND + int fd, + const char *__restrict format, va_list ap) { return _vdprintf_r (_REENT, fd, format, ap); diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index 211cb17bb..904dfa79e 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -199,9 +199,9 @@ static char *rcsid = "$Id$"; #ifndef _FVWRITE_IN_STREAMIO int _DEFUN(__ssputs_r, (ptr, fp, buf, len), - struct _reent *ptr _AND - FILE *fp _AND - _CONST char *buf _AND + struct _reent *ptr, + FILE *fp, + _CONST char *buf, size_t len) { register int w; @@ -268,8 +268,8 @@ err: int _DEFUN(__ssprint_r, (ptr, fp, uio), - struct _reent *ptr _AND - FILE *fp _AND + struct _reent *ptr, + FILE *fp, register struct __suio *uio) { register size_t len; @@ -370,9 +370,9 @@ int __ssprint_r (struct _reent *, FILE *, register struct __suio *); #ifndef _FVWRITE_IN_STREAMIO int _DEFUN(__sfputs_r, (ptr, fp, buf, len), - struct _reent *ptr _AND - FILE *fp _AND - _CONST char *buf _AND + struct _reent *ptr, + FILE *fp, + _CONST char *buf, size_t len) { register int i; @@ -404,8 +404,8 @@ _DEFUN(__sfputs_r, (ptr, fp, buf, len), */ int _DEFUN(__sprint_r, (ptr, fp, uio), - struct _reent *ptr _AND - FILE *fp _AND + struct _reent *ptr, + FILE *fp, register struct __suio *uio) { register int err = 0; @@ -457,9 +457,9 @@ int __sprint_r (struct _reent *, FILE *, register struct __suio *); */ _NOINLINE_STATIC int _DEFUN(__sbprintf, (rptr, fp, fmt, ap), - struct _reent *rptr _AND - register FILE *fp _AND - _CONST char *fmt _AND + struct _reent *rptr, + register FILE *fp, + _CONST char *fmt, va_list ap) { int ret; @@ -649,8 +649,8 @@ int _EXFUN(_VFPRINTF_R, (struct _reent *, FILE *, _CONST char *, va_list)); #ifndef STRING_ONLY int _DEFUN(VFPRINTF, (fp, fmt0, ap), - FILE * fp _AND - _CONST char *fmt0 _AND + FILE * fp, + _CONST char *fmt0, va_list ap) { int result; @@ -661,9 +661,9 @@ _DEFUN(VFPRINTF, (fp, fmt0, ap), int _DEFUN(_VFPRINTF_R, (data, fp, fmt0, ap), - struct _reent *data _AND - FILE * fp _AND - _CONST char *fmt0 _AND + struct _reent *data, + FILE * fp, + _CONST char *fmt0, va_list ap) { register char *fmt; /* format string */ @@ -2044,13 +2044,13 @@ _CONST __ACTION __action_table[MAX_STATE][MAX_CH_CLASS] = { /* function to get positional parameter N where n = N - 1 */ static union arg_val * _DEFUN(get_arg, (data, n, fmt, ap, numargs_p, args, arg_type, last_fmt), - struct _reent *data _AND - int n _AND - char *fmt _AND - va_list *ap _AND - int *numargs_p _AND - union arg_val *args _AND - int *arg_type _AND + struct _reent *data, + int n, + char *fmt, + va_list *ap, + int *numargs_p, + union arg_val *args, + int *arg_type, char **last_fmt) { int ch; diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c index b1453452c..3f67b2304 100644 --- a/newlib/libc/stdio/vfscanf.c +++ b/newlib/libc/stdio/vfscanf.c @@ -225,8 +225,8 @@ typedef unsigned long long u_long_long; int _DEFUN(VFSCANF, (fp, fmt, ap), - register FILE *fp _AND - _CONST char *fmt _AND + register FILE *fp, + _CONST char *fmt, va_list ap) { struct _reent *reent = _REENT; @@ -237,8 +237,8 @@ _DEFUN(VFSCANF, (fp, fmt, ap), int _DEFUN(__SVFSCANF, (fp, fmt0, ap), - register FILE *fp _AND - char _CONST *fmt0 _AND + register FILE *fp, + char _CONST *fmt0, va_list ap) { return __SVFSCANF_R (_REENT, fp, fmt0, ap); @@ -248,9 +248,9 @@ _DEFUN(__SVFSCANF, (fp, fmt0, ap), int _DEFUN(_VFSCANF_R, (data, fp, fmt, ap), - struct _reent *data _AND - register FILE *fp _AND - _CONST char *fmt _AND + struct _reent *data, + register FILE *fp, + _CONST char *fmt, va_list ap) { CHECK_INIT(data, fp); @@ -264,8 +264,8 @@ _DEFUN(_VFSCANF_R, (data, fp, fmt, ap), * So, we create our own trimmed-down version. */ int _DEFUN(_sungetc_r, (data, fp, ch), - struct _reent *data _AND - int c _AND + struct _reent *data, + int c, register FILE *fp) { if (c == EOF) @@ -322,7 +322,7 @@ _DEFUN(_sungetc_r, (data, fp, ch), /* String only version of __srefill_r for sscanf family. */ int _DEFUN(__ssrefill_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, register FILE * fp) { /* @@ -348,10 +348,10 @@ _DEFUN(__ssrefill_r, (ptr, fp), size_t _DEFUN(_sfread_r, (ptr, buf, size, count, fp), - struct _reent * ptr _AND - _PTR buf _AND - size_t size _AND - size_t count _AND + struct _reent * ptr, + _PTR buf, + size_t size, + size_t count, FILE * fp) { register size_t resid; @@ -403,9 +403,9 @@ __wctob (struct _reent *rptr, wint_t wc) int _DEFUN(__SVFSCANF_R, (rptr, fp, fmt0, ap), - struct _reent *rptr _AND - register FILE *fp _AND - char _CONST *fmt0 _AND + struct _reent *rptr, + register FILE *fp, + char _CONST *fmt0, va_list ap) { register u_char *fmt = (u_char *) fmt0; diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c index 9c421d267..7339ffe53 100644 --- a/newlib/libc/stdio/vfwprintf.c +++ b/newlib/libc/stdio/vfwprintf.c @@ -175,9 +175,9 @@ int _EXFUN(__SPRINT, (struct _reent *, FILE *, _CONST char *, size_t)); */ static int _DEFUN(__sbwprintf, (rptr, fp, fmt, ap), - struct _reent *rptr _AND - register FILE *fp _AND - _CONST wchar_t *fmt _AND + struct _reent *rptr, + register FILE *fp, + _CONST wchar_t *fmt, va_list ap) { int ret; @@ -367,8 +367,8 @@ _EXFUN(get_arg, (struct _reent *data, int n, wchar_t *fmt, #ifndef STRING_ONLY int _DEFUN(VFWPRINTF, (fp, fmt0, ap), - FILE *__restrict fp _AND - _CONST wchar_t *__restrict fmt0 _AND + FILE *__restrict fp, + _CONST wchar_t *__restrict fmt0, va_list ap) { int result; @@ -379,9 +379,9 @@ _DEFUN(VFWPRINTF, (fp, fmt0, ap), int _DEFUN(_VFWPRINTF_R, (data, fp, fmt0, ap), - struct _reent *data _AND - FILE * fp _AND - _CONST wchar_t *fmt0 _AND + struct _reent *data, + FILE * fp, + _CONST wchar_t *fmt0, va_list ap) { register wchar_t *fmt; /* format string */ @@ -1735,13 +1735,13 @@ wexponent(wchar_t *p0, int exp, int fmtch) /* function to get positional parameter N where n = N - 1 */ static union arg_val * _DEFUN(get_arg, (data, n, fmt, ap, numargs_p, args, arg_type, last_fmt), - struct _reent *data _AND - int n _AND - wchar_t *fmt _AND - va_list *ap _AND - int *numargs_p _AND - union arg_val *args _AND - int *arg_type _AND + struct _reent *data, + int n, + wchar_t *fmt, + va_list *ap, + int *numargs_p, + union arg_val *args, + int *arg_type, wchar_t **last_fmt) { wchar_t ch; diff --git a/newlib/libc/stdio/vfwscanf.c b/newlib/libc/stdio/vfwscanf.c index a286464e6..715f231e3 100644 --- a/newlib/libc/stdio/vfwscanf.c +++ b/newlib/libc/stdio/vfwscanf.c @@ -227,8 +227,8 @@ static void * get_arg (int, va_list *, int *, void **); int _DEFUN(VFWSCANF, (fp, fmt, ap), - register FILE *__restrict fp _AND - _CONST wchar_t *__restrict fmt _AND + register FILE *__restrict fp, + _CONST wchar_t *__restrict fmt, va_list ap) { struct _reent *reent = _REENT; @@ -239,8 +239,8 @@ _DEFUN(VFWSCANF, (fp, fmt, ap), int _DEFUN(__SVFWSCANF, (fp, fmt0, ap), - register FILE *fp _AND - wchar_t _CONST *fmt0 _AND + register FILE *fp, + wchar_t _CONST *fmt0, va_list ap) { return __SVFWSCANF_R (_REENT, fp, fmt0, ap); @@ -250,9 +250,9 @@ _DEFUN(__SVFWSCANF, (fp, fmt0, ap), int _DEFUN(_VFWSCANF_R, (data, fp, fmt, ap), - struct _reent *data _AND - register FILE *fp _AND - _CONST wchar_t *fmt _AND + struct _reent *data, + register FILE *fp, + _CONST wchar_t *fmt, va_list ap) { CHECK_INIT(data, fp); @@ -266,8 +266,8 @@ _DEFUN(_VFWSCANF_R, (data, fp, fmt, ap), * So, we create our own trimmed-down version. */ static wint_t _DEFUN(_sungetwc_r, (data, fp, ch), - struct _reent *data _AND - wint_t wc _AND + struct _reent *data, + wint_t wc, register FILE *fp) { if (wc == WEOF) @@ -326,7 +326,7 @@ extern int __ssrefill_r _PARAMS ((struct _reent *ptr, register FILE * fp)); static size_t _DEFUN(_sfgetwc_r, (ptr, fp), - struct _reent * ptr _AND + struct _reent * ptr, FILE * fp) { wchar_t wc; @@ -342,9 +342,9 @@ _DEFUN(_sfgetwc_r, (ptr, fp), int _DEFUN(__SVFWSCANF_R, (rptr, fp, fmt0, ap), - struct _reent *rptr _AND - register FILE *fp _AND - wchar_t _CONST *fmt0 _AND + struct _reent *rptr, + register FILE *fp, + wchar_t _CONST *fmt0, va_list ap) { register wchar_t *fmt = (wchar_t *) fmt0; diff --git a/newlib/libc/stdio/viprintf.c b/newlib/libc/stdio/viprintf.c index 85ae286bb..ef2a04e2f 100644 --- a/newlib/libc/stdio/viprintf.c +++ b/newlib/libc/stdio/viprintf.c @@ -106,7 +106,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, int _DEFUN(viprintf, (fmt, ap), - _CONST char *fmt _AND + _CONST char *fmt, va_list ap) { struct _reent *reent = _REENT; @@ -119,8 +119,8 @@ _DEFUN(viprintf, (fmt, ap), int _DEFUN(_viprintf_r, (ptr, fmt, ap), - struct _reent *ptr _AND - _CONST char *fmt _AND + struct _reent *ptr, + _CONST char *fmt, va_list ap) { _REENT_SMALL_CHECK_INIT (ptr); diff --git a/newlib/libc/stdio/viscanf.c b/newlib/libc/stdio/viscanf.c index 379daa232..569fad91c 100644 --- a/newlib/libc/stdio/viscanf.c +++ b/newlib/libc/stdio/viscanf.c @@ -90,7 +90,7 @@ Supporting OS subroutines required: int _DEFUN(viscanf, (fmt, ap), - _CONST char *fmt _AND + _CONST char *fmt, va_list ap) { struct _reent *reent = _REENT; @@ -103,8 +103,8 @@ _DEFUN(viscanf, (fmt, ap), int _DEFUN(_viscanf_r, (ptr, fmt, ap), - struct _reent *ptr _AND - _CONST char *fmt _AND + struct _reent *ptr, + _CONST char *fmt, va_list ap) { _REENT_SMALL_CHECK_INIT (ptr); diff --git a/newlib/libc/stdio/vprintf.c b/newlib/libc/stdio/vprintf.c index 00b8023b7..26671f70c 100644 --- a/newlib/libc/stdio/vprintf.c +++ b/newlib/libc/stdio/vprintf.c @@ -30,7 +30,7 @@ int _DEFUN(vprintf, (fmt, ap), - _CONST char *fmt _AND + _CONST char *fmt, va_list ap) { struct _reent *reent = _REENT; @@ -48,8 +48,8 @@ _EXFUN(viprintf, (const char *, __VALIST) _ATTRIBUTE ((__alias__("vprintf")))); int _DEFUN(_vprintf_r, (ptr, fmt, ap), - struct _reent *ptr _AND - _CONST char *__restrict fmt _AND + struct _reent *ptr, + _CONST char *__restrict fmt, va_list ap) { _REENT_SMALL_CHECK_INIT (ptr); diff --git a/newlib/libc/stdio/vscanf.c b/newlib/libc/stdio/vscanf.c index 4371e23a7..2506919c4 100644 --- a/newlib/libc/stdio/vscanf.c +++ b/newlib/libc/stdio/vscanf.c @@ -31,7 +31,7 @@ int _DEFUN(vscanf, (fmt, ap), - _CONST char *fmt _AND + _CONST char *fmt, va_list ap) { struct _reent *reent = _REENT; @@ -49,8 +49,8 @@ _EXFUN(viscanf, (const char *, __VALIST) _ATTRIBUTE ((__alias__("vscanf")))); int _DEFUN(_vscanf_r, (ptr, fmt, ap), - struct _reent *ptr _AND - _CONST char *__restrict fmt _AND + struct _reent *ptr, + _CONST char *__restrict fmt, va_list ap) { _REENT_SMALL_CHECK_INIT (ptr); diff --git a/newlib/libc/stdio/vsiprintf.c b/newlib/libc/stdio/vsiprintf.c index 150b4e7d0..ff83b7856 100644 --- a/newlib/libc/stdio/vsiprintf.c +++ b/newlib/libc/stdio/vsiprintf.c @@ -32,8 +32,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(vsiprintf, (str, fmt, ap), - char *str _AND - const char *fmt _AND + char *str, + const char *fmt, va_list ap) { return _vsiprintf_r (_REENT, str, fmt, ap); @@ -43,9 +43,9 @@ _DEFUN(vsiprintf, (str, fmt, ap), int _DEFUN(_vsiprintf_r, (ptr, str, fmt, ap), - struct _reent *ptr _AND - char *str _AND - const char *fmt _AND + struct _reent *ptr, + char *str, + const char *fmt, va_list ap) { int ret; diff --git a/newlib/libc/stdio/vsiscanf.c b/newlib/libc/stdio/vsiscanf.c index 01295995e..cf5120fa3 100644 --- a/newlib/libc/stdio/vsiscanf.c +++ b/newlib/libc/stdio/vsiscanf.c @@ -36,8 +36,8 @@ int _DEFUN(vsiscanf, (str, fmt, ap), - _CONST char *str _AND - _CONST char *fmt _AND + _CONST char *str, + _CONST char *fmt, va_list ap) { return _vsiscanf_r (_REENT, str, fmt, ap); @@ -47,9 +47,9 @@ _DEFUN(vsiscanf, (str, fmt, ap), int _DEFUN(_vsiscanf_r, (ptr, str, fmt, ap), - struct _reent *ptr _AND - _CONST char *str _AND - _CONST char *fmt _AND + struct _reent *ptr, + _CONST char *str, + _CONST char *fmt, va_list ap) { FILE f; diff --git a/newlib/libc/stdio/vsniprintf.c b/newlib/libc/stdio/vsniprintf.c index c4305c1a9..e60f779ca 100644 --- a/newlib/libc/stdio/vsniprintf.c +++ b/newlib/libc/stdio/vsniprintf.c @@ -33,9 +33,9 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(vsniprintf, (str, size, fmt, ap), - char *str _AND - size_t size _AND - const char *fmt _AND + char *str, + size_t size, + const char *fmt, va_list ap) { return _vsniprintf_r (_REENT, str, size, fmt, ap); @@ -45,10 +45,10 @@ _DEFUN(vsniprintf, (str, size, fmt, ap), int _DEFUN(_vsniprintf_r, (ptr, str, size, fmt, ap), - struct _reent *ptr _AND - char *str _AND - size_t size _AND - const char *fmt _AND + struct _reent *ptr, + char *str, + size_t size, + const char *fmt, va_list ap) { int ret; diff --git a/newlib/libc/stdio/vsnprintf.c b/newlib/libc/stdio/vsnprintf.c index e08f267bd..dda45256a 100644 --- a/newlib/libc/stdio/vsnprintf.c +++ b/newlib/libc/stdio/vsnprintf.c @@ -33,9 +33,9 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(vsnprintf, (str, size, fmt, ap), - char *__restrict str _AND - size_t size _AND - const char *__restrict fmt _AND + char *__restrict str, + size_t size, + const char *__restrict fmt, va_list ap) { return _vsnprintf_r (_REENT, str, size, fmt, ap); @@ -51,10 +51,10 @@ _EXFUN(vsniprintf, (char *, size_t, const char *, __VALIST) int _DEFUN(_vsnprintf_r, (ptr, str, size, fmt, ap), - struct _reent *ptr _AND - char *__restrict str _AND - size_t size _AND - const char *__restrict fmt _AND + struct _reent *ptr, + char *__restrict str, + size_t size, + const char *__restrict fmt, va_list ap) { int ret; diff --git a/newlib/libc/stdio/vsprintf.c b/newlib/libc/stdio/vsprintf.c index 742cde0df..4940b974e 100644 --- a/newlib/libc/stdio/vsprintf.c +++ b/newlib/libc/stdio/vsprintf.c @@ -32,8 +32,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(vsprintf, (str, fmt, ap), - char *__restrict str _AND - const char *__restrict fmt _AND + char *__restrict str, + const char *__restrict fmt, va_list ap) { return _vsprintf_r (_REENT, str, fmt, ap); @@ -49,9 +49,9 @@ _EXFUN(vsiprintf, (char *, const char *, __VALIST) int _DEFUN(_vsprintf_r, (ptr, str, fmt, ap), - struct _reent *ptr _AND - char *__restrict str _AND - const char *__restrict fmt _AND + struct _reent *ptr, + char *__restrict str, + const char *__restrict fmt, va_list ap) { int ret; diff --git a/newlib/libc/stdio/vsscanf.c b/newlib/libc/stdio/vsscanf.c index 1660fa1cf..706461d47 100644 --- a/newlib/libc/stdio/vsscanf.c +++ b/newlib/libc/stdio/vsscanf.c @@ -36,8 +36,8 @@ int _DEFUN(vsscanf, (str, fmt, ap), - _CONST char *__restrict str _AND - _CONST char *__restrict fmt _AND + _CONST char *__restrict str, + _CONST char *__restrict fmt, va_list ap) { return _vsscanf_r (_REENT, str, fmt, ap); @@ -53,9 +53,9 @@ _EXFUN(vsiscanf, (const char *, const char *, __VALIST) int _DEFUN(_vsscanf_r, (ptr, str, fmt, ap), - struct _reent *ptr _AND - _CONST char *__restrict str _AND - _CONST char *__restrict fmt _AND + struct _reent *ptr, + _CONST char *__restrict str, + _CONST char *__restrict fmt, va_list ap) { FILE f; diff --git a/newlib/libc/stdio/vswprintf.c b/newlib/libc/stdio/vswprintf.c index ac321b662..9c9127cd6 100644 --- a/newlib/libc/stdio/vswprintf.c +++ b/newlib/libc/stdio/vswprintf.c @@ -32,10 +32,10 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(_vswprintf_r, (ptr, str, size, fmt, ap), - struct _reent *ptr _AND - wchar_t *str _AND - size_t size _AND - const wchar_t *fmt _AND + struct _reent *ptr, + wchar_t *str, + size_t size, + const wchar_t *fmt, va_list ap) { int ret; @@ -71,9 +71,9 @@ _DEFUN(_vswprintf_r, (ptr, str, size, fmt, ap), int _DEFUN(vswprintf, (str, size, fmt, ap), - wchar_t *__restrict str _AND - size_t size _AND - const wchar_t *__restrict fmt _AND + wchar_t *__restrict str, + size_t size, + const wchar_t *__restrict fmt, va_list ap) { return _vswprintf_r (_REENT, str, size, fmt, ap); diff --git a/newlib/libc/stdio/vwprintf.c b/newlib/libc/stdio/vwprintf.c index 51d1df3a9..191fb70c9 100644 --- a/newlib/libc/stdio/vwprintf.c +++ b/newlib/libc/stdio/vwprintf.c @@ -27,7 +27,7 @@ int _DEFUN(vwprintf, (fmt, ap), - _CONST wchar_t *__restrict fmt _AND + _CONST wchar_t *__restrict fmt, va_list ap) { struct _reent *reent = _REENT; @@ -40,8 +40,8 @@ _DEFUN(vwprintf, (fmt, ap), int _DEFUN(_vwprintf_r, (ptr, fmt, ap), - struct _reent *ptr _AND - _CONST wchar_t *fmt _AND + struct _reent *ptr, + _CONST wchar_t *fmt, va_list ap) { _REENT_SMALL_CHECK_INIT (ptr); diff --git a/newlib/libc/stdio/wbuf.c b/newlib/libc/stdio/wbuf.c index f9197ea9e..13578ea33 100644 --- a/newlib/libc/stdio/wbuf.c +++ b/newlib/libc/stdio/wbuf.c @@ -34,8 +34,8 @@ static char sccsid[] = "%W% (Berkeley) %G%"; int _DEFUN(__swbuf_r, (ptr, c, fp), - struct _reent *ptr _AND - register int c _AND + struct _reent *ptr, + register int c, register FILE *fp) { register int n; @@ -89,7 +89,7 @@ _DEFUN(__swbuf_r, (ptr, c, fp), earlier dynamically built newlib libraries. */ int _DEFUN(__swbuf, (c, fp), - register int c _AND + register int c, register FILE *fp) { return __swbuf_r (_REENT, c, fp); diff --git a/newlib/libc/stdio/wprintf.c b/newlib/libc/stdio/wprintf.c index e05ba1013..99c5696df 100644 --- a/newlib/libc/stdio/wprintf.c +++ b/newlib/libc/stdio/wprintf.c @@ -25,7 +25,7 @@ int _DEFUN(_wprintf_r, (ptr, fmt), - struct _reent *ptr _AND + struct _reent *ptr, const wchar_t *fmt _DOTS) { int ret; diff --git a/newlib/libc/stdio/wsetup.c b/newlib/libc/stdio/wsetup.c index 08ae70f2c..72280d2df 100644 --- a/newlib/libc/stdio/wsetup.c +++ b/newlib/libc/stdio/wsetup.c @@ -31,7 +31,7 @@ int _DEFUN(__swsetup_r, (ptr, fp), - struct _reent *ptr _AND + struct _reent *ptr, register FILE * fp) { /* Make sure stdio is set up. */ |