diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-08 12:54:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-08 12:54:58 +0000 |
commit | ad29d8dbe925e8f0d680007ebf3c95aec8351f84 (patch) | |
tree | e1d347a6e1580d73cf7fb7e978c1b9103e0acbac /roff_term.c | |
parent | d44fff44885ccb8313515cbafde42b061f7d4c45 (diff) | |
download | mandoc-ad29d8dbe925e8f0d680007ebf3c95aec8351f84.tar.gz |
make the internal a2roffsu() interface more powerful by returning
a pointer to the end of the parsed data, making it easier to
parse subsequent bytes
Diffstat (limited to 'roff_term.c')
-rw-r--r-- | roff_term.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roff_term.c b/roff_term.c index 17c1f043..d2375c3c 100644 --- a/roff_term.c +++ b/roff_term.c @@ -157,7 +157,7 @@ roff_term_pre_sp(ROFF_TERM_ARGS) int len; if (n->child != NULL) { - if (a2roffsu(n->child->string, &su, SCALE_VS) == 0) + if (a2roffsu(n->child->string, &su, SCALE_VS) == NULL) su.scale = 1.0; len = term_vspan(p, &su); } else @@ -201,7 +201,7 @@ roff_term_pre_ti(ROFF_TERM_ARGS) } else sign = 0; - if (a2roffsu(cp, &su, SCALE_EM) == 0) + if (a2roffsu(cp, &su, SCALE_EM) == NULL) return; len = term_hspan(p, &su) / 24; |