diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-19 16:24:21 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-12-19 16:24:21 +0000 |
commit | 7c6a9c070a3c97057c4627379295fa7f5160acbd (patch) | |
tree | c9f9b9b537877799536d1c9062bbbf7e50f07334 | |
parent | [#493911] too few arguments to function `longjmp (diff) | |
download | w3m-7c6a9c070a3c97057c4627379295fa7f5160acbd.tar.gz w3m-7c6a9c070a3c97057c4627379295fa7f5160acbd.zip |
[w3m-dev 02672]
From: Tsutomu Okada <okada@furuno.co.jp>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | main.c | 25 |
2 files changed, 16 insertions, 17 deletions
@@ -1,3 +1,9 @@ +2001-12-20 Tsutomu Okada <okada@furuno.co.jp> + + * [w3m-dev 02672] + * main.c (wrap_GC_warn_proc): msg_ring initial value + * main.c (SigAlarm): not need #ifdef USE_ALARM, already guarded + 2001-12-18 Fumitoshi UKAI <ukai@debian.or.jp> * [#493911] too few arguments to function `longjmp' @@ -1297,4 +1303,4 @@ * release-0-2-1 * import w3m-0.2.1 -$Id: ChangeLog,v 1.137 2001/12/17 16:18:18 ukai Exp $ +$Id: ChangeLog,v 1.138 2001/12/19 16:24:21 ukai Exp $ @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.38 2001/12/17 16:13:40 ukai Exp $ */ +/* $Id: main.c,v 1.39 2001/12/19 16:24:21 ukai Exp $ */ #define MAINPROGRAM #include "fm.h" #include <signal.h> @@ -162,26 +162,21 @@ static void wrap_GC_warn_proc(char *msg, GC_word arg) { if (fmInitialized) { - /* *INDENT-OFF* */ - static struct { - char *msg; - GC_word arg; - } msg_ring[GC_WARN_KEEP_MAX] = { - {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, - {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, - {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, - {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, - }; - /* *INDENT-ON* */ + /* *INDENT-OFF* */ + static struct { + char *msg; + GC_word arg; + } msg_ring[GC_WARN_KEEP_MAX]; + /* *INDENT-ON* */ static int i = 0; static int n = 0; static int lock = 0; int j; - + j = (i + n) % (sizeof(msg_ring) / sizeof(msg_ring[0])); msg_ring[j].msg = msg; msg_ring[j].arg = arg; - + if (n < sizeof(msg_ring) / sizeof(msg_ring[0])) ++n; else @@ -4662,7 +4657,6 @@ SigAlarm(SIGNAL_ARG) #endif w3mFuncList[alarm_event.cmd].func(); onA(); -#ifdef USE_ALARM if (alarm_status == AL_IMPLICIT) { alarm_buffer = Currentbuf; alarm_status = AL_IMPLICIT_DONE; @@ -4675,7 +4669,6 @@ SigAlarm(SIGNAL_ARG) signal(SIGALRM, SigAlarm); alarm(alarm_sec); } -#endif } SIGNAL_RETURN; } |