search for: swig_rubyunlinkobject

Displaying 7 results from an estimated 7 matches for "swig_rubyunlinkobject".

Did you mean: swig_rubyunlinkobjects
2007 Jul 22
0
[1140] trunk/wxruby2/swig/mark_free_impl.i: Remove instance variable marking of deleted Wx Windows because it''s redundant
...r); - if ( rb_win != Qnil ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_ivar_set(rb_win, wx_destroyed_sym, Qtrue); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyUnlinkObjects(ptr); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyRemoveTracking(ptr); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} </del><ins>+ SWIG_RubyUnlinkObjects(ptr); + SWIG_RubyRemoveTracking(ptr); </ins><span cla...
2007 Jul 21
0
[1135] trunk/wxruby2/swig/mark_free_impl.i: Convert from DOS to Unix newlines
...r); - if ( rb_win != Qnil ) -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp{ -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_ivar_set(rb_win, wx_destroyed_sym, Qtrue); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyUnlinkObjects(ptr); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyRemoveTracking(ptr); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} -} - -// Carries out marking of Sizer objects belonging to a Wx::Window. Note -// that this isn''t done...
2007 Apr 13
0
[959] branches/wxruby2/wxwidgets_282/swig/wx.i: Ensure GC_NEVER handler at least unlinks objects; update to new API for
...e; </span><span class="cx"> } </span><span class="cx"> </span><del>-void GcFreefunc(void *) </del><ins>+void GcFreefunc(void *ptr) </ins><span class="cx"> { </span><del>- </del><ins>+ SWIG_RubyUnlinkObjects(ptr); + SWIG_RubyRemoveTracking(ptr); </ins><span class="cx"> } </span><span class="cx"> </span><span class="cx"> /////////////////////////////////////////////////// </span><span class="lines">@@ -74,7 +75,7...
2007 Jul 21
0
[1134] trunk/wxruby2/swig/mark_free_impl.i: When window is deleted, unhook ruby obj from DATA_PTR to avoid MSW crashes
...;nbsp&nbsp&nbsp&nbsp{ </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp rb_ivar_set(rb_win, wx_destroyed_sym, Qtrue); </span><ins>+&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyUnlinkObjects(ptr); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp SWIG_RubyRemoveTracking(ptr); </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp} </span><span class="cx"> } </span><s...
2007 May 21
0
[1022] trunk/wxruby2/swig/classes/App.i: Memory mgmt: use Wx::App to mark still-alive Windows, set up Wx::THE_APP const
...mp;nbsp&nbsp&nbspwxObject* wx_obj = event.GetEventObject(); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// Would be neater - but can''t do it this way b/c of destruction sequence +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// SWIG_RubyUnlinkObjects((void *)wx_obj); + +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE rb_obj = SWIG_RubyInstanceFor((void *)wx_obj); +&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_iv_set(rb_obj, "@__wx_destroyed__", Qtrue); +&nbsp&nbsp&amp...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...return rb_hash_aref(GcRubyHash, INT2NUM((long)ptr)); -} - -void GcMarkDeleted(void *ptr) -{ - DeletedHash[ptr] = true; -} - -bool GcIsDeleted(void *ptr) -{ - if (DeletedHash.find(ptr) == DeletedHash.end()) - return false; - else return true; -} - -void GcFreefunc(void *ptr) -{ - SWIG_RubyUnlinkObjects(ptr); </del><span class="cx"> SWIG_RubyRemoveTracking(ptr); </span><span class="cx"> } </span><del>- -/////////////////////////////////////////////////// -extern "C" void Init_wxRubyEventTypes(); - </del><span class=&quot...
2007 Jul 05
0
[1109] trunk/wxruby2/swig: Move marking of MenuBar from direct %markfunc to via mark_wxFrame, so
...pwxObject* wx_obj = event.GetEventObject(); </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// Would be neater - but can''t do it this way b/c of destruction sequence -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp// SWIG_RubyUnlinkObjects((void *)wx_obj); - -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspVALUE rb_obj = SWIG_RubyInstanceFor((void *)wx_obj); -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsprb_iv_set(rb_obj, "@__wx_destroyed__", Qtrue); </del><ins>...