summaryrefslogtreecommitdiff
path: root/Source/Swig
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2022-11-12 11:45:20 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2022-11-12 11:46:52 +0000
commite3ccabbd4dc22a7e59a9d1b93308d96a97d35328 (patch)
treee69b3c54991ab58d2f4136c95d0af99eba53e941 /Source/Swig
parent46f27784127b95a51561a01ae453d8c875b00d06 (diff)
downloadswig-e3ccabbd4dc22a7e59a9d1b93308d96a97d35328.tar.gz
Simpler names when using SwigType_manglestr for templates
The default template name is generated instead of one with the default template parameter. Used in various places such as the type system.
Diffstat (limited to 'Source/Swig')
-rw-r--r--Source/Swig/stype.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Swig/stype.c b/Source/Swig/stype.c
index f227778f6..79e011c77 100644
--- a/Source/Swig/stype.c
+++ b/Source/Swig/stype.c
@@ -1190,7 +1190,9 @@ static String *manglestr_default(const SwigType *s) {
SwigType *type = ss;
if (SwigType_istemplate(ss)) {
- SwigType *ty = Swig_symbol_template_deftype(ss, 0);
+ SwigType *dt = Swig_symbol_template_deftype(ss, 0);
+ String *ty = Swig_symbol_type_qualify(dt, 0);
+ Delete(dt);
Delete(ss);
ss = ty;
type = ss;