summaryrefslogtreecommitdiff
path: root/quit.h
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1996-12-23 17:02:34 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:49 +0000
commitccc6cda312fea9f0468ee65b8f368e9653e1380b (patch)
treeb059878adcfd876c4acb8030deda1eeb918c7e75 /quit.h
parent726f63884db0132f01745f1fb4465e6621088ccf (diff)
downloadbash-ccc6cda312fea9f0468ee65b8f368e9653e1380b.tar.gz
Imported from ../bash-2.0.tar.gz.
Diffstat (limited to 'quit.h')
-rw-r--r--quit.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/quit.h b/quit.h
index 57de7a00..a524efca 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_ */