Feature #5992

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

Added by Nobuyoshi Nakada about 2 years ago. Updated about 2 years ago.

[ruby-core:42460]
Status:Closed
Priority:Normal
Assignee:Aaron Patterson
Category:ext
Target version:2.0.0

Description

=begin
(({sizet})) and (({ptrdifft})) 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 Magnifier (9.37 KB) Nobuyoshi Nakada, 02/10/2012 01:50 AM

Associated revisions

Revision 34800
Added by Nobuyoshi Nakada about 2 years ago

  • ext/dl/dl.c (Initdl): support intrinsic types, sizet, ptrdifft and intptrt. [Feature #5992]
  • ext/fiddle/fiddle.c (Init_fiddle): ditto.
  • ext/dl/lib/dl/cparser.rb (DL::CParser#parse_ctype): ditto.

History

#1 Updated by Aaron Patterson about 2 years ago

Nobu,

This looks good. Will you apply please?

#2 Updated by Nobuyoshi Nakada about 2 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 (Initdl): support intrinsic types, sizet, ptrdifft and intptrt. [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