diff options
author | 2014-10-28 17:35:42 +0000 | |
---|---|---|
committer | 2014-10-28 17:35:42 +0000 | |
commit | 72f211f77929e0c2f11fc3843e0bdee1e2558c53 (patch) | |
tree | cf7560f0e1948a339b83b8dcab21b667c6f82246 /usr.bin/mandoc/html.h | |
parent | Tighten Unicode escape name parsing. (diff) | |
download | wireguard-openbsd-72f211f77929e0c2f11fc3843e0bdee1e2558c53.tar.xz wireguard-openbsd-72f211f77929e0c2f11fc3843e0bdee1e2558c53.zip |
Make the character table available to libroff so it can check the
validity of character escape names and warn about unknown ones.
This requires mchars_spec2cp() to report unknown names again.
Fortunately, that doesn't require changing the calling code because
according to groff, invalid character escapes should not produce
output anyway, and now that we warn about them, that's fine.
Diffstat (limited to 'usr.bin/mandoc/html.h')
-rw-r--r-- | usr.bin/mandoc/html.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/html.h b/usr.bin/mandoc/html.h index 097df293d33..3c55a64bf30 100644 --- a/usr.bin/mandoc/html.h +++ b/usr.bin/mandoc/html.h @@ -1,4 +1,4 @@ -/* $OpenBSD: html.h,v 1.28 2014/10/10 15:25:06 schwarze Exp $ */ +/* $OpenBSD: html.h,v 1.29 2014/10/28 17:35:42 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -133,7 +133,7 @@ struct html { struct tagq tags; /* stack of open tags */ struct rofftbl tbl; /* current table */ struct tag *tblt; /* current open table scope */ - struct mchars *symtab; /* character-escapes */ + const struct mchars *symtab; /* character table */ char *base_man; /* base for manpage href */ char *base_includes; /* base for include href */ char *style; /* style-sheet URI */ |