add the ismember and hasvalue attributes and the corresponing %rename predicates

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8414 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2006-01-13 18:04:59 +00:00
commit 392799385f
2 changed files with 6 additions and 2 deletions

View file

@ -322,7 +322,7 @@ static void add_symbols(Node *n) {
}
set_parentNode(n,current_class);
Setattr(n,"memberof",current_class);
Setattr(n,"ismember","1");
}
}
if (!isfriend && inclass) {
@ -364,6 +364,9 @@ static void add_symbols(Node *n) {
} else {
SwigType *type = Getattr(n, k_type);
Setattr(n,k_kind,"variable");
if (Getattr(n,k_value)) {
Setattr(n,"hasvalue","1");
}
if (type && !SwigType_ismutable(type)) {
SetFlag(n,"feature:immutable");
}