Project

General

Profile

Feature #5992

DL and fiddle should support intrinsic types, size_t, ptrdiff_t and intptr_t

Added by nobu (Nobuyoshi Nakada) almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:42460]

Description

=begin
(({size_t})) and (({ptrdiff_t})) can be resulted by built-in operators, so they should be provided as well as other primitive types.

Also ruby often needs (({uintptr_t})) as (({VALUE})).

Patch attached.
=end

dl-intrinsic-types.diff (9.37 KB) dl-intrinsic-types.diff nobu (Nobuyoshi Nakada), 02/10/2012 01:50 AM

Associated revisions

Revision b4288080
Added by nobu (Nobuyoshi Nakada) over 6 years ago

  • ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t and intptr_t. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e

Revision 34800
Added by nobu (Nobuyoshi Nakada) over 6 years ago

  • ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t and intptr_t. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

Revision 34800
Added by nobu (Nobuyoshi Nakada) over 6 years ago

  • ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t and intptr_t. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

Revision 34800
Added by nobu (Nobuyoshi Nakada) over 6 years ago

  • ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t and intptr_t. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

Revision 34800
Added by nobu (Nobuyoshi Nakada) over 6 years ago

  • ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t and intptr_t. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

Revision 34800
Added by nobu (Nobuyoshi Nakada) over 6 years ago

  • ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t and intptr_t. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

History

#1 [ruby-core:42862] Updated by tenderlovemaking (Aaron Patterson) over 6 years ago

Nobu,

This looks good. Will you apply please?

#2 Updated by nobu (Nobuyoshi Nakada) over 6 years ago

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

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


  • ext/dl/dl.c (Init_dl): support intrinsic types, size_t, ptrdiff_t and intptr_t. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

Also available in: Atom PDF