summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-01 13:06:49 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-01 13:06:49 +0000
commit97b5fc0261467f0f882205086dbf42286c92c8a3 (patch)
tree720463505816698e322b451eba9a256dd0533ed2 /term.h
parent7a49cc5212b86749bc74fb4733c81bd65f2f177e (diff)
downloadmandoc-97b5fc0261467f0f882205086dbf42286c92c8a3.tar.gz
Fixed TERMP_NOBREAK and line overruns.
Fixed TERMP_SETFLAGS and current-flag omission.
Diffstat (limited to 'term.h')
-rw-r--r--term.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/term.h b/term.h
index 9d6a2b6b..17e2d02c 100644
--- a/term.h
+++ b/term.h
@@ -38,7 +38,6 @@ struct termp {
#define TERMP_LITERAL (1 << 5) /* Literal words. */
#define TERMP_IGNDELIM (1 << 6) /* Delims like regulars. */
#define TERMP_NONOSPACE (1 << 7) /* No space (no autounset). */
-#define TERMP_NORPAD (1 << 8) /* No rightpad. */
char *buf;
};
@@ -52,9 +51,10 @@ struct termpair {
int count;
};
-#define TERMPAIR_SETFLAG(p, fl) \
+#define TERMPAIR_SETFLAG(termp, p, fl) \
do { \
assert(! (TERMPAIR_FLAG & (p)->type)); \
+ (termp)->flags |= (fl); \
(p)->flag = (fl); \
(p)->type |= TERMPAIR_FLAG; \
} while (0)