From bfc27bae1acb55886146a7c67f85cf752b5d532c Mon Sep 17 00:00:00 2001 From: Thomas Fitzsimmons Date: Tue, 30 Apr 2002 18:23:40 +0000 Subject: * Various formatting and whitespace changes. --- newlib/libc/include/machine/ieeefp.h | 1 - newlib/libc/include/machine/setjmp.h | 1 - newlib/libc/stdio/fread.c | 28 ++++++++++++++-------------- newlib/libc/stdio/fvwrite.c | 22 +++++++++++----------- newlib/libc/stdio/mktemp.c | 2 +- newlib/libc/stdlib/getenv_r.c | 2 +- newlib/libc/stdlib/putenv_r.c | 2 +- newlib/libc/stdlib/stdlib.tex | 2 +- newlib/libc/stdlib/strtoll.c | 8 ++++---- newlib/libc/sys/arm/crt0.S | 2 +- newlib/libc/sys/linux/io.c | 1 - 11 files changed, 34 insertions(+), 37 deletions(-) (limited to 'newlib/libc') diff --git a/newlib/libc/include/machine/ieeefp.h b/newlib/libc/include/machine/ieeefp.h index 7502d3aed..3ada44bfd 100644 --- a/newlib/libc/include/machine/ieeefp.h +++ b/newlib/libc/include/machine/ieeefp.h @@ -193,7 +193,6 @@ #define __SMALL_BITFIELDS #endif - #ifndef __IEEE_BIG_ENDIAN #ifndef __IEEE_LITTLE_ENDIAN #error Endianess not declared!! diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h index e4c788b2f..6d3ebe7e6 100644 --- a/newlib/libc/include/machine/setjmp.h +++ b/newlib/libc/include/machine/setjmp.h @@ -145,7 +145,6 @@ typedef int jmp_buf[_JBLEN]; #define _JBTYPE double #endif - #ifdef __fr30__ #define _JBLEN 10 #endif diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c index c4c66b4d6..38f791b6d 100644 --- a/newlib/libc/stdio/fread.c +++ b/newlib/libc/stdio/fread.c @@ -62,10 +62,10 @@ Supporting OS subroutines required: <>, <>, <>, #ifdef __SCLE static size_t _DEFUN (crlf, (fp, buf, count, eof), - FILE * fp _AND - char * buf _AND - size_t count _AND - int eof) + FILE * fp _AND + char * buf _AND + size_t count _AND + int eof) { int newcount = 0, r; char *s, *d, *e; @@ -77,19 +77,19 @@ _DEFUN (crlf, (fp, buf, count, eof), for (s=d=buf; s_flags & __SCLE) + if (fp->_flags & __SCLE) return crlf(fp, buf, total-resid, 1) / size; #endif return (total - resid) / size; diff --git a/newlib/libc/stdio/fvwrite.c b/newlib/libc/stdio/fvwrite.c index 8e7d316fb..62d0ba072 100644 --- a/newlib/libc/stdio/fvwrite.c +++ b/newlib/libc/stdio/fvwrite.c @@ -67,17 +67,17 @@ __sfvwrite (fp, uio) if (fp->_flags & __SCLE) /* text mode */ { do - { - GETIOV (;); - while (len > 0) - { - if (putc(*p, fp) == EOF) - return EOF; - p++; - len--; - uio->uio_resid--; - } - } + { + GETIOV (;); + while (len > 0) + { + if (putc(*p, fp) == EOF) + return EOF; + p++; + len--; + uio->uio_resid--; + } + } while (uio->uio_resid > 0); return 0; } diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c index 86159089b..f3eaa09ce 100644 --- a/newlib/libc/stdio/mktemp.c +++ b/newlib/libc/stdio/mktemp.c @@ -1,6 +1,6 @@ /* This is file MKTEMP.C */ /* This file may have been modified by DJ Delorie (Jan 1991). If so, -** these modifications are Copyright (C) 1991 DJ Delorie +** these modifications are Copyright (C) 1991 DJ Delorie. */ /* diff --git a/newlib/libc/stdlib/getenv_r.c b/newlib/libc/stdlib/getenv_r.c index 2cc48cfd7..85d250b79 100644 --- a/newlib/libc/stdlib/getenv_r.c +++ b/newlib/libc/stdlib/getenv_r.c @@ -35,7 +35,7 @@ variables vary from one system to another. */ /* This file may have been modified by DJ Delorie (Jan 1991). If so, -** these modifications are Copyright (C) 1991 DJ Delorie +** these modifications are Copyright (C) 1991 DJ Delorie. */ /* diff --git a/newlib/libc/stdlib/putenv_r.c b/newlib/libc/stdlib/putenv_r.c index 7c2686f92..a03f3b007 100644 --- a/newlib/libc/stdlib/putenv_r.c +++ b/newlib/libc/stdlib/putenv_r.c @@ -1,5 +1,5 @@ /* This file may have been modified by DJ Delorie (Jan 1991). If so, -** these modifications are Copyright (C) 1991 DJ Delorie +** these modifications are Copyright (C) 1991 DJ Delorie. */ /*- diff --git a/newlib/libc/stdlib/stdlib.tex b/newlib/libc/stdlib/stdlib.tex index fc1643603..7baddc330 100644 --- a/newlib/libc/stdlib/stdlib.tex +++ b/newlib/libc/stdlib/stdlib.tex @@ -30,7 +30,7 @@ The corresponding declarations are in the header file @file{stdlib.h}. * mbtowc:: Minimal multibyte to wide character converter * qsort:: Sort an array * rand:: Pseudo-random numbers -* rand48:: Uniformaly distributed pseudo-random numbers +* rand48:: Uniformly distributed pseudo-random numbers * strtod:: String to double or float * strtol:: String to long * strtoul:: String to unsigned long diff --git a/newlib/libc/stdlib/strtoll.c b/newlib/libc/stdlib/strtoll.c index fdba09f24..3ee9e7592 100644 --- a/newlib/libc/stdlib/strtoll.c +++ b/newlib/libc/stdlib/strtoll.c @@ -16,14 +16,14 @@ ANSI_SYNOPSIS TRAD_SYNOPSIS #include - long strtoll (<[s]>, <[ptr]>, <[base]>) - char *<[s]>; + long long strtoll (<[s]>, <[ptr]>, <[base]>) + const char *<[s]>; char **<[ptr]>; int <[base]>; - long _strtoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>) + long long _strtoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>) char *<[reent]>; - char *<[s]>; + const char *<[s]>; char **<[ptr]>; int <[base]>; diff --git a/newlib/libc/sys/arm/crt0.S b/newlib/libc/sys/arm/crt0.S index 9d1de2ec6..067fa890e 100644 --- a/newlib/libc/sys/arm/crt0.S +++ b/newlib/libc/sys/arm/crt0.S @@ -55,6 +55,7 @@ _mainCRTStartup: sub sl, sp, #64 << 10 /* Still assumes 256bytes below sl */ #endif #endif + /* Zero the memory in the .bss section. */ mov a2, #0 /* Second arg: fill value */ mov fp, a2 /* Null frame pointer */ mov r7, a2 /* Null frame pointer for Thumb */ @@ -259,4 +260,3 @@ CommandLine: .space 256,0 /* Maximum length of 255 chars handled. */ .section .idata$3 .long 0,0,0,0,0,0,0,0 #endif - diff --git a/newlib/libc/sys/linux/io.c b/newlib/libc/sys/linux/io.c index 31b9da7cc..11622a861 100644 --- a/newlib/libc/sys/linux/io.c +++ b/newlib/libc/sys/linux/io.c @@ -58,4 +58,3 @@ int mkfifo(const char *path, mode_t mode) dev_t dev = 0; return __mknod(path, mode | S_IFIFO, &dev); } - -- cgit v1.2.3