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

ruby-changes:34684

From: nobu <ko1@a...>
Date: Wed, 9 Jul 2014 16:31:56 +0900 (JST)
Subject: [ruby-changes:34684] nobu:r46767 (trunk): parse.y: adjust argument types

nobu	2014-07-09 16:31:42 +0900 (Wed, 09 Jul 2014)

  New Revision: 46767

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46767

  Log:
    parse.y: adjust argument types
    
    * parse.y (symbols_i): adjust argument types for st_foreach()
      using st_data_t.

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 46766)
+++ parse.y	(revision 46767)
@@ -10903,9 +10903,10 @@ rb_make_internal_id(void) https://github.com/ruby/ruby/blob/trunk/parse.y#L10903
 }
 
 static int
-symbols_i(VALUE key, ID value, VALUE ary)
+symbols_i(st_data_t key, st_data_t value, st_data_t arg)
 {
-    VALUE sym = ID2SYM(value);
+    VALUE ary = (VALUE)arg;
+    VALUE sym = ID2SYM((ID)value);
 
     if (DYNAMIC_SYM_P(sym) && !SYMBOL_PINNED_P(sym) && rb_objspace_garbage_object_p(sym)) {
 	st_data_t sym_data = (st_data_t)sym;

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

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