[w3m-dev 03578] meta refresh

* file.c (getMetaRefreshParam): do nothing if refresh_interval < 0
	(HTMLtagproc1): rewrite refresh
	(HTMLlineproc2body): add HTML_META
* fm.h (BP_RELOAD): deleted
	(Buffer): add event
	(AL_IMPLICIT_DONE): deleted
	(AL_ONCE): deleted
	(AL_RESTORE): deleted
	(AlarmEvent): added
* main.c (AlarmEvent): deleted
	(PrevAlarm): deleted
	(DefaultAlarm): added
	(CurrentAlarm): point to DefaultAlarm
	(main): CurrentKeyData, CurrentCmdData
		handle Currentbuf->event
	(SigAlarm): CurrentAlarm is pointer
	(copyAlarmEvent): deleted
	(setAlarm): setAlarmEvent pass &DefaultAlarm
	(setAlarmEvent): arg event
	(ldDL): no BP_RELOAD
* proto.h (setAlarmEvent): arg event
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-12-18 16:20:49 +00:00
parent 4e52a4adb4
commit 6189d68a78
5 changed files with 145 additions and 122 deletions

18
fm.h
View File

@@ -1,4 +1,4 @@
/* $Id: fm.h,v 1.97 2002/12/14 15:24:04 ukai Exp $ */
/* $Id: fm.h,v 1.98 2002/12/18 16:20:52 ukai Exp $ */
/*
* w3m: WWW wo Miru utility
*
@@ -177,7 +177,6 @@ void bzero(void *, int);
#define BP_NO_URL 0x10
#define BP_REDIRECTED 0x20
#define BP_CLOSE 0x40
#define BP_RELOAD 0x80
/* Link Buffer */
#define LB_NOLINK -1
@@ -462,6 +461,9 @@ typedef struct _Buffer {
char need_reshape;
Anchor *submit;
struct _BufferPos *undo;
#ifdef USE_ALARM
struct _AlarmEvent *event;
#endif
} Buffer;
typedef struct _BufferPos {
@@ -1116,10 +1118,14 @@ void w3m_exit(int i);
#define AL_UNSET 0
#define AL_EXPLICIT 1
#define AL_IMPLICIT 2
#define AL_IMPLICIT_DONE 4
#define AL_ONCE 8
#define AL_IMPLICIT_ONCE (AL_IMPLICIT|AL_ONCE)
#define AL_RESTORE 16
#define AL_IMPLICIT_ONCE 3
typedef struct _AlarmEvent {
int sec;
short status;
int cmd;
void *data;
} AlarmEvent;
#endif
/*