Imported from ../bash-2.0.tar.gz.
This commit is contained in:
parent
726f63884d
commit
ccc6cda312
502 changed files with 91988 additions and 69123 deletions
12
quit.h
12
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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue