aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff/n8.c
diff options
context:
space:
mode:
authorDan Cross <cross@gajendra.net>2020-01-10 14:44:21 +0000
committerDan Cross <cross@gajendra.net>2020-01-10 14:54:30 +0000
commitfa325e9b42b0bdfb48857d1958d9fb7ceac55151 (patch)
tree81d26256d152435135bcb1ae43121979a49f5f2b /src/cmd/troff/n8.c
parent77a0a5b5194d4441c86de097f2aae297cb75e2c2 (diff)
downloadplan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.gz
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.tar.bz2
plan9port-fa325e9b42b0bdfb48857d1958d9fb7ceac55151.zip
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>
Diffstat (limited to 'src/cmd/troff/n8.c')
-rw-r--r--src/cmd/troff/n8.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/troff/n8.c b/src/cmd/troff/n8.c
index 9ff2ebce..92c42724 100644
--- a/src/cmd/troff/n8.c
+++ b/src/cmd/troff/n8.c
@@ -11,7 +11,7 @@
/*
* troff8.c
- *
+ *
* hyphenation
*/
@@ -59,7 +59,7 @@ void hyphen(Tchar *wp)
/* this appears to sort hyphenation points into increasing order */
*hyp++ = 0;
- if (*hyptr)
+ if (*hyptr)
for (j = 1; j; ) {
j = 0;
for (hyp = hyptr + 1; *hyp != 0; hyp++) {
@@ -194,7 +194,7 @@ int exword(void)
return(0);
w = wdstart;
while (*e && w <= hyend && (*e & 0177) == maplow(cbits(*w))) {
- e++;
+ e++;
w++;
}
if (!*e) {
@@ -209,10 +209,10 @@ int exword(void)
}
return(1);
} else {
- e++;
+ e++;
continue;
}
- } else
+ } else
while (*e++)
;
}
@@ -249,7 +249,7 @@ again:
}
s = s0 + i - 1;
w = hyend;
- if (*s0 & HY_BIT)
+ if (*s0 & HY_BIT)
goto mark;
while (s > s0) {
w--;
@@ -273,7 +273,7 @@ mark:
int
maplow(int i)
{
- if (isupper(i))
+ if (isupper(i))
i = tolower(i);
return(i);
}
@@ -327,7 +327,7 @@ again:
val *= dilook('a', cbits(*w), bxh);
else if (w == wdstart + 1)
val *= dilook(cbits(*(w-1)), cbits(*w), bxxh);
- else
+ else
val *= dilook(cbits(*(w-1)), cbits(*w), xxh);
val *= dilook(cbits(*w), cbits(*(w+1)), xhx);
val *= dilook(cbits(*(w+1)), cbits(*(w+2)), hxx);