search for: gcgetvaluefromptr

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

2005 Aug 12
5
Functions that return objects...
I was investigating why the find dialog causes an error when you close it. It seems that wxRuby2 is returning a new ruby object when you call Event.get_dialog. This causes some big problems when you''re expecting you''re going to get back the same ruby pointer that you put in. In a brief check over the source I don''t see anything that preserves the original ruby
2006 Oct 21
2
common.i patch
The latest cvs version of SWIG breaks a few things. I have patched common.i to fix most of it. There will be some other things later that should be compatible with all versions. Can someone test to see if this compiles with the old version? Roy -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: common.i.patch Url:
2006 Oct 23
0
[710] trunk/wxruby2/swig/common.i: Added extern keyword to Gc functions and moved common header includes to %runtime
...uot;cx"> #include <wx/wx.h> </span><span class="cx"> #include <wx/dcbuffer.h> </span><span class="cx"> </span><del>-void GcMarkDeleted(void *); -bool GcIsDeleted(void *); -void GcMapPtrToValue(void *ptr, VALUE val); -VALUE GcGetValueFromPtr(void *ptr); -void GcFreefunc(void *); </del><ins>+extern void GcMarkDeleted(void *); +extern bool GcIsDeleted(void *); +extern void GcMapPtrToValue(void *ptr, VALUE val); +extern VALUE GcGetValueFromPtr(void *ptr); +extern void GcFreefunc(void *); </ins><span class="cx&quo...
2006 Oct 15
2
[Fwd: [ wxruby-Bugs-6144 ] error: cast from ‘void*’ to ‘int’ loses precision]
...ib/site_ruby -I /usr/lib/ruby/1.8 -I /usr/lib/ruby/1.8/x86_64-linux -I . -I /home/bma/wxruby2-preview-0.0.36/doc/lib -o obj/wx.o src/wx.cpp src/wx.cpp: In function ?void GcMapPtrToValue(void*, VALUE)?: src/wx.cpp:1636: error: cast from ?void*? to ?int? loses precision src/wx.cpp: In function ?VALUE GcGetValueFromPtr(void*)?: src/wx.cpp:1646: error: cast from ?void*? to ?int? loses precision rake aborted! Command failed with status (1): [g++ -c -I/usr/lib/wx/include/gtk2-unicod...] After googling, it seems that this is a common error when porting from 32-bit to 64-bit platforms. ----------------------------...
2007 May 21
0
[1024] trunk/wxruby2/swig: Memory mgmt: defs and implementation of new memory management; strip
...ires WxWidgets 2.8.3 or greater" </span><span class="cx"> #endif </span><span class="cx"> </span><del>-extern void GcMarkDeleted(void *); -extern bool GcIsDeleted(void *); -extern void GcMapPtrToValue(void *ptr, VALUE val); -extern VALUE GcGetValueFromPtr(void *ptr); -extern void GcFreefunc(void *); - </del><span class="cx"> extern VALUE mWxruby2; </span><span class="cx"> %} </span><span class="cx"> </span><span class="cx"> %include "typedefs.i" </s...
2006 Nov 07
0
[722] trunk/wxruby2/swig: Wx::Choice fixes for get_client_data (AF)
...p;nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsplines << ''#endif'' </span><ins>+ lines << '' VALUE rb_obj = GcGetValueFromPtr(this);'' + lines << '' rb_ivar_set(rb_obj, rb_intern("@__swig_dead__"), Qtrue);'' </ins><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp...
2007 Jun 25
0
[1070] trunk/wxruby2/swig/fixdeleting.rb: Remove old, now unused, fixdeleting script
...bsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsplines << ''#endif'' - lines << '' VALUE rb_obj = GcGetValueFromPtr(this);'' - lines << '' rb_ivar_set(rb_obj, rb_intern("@__swig_dead__"), Qtrue);'' -&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp...