X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/1961c1d89494c7fce047f0bc339a5feae46efc7d..f52cdc4437cb37e93dbd03a14742e01eb654df7e:/term.h?ds=inline diff --git a/term.h b/term.h index 297632cb..95e75d2a 100644 --- a/term.h +++ b/term.h @@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.9 2009/02/25 15:12:26 kristaps Exp $ */ +/* $Id: term.h,v 1.12 2009/03/01 13:06:49 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -37,6 +37,7 @@ struct termp { #define TERMP_NOBREAK (1 << 4) /* No break after flush. */ #define TERMP_LITERAL (1 << 5) /* Literal words. */ #define TERMP_IGNDELIM (1 << 6) /* Delims like regulars. */ +#define TERMP_NONOSPACE (1 << 7) /* No space (no autounset). */ char *buf; }; @@ -50,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)