Revert support for %extend and memberin typemaps added in swig-1.3.39. The memberin typemaps are ignored again for member variables within a %extend block. Documentation inconsistency reported by Torsten Landschoff.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11762 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2009-12-02 00:01:31 +00:00
commit 2bd190dbf1
9 changed files with 85 additions and 38 deletions

View file

@ -2493,7 +2493,7 @@ instead of a method. To do this, you might write some code like this:
// Now supply the implementation of the Vector_magnitude_get function
%{
const double Vector_magnitude_get(Vector *v) {
return (const double) return sqrt(v->x*v->x+v->y*v->y+v->z*v->z);
return (const double) sqrt(v->x*v->x+v->y*v->y+v->z*v->z);
}
%}
@ -2512,10 +2512,10 @@ For example, consider this interface:
<div class="code">
<pre>
struct Person {
typedef struct {
char name[50];
...
}
} Person;
</pre>
</div>
@ -2527,12 +2527,12 @@ as follows to change this:
<div class="code">
<pre>
struct Person {
typedef struct {
%extend {
char *name;
}
...
}
} Person;
// Specific implementation of set/get functions
%{