From: WATANABE Tetsuya Date: 2003-07-10T10:26:59+09:00 Subject: [ruby-dev:20589] eval.c compile error 渡辺哲也です。 すでに報告されていたらごめんなさい。 7/10 の朝の HEAD を CVS したものです。 eval.c で次のようなエラーがでました。 ------------------------------ eval.c: In function `rb_thread_schedule': eval.c:8454: parse error before `readfds' eval.c:8476: `max' undeclared (first use in this function) eval.c:8476: (Each undeclared identifier is reported only once eval.c:8476: for each function it appears in.) eval.c:8477: `readfds' undeclared (first use in this function) eval.c:8478: `writefds' undeclared (first use in this function) eval.c:8479: `exceptfds' undeclared (first use in this function) eval.c:8480: `delay' undeclared (first use in this function) eval.c:8481: `now' undeclared (first use in this function) eval.c:8497: `need_select' undeclared (first use in this function) eval.c:8506: `select_timeout' undeclared (first use in this function) eval.c:8535: `delay_tv' undeclared (first use in this function) eval.c:8537: `delay_ptr' undeclared (first use in this function) eval.c:8548: `n' undeclared (first use in this function) make: *** [eval.o] Error 1 ------------------------------ 意図とあっているかわかりませんが、次のよう に書きたかったのかな? ------------------------------------------------------------ --- eval.c.org Thu Jul 10 08:23:14 2003 +++ eval.c Thu Jul 10 10:22:00 2003 @@ -8450,7 +8450,6 @@ rb_thread_t curr; int found = 0; - if (ruby_in_compile) abort(); fd_set readfds; fd_set writefds; fd_set exceptfds; @@ -8460,6 +8459,8 @@ int need_select = 0; int select_timeout = 0; + if (ruby_in_compile) abort(); + rb_thread_pending = 0; if (curr_thread == curr_thread->next && curr_thread->status == THREAD_RUNNABLE)