X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/0c9b9663f87a39c8ecb30b682fb7becaa353d149..77f9a432adeef3cae53323b7e7ce36b419ca2e23:/usr/src/usr.bin/window/ww.h diff --git a/usr/src/usr.bin/window/ww.h b/usr/src/usr.bin/window/ww.h index adf7a94848..11825abcd0 100644 --- a/usr/src/usr.bin/window/ww.h +++ b/usr/src/usr.bin/window/ww.h @@ -14,7 +14,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)ww.h 3.51 (Berkeley) %G% + * @(#)ww.h 3.52 (Berkeley) %G% */ #include @@ -237,7 +237,8 @@ char wwintr; /* interrupting */ char wwsetjmp; /* want a longjmp() from wwrint() and wwchild() */ jmp_buf wwjmpbuf; /* jmpbuf for above */ #define wwinterrupt() wwintr -#define wwsetintr() (wwintr = 1, wwsetjmp ? longjmp(wwjmpbuf, 1) : 0) +#define wwsetintr() do { wwintr = 1; if (wwsetjmp) longjmp(wwjmpbuf, 1); } \ + while (0) #define wwclrintr() (wwintr = 0) /* the window virtual terminal */