X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/5851ee4d2b64ce06c48c8cfb740d681250066ca5..f52cdc4437cb37e93dbd03a14742e01eb654df7e:/term.h diff --git a/term.h b/term.h index fcf45e40..95e75d2a 100644 --- a/term.h +++ b/term.h @@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.10 2009/02/25 17:02:47 kristaps Exp $ */ +/* $Id: term.h,v 1.12 2009/03/01 13:06:49 kristaps Exp $ */ /* * Copyright (c) 2008 Kristaps Dzonsons * @@ -51,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)