I am trying to get the Mongo C extension to compile under rubinius. I've 
cleaned up several things that aren't supported under rubinius. However, I am 
now stuck on a regular expression structure that isn't defined in rubinius at 
all.

The code is dereferencing the RRegexp structure to get at the options attached 
to it (e.g. ignore case, multiline, etc). I can't find this structure defined 
anywhere. Using MRI ruby source as a guide, it should be defined in ruby.h. I 
*did* see something similar commented out in rubinius' rubyext.c file.

Should I define this structure in ruby.h and follow the same pattern I see for 
RString, RData, etc? 

If so, my followup question is how do I then make things safe to access the 
"options" field which is probably the same as the re_pattern_buffer structure I 
see in onigurama.h file?

Thanks for any pointers (heh) you can provide. I'll be on irc all day (next 6 
hours at least).

cr

-- 
--- !ruby/object:MailingList
name: rubinius-dev
view: http://groups.google.com/group/rubinius-dev?hl=en
post: [email protected]
unsubscribe: [email protected]

Reply via email to