Hi The attached patches enable the use of SWIG''s *INPUT *OUTPUT and *INOUT typemaps as described in the manual. It''s done by including SWIG''s own ''typemaps.i'' file so it''ll allow us to benefit from future upgrades to that. The problem was a collision between a Ruby macro _ (fixing for old compilers) and a WxWidgets macro _ (for text translation) - which was undef''d anyway. Thanks for the hints that got me to this, eventually. cheers alex _______________________________________________ wxruby-users mailing list wxruby-users@rubyforge.org http://rubyforge.org/mailman/listinfo/wxruby-users
On Sun, 2006-04-23 at 18:41 +0100, Alex Fenton wrote:> The attached patches enable the use of SWIG''s *INPUT *OUTPUT and *INOUT > typemaps as described in the manual. It''s done by including SWIG''s own > ''typemaps.i'' file so it''ll allow us to benefit from future upgrades to that.Cool. Checked in. Roy--did you mention that this caused other problems? I haven''t seen them yet, but would like to know if there are some. Kevin
On Sat, 2006-04-29 at 18:18 -0400, Kevin Smith wrote:> On Sun, 2006-04-23 at 18:41 +0100, Alex Fenton wrote: > > The attached patches enable the use of SWIG''s *INPUT *OUTPUT and *INOUT > > typemaps as described in the manual. It''s done by including SWIG''s own > > ''typemaps.i'' file so it''ll allow us to benefit from future upgrades to that. > > Cool. Checked in. > > Roy--did you mention that this caused other problems? I haven''t seen > them yet, but would like to know if there are some.Ah. I found them for myself. SWIG was warning about several cases of methods shadowing other variations, as in the two versions of GetText. I %ignore''d all of those. I also had to %ignore a couple methods that we probably want to keep: GetTextExtent and GetMultiLineTextExtent. Finally, there are still quite a few SWIG warnings for methods that are shadowing themselves, due to some weird interaction between the typemaps and optional variables. Hopefully one of you can take a look at these remaining problems and submit some fixes. Thanks, Kevin
Kevin Smith wrote:> Ah. I found them for myself. SWIG was warning about several cases of > methods shadowing other variations, as in the two versions of GetText. I > %ignore''d all of those. > > I also had to %ignore a couple methods that we probably want to keep: > GetTextExtent and GetMultiLineTextExtent. > > Finally, there are still quite a few SWIG warnings for methods that are > shadowing themselves, due to some weird interaction between the typemaps > and optional variables. > > Hopefully one of you can take a look at these remaining problems and > submit some fixes. >Kevin, Are all submitted patches checked in? If so, I''ll grab the latest and compare with my directory. I have several ''work in process'' items. I added the compactdefaultargs options as suggested by Daniel Savarese and saw only improvements from that. I am recompiling right now as we speak with -fvirtual added to the SWIG options. I don''t suspect we''ll have problems with that, in fact, I think it''ll make some wrapping easier as we won''t have to apply typemaps in multiple files. Roy
On Sat, 2006-04-29 at 20:51 -0400, Roy Sutton wrote:> Are all submitted patches checked in?As of this moment, I think all the submitted patches have been checked in except: - The ComboBox/ControlWithItems stuff I didn''t accept - "XP-Style widgets in wxruby" - "Major Breakthrough" It''s time for me to go to bed now, but I hope to do the rest (and anything you send me overnight) tomorrow. Thanks, Kevin