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

ruby-changes:42441

From: nobu <ko1@a...>
Date: Fri, 8 Apr 2016 11:18:11 +0900 (JST)
Subject: [ruby-changes:42441] nobu:r54515 (trunk): tk/extconf.rb: outdated checks

nobu	2016-04-08 12:14:45 +0900 (Fri, 08 Apr 2016)

  New Revision: 54515

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

  Log:
    tk/extconf.rb: outdated checks
    
    * ext/tk/extconf.rb: remove outdated checks.
    
    * ext/tk/tcltklib.c (ip_ruby_cmd): remove longstanding dead code.
      ptr and len in RArray were till 1.8 and have_struct_member of
      1.8 does not set HAVE_<stuct_name>_<member_name> but only
      HAVE_ST_<member_name>.

  Modified files:
    trunk/ext/tk/extconf.rb
    trunk/ext/tk/tcltklib.c
Index: ext/tk/extconf.rb
===================================================================
--- ext/tk/extconf.rb	(revision 54514)
+++ ext/tk/extconf.rb	(revision 54515)
@@ -1804,12 +1804,6 @@ print("check functions.") https://github.com/ruby/ruby/blob/trunk/ext/tk/extconf.rb#L1804
 end
 print("\n") # progress
 
-print("check struct members.")
-have_struct_member("struct RArray", "ptr", "ruby.h")
-print(".") # progress
-have_struct_member("struct RArray", "len", "ruby.h")
-print("\n") # progress
-
 # check libraries
 unless is_win32?
   print("check libraries.")
Index: ext/tk/tcltklib.c
===================================================================
--- ext/tk/tcltklib.c	(revision 54514)
+++ ext/tk/tcltklib.c	(revision 54515)
@@ -3636,11 +3636,7 @@ ip_ruby_cmd(clientData, interp, argc, ar https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L3636
         s = rb_tainted_str_new2(str);
 #endif
         DUMP2("arg:%s",str);
-#ifndef HAVE_STRUCT_RARRAY_LEN
         rb_ary_push(args, s);
-#else
-        RARRAY(args)->ptr[RARRAY(args)->len++] = s;
-#endif
     }
 
     if (old_gc == Qfalse) rb_gc_enable();

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

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