diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-12-22 23:58:01 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-12-22 23:58:01 +0000 |
commit | 89c124b1e04e596f4ba06193091daad0e01dc939 (patch) | |
tree | 9ed92a7f590db13da46deb9d8434a83b1802ba08 /usr.bin/mandoc/html.h | |
parent | 3577315b7c4436e4b96b8b9f1d54181b4451d77e (diff) |
sync to 1.9.12, mostly portability and refactoring:
correctness/functionality:
- bugfix: do not die when overstep hits the right margin
- new option: -fign-escape
- and various HTML features
portability:
- replace bzero(3) by memset(3), which is ANSI C
- replace err(3)/warn(3) by perror(3)/exit(3), which is ANSI C
- iuse argv[0] instead of __progname
- add time.h to various files for FreeBSD compilation
simplicity:
- do not allocate header/footer data dynamically in *_term.c
- provide and use malloc frontends that error out on failure
for full changelogs, see http://bsd.lv/cgi-bin/cvsweb.cgi/
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*/ |