aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/deroff.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/deroff.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/deroff.c')
-rw-r--r--src/cmd/deroff.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/cmd/deroff.c b/src/cmd/deroff.c
index 1b758efe..0ad08375 100644
--- a/src/cmd/deroff.c
+++ b/src/cmd/deroff.c
@@ -13,7 +13,7 @@
* Deroff follows .so and .nx commands, removes contents of macro
* definitions, equations (both .EQ ... .EN and $...$),
* Tbl command sequences, and Troff backslash vconstructions.
- *
+ *
* All input is through the C macro; the most recently read character is in c.
*/
@@ -37,7 +37,7 @@
#define C fC()
#define C1 fC1()
-#define SKIP while(C != '\n')
+#define SKIP while(C != '\n')
#define SKIP1 while(C1 != '\n')
#define SKIP_TO_COM SKIP;\
SKIP;\
@@ -211,7 +211,7 @@ skeqn(void)
c = C1;
else if(c == '"')
while(C1 != '"')
- if(c == '\\')
+ if(c == '\\')
C1;
if (msflag)
eqnflag = 1;
@@ -257,9 +257,9 @@ getfname(void)
Rune r;
Dir *dir;
struct chain
- {
- struct chain* nextp;
- char* datap;
+ {
+ struct chain* nextp;
+ char* datap;
} *q;
static struct chain *namechain= 0;
@@ -470,7 +470,7 @@ comx:
else
if(filesp==files && c1=='T' && (c2=='S' || c2=='C' || c2=='&')) {
if(msflag)
- stbl();
+ stbl();
else
tbl();
}
@@ -512,11 +512,11 @@ comx:
SKIP;
else
if(c1=='h' && c2=='w')
- SKIP;
+ SKIP;
else
if(msflag && c1 == 'T' && c2 == 'L') {
SKIP_TO_COM;
- goto comx;
+ goto comx;
}
else
if(msflag && c1=='N' && c2 == 'R')
@@ -526,17 +526,17 @@ comx:
if(mac==MM)SKIP;
else {
SKIP_TO_COM;
- goto comx;
+ goto comx;
}
} else
if(msflag && c1=='F' && c2=='S') {
SKIP_TO_COM;
- goto comx;
+ goto comx;
}
else
if(msflag && (c1=='S' || c1=='N') && c2=='H') {
SKIP_TO_COM;
- goto comx;
+ goto comx;
} else
if(c1 == 'U' && c2 == 'X') {
if(wordflag)
@@ -546,7 +546,7 @@ comx:
} else
if(msflag && c1=='O' && c2=='K') {
SKIP_TO_COM;
- goto comx;
+ goto comx;
} else
if(msflag && c1=='N' && c2=='D')
SKIP;
@@ -565,11 +565,11 @@ comx:
if(!msflag && c1=='P' && c2=='S') {
inpic();
} else
- if(msflag && (c1=='D' || c1=='N' || c1=='K'|| c1=='P') && c2=='S') {
- sdis(c1, 'E');
+ if(msflag && (c1=='D' || c1=='N' || c1=='K'|| c1=='P') && c2=='S') {
+ sdis(c1, 'E');
} else
- if(msflag && (c1 == 'K' && c2 == 'F')) {
- sdis(c1,'E');
+ if(msflag && (c1 == 'K' && c2 == 'F')) {
+ sdis(c1,'E');
} else
if(msflag && c1=='n' && c2=='f')
sdis('f','i');
@@ -601,8 +601,8 @@ void
macro(void)
{
if(msflag) {
- do {
- SKIP1;
+ do {
+ SKIP1;
} while(C1 != '.' || C1 != '.' || C1 == '.');
if(c != '\n')
SKIP;
@@ -660,7 +660,7 @@ sdis(char a1, char a2)
SKIP1;
} else
if(a1 == 'D' && c1 == 'E' && c2 == 'Q') {
- eqn();
+ eqn();
eqnf = 0;
} else
if(a1 == 'f') {
@@ -720,8 +720,8 @@ eqn(void)
Bputc(&bout, 'x');
Bputc(&bout, ' ');
if(last) {
- Bputc(&bout, last);
- Bputc(&bout, '\n');
+ Bputc(&bout, last);
+ Bputc(&bout, '\n');
}
}
return;
@@ -744,7 +744,7 @@ eqn(void)
dflg = 0;
}
if(c != '\n')
- while(C1 != '\n') {
+ while(C1 != '\n') {
if(chars[c] == PUNCT)
last = c;
else
@@ -762,7 +762,7 @@ backsl(void)
{
int bdelim;
-sw:
+sw:
switch(C1)
{
case '"':