summaryrefslogtreecommitdiffstats
path: root/html.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-29 14:02:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-29 14:02:41 +0000
commitdb2b5ef38c2f1862472b7a9ccf6af9dac7551eb5 (patch)
tree3f3a6bdeb2d0dab4e7c08287757b51d9d55e465f /html.h
parent137b7894f98df8048a9fb82e36cc9c8c65efcc65 (diff)
downloadmandoc-db2b5ef38c2f1862472b7a9ccf6af9dac7551eb5.tar.gz
eliminate one useless struct and one level of indirection;
no functional change
Diffstat (limited to 'html.h')
-rw-r--r--html.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/html.h b/html.h
index 364da4ac..10434e44 100644
--- a/html.h
+++ b/html.h
@@ -78,10 +78,6 @@ struct tag {
enum htmltag tag;
};
-struct tagq {
- struct tag *head;
-};
-
struct html {
int flags;
#define HTML_NOSPACE (1 << 0) /* suppress next space */
@@ -100,7 +96,7 @@ struct html {
size_t col; /* current output byte position */
size_t bufcol; /* current buf byte position */
char buf[80]; /* output buffer */
- struct tagq tags; /* stack of open tags */
+ struct tag *tag; /* last open tag */
struct rofftbl tbl; /* current table */
struct tag *tblt; /* current open table scope */
char *base_man; /* base for manpage href */