Project

General

Profile

This project is closed and read-only.

Actions

Backport #7861

closed

New macro for the new feature of rb_scan_args()

Backport #7861: New macro for the new feature of rb_scan_args()

Added by nobu (Nobuyoshi Nakada) over 13 years ago. Updated over 13 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 - Bug #7847: gem release of io-console is broken on WindowsClosednobu (Nobuyoshi Nakada)Actions

Updated by mame (Yusuke Endoh) over 13 years ago Actions #1 [ruby-core:52358]

  • 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 13 years ago Actions #2 [ruby-core:52435]

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 13 years ago Actions #3 [ruby-core:52554]

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.

Updated by nobu (Nobuyoshi Nakada) over 13 years ago Actions #4

  • 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]

Updated by nobu (Nobuyoshi Nakada) over 13 years ago Actions #5

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

Updated by mame (Yusuke Endoh) over 13 years ago Actions #6 [ruby-core:52696]

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

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

--
Yusuke Endoh

Updated by nobu (Nobuyoshi Nakada) over 13 years ago Actions #7

  • 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: PDF Atom