Project

General

Profile

Actions

Backport #7861

closed

New macro for the new feature of rb_scan_args()

Added by nobu (Nobuyoshi Nakada) almost 12 years ago. Updated over 11 years ago.


Description

=begin
(({rb_scan_args()})) 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 (({HAVE_RB_SCAN_ARGS_OPTIONAL_HASH})) now.
Any ideas?
=end


Related issues 1 (0 open1 closed)

Blocks Ruby master - Bug #7847: gem release of io-console is broken on WindowsClosednobu (Nobuyoshi Nakada)02/14/2013Actions

Updated by mame (Yusuke Endoh) almost 12 years ago

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

nobu (Nobuyoshi Nakada) wrote:

(({rb_scan_args()})) 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

Updated by Hanmac (Hans Mackowiak) over 11 years ago

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

Updated by nobu (Nobuyoshi Nakada) over 11 years 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 rb_scan_args() 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.

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 11 years 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: HAVE_RB_SCAN_ARGS_OPTIONAL_HASH

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

Updated by nobu (Nobuyoshi Nakada) over 11 years ago

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

Updated by mame (Yusuke Endoh) over 11 years ago

  • Assignee changed from mame (Yusuke Endoh) to nobu (Nobuyoshi Nakada)

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

--
Yusuke Endoh

Actions #7

Updated by nobu (Nobuyoshi Nakada) over 11 years 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]
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0