зеркало из https://github.com/github/ruby.git
* parse.y (reg_named_capture_assign_iter): remove C99 dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d935298862
Коммит
26538a2091
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 19 16:26:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (reg_named_capture_assign_iter): remove C99 dependency.
|
||||
|
||||
Wed Dec 19 15:37:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* insnhelper.ci (vm_yield_with_cfunc): call cfunc with
|
||||
|
|
3
parse.y
3
parse.y
|
@ -8494,6 +8494,7 @@ reg_named_capture_assign_iter(const OnigUChar *name, const OnigUChar *name_end,
|
|||
{
|
||||
reg_named_capture_assign_t *arg = (reg_named_capture_assign_t*)arg0;
|
||||
struct parser_params* parser = arg->parser;
|
||||
ID var;
|
||||
|
||||
arg->num++;
|
||||
|
||||
|
@ -8502,7 +8503,7 @@ reg_named_capture_assign_iter(const OnigUChar *name, const OnigUChar *name_end,
|
|||
arg->fail_block = NEW_BEGIN(0);
|
||||
}
|
||||
|
||||
ID var = rb_intern3((const char *)name, name_end-name, arg->enc);
|
||||
var = rb_intern3((const char *)name, name_end-name, arg->enc);
|
||||
if (!is_local_id(var)) {
|
||||
compile_error(PARSER_ARG "named capture with a non local variable - %s",
|
||||
rb_id2name(var));
|
||||
|
|
Загрузка…
Ссылка в новой задаче