fixes for %template+member/static methods

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6636 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-11-03 00:59:38 +00:00
commit 6227611fa7
3 changed files with 65 additions and 2 deletions

View file

@ -806,10 +806,17 @@ static String *resolve_node_scope(String *cname) {
Printf(sname,"::%s",si.item);
}
}
if (!nscope) {
nscope = new_node("namespace");
Setattr(nscope,"symtab", get_global_scope());
}
nscope_inner = Swig_symbol_clookup(sname,0);
Printf(sname,"::%s",base);
Swig_symbol_setscope(Getattr(nscope_inner,"symtab"));
Delete(base);
base = sname;
break;
}
ns2 = new_node("namespace");