Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 163688 Details for
Bug 235584
dev-util/subversion-1.5.1 ruby bindings compile failure with dev-lang/swig-1.3.36:subversion/bindings/swig/ruby/svn_client.c:1364: error: ‘_mSWIG’ undeclared (first use in this function)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ruby-swig-1.3.36.patch
ruby-swig-1.3.36.patch (text/plain), 3.44 KB, created by
Ed Catmur
on 2008-08-24 01:03:56 UTC
(
hide
)
Description:
ruby-swig-1.3.36.patch
Filename:
MIME Type:
Creator:
Ed Catmur
Created:
2008-08-24 01:03:56 UTC
Size:
3.44 KB
patch
obsolete
>--- subversion/bindings/swig/proxy/rubyhead.swg 2008-07-24 06:39:29.000000000 +0100 >+++ subversion/bindings/swig/proxy/rubyhead.swg 2008-06-26 09:49:08.000000000 +0100 >@@ -1,5 +1,14 @@ > #include <ruby.h> > >+/* Remove global macros defined in Ruby's win32.h */ >+#ifdef write >+# undef write >+#endif >+#ifdef read >+# undef read >+#endif >+ >+ > /* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */ > #ifndef NUM2LL > #define NUM2LL(x) NUM2LONG((x)) >@@ -28,12 +37,44 @@ > #ifndef RSTRING_PTR > # define RSTRING_PTR(x) RSTRING(x)->ptr > #endif >+#ifndef RSTRING_END >+# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x)) >+#endif > #ifndef RARRAY_LEN > # define RARRAY_LEN(x) RARRAY(x)->len > #endif > #ifndef RARRAY_PTR > # define RARRAY_PTR(x) RARRAY(x)->ptr > #endif >+#ifndef RFLOAT_VALUE >+# define RFLOAT_VALUE(x) RFLOAT(x)->value >+#endif >+#ifndef DOUBLE2NUM >+# define DOUBLE2NUM(x) rb_float_new(x) >+#endif >+#ifndef RHASH_TBL >+# define RHASH_TBL(x) (RHASH(x)->tbl) >+#endif >+#ifndef RHASH_ITER_LEV >+# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev) >+#endif >+#ifndef RHASH_IFNONE >+# define RHASH_IFNONE(x) (RHASH(x)->ifnone) >+#endif >+#ifndef RHASH_SIZE >+# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries) >+#endif >+#ifndef RHASH_EMPTY_P >+# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0) >+#endif >+#ifndef RSTRUCT_LEN >+# define RSTRUCT_LEN(x) RSTRUCT(x)->len >+#endif >+#ifndef RSTRUCT_PTR >+# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr >+#endif >+ >+ > > /* > * Need to be very careful about how these macros are defined, especially >@@ -95,3 +136,4 @@ > #define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new") > #endif > >+static VALUE _mSWIG = Qnil; >--- subversion/bindings/swig/proxy/swigrun.swg 2008-07-24 06:39:27.000000000 +0100 >+++ subversion/bindings/swig/proxy/swigrun.swg 2008-06-26 09:48:55.000000000 +0100 >@@ -7,7 +7,7 @@ > > /* This should only be incremented when either the layout of swig_type_info changes, > or for whatever reason, the runtime changes incompatibly */ >-#define SWIG_RUNTIME_VERSION "3" >+#define SWIG_RUNTIME_VERSION "4" > > /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ > #ifdef SWIG_TYPE_TABLE >@@ -42,6 +42,7 @@ > > /* Flags for pointer conversions */ > #define SWIG_POINTER_DISOWN 0x1 >+#define SWIG_CAST_NEW_MEMORY 0x2 > > /* Flags for new pointer objects */ > #define SWIG_POINTER_OWN 0x1 >@@ -182,10 +183,10 @@ SWIGINTERNINLINE int SWIG_CheckState(int > extern "C" { > #endif > >-typedef void *(*swig_converter_func)(void *); >+typedef void *(*swig_converter_func)(void *, int *); > typedef struct swig_type_info *(*swig_dycast_func)(void **); > >-/* Structure to store inforomation on one type */ >+/* Structure to store information on one type */ > typedef struct swig_type_info { > const char *name; /* mangled name of this type */ > const char *str; /* human readable name of this type */ >@@ -230,7 +231,7 @@ SWIG_TypeNameComp(const char *f1, const > while ((*f2 == ' ') && (f2 != l2)) ++f2; > if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; > } >- return (l1 - f1) - (l2 - f2); >+ return (int)((l1 - f1) - (l2 - f2)); > } > > /* >@@ -312,8 +313,8 @@ SWIG_TypeCheckStruct(swig_type_info *fro > Cast a pointer up an inheritance hierarchy > */ > SWIGRUNTIMEINLINE void * >-SWIG_TypeCast(swig_cast_info *ty, void *ptr) { >- return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); >+SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) { >+ return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory); > } > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 235584
:
163688
|
163707