Project

General

Profile

Actions

Feature #15047

open

Documentation and more functions for Hash functions in C API

Added by v0dro (Sameer Deshmukh) about 6 years ago. Updated almost 2 years ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:88747]

Description

Currently the C API supports various Array functions like rb_ary_new() and String
functions like rb_str_new2() I could hardly find any documentation in the README.EXT
for working with hashes. Instead, I relied on this blog: http://clalance.blogspot.com/2011/01/writing-ruby-extensions-in-c-part-10.html

Having official documentation for this purpose would be better.

Also, including more functionality like getting the size a Hash directly through
a C API call would be a welcome feature.

Updated by shevegen (Robert A. Heiler) about 6 years ago

More documentation would always be very helpful. It makes "entry" into the
ruby world easier when there is good documentation. Perhaps after ruby 3x3
we could add a new meme - four times as good documentation. :D

Updated by mrkn (Kenta Murata) about 6 years ago

Also, including more functionality like getting the size a Hash directly through
a C API call would be a welcome feature.

Use RHASH_SIZE macro.

Actions #3

Updated by v0dro (Sameer Deshmukh) about 6 years ago

Can I submit the documentation for this as a GitHub PR? I just to make updates to README.EXT.

Also, thank you for the help I will make a note of that in my patch.

Updated by hsbt (Hiroshi SHIBATA) over 5 years ago

  • Status changed from Open to Assigned
  • Assignee set to 13939
Actions #5

Updated by hsbt (Hiroshi SHIBATA) almost 2 years ago

  • Status changed from Assigned to Open
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0