diff options
Diffstat (limited to 'usr.bin/mandoc/html.h')
-rw-r--r-- | usr.bin/mandoc/html.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h index 6829ab8cb7e..9a202042a8f 100644 --- a/usr.bin/mandoc/html.h +++ b/usr.bin/mandoc/html.h @@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.2 2009/10/27 21:40:07 schwarze Exp $ */ +/* $Id: html.h,v 1.3 2009/12/22 23:58:00 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -58,6 +58,7 @@ enum htmlattr { ATTR_VALIGN, ATTR_TARGET, ATTR_ID, + ATTR_SUMMARY, ATTR_MAX }; @@ -93,6 +94,9 @@ struct htmlpair { #define PAIR_STYLE_INIT(p, h) \ do { (p)->key = ATTR_STYLE; \ (p)->val = (h)->buf; } while (/* CONSTCOND */ 0) +#define PAIR_SUMMARY_INIT(p, v) \ + do { (p)->key = ATTR_SUMMARY; \ + (p)->val = (v); } while (/* CONSTCOND */ 0) struct html { int flags; @@ -132,6 +136,8 @@ void bufcat_style(struct html *, void bufncat(struct html *, const char *, size_t); void bufinit(struct html *); +void html_idcat(char *, const char *, int); + __END_DECLS #endif /*!HTML_H*/ |