summaryrefslogtreecommitdiffstatshomepage
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
commitf52cdc4437cb37e93dbd03a14742e01eb654df7e (patch)
treee2e9cbebba0168f39837c646ea4f29945fadeb65 /term.h
parentdd4e091e1cb505b2de795c00410e4d592d03108c (diff)
downloadmandoc-f52cdc4437cb37e93dbd03a14742e01eb654df7e.tar.gz
mandoc-f52cdc4437cb37e93dbd03a14742e01eb654df7e.tar.zst
mandoc-f52cdc4437cb37e93dbd03a14742e01eb654df7e.zip
Fixed TERMP_NOBREAK and line overruns.
Fixed TERMP_SETFLAGS and current-flag omission.
Diffstat (limited to 'term.h')
-rw-r--r--term.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/term.h b/term.h
index 22fddd18..95e75d2a 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.11 2009/02/25 23:18:50 kristaps Exp $ */
+/* $Id: term.h,v 1.12 2009/03/01 13:06:49 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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)