Imported from ../bash-2.0.tar.gz.
[platform/upstream/bash.git] / quit.h
diff --git a/quit.h b/quit.h
index 57de7a0..a524efc 100644 (file)
--- 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_ */