aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/input.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/input.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/input.c')
-rw-r--r--src/cmd/htmlroff/input.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/htmlroff/input.c b/src/cmd/htmlroff/input.c
index 99e0d56e..a4c4bc3a 100644
--- a/src/cmd/htmlroff/input.c
+++ b/src/cmd/htmlroff/input.c
@@ -65,7 +65,7 @@ _inputfile(Rune *s, void (*push)(Istack*))
Istack *is;
Biobuf *b;
char *t;
-
+
t = esmprint("%S", s);
if((b = Bopen(t, OREAD)) == nil){
free(t);
@@ -95,7 +95,7 @@ queueinputfile(Rune *s)
int
_inputstdin(void (*push)(Istack*))
-{
+{
Biobuf *b;
Istack *is;
@@ -128,7 +128,7 @@ void
_inputstring(Rune *s, void (*push)(Istack*))
{
Istack *is;
-
+
is = emalloc(sizeof *is);
is->s = erunestrdup(s);
is->p = is->s;
@@ -176,7 +176,7 @@ getrune(void)
{
Rune r;
int c;
-
+
top:
if(istack == nil)
return -1;
@@ -199,7 +199,7 @@ top:
sysfatal("getrune - can't happen");
}
if(r == '\n')
- istack->lineno++;
+ istack->lineno++;
return r;
}
@@ -215,7 +215,7 @@ int
linefmt(Fmt *f)
{
Istack *is;
-
+
for(is=istack; is && !is->b; is=is->next)
;
if(is)
@@ -228,7 +228,7 @@ void
setlinenumber(Rune *s, int n)
{
Istack *is;
-
+
for(is=istack; is && !is->name; is=is->next)
;
if(is){