A few comment tweaks.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9348 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-09-24 17:33:32 +00:00
commit 4b497408aa

View file

@ -2506,17 +2506,17 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
tscope = Swig_symbol_current(); /* Get the current scope */ tscope = Swig_symbol_current(); /* Get the current scope */
/* If the class name is qualified. We need to create or lookup namespace entries */ /* If the class name is qualified, we need to create or lookup namespace entries */
if (!inclass) { if (!inclass) {
$5 = resolve_node_scope($5); $5 = resolve_node_scope($5);
} }
/* /*
we use the new namespace entry 'nscope' only to We use the new namespace entry 'nscope' only to
emit the template node. The template parameters are emit the template node. The template parameters are
resolved in the current 'tscope'. resolved in the current 'tscope'.
this is closer to the C++ (typedef) behavior. This is closer to the C++ (typedef) behavior.
*/ */
n = Swig_cparse_template_locate($5,$7,tscope); n = Swig_cparse_template_locate($5,$7,tscope);
@ -2688,8 +2688,8 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
/* Merge in addmethods for this class */ /* Merge in addmethods for this class */
/* !!! This may be broken. We may have to add the addmethods at the beginning of /* !!! This may be broken. We may have to add the
the class */ addmethods at the beginning of the class */
if (extendhash) { if (extendhash) {
String *stmp = 0; String *stmp = 0;
@ -2751,7 +2751,7 @@ template_directive: SWIGTEMPLATE LPAREN idstringopt RPAREN idcolonnt LESSTHAN va
nn = Getattr(nn,"sym:nextSibling"); /* repeat for overloaded templated functions. If a templated class there will never be a sibling. */ nn = Getattr(nn,"sym:nextSibling"); /* repeat for overloaded templated functions. If a templated class there will never be a sibling. */
} }
} }
Swig_symbol_setscope(tscope); Swig_symbol_setscope(tscope);
Delete(Namespaceprefix); Delete(Namespaceprefix);
Namespaceprefix = Swig_symbol_qualifiedscopename(0); Namespaceprefix = Swig_symbol_qualifiedscopename(0);
} }