aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/t16.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/htmlroff/t16.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/htmlroff/t16.c')
-rw-r--r--src/cmd/htmlroff/t16.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/htmlroff/t16.c b/src/cmd/htmlroff/t16.c
index 3a9c427e..9389a59a 100644
--- a/src/cmd/htmlroff/t16.c
+++ b/src/cmd/htmlroff/t16.c
@@ -24,7 +24,7 @@ void
startbody(void)
{
int c;
-
+
while((c = getrune()) == ' ' || c == '\t')
;
ungetrune(c);
@@ -52,7 +52,7 @@ ifeval(void)
int c, cc, neg, nc;
Rune line[MaxLine], *p, *e, *q;
Rune *a;
-
+
while((c = getnext()) == ' ' || c == '\t')
;
neg = 0;
@@ -68,7 +68,7 @@ ifeval(void)
free(a);
return c;
}
-
+
switch(c){
case ' ':
case '\n':
@@ -111,12 +111,12 @@ ifeval(void)
return (q-line == p-(q+1)
&& memcmp(line, q+1, (q-line)*sizeof(Rune))==0) ^ neg;
}
-
+
void
r_if(Rune *name)
{
int n;
-
+
n = ifeval();
if(runestrcmp(name, L("ie")) == 0){
if(niftrue >= nelem(iftrue))
@@ -133,7 +133,7 @@ void
r_el(Rune *name)
{
USED(name);
-
+
if(niftrue <= 0){
warn("%Cel underflow", dot);
return;
@@ -150,7 +150,7 @@ t16init(void)
addraw(L("if"), r_if);
addraw(L("ie"), r_if);
addraw(L("el"), r_el);
-
+
addesc('{', e_nop, HtmlMode|ArgMode);
addesc('}', e_nop, HtmlMode|ArgMode);
}