mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
139579b501
commit
ccb6e802af
2 changed files with 0 additions and 10 deletions
|
@ -1804,12 +1804,6 @@ print("check functions.")
|
|||
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.")
|
||||
|
|
|
@ -3636,11 +3636,7 @@ ip_ruby_cmd(clientData, interp, argc, argv)
|
|||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue