[MacRuby] #1376: C API should include RREGEXP
#1376: C API should include RREGEXP ----------------------------+----------------------------------------------- Reporter: kyle@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- The standard Ruby C API includes a macro, RREGEXP, which provides access to the source and options strings of a given Ruby regular expression. In addition, sometimes RREGEXP_SRC is defined, and it returns a Ruby string object. RREGEXP_OPTIONS is also often defined, and it returns a long integer. Is there any way that these macros can be made part of the public C API so that C extensions that work with other Ruby implementations will also work with MacRuby? -- Ticket URL: <http://www.macruby.org/trac/ticket/1376> MacRuby <http://macruby.org/>
#1376: C API should include RREGEXP ----------------------------+----------------------------------------------- Reporter: kyle@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): That is possible to add, but some fields of that structure (such as `struct re_pattern_buffer *ptr') will not be accessible, as we use a different store to implement regexps. Could you provide the name of a C extension that makes use of these macros? This way we can verify that the change works as expected by testing it. -- Ticket URL: <http://www.macruby.org/trac/ticket/1376#comment:1> MacRuby <http://macruby.org/>
#1376: C API should include RREGEXP ----------------------------+----------------------------------------------- Reporter: kyle@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- Comment(by art@…): bson_ext will demonstrate this error when compiling cbson. -- Ticket URL: <http://www.macruby.org/trac/ticket/1376#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby