following Bill's labels patch, we add swiglabels.swg

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7015 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-02-28 23:59:12 +00:00
commit b5875c21bb
5 changed files with 165 additions and 184 deletions

View file

@ -279,7 +279,7 @@ Swig_cfunction_call(String_or_char *name, ParmList *parms) {
nname = SwigType_namestr(name);
/*
SWIG_TEMPLATE_DISAMBIGUATOR is compiler dependent (common.swg),
SWIGTEMPLATEDISAMBIGUATOR is compiler dependent (swiglabels.swg),
- SUN Studio 9 requires 'template',
- gcc-3.4 forbids the use of 'template'.
the rest seems not caring very much,
@ -290,7 +290,7 @@ Swig_cfunction_call(String_or_char *name, ParmList *parms) {
if (!prefix || Len(prefix) == 0) {
Printf(func,"%s(", last);
} else {
Printf(func,"%s::SWIG_TEMPLATE_DISAMBIGUATOR %s(", prefix, last);
Printf(func,"%s::SWIGTEMPLATEDISAMBIGUATOR %s(", prefix, last);
}
Delete(prefix);
Delete(last);
@ -360,13 +360,13 @@ Swig_cmethod_call(String_or_char *name, ParmList *parms, String_or_char *self) {
}
/*
SWIG_TEMPLATE_DESIMBUAGATOR is compiler dependent (common.swg),
SWIGTEMPLATEDESIMBUAGATOR is compiler dependent (swiglabels.swg),
- SUN Studio 9 requires 'template',
- gcc-3.4 forbids the use of 'template'.
the rest seems not caring very much,
*/
if (SwigType_istemplate(name)) {
Printf(func,"SWIG_TEMPLATE_DISAMBIGUATOR %s(", nname);
Printf(func,"SWIGTEMPLATEDISAMBIGUATOR %s(", nname);
} else {
Printf(func,"%s(", nname);
}