X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/972a8d7ae7f6cd2ac8f3987e69555ad859c46dac..160c4968c39b3806128f58311c70c5e0abbed96d:/out.h diff --git a/out.h b/out.h index 39dde420..13665e46 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.14 2010/07/21 20:35:03 kristaps Exp $ */ /* * Copyright (c) 2009 Kristaps Dzonsons * @@ -37,13 +37,13 @@ enum roffscale { enum roffdeco { DECO_NONE, - DECO_SPECIAL, - DECO_RESERVED, + DECO_SPECIAL, /* special character */ + DECO_SSPECIAL, /* single-char special */ + DECO_RESERVED, /* reserved word */ DECO_BOLD, DECO_ITALIC, DECO_ROMAN, DECO_PREVIOUS, - DECO_SIZE, DECO_NOSPACE, DECO_FONT, /* font */ DECO_FFONT, /* font family */ @@ -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 *,