diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-15 08:16:20 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-09-15 08:16:20 +0000 |
commit | 5e3756471dbadb7858086a17760f20e36e105612 (patch) | |
tree | f1e532457de737c7ccd05e47ec7abc003c7d1631 /term.h | |
parent | 80eb3c6e0afe2acb092b84229d5c35572a5fb39f (diff) | |
download | mandoc-5e3756471dbadb7858086a17760f20e36e105612.tar.gz mandoc-5e3756471dbadb7858086a17760f20e36e105612.tar.zst mandoc-5e3756471dbadb7858086a17760f20e36e105612.zip |
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.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.44 2009/08/10 10:09:51 kristaps Exp $ */ +/* $Id: term.h,v 1.45 2009/09/15 08:16:20 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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. */ |