1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

forgotten MATCH_DATA...

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2001-09-20 12:51:58 +00:00
parent 9fb8ea1fc7
commit a8f1dd8d9f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Sep 20 21:25:00 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* eval.c (MATCH_DATA): access via rb_svar().
Thu Sep 20 15:20:00 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
* eval.c, intern.h (rb_svar): return reference to special variable

2
eval.c
View file

@ -1726,7 +1726,7 @@ copy_node_scope(node, rval)
POP_ITER();\
}
#define MATCH_DATA ruby_scope->local_vars[node->nd_cnt]
#define MATCH_DATA *rb_svar(node->nd_cnt)
static char* is_defined _((VALUE, NODE*, char*));