aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/troff2html
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/troff2html
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/troff2html')
-rw-r--r--src/cmd/troff2html/chars.h2
-rw-r--r--src/cmd/troff2html/troff2html.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/src/cmd/troff2html/chars.h b/src/cmd/troff2html/chars.h
index 7db2f85f..669ddb43 100644
--- a/src/cmd/troff2html/chars.h
+++ b/src/cmd/troff2html/chars.h
@@ -191,5 +191,5 @@ Troffchar troffchars[] =
{ "ul", "_", },
{ "rn", " ", },
{ "**", "*", },
- { nil, nil, },
+ { nil, nil, }
};
diff --git a/src/cmd/troff2html/troff2html.c b/src/cmd/troff2html/troff2html.c
index bce49742..c0956c7d 100644
--- a/src/cmd/troff2html/troff2html.c
+++ b/src/cmd/troff2html/troff2html.c
@@ -5,7 +5,7 @@
enum{
Nfont = 11,
- Wid = 20, /* tmac.anhtml sets page width to 20" so we can recognize .nf text */
+ Wid = 20 /* tmac.anhtml sets page width to 20" so we can recognize .nf text */
};
typedef ulong Char;
@@ -24,13 +24,13 @@ enum
Indent2,
Indent3,
Heading = 25,
- Anchor = 26, /* must be last */
+ Anchor = 26 /* must be last */
};
enum /* magic emissions */
{
Estring = 0,
- Epp = 1<<16,
+ Epp = 1<<16
};
int attrorder[] = { Indent1, Indent2, Indent3, Heading, Anchor, Italic, Bold, CW };
@@ -73,7 +73,7 @@ HTMLfont htmlfonts[] =
"LuxiSans-Oblique", "i", Italic,
"CW", "tt", CW,
"LuxiMono", "tt", CW,
- nil, nil,
+ nil, nil
};
#define TABLE "<table border=0 cellpadding=0 cellspacing=0>"
@@ -468,7 +468,7 @@ trailer(void)
t = localtime(time(nil));
Bprint(&bout, TABLE "<tr height=20><td></table>\n");
- Bprint(&bout, "<font size=-1><a href=\"http://www.lucent.com/copyright.html\">\n");
+ Bprint(&bout, "<font size=-1><a href=\"http:/*www.lucent.com/copyright.html\">\n"); */
Bprint(&bout, "Portions Copyright</A> &#169; %d Lucent Technologies. All rights reserved.</font>\n", t->year+1900);
}
#endif
@@ -784,7 +784,7 @@ process(Biobuf *b, char *name)
break;
case 'n':
setnum(b, "n1", -10000, 10000);
- //Bprint(&bout, " N1=%d", v);
+ /*Bprint(&bout, " N1=%d", v); */
getc(b); /* space separates */
setnum(b, "n2", -10000, 10000);
atnewline = 1;
@@ -815,7 +815,7 @@ process(Biobuf *b, char *name)
break;
case 'H':
hp = setnum(b, "hpos", 0, 20000);
- //Bprint(&bout, " H=%d ", hp);
+ /*Bprint(&bout, " H=%d ", hp); */
break;
case 'V':
vp = setnum(b, "vpos", 0, 10000);