From 3234ace1ba2fef84ad009e6822dd76699a34e344 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 25 Jun 2010 19:50:23 +0000 Subject: Remove "pt" from struct roffsu, as CSS (the only reason it was there) is unclear about which units accept floats/integers, which leads me to assume that it handles either and rounds as appropriate. --- out.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'out.h') diff --git a/out.h b/out.h index 39dde420..9b432d59 100644 --- a/out.h +++ b/out.h @@ -1,4 +1,4 @@ -/* $Id: out.h,v 1.11 2010/06/19 20:46:28 kristaps Exp $ */ +/* $Id: out.h,v 1.12 2010/06/25 19:50:23 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -53,7 +53,6 @@ enum roffdeco { struct roffsu { enum roffscale unit; double scale; - int pt; }; #define SCALE_INVERT(p) \ @@ -62,14 +61,12 @@ struct roffsu { #define SCALE_VS_INIT(p, v) \ do { (p)->unit = SCALE_VS; \ - (p)->scale = (v); \ - (p)->pt = 0; } \ + (p)->scale = (v); } \ while (/* CONSTCOND */ 0) #define SCALE_HS_INIT(p, v) \ do { (p)->unit = SCALE_BU; \ - (p)->scale = (v); \ - (p)->pt = 0; } \ + (p)->scale = (v); } \ while (/* CONSTCOND */ 0) int a2roffsu(const char *, -- cgit v1.2.3