From: luc Date: 2004-11-24T21:13:03+09:00 Subject: Re: Ruby DL::Importable struct issue Kevin, Hi, nice to see you here again ;-) I looked in the diffs at http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ext/dl/lib/dl/types.rb.diff?r1=1.7;r2=1.8;f=h and based on that, I changed the 'p' back into 'P' in dl/types.rb, as it was in version 1.7. Now your usage.rb passes gloriously...! Of course I don't know what I'm doing... Luc "Kevin Howe" wrote in message news:EYCdnZRN0fuN6z7cRVn-3g@rogers.com... > > Hi, > > The ruby182-14RC9.exe (one click installer) version of Ruby breaks some DL > code in a gem of mine (tidy on rubyforge). The problem is with the first > struct item which defines "byte* bp". I get the following error when I run > the script at the bottom. If "byte*" is deliberately no longer supported, > what would be a valid equivalent? > > (eval):2 in '[]': unsupported type 'p' (DL::DLTypeError) > from (eval):2:in 'bp' > > #------- > require 'dl/import' > require 'dl/struct' > > extend DL::Importable > > # http://tidy.sourceforge.net/docs/api/struct__TidyBuffer.html > TidyBuffer = struct [ > "byte* bp", > "uint size", > "uint allocated", > "uint next" > ] > > struct = TidyBuffer.malloc > puts struct.bp > #------- > >