aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/htmlroff/input.c
diff options
context:
space:
mode:
authorPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
committerPetter Rodhelind <petter.rodhelind@gmail.com>2020-01-14 11:41:08 +0100
commit02d7aa8915f9c3a3288dab01f321eb94ba219e3b (patch)
treef053238978479e408a2b83571443e132f30586ab /src/cmd/htmlroff/input.c
parentc0c9d8f883dfd3a7f5a74499d91bb95884b15873 (diff)
parent3d1382b98a502d0c34d5ba2c462396acc515016e (diff)
downloadplan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.gz
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.tar.bz2
plan9port-02d7aa8915f9c3a3288dab01f321eb94ba219e3b.zip
Merge remote-tracking branch 'upstream/master'
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){