diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-27 13:10:08 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-27 13:10:08 +0000 |
commit | 5226c4fdcd61545e72ba42ed649a213a893e2411 (patch) | |
tree | 093970852bdbb48a723e18ad495619b858f8ea5e /term.c | |
parent | 1d1eaff780bcc4af2a8048cec63b5e2bedf16337 (diff) | |
download | mandoc-5226c4fdcd61545e72ba42ed649a213a893e2411.tar.gz |
Re-ordered ascii.in looking for dupes.
Added `vim -q' tip to manuals.7 (thanks uqs@sporlein.net).
ifdef'd production of missing specials/predefines.
Diffstat (limited to 'term.c')
-rw-r--r-- | term.c | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -391,8 +391,15 @@ do_special(struct termp *p, const char *word, size_t len) rhs = term_a2ascii(p->symtab, word, len, &sz); - if (NULL == rhs) + if (NULL == rhs) { +#if 1 + fputs("Unknown special character: ", stderr); + for (i = 0; i < (int)len; i++) + fputc(word[i], stderr); + fputc('\n', stderr); +#endif return; + } for (i = 0; i < (int)sz; i++) encode(p, rhs[i]); } @@ -407,8 +414,15 @@ do_reserved(struct termp *p, const char *word, size_t len) rhs = term_a2res(p->symtab, word, len, &sz); - if (NULL == rhs) + if (NULL == rhs) { +#if 0 + fputs("Unknown reserved word: ", stderr); + for (i = 0; i < (int)len; i++) + fputc(word[i], stderr); + fputc('\n', stderr); +#endif return; + } for (i = 0; i < (int)sz; i++) encode(p, rhs[i]); } |