From: Charles Oliver Nutter Date: 2008-11-05T03:59:26+09:00 Subject: Re: Roguelike project? Nit Khair wrote: > So, I changed platform.rb to : > > - when /i?86|x86|i86pc/ > + when /i?86|x86|i86pc|powerpc/ > > ... and now your sample works fine! Thanks. Can you submit this to Ruby FFI, as a bug or on the mailing list? I'm not sure Wayne Meissner monitors ruby-talk. > Forgive me for being spoilt, but is there some script that takes a > header file, or C source and generates the attach_function lines ? There's some generation logic for at least struct layout, but I'm not sure if it does general function wiring. It was written by the Rubinius guys, and there's not a lot of documentation for it I could see. Good idea though. I expect we'll see a flurry of fully-wired FFI-based libraries getting released one after another very soon here, and each library is one less library to wire. - Charlie