зеркало из https://github.com/github/ruby.git
* eval.c (rb_f_local_variables): skip $_, $~ and flip states in
dynamic variables. [ruby-core:00681] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
220649ca78
Коммит
520416fdc5
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 7 07:48:01 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* eval.c (rb_f_local_variables): skip $_, $~ and flip states in
|
||||
dynamic variables. [ruby-core:00681]
|
||||
|
||||
Mon Jan 6 23:36:29 2003 Akinori MUSHA <knu@iDaemons.org>
|
||||
|
||||
* st.h, st.c: Introduce new conventional typedef's, st_data_t,
|
||||
|
|
2
eval.c
2
eval.c
|
@ -6004,7 +6004,7 @@ rb_f_local_variables()
|
|||
|
||||
vars = ruby_dyna_vars;
|
||||
while (vars) {
|
||||
if (vars->id) {
|
||||
if (vars->id && rb_is_local_id(vars->id)) { /* skip $_, $~ and flip states */
|
||||
rb_ary_push(ary, rb_str_new2(rb_id2name(vars->id)));
|
||||
}
|
||||
vars = vars->next;
|
||||
|
|
Загрузка…
Ссылка в новой задаче