Trivial changes: whitespace and modes.

Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
Dan Cross 2020-01-10 14:44:21 +00:00
parent 77a0a5b519
commit fa325e9b42
1021 changed files with 5688 additions and 6193 deletions

View file

@ -446,7 +446,7 @@ parsecmd(int nest)
if(nextc() == 'g')
cmd.flag = getch();
}
}
}
}
@ -537,7 +537,7 @@ simpleaddr(void)
addr.num = getnum(1);
break;
case '0': case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
case '5': case '6': case '7': case '8': case '9':
addr.num = getnum(1);
addr.type='l';
break;

View file

@ -615,7 +615,7 @@ vlong
invlong(void)
{
vlong v;
v = (inp[7]<<24) | (inp[6]<<16) | (inp[5]<<8) | inp[4];
v = (v<<16) | (inp[3]<<8) | inp[2];
v = (v<<16) | (inp[1]<<8) | inp[0];
@ -778,7 +778,7 @@ void
outshort(int s)
{
*outp++ = s;
*outp++ = s>>8;
*outp++ = s>>8;
}
void

View file

@ -79,27 +79,27 @@ typedef struct Header{
/*
* File transfer protocol schematic, a la Holzmann
* #define N 6
*
*
* chan h = [4] of { mtype };
* chan t = [4] of { mtype };
*
*
* mtype = { Hgrow, Hdata,
* Hcheck, Hcheck0,
* Trequest, Tcheck,
* };
*
*
* active proctype host()
* { byte n;
*
*
* do
* :: n < N -> n++; t!Hgrow
* :: n == N -> n++; t!Hcheck0
*
*
* :: h?Trequest -> t!Hdata
* :: h?Tcheck -> t!Hcheck
* od
* }
*
*
* active proctype term()
* {
* do
@ -118,14 +118,14 @@ typedef struct Header{
* From: gerard@research.bell-labs.com
* Date: Tue Jul 17 13:47:23 EDT 2001
* To: rob@research.bell-labs.com
*
*
* spin -c (or -a) spec
* pcc -DNP -o pan pan.c
* pan -l
*
*
* proves that there are no non-progress cycles
* (infinite executions *not* passing through
* the statement marked with a label starting
* with the prefix "progress")
*
*
*/

View file

@ -170,4 +170,3 @@ doubleclick(File *f, Posn p1)
while(--p >= 0 && alnum(filereadc(f, p)))
f->dot.r.p1--;
}

View file

@ -14,4 +14,3 @@ char *plumbunpackattr(char*);
char *plumbpack(Plumbmsg *, int *);
int plumbfree(Plumbmsg *);
char *cleanname(char*);

View file

@ -337,4 +337,3 @@ rdata(List *r, Posn p1, Posn n)
}
return rg;
}

View file

@ -44,7 +44,7 @@ main(int _argc, char **_argv)
char **volatile argv;
String *t;
char *termargs[10], **ap;
argc = _argc;
argv = _argv;
ap = termargs;

View file

@ -10,7 +10,7 @@
#include "sam.h"
Rune samname[] = { '~', '~', 's', 'a', 'm', '~', '~', 0 };
static Rune l1[] = { '{', '[', '(', '<', 0253, 0};
static Rune l2[] = { '\n', 0};
static Rune l3[] = { '\'', '"', '`', 0};
@ -85,15 +85,15 @@ getuser(void)
return user;
}
int
statfile(char *name, ulong *dev, uvlong *id, long *time, long *length, long *appendonly)
int
statfile(char *name, ulong *dev, uvlong *id, long *time, long *length, long *appendonly)
{
struct stat dirb;
if (stat(name, &dirb) == -1)
return -1;
if (dev)
*dev = dirb.st_dev;
*dev = dirb.st_dev;
if (id)
*id = dirb.st_ino;
if (time)
@ -110,11 +110,11 @@ statfd(int fd, ulong *dev, uvlong *id, long *time, long *length, long *appendonl
{
struct stat dirb;
if (fstat(fd, &dirb) == -1)
if (fstat(fd, &dirb) == -1)
return -1;
if (dev)
*dev = dirb.st_dev;
if (id)
if (id)
*id = dirb.st_ino;
if (time)
*time = dirb.st_mtime;
@ -174,11 +174,11 @@ tempdisk(void)
int fd = temp_file(buf, sizeof buf);
if (fd >= 0)
remove(buf);
return fd;
return fd;
}
#undef waitfor
int
int
samwaitfor(int pid)
{
int r;
@ -218,5 +218,3 @@ erealloc(void *p, ulong n)
panic("realloc fails");
return p;
}