[w3m-dev 03439] restore alarm event

* fm.h (AL_RESTORE): added
* main.c (alarm_sec): deleted
	(alarm_status): deleted
	(alarm_buffer): deleted
	(alarm_event): deleted
	(AlarmEvent): added
	(CurrentAlarm): added
	(PrevAlarm): added
	(main): rewrite with CurrentAlarm
	(SigAlarm): rewrite with CurrentAlarm
	(copyAlarmEvent): added
	(setAlarm): if AL_RESTORE, copy back from PrevAlarm
		rewrite with CurrentAlarm
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-11-15 16:05:13 +00:00
parent 587867d610
commit f360ff56be
3 changed files with 82 additions and 32 deletions

3
fm.h
View File

@@ -1,4 +1,4 @@
/* $Id: fm.h,v 1.80 2002/11/15 15:58:27 ukai Exp $ */
/* $Id: fm.h,v 1.81 2002/11/15 16:05:15 ukai Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -1070,6 +1070,7 @@ void w3m_exit(int i);
#define AL_IMPLICIT_DONE 4
#define AL_ONCE 8
#define AL_IMPLICIT_ONCE (AL_IMPLICIT|AL_ONCE)
#define AL_RESTORE 16
#endif
/*