[前][次][番号順一覧][スレッド一覧]

ruby-changes:2830

From: ko1@a...
Date: 19 Dec 2007 16:27:21 +0900
Subject: [ruby-changes:2830] nobu - Ruby:r14321 (trunk): * parse.y (reg_named_capture_assign_iter): remove C99 dependency.

nobu	2007-12-19 16:26:37 +0900 (Wed, 19 Dec 2007)

  New Revision: 14321

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

  Log:
    * parse.y (reg_named_capture_assign_iter): remove C99 dependency.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=14321&r2=14320
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14321&r2=14320

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14320)
+++ ChangeLog	(revision 14321)
@@ -1,3 +1,7 @@
+Wed Dec 19 16:26:35 2007  Nobuyoshi Nakada  <nobu@r...>
+
+	* parse.y (reg_named_capture_assign_iter): remove C99 dependency.
+
 Wed Dec 19 15:37:06 2007  Yukihiro Matsumoto  <matz@r...>
 
 	* insnhelper.ci (vm_yield_with_cfunc): call cfunc with
Index: parse.y
===================================================================
--- parse.y	(revision 14320)
+++ parse.y	(revision 14321)
@@ -8494,6 +8494,7 @@
 {
     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 @@
         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));

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]