summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-09-15 08:16:20 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-09-15 08:16:20 +0000
commitea228aff6a872a947bb23cd1b1405ab1d72c37e6 (patch)
treefe44491217e8d64d10121d185763d198703ceae0 /term.h
parent74d68c4f407023d0d2a78e88ae492f13442ba597 (diff)
downloadmandoc-ea228aff6a872a947bb23cd1b1405ab1d72c37e6.tar.gz
Removed TERMP_BOLD, TERMP_UNDER, TERMP_STYLE in favour of recursive-friendly increments.
Cleaned up confusing behaviour of p->flags.
Diffstat (limited to 'term.h')
-rw-r--r--term.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/term.h b/term.h
index 125a0585..66108260 100644
--- a/term.h
+++ b/term.h
@@ -32,9 +32,6 @@ struct termp {
size_t offset; /* Margin offest. */
size_t col; /* Bytes in buf. */
int flags;
-#define TERMP_STYLE 0x3 /* Style mask. */
-#define TERMP_BOLD (1 << 0) /* Styles... */
-#define TERMP_UNDER (1 << 1)
#define TERMP_NOSPACE (1 << 2) /* No space before words. */
#define TERMP_NOLPAD (1 << 3) /* See term_flushln(). */
#define TERMP_NOBREAK (1 << 4) /* See term_flushln(). */
@@ -46,6 +43,8 @@ struct termp {
#define TERMP_NOSPLIT (1 << 11) /* See termp_an_pre/post(). */
#define TERMP_SPLIT (1 << 12) /* See termp_an_pre/post(). */
#define TERMP_ANPREC (1 << 13) /* See termp_an_pre(). */
+ int bold;
+ int under;
char *buf; /* Output buffer. */
enum termenc enc; /* Type of encoding. */
void *symtab; /* Encoded-symbol table. */