From 789580a2a2366243d622766fdadd094931ca6596 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 8 Jun 2017 12:54:58 +0000 Subject: 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 --- roff_term.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roff_term.c') diff --git a/roff_term.c b/roff_term.c index 3240b93e..7574102b 100644 --- a/roff_term.c +++ b/roff_term.c @@ -1,4 +1,4 @@ -/* $Id: roff_term.c,v 1.9 2017/06/07 17:38:26 schwarze Exp $ */ +/* $Id: roff_term.c,v 1.10 2017/06/08 12:54:58 schwarze Exp $ */ /* * Copyright (c) 2010, 2014, 2015, 2017 Ingo Schwarze * @@ -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; -- cgit v1.2.3-56-ge451