ruby-changes:51745
From: nobu <ko1@a...>
Date: Thu, 12 Jul 2018 11:30:02 +0900 (JST)
Subject: [ruby-changes:51745] nobu:r63957 (trunk): removed unusecd constants
nobu 2018-07-12 11:29:57 +0900 (Thu, 12 Jul 2018) New Revision: 63957 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63957 Log: removed unusecd constants * ruby-runner.c (ruby_libm_func): removed as the following test actually doesn't need the path of libm. * test/fiddle/test_pointer.rb (Fiddle::TestPointer#test_free=): removed never used constants and instance variables. Modified files: trunk/ruby-runner.c trunk/test/fiddle/test_pointer.rb Index: ruby-runner.c =================================================================== --- ruby-runner.c (revision 63956) +++ ruby-runner.c (revision 63957) @@ -43,10 +43,6 @@ insert_env_path(const char *envname, con https://github.com/ruby/ruby/blob/trunk/ruby-runner.c#L43 setenv(envname, env, 1); } -/* force to link libm for fiddle test */ -#include <math.h> -double (*const ruby_libm_func)(double) = log; - #define EXTOUT_DIR BUILDDIR"/"EXTOUT int main(int argc, char **argv) Index: test/fiddle/test_pointer.rb =================================================================== --- test/fiddle/test_pointer.rb (revision 63956) +++ test/fiddle/test_pointer.rb (revision 63957) @@ -152,11 +152,7 @@ module Fiddle https://github.com/ruby/ruby/blob/trunk/test/fiddle/test_pointer.rb#L152 def test_free= assert_normal_exit(<<-"End", '[ruby-dev:39269]') require 'fiddle' - Fiddle::LIBC_SO = #{Fiddle::LIBC_SO.dump} - Fiddle::LIBM_SO = #{Fiddle::LIBM_SO.dump} include Fiddle - @libc = dlopen(LIBC_SO) - @libm = dlopen(LIBM_SO) free = Fiddle::Function.new(Fiddle::RUBY_FREE, [TYPE_VOIDP], TYPE_VOID) ptr = Fiddle::Pointer.malloc(4) ptr.free = free -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/