diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-01 13:06:49 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-01 13:06:49 +0000 |
commit | 97b5fc0261467f0f882205086dbf42286c92c8a3 (patch) | |
tree | 720463505816698e322b451eba9a256dd0533ed2 /term.h | |
parent | 7a49cc5212b86749bc74fb4733c81bd65f2f177e (diff) | |
download | mandoc-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |