X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=quit.h;h=a524efca0314292b4e9581a02669c4fc4144a219;hb=ccc6cda312fea9f0468ee65b8f368e9653e1380b;hp=57de7a003a59d48ee51f3a4143c6e3241f1b2656;hpb=726f63884db0132f01745f1fb4465e6621088ccf;p=platform%2Fupstream%2Fbash.git diff --git a/quit.h b/quit.h index 57de7a0..a524efc 100644 --- a/quit.h +++ b/quit.h @@ -18,8 +18,8 @@ with Bash; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ -#if !defined (__QUIT_H__) -#define __QUIT_H__ +#if !defined (_QUIT_H_) +#define _QUIT_H_ /* Non-zero means SIGINT has already ocurred. */ extern int interrupt_state; @@ -30,4 +30,10 @@ extern void throw_to_top_level (); it is safe, put QUIT in the code, and the "interrupt" will take place. */ #define QUIT if (interrupt_state) throw_to_top_level () -#endif /* __QUIT_H__ */ +#define SETINTERRUPT interrupt_state = 1 +#define CLRINTERRUPT interrupt_state = 0 + +#define ADDINTERRUPT interrupt_state++ +#define DELINTERRUPT interrupt_state-- + +#endif /* _QUIT_H_ */