diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 12:27:37 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-25 12:27:37 +0000 |
commit | 8f3ec82bd3ba7aa8787e16c8c71de3b052b4866a (patch) | |
tree | 96b81baf67cff089fdf6a6420ddaa14ad443b893 /term.h | |
parent | 17758e0da9b52fb54e22c38cf77b36a01e52eb66 (diff) | |
download | mandoc-8f3ec82bd3ba7aa8787e16c8c71de3b052b4866a.tar.gz |
Some offsets built into termpair.
Diffstat (limited to 'term.h')
-rw-r--r-- | term.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -43,15 +43,15 @@ struct termp { struct termpair { int type; #define TERMPAIR_FLAG (1 << 0) - union { - int flag; - } data; + int flag; + size_t offset; }; #define TERMPAIR_SETFLAG(p, fl) \ do { \ - (p)->data.flag = (fl); \ - (p)->type = TERMPAIR_FLAG; \ + assert(! (TERMPAIR_FLAG & (p)->type)); \ + (p)->flag = (fl); \ + (p)->type |= TERMPAIR_FLAG; \ } while (0) struct termact { |