* Various formatting and whitespace changes.
This commit is contained in:
		| @@ -27,7 +27,7 @@ | ||||
| #   newlib_cflags	Special CFLAGS to use when building | ||||
| #   machine_dir		Subdirectory of libc/machine 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 | ||||
| #   signal_dir		"signal" to build libc/signal, "" otherwise | ||||
| #   syscall_dir		"syscalls" to build libc/syscalls, "" otherwise | ||||
| @@ -486,7 +486,7 @@ case "${host}" in | ||||
|   powerpc*-*-rtem* | \ | ||||
|   powerpc*-*-sysv* | \ | ||||
|   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) | ||||
| 	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" | ||||
| 	;;	 | ||||
|   xstormy16-*-*) | ||||
|         newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY" | ||||
|         syscall_dir=syscalls | ||||
|         ;; | ||||
| 	newlib_cflags="${newlib_cflags} -DHAVE_GETTIMEOFDAY" | ||||
| 	syscall_dir=syscalls | ||||
| 	;; | ||||
|   z8k-*-*) | ||||
| 	syscall_dir=syscalls | ||||
| 	;; | ||||
|   | ||||
| @@ -193,7 +193,6 @@ | ||||
| #define __SMALL_BITFIELDS | ||||
| #endif | ||||
|  | ||||
|  | ||||
| #ifndef __IEEE_BIG_ENDIAN | ||||
| #ifndef __IEEE_LITTLE_ENDIAN | ||||
| #error Endianess not declared!! | ||||
|   | ||||
| @@ -145,7 +145,6 @@ typedef int jmp_buf[_JBLEN]; | ||||
| #define _JBTYPE double | ||||
| #endif | ||||
|  | ||||
|  | ||||
| #ifdef __fr30__ | ||||
| #define _JBLEN 10 | ||||
| #endif | ||||
|   | ||||
| @@ -62,10 +62,10 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>, | ||||
| #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<e-1; s++) | ||||
|     { | ||||
|       if (*s == '\r' && s[1] == '\n') | ||||
|       s++; | ||||
|         s++; | ||||
|       *d++ = *s; | ||||
|     } | ||||
|   if (s < e) | ||||
|     { | ||||
|       if (*s == '\r') | ||||
|       { | ||||
|         int c = __sgetc_raw(fp); | ||||
|         if (c == '\n') | ||||
|           *s = '\n'; | ||||
|         else | ||||
|           ungetc(c, fp); | ||||
|       } | ||||
|         { | ||||
|           int c = __sgetc_raw(fp); | ||||
|           if (c == '\n') | ||||
|             *s = '\n'; | ||||
|           else | ||||
|             ungetc(c, fp); | ||||
|         } | ||||
|       *d++ = *s++; | ||||
|     } | ||||
|  | ||||
| @@ -98,7 +98,7 @@ _DEFUN (crlf, (fp, buf, count, eof), | ||||
|     { | ||||
|       r = getc(fp); | ||||
|       if (r == EOF) | ||||
|       return count - (e-d); | ||||
|         return count - (e-d); | ||||
|       *d++ = r; | ||||
|     } | ||||
|  | ||||
| @@ -138,7 +138,7 @@ _DEFUN (fread, (buf, size, count, fp), | ||||
| 	{ | ||||
| 	  /* no more input: return partial result */ | ||||
| #ifdef __SCLE | ||||
|         if (fp->_flags & __SCLE) | ||||
|           if (fp->_flags & __SCLE) | ||||
|             return crlf(fp, buf, total-resid, 1) / size; | ||||
| #endif | ||||
| 	  return (total - resid) / size; | ||||
|   | ||||
| @@ -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; | ||||
|     } | ||||
|   | ||||
| @@ -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. | ||||
| */ | ||||
|  | ||||
| /* | ||||
|   | ||||
| @@ -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. | ||||
| */ | ||||
|  | ||||
| /* | ||||
|   | ||||
| @@ -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. | ||||
| */ | ||||
|  | ||||
| /*- | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -16,14 +16,14 @@ ANSI_SYNOPSIS | ||||
|  | ||||
| TRAD_SYNOPSIS | ||||
| 	#include <stdlib.h> | ||||
| 	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]>; | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
| @@ -58,4 +58,3 @@ int mkfifo(const char *path, mode_t mode) | ||||
|    dev_t dev = 0; | ||||
|    return __mknod(path, mode | S_IFIFO, &dev); | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -11,11 +11,11 @@ | ||||
|  * ==================================================== | ||||
|  */ | ||||
|  | ||||
| /* CYGNUS LOCAL: Include files.  */ | ||||
| /* REDHAT LOCAL: Include files.  */ | ||||
| #include <math.h> | ||||
| #include <machine/ieeefp.h> | ||||
|  | ||||
| /* CYGNUS LOCAL: Default to XOPEN_MODE.  */ | ||||
| /* REDHAT LOCAL: Default to XOPEN_MODE.  */ | ||||
| #define _XOPEN_MODE | ||||
|  | ||||
| /* Most routines need to check whether a float is finite, infinite, or not a | ||||
|   | ||||
| @@ -20,7 +20,7 @@ endif # USE_LIBTOOL | ||||
|  | ||||
| $(libm_machine_dir)/lib.a: | ||||
|  | ||||
| doc:   | ||||
| doc: | ||||
|  | ||||
| ACLOCAL_AMFLAGS = -I ../.. | ||||
| CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host | ||||
|   | ||||
| @@ -430,7 +430,7 @@ maintainer-clean | ||||
|  | ||||
| $(libm_machine_dir)/lib.a: | ||||
|  | ||||
| doc:   | ||||
| doc: | ||||
|  | ||||
| # 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. | ||||
|   | ||||
| @@ -179,7 +179,7 @@ ivln2_l  =  1.92596299112661746887e-08; /* 0x3E54AE0B, 0xF85DDF44 =1/ln2 tail*/ | ||||
| 	} | ||||
|      | ||||
|     /* (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); | ||||
|        but ANSI C says a right shift of a signed negative quantity is | ||||
|        implementation defined.  */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user