* 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

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

View File

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

View File

@ -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;

View File

@ -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;
}

View File

@ -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.
*/
/*

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,
** 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,
** 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
* 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

View File

@ -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]>;

View File

@ -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

View File

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