From: nobu.nakada@... Date: 2002-03-19T19:17:05+09:00 Subject: [ruby-dev:16495] Re: [ruby-cvs] ruby: * re.c (rb_reg_search): should clear last_match if pos is out of なかだです。 At Tue, 19 Mar 2002 09:03:07 +0000, matz wrote: > matz Tue, 19 Mar 2002 09:03:07 +0000 > > Modified files: > ruby: > ChangeLog class.c error.c eval.c parse.y re.c string.c > version.h このlast_dyna_varsは不要では。 Index: parse.y =================================================================== RCS file: /cvs/ruby/src/ruby/parse.y,v retrieving revision 1.160 retrieving revision 1.161 diff -u -2 -p -r1.160 -r1.161 --- parse.y 2002/03/18 02:04:22 1.160 +++ parse.y 2002/03/19 09:03:07 1.161 @@ -5013,8 +5022,10 @@ local_id(id) } +static VALUE last_dyna_vars = 0; + static void top_local_init() { - local_push(); + local_push(1); lvtbl->cnt = ruby_scope->local_tbl?ruby_scope->local_tbl[0]:0; if (lvtbl->cnt > 0) { @@ -5177,5 +5188,6 @@ Init_sym() sym_tbl = st_init_strtable_with_size(200); sym_rev_tbl = st_init_numtable_with_size(200); - rb_global_variable((VALUE*)&lex_lastline); + rb_global_variable(&lex_lastline); + rb_global_variable(&last_dyna_vars); } -- --- 僕の前にBugはない。 --- 僕の後ろにBugはできる。 中田 伸悦