diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-28 17:36:19 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-10-28 17:36:19 +0000 |
commit | d0ac87d04f62f2c8e644686b707cb2602c2ddba6 (patch) | |
tree | 69a250d8b0b0b75bc58e1c8af72b3c3269561aed /html.h | |
parent | 5fa1bace54f386a9b3ce23690f136232e1e5bb2e (diff) | |
download | mandoc-d0ac87d04f62f2c8e644686b707cb2602c2ddba6.tar.gz mandoc-d0ac87d04f62f2c8e644686b707cb2602c2ddba6.tar.zst mandoc-d0ac87d04f62f2c8e644686b707cb2602c2ddba6.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 'html.h')
-rw-r--r-- | html.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.66 2014/10/10 15:26:29 schwarze Exp $ */ +/* $Id: html.h,v 1.67 2014/10/28 17:36:19 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 */ |