last fixes for namespaces
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6607 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
8c72fe206d
commit
0fe5c56436
1 changed files with 8 additions and 1 deletions
|
|
@ -723,7 +723,14 @@ static String *resolve_namespace_class(String *cname) {
|
|||
Node *ns;
|
||||
String *prefix = Swig_scopename_prefix(cname);
|
||||
String *base = Swig_scopename_last(cname);
|
||||
if (!prefix) {
|
||||
if (prefix && (Strncmp(prefix,"::",2) == 0)) {
|
||||
String *nprefix = NewString(Char(prefix)+2);
|
||||
Delete(prefix);
|
||||
prefix= nprefix;
|
||||
Printf(stderr,"pb %s %s\n",prefix, base);
|
||||
}
|
||||
|
||||
if (!prefix || (Len(prefix) == 0)) {
|
||||
/* Use the global scope */
|
||||
Symtab *symtab = Swig_symbol_current();
|
||||
Node *pn = parentNode(symtab);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue