From: Ingo Schwarze Date: Tue, 12 Aug 2014 19:28:03 +0000 (+0000) Subject: The macro SCALE_HS_INIT() is always passed the result of strlen() or X-Git-Tag: VERSION_1_13_2~243 X-Git-Url: https://git.cameronkatri.com/mandoc.git/commitdiff_plain/48a95d79260bbe4a81a5b05195c50a30aca56862 The macro SCALE_HS_INIT() is always passed the result of strlen() or an equivalent number as its argument, and strlen() measures the width of a string in characters, not in basic units. No functional change right now, but important for the upcoming scaling unit fixes. --- diff --git a/out.h b/out.h index 514db3fe..a1133ede 100644 --- a/out.h +++ b/out.h @@ -1,4 +1,4 @@ -/* $Id: out.h,v 1.22 2014/04/20 16:46:05 schwarze Exp $ */ +/* $Id: out.h,v 1.23 2014/08/12 19:28:03 schwarze Exp $ */ /* * Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons * @@ -59,7 +59,7 @@ __BEGIN_DECLS while (/* CONSTCOND */ 0) #define SCALE_HS_INIT(p, v) \ - do { (p)->unit = SCALE_BU; \ + do { (p)->unit = SCALE_EN; \ (p)->scale = (v); } \ while (/* CONSTCOND */ 0)