Fix %$ismember %rename predicate for members added via %extend

Bug reported was incorrect renaming of PHP built-in functions, such as
next. See PHPFN in phpkw.swg.

Add some tests for the %rename predicates.
This commit is contained in:
William S Fulton 2014-02-18 07:30:55 +00:00
commit 9cbd742b66
5 changed files with 95 additions and 2 deletions

View file

@ -356,10 +356,13 @@ static void add_symbols(Node *n) {
}
Delete(prefix);
}
Setattr(n,"ismember","1");
}
}
if (!isfriend && (inclass || extendmode)) {
Setattr(n,"ismember","1");
}
if (!isfriend && inclass) {
if ((cplus_mode != CPLUS_PUBLIC)) {
only_csymbol = 1;