From: nobu.nakada@... Date: 2001-05-06T09:38:16+09:00 Subject: [ruby-dev:13111] Re: [PATCH] ruby 1.7 compile error on mswin32 なかだです。 At Thu, 3 May 2001 19:38:11 +0900, U.Nakamura wrote: > それでは、とりあえず下記のようにすれば警告は消えます。 > 関数の宣言のほうをきつめにしましたけど、逆のほうがいいの > かも。 プロトタイプは _() で括っておかないとまずいです。 > --- current/dir.c Wed May 2 23:28:34 2001 > +++ mytree/dir.c Thu May 3 19:23:18 2001 > @@ -751,5 +751,5 @@ void > rb_glob(path, func, arg) > char *path; > - void (*func)(); > + void (*func)(const char*, VALUE); > VALUE arg; > { void (*func) _((const char*, VALUE)); とか > @@ -5763,4 +5763,6 @@ rb_mark_end_proc() > } > > +static void call_end_proc(VALUE data); > + > static void > call_end_proc(data) static void call_end_proc _((VALUE data)); > @@ -5805,5 +5807,5 @@ rb_exec_end_proc() > link = end_procs; > while (link) { > - rb_protect((VALUE(*)())link->func, link->data, &status); > + rb_protect((VALUE(*)(VALUE))link->func, link->data, &status); > if (status) { > error_handle(status); rb_protect((VALUE(*)_((VALUE)))link->func, link->data, &status); って感じですね。 -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦