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

ruby-changes:27219

From: nobu <ko1@a...>
Date: Sat, 16 Feb 2013 13:00:41 +0900 (JST)
Subject: [ruby-changes:27219] nobu:r39271 (trunk): io/console: set HAVE_RB_SCAN_ARGS_OPTIONAL_HASH

nobu	2013-02-16 13:00:33 +0900 (Sat, 16 Feb 2013)

  New Revision: 39271

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39271

  Log:
    io/console: set HAVE_RB_SCAN_ARGS_OPTIONAL_HASH
    
    * ext/io/console/extconf.rb: obtain optional hash by rb_scan_args() by
      default right now.

  Modified files:
    trunk/ext/io/console/extconf.rb

Index: ext/io/console/extconf.rb
===================================================================
--- ext/io/console/extconf.rb	(revision 39270)
+++ ext/io/console/extconf.rb	(revision 39271)
@@ -19,5 +19,8 @@ if ok https://github.com/ruby/ruby/blob/trunk/ext/io/console/extconf.rb#L19
   have_func("rb_check_hash_type", "ruby.h")
   have_func("rb_io_get_write_io", "ruby/io.h")
   have_func("rb_cloexec_open", "ruby/io.h")
+  if enable_config("io-console-rb_scan_args-optional-hash", true)
+    $defs << "-DHAVE_RB_SCAN_ARGS_OPTIONAL_HASH=1"
+  end
   create_makefile("io/console")
 end

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

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