mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7c5a79efba
commit
1c904182d2
2 changed files with 0 additions and 8 deletions
|
@ -43,10 +43,6 @@ insert_env_path(const char *envname, const char *paths, size_t size, int prepend
|
|||
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)
|
||||
|
|
|
@ -152,11 +152,7 @@ module Fiddle
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue