* Various formatting and whitespace changes.

This commit is contained in:
Thomas Fitzsimmons 2002-04-30 18:23:40 +00:00
parent 1bf83a86f6
commit bfc27bae1a
16 changed files with 44 additions and 47 deletions

View File

@ -27,7 +27,7 @@
# newlib_cflags Special CFLAGS to use when building # newlib_cflags Special CFLAGS to use when building
# machine_dir Subdirectory of libc/machine to configure # machine_dir Subdirectory of libc/machine to configure
# sys_dir Subdirectory of libc/sys to configure # sys_dir Subdirectory of libc/sys to configure
# have_sys_mach_dir Is there a machine subdirectory in sys subdirectory # have_sys_mach_dir Is there a machine subdirectory in sys subdirectory
# posix_dir "posix" to build libc/posix, "" otherwise # posix_dir "posix" to build libc/posix, "" otherwise
# signal_dir "signal" to build libc/signal, "" otherwise # signal_dir "signal" to build libc/signal, "" otherwise
# syscall_dir "syscalls" to build libc/syscalls, "" otherwise # syscall_dir "syscalls" to build libc/syscalls, "" otherwise
@ -486,7 +486,7 @@ case "${host}" in
powerpc*-*-rtem* | \ powerpc*-*-rtem* | \
powerpc*-*-sysv* | \ powerpc*-*-sysv* | \
powerpc*-*-solaris*) powerpc*-*-solaris*)
newlib_cflags="${newlib_cflags} -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES" newlib_cflags="${newlib_cflags} -mrelocatable-lib -mno-eabi -mstrict-align -DMISSING_SYSCALL_NAMES -DWANT_PRINTF_LONG_LONG"
;; ;;
powerpcle-*-pe) powerpcle-*-pe)
newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL" newlib_cflags="${newlib_cflags} -DHAVE_OPENDIR -DHAVE_RENAME -DHAVE_FCNTL"
@ -555,9 +555,9 @@ case "${host}" in
newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY" newlib_cflags="${newlib_cflags} -DSMALL_DTOA -DSMALL_MEMORY"
;; ;;
xstormy16-*-*) xstormy16-*-*)
newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY" newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY"
syscall_dir=syscalls syscall_dir=syscalls
;; ;;
z8k-*-*) z8k-*-*)
syscall_dir=syscalls syscall_dir=syscalls
;; ;;

View File

@ -193,7 +193,6 @@
#define __SMALL_BITFIELDS #define __SMALL_BITFIELDS
#endif #endif
#ifndef __IEEE_BIG_ENDIAN #ifndef __IEEE_BIG_ENDIAN
#ifndef __IEEE_LITTLE_ENDIAN #ifndef __IEEE_LITTLE_ENDIAN
#error Endianess not declared!! #error Endianess not declared!!

View File

@ -145,7 +145,6 @@ typedef int jmp_buf[_JBLEN];
#define _JBTYPE double #define _JBTYPE double
#endif #endif
#ifdef __fr30__ #ifdef __fr30__
#define _JBLEN 10 #define _JBLEN 10
#endif #endif

View File

@ -62,10 +62,10 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
#ifdef __SCLE #ifdef __SCLE
static size_t static size_t
_DEFUN (crlf, (fp, buf, count, eof), _DEFUN (crlf, (fp, buf, count, eof),
FILE * fp _AND FILE * fp _AND
char * buf _AND char * buf _AND
size_t count _AND size_t count _AND
int eof) int eof)
{ {
int newcount = 0, r; int newcount = 0, r;
char *s, *d, *e; char *s, *d, *e;
@ -77,19 +77,19 @@ _DEFUN (crlf, (fp, buf, count, eof),
for (s=d=buf; s<e-1; s++) for (s=d=buf; s<e-1; s++)
{ {
if (*s == '\r' && s[1] == '\n') if (*s == '\r' && s[1] == '\n')
s++; s++;
*d++ = *s; *d++ = *s;
} }
if (s < e) if (s < e)
{ {
if (*s == '\r') if (*s == '\r')
{ {
int c = __sgetc_raw(fp); int c = __sgetc_raw(fp);
if (c == '\n') if (c == '\n')
*s = '\n'; *s = '\n';
else else
ungetc(c, fp); ungetc(c, fp);
} }
*d++ = *s++; *d++ = *s++;
} }
@ -98,7 +98,7 @@ _DEFUN (crlf, (fp, buf, count, eof),
{ {
r = getc(fp); r = getc(fp);
if (r == EOF) if (r == EOF)
return count - (e-d); return count - (e-d);
*d++ = r; *d++ = r;
} }
@ -138,7 +138,7 @@ _DEFUN (fread, (buf, size, count, fp),
{ {
/* no more input: return partial result */ /* no more input: return partial result */
#ifdef __SCLE #ifdef __SCLE
if (fp->_flags & __SCLE) if (fp->_flags & __SCLE)
return crlf(fp, buf, total-resid, 1) / size; return crlf(fp, buf, total-resid, 1) / size;
#endif #endif
return (total - resid) / size; return (total - resid) / size;

View File

@ -67,17 +67,17 @@ __sfvwrite (fp, uio)
if (fp->_flags & __SCLE) /* text mode */ if (fp->_flags & __SCLE) /* text mode */
{ {
do do
{ {
GETIOV (;); GETIOV (;);
while (len > 0) while (len > 0)
{ {
if (putc(*p, fp) == EOF) if (putc(*p, fp) == EOF)
return EOF; return EOF;
p++; p++;
len--; len--;
uio->uio_resid--; uio->uio_resid--;
} }
} }
while (uio->uio_resid > 0); while (uio->uio_resid > 0);
return 0; return 0;
} }

View File

@ -1,6 +1,6 @@
/* This is file MKTEMP.C */ /* This is file MKTEMP.C */
/* This file may have been modified by DJ Delorie (Jan 1991). If so, /* 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.
*/ */
/* /*

View File

@ -35,7 +35,7 @@ variables vary from one system to another.
*/ */
/* This file may have been modified by DJ Delorie (Jan 1991). If so, /* 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.
*/ */
/* /*

View File

@ -1,5 +1,5 @@
/* This file may have been modified by DJ Delorie (Jan 1991). If so, /* 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.
*/ */
/*- /*-

View File

@ -30,7 +30,7 @@ The corresponding declarations are in the header file @file{stdlib.h}.
* mbtowc:: Minimal multibyte to wide character converter * mbtowc:: Minimal multibyte to wide character converter
* qsort:: Sort an array * qsort:: Sort an array
* rand:: Pseudo-random numbers * rand:: Pseudo-random numbers
* rand48:: Uniformaly distributed pseudo-random numbers * rand48:: Uniformly distributed pseudo-random numbers
* strtod:: String to double or float * strtod:: String to double or float
* strtol:: String to long * strtol:: String to long
* strtoul:: String to unsigned long * strtoul:: String to unsigned long

View File

@ -16,14 +16,14 @@ ANSI_SYNOPSIS
TRAD_SYNOPSIS TRAD_SYNOPSIS
#include <stdlib.h> #include <stdlib.h>
long strtoll (<[s]>, <[ptr]>, <[base]>) long long strtoll (<[s]>, <[ptr]>, <[base]>)
char *<[s]>; const char *<[s]>;
char **<[ptr]>; char **<[ptr]>;
int <[base]>; int <[base]>;
long _strtoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>) long long _strtoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>)
char *<[reent]>; char *<[reent]>;
char *<[s]>; const char *<[s]>;
char **<[ptr]>; char **<[ptr]>;
int <[base]>; int <[base]>;

View File

@ -55,6 +55,7 @@ _mainCRTStartup:
sub sl, sp, #64 << 10 /* Still assumes 256bytes below sl */ sub sl, sp, #64 << 10 /* Still assumes 256bytes below sl */
#endif #endif
#endif #endif
/* Zero the memory in the .bss section. */
mov a2, #0 /* Second arg: fill value */ mov a2, #0 /* Second arg: fill value */
mov fp, a2 /* Null frame pointer */ mov fp, a2 /* Null frame pointer */
mov r7, a2 /* Null frame pointer for Thumb */ 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 .section .idata$3
.long 0,0,0,0,0,0,0,0 .long 0,0,0,0,0,0,0,0
#endif #endif

View File

@ -58,4 +58,3 @@ int mkfifo(const char *path, mode_t mode)
dev_t dev = 0; dev_t dev = 0;
return __mknod(path, mode | S_IFIFO, &dev); return __mknod(path, mode | S_IFIFO, &dev);
} }

View File

@ -11,11 +11,11 @@
* ==================================================== * ====================================================
*/ */
/* CYGNUS LOCAL: Include files. */ /* REDHAT LOCAL: Include files. */
#include <math.h> #include <math.h>
#include <machine/ieeefp.h> #include <machine/ieeefp.h>
/* CYGNUS LOCAL: Default to XOPEN_MODE. */ /* REDHAT LOCAL: Default to XOPEN_MODE. */
#define _XOPEN_MODE #define _XOPEN_MODE
/* Most routines need to check whether a float is finite, infinite, or not a /* Most routines need to check whether a float is finite, infinite, or not a

View File

@ -20,7 +20,7 @@ endif # USE_LIBTOOL
$(libm_machine_dir)/lib.a: $(libm_machine_dir)/lib.a:
doc: doc:
ACLOCAL_AMFLAGS = -I ../.. ACLOCAL_AMFLAGS = -I ../..
CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host

View File

@ -430,7 +430,7 @@ maintainer-clean
$(libm_machine_dir)/lib.a: $(libm_machine_dir)/lib.a:
doc: doc:
# Tell versions [3.59,3.63) of GNU make to not export all variables. # Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded. # Otherwise a system limit (for SysV at least) may be exceeded.

View File

@ -179,7 +179,7 @@ ivln2_l = 1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/
} }
/* (x<0)**(non-int) is NaN */ /* (x<0)**(non-int) is NaN */
/* CYGNUS LOCAL: This used to be /* REDHAT LOCAL: This used to be
if((((hx>>31)+1)|yisint)==0) return (x-x)/(x-x); if((((hx>>31)+1)|yisint)==0) return (x-x)/(x-x);
but ANSI C says a right shift of a signed negative quantity is but ANSI C says a right shift of a signed negative quantity is
implementation defined. */ implementation defined. */