diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-20 09:38:23 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-05-20 09:38:23 +0000 |
commit | a2db8e72c10c5e5506f18314ac805cd8206a4181 (patch) | |
tree | b9026d4ea72cc59db8cda5c82e2bafa7f20f0e77 /ext/dl/extconf.rb | |
parent | 077d92a044cb22bfa88f39bfef43ea77e89440db (diff) |
Get rid of the declaration of rb_str_cat2().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/extconf.rb')
-rw-r--r-- | ext/dl/extconf.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb index 050b759ddf..9f3875071e 100644 --- a/ext/dl/extconf.rb +++ b/ext/dl/extconf.rb @@ -17,7 +17,7 @@ if( ARGV.include?("--help") ) <max_cbent>: maximum number of callback entries --enable-asm use the embedded assembler for passing arguments. (this option is available for i386 machine now.) - --enable-dlstack use a stack emulation for constructing function call. [experimental] + --enable-dlstack use a stack emulation for constructing function call. EOF exit(0) end @@ -33,7 +33,7 @@ if (Config::CONFIG['CC'] =~ /gcc/) && (Config::CONFIG['arch'] =~ /i.86/) else $with_asm = false end -$with_dlstack = false +$with_dlstack = ! $with_asm $with_type_int = try_run(<<EOF) int main(){ return sizeof(int) == sizeof(long); } @@ -165,11 +165,6 @@ else exit(0) end -method(:have_func).arity == 1 or have_func("rb_str_cat2", "ruby.h") -if method(:have_func).arity == 1 or !have_func("rb_block_given_p", "ruby.h") - $dlconfig_h << "#define rb_block_given_p rb_iterator_p\n" -end - def File.update(file, str) begin open(file){|f|f.read} == str |