conversion operator %rename improvements - the exact operator name must be specified now, rather than a fully qualified operator name

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9837 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-05-26 00:06:45 +00:00
commit 3e5f30c94f
5 changed files with 199 additions and 44 deletions

View file

@ -702,8 +702,7 @@ int yylex(void) {
needspace = 0;
}
}
yylval.str = Swig_symbol_string_qualify(s,0);
/* Printf(stdout,"OPERATOR '%s'\n", yylval.str); */
yylval.str = s;
if (!rename_active) {
String *cs;
char *t = Char(s) + 9;
@ -737,7 +736,8 @@ int yylex(void) {
return COPERATOR;
}
}
if (termtoken) Scanner_pushtoken(scan, termtoken, termvalue);
if (termtoken)
Scanner_pushtoken(scan, termtoken, termvalue);
return (OPERATOR);
}
}