diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-18 16:20:49 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-18 16:20:49 +0000 |
commit | 6189d68a7864a2ce5e2943ea13e79cbb241342a5 (patch) | |
tree | 66d09fdcf121e1b714dbdc849537680949d9b324 /fm.h | |
parent | [w3m-dev 03577] incorrect table width (diff) | |
download | w3m-6189d68a7864a2ce5e2943ea13e79cbb241342a5.tar.gz w3m-6189d68a7864a2ce5e2943ea13e79cbb241342a5.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | fm.h | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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 /* |