I applied the changes and did a clean build, tried a few samples and
they all worked as before.
Sean
On 10/21/06, Roy Sutton <roys at mindspring.com>
wrote:> 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
>
>
> Index: wxruby2/swig/common.i
> ==================================================================> ---
wxruby2/swig/common.i (revision 702)
> +++ wxruby2/swig/common.i (working copy)
> @@ -4,7 +4,7 @@
> %feature("director");
> %feature("compactdefaultargs");
>
> -%{
> +%runtime %{
> // # SWIG 1.3.29 added this new feature which we can''t use (yet)
> #define SWIG_DIRECTOR_NOUEH TRUE
>
> @@ -27,11 +27,11 @@
> #include <wx/wx.h>
> #include <wx/dcbuffer.h>
>
> -void GcMarkDeleted(void *);
> -bool GcIsDeleted(void *);
> -void GcMapPtrToValue(void *ptr, VALUE val);
> -VALUE GcGetValueFromPtr(void *ptr);
> -void GcFreefunc(void *);
> +extern void GcMarkDeleted(void *);
> +extern bool GcIsDeleted(void *);
> +extern void GcMapPtrToValue(void *ptr, VALUE val);
> +extern VALUE GcGetValueFromPtr(void *ptr);
> +extern void GcFreefunc(void *);
>
> extern VALUE mWxruby2;
> %}
>
>
> _______________________________________________
> Wxruby-development mailing list
> Wxruby-development at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wxruby-development
>
>
>