aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-12-25 16:06:43 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-12-25 16:06:43 +0000
commitfcc128795d5e72790181c7e40519118434143fe2 (patch)
treea06b6a632a4abb85d30a957788be65f3e7895995
parent[w3m-dev 03600] Re: meta refresh (diff)
downloadw3m-fcc128795d5e72790181c7e40519118434143fe2.tar.gz
w3m-fcc128795d5e72790181c7e40519118434143fe2.zip
[w3m-dev 03601] Re: meta refresh
* main.c (LastEvent): added (pushEvent): add to LastEvent From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
-rw-r--r--ChangeLog8
-rw-r--r--main.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7d2bc24..5f3c758 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2002-12-26 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+ * [w3m-dev 03601] Re: meta refresh
+ * main.c (LastEvent): added
+ (pushEvent): add to LastEvent
+
+2002-12-26 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
+
* [w3m-dev 03600] Re: meta refresh
* main.c (main): move add_download_list
@@ -6073,4 +6079,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.646 2002/12/25 16:05:08 ukai Exp $
+$Id: ChangeLog,v 1.647 2002/12/25 16:06:43 ukai Exp $
diff --git a/main.c b/main.c
index c339b5c..89c4d51 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.180 2002/12/25 16:05:08 ukai Exp $ */
+/* $Id: main.c,v 1.181 2002/12/25 16:06:43 ukai Exp $ */
#define MAINPROGRAM
#include "fm.h"
#include <signal.h>
@@ -39,6 +39,7 @@ typedef struct _Event {
struct _Event *next;
} Event;
static Event *CurrentEvent = NULL;
+static Event *LastEvent = NULL;
#ifdef USE_ALARM
static AlarmEvent DefaultAlarm = {
@@ -1097,9 +1098,10 @@ pushEvent(int cmd, void *data)
event->data = data;
event->next = NULL;
if (CurrentEvent)
- CurrentEvent->next = event;
+ LastEvent->next = event;
else
CurrentEvent = event;
+ LastEvent = event;
}
static void