Backport #7861

New macro for the new feature of rb_scan_args()

Added by Nobuyoshi Nakada about 1 year ago. Updated about 1 year ago.

[ruby-core:52297]
Status:Closed
Priority:Normal
Assignee:Nobuyoshi Nakada

Description

=begin
(({rbscanargs()})) has new feature since 1.9.3, but there is no way to tell if it is available from extension libraries.
So we have to provide a preprocessor symbol for it now.

The name in my mind is (({HAVERBSCANARGSOPTIONAL_HASH})) now.
Any ideas?
=end


Related issues

Blocks ruby-trunk - Bug #7847: gem release of io-console is broken on Windows Closed 02/14/2013

Associated revisions

Revision 39426
Added by Nobuyoshi Nakada about 1 year ago

merge revision(s) 39335:

* include/ruby/ruby.h (HAVE_RB_SCAN_ARGS_OPTIONAL_HASH): for
  rb_scan_args() optional hash feature.  [Bug #7861]

History

#1 Updated by Yusuke Endoh about 1 year ago

  • Priority changed from Immediate to Normal
  • Target version changed from 2.0.0 to 2.1.0

nobu (Nobuyoshi Nakada) wrote:

(({rbscanargs()})) has new feature since 1.9.3, but there is no way to tell if it is available from extension libraries.

Do you know any concrete application that is in urgent need of the information?

Yusuke Endoh mame@tsg.ne.jp

#2 Updated by Hans Mackowiak about 1 year ago

i for sample would like to know how to use the Optional Hash (and with 2.0 the default hash parameters) with rbscanargs

#3 Updated by Nobuyoshi Nakada about 1 year ago

No concrete applications yet, but they will come soon certainly.

An extension library which wants to support optional hash may want to
use this feature, and the feature itself is intended to be.

Suppose that it wants to support 1.9.3 either right now, then it needs
the way to tell if rbscanargs() supports ':'. But the way is now
only try_run, which can't work while cross compiling.

It's too late after the 2.0.0 release.

#4 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39335.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


ruby.h: HAVERBSCANARGSOPTIONAL_HASH

  • include/ruby/ruby.h (HAVERBSCANARGSOPTIONALHASH): for rbscan_args() optional hash feature. [Bug #7861]

#5 Updated by Nobuyoshi Nakada about 1 year ago

  • Tracker changed from Bug to Backport
  • Project changed from ruby-trunk to Backport200
  • Category deleted (core)
  • Status changed from Closed to Assigned
  • Target version deleted (2.1.0)

#6 Updated by Yusuke Endoh about 1 year ago

  • Assignee changed from Yusuke Endoh to Nobuyoshi Nakada

Looks benign. Okay, go ahead. Sorry for late reply.

Yusuke Endoh mame@tsg.ne.jp

#7 Updated by Nobuyoshi Nakada about 1 year ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r39426.
Nobuyoshi, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39335:

* include/ruby/ruby.h (HAVE_RB_SCAN_ARGS_OPTIONAL_HASH): for
  rb_scan_args() optional hash feature.  [Bug #7861]

Also available in: Atom PDF