Fixed [ 797573 ] no way to rename classes coming from C structures.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5051 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2003-09-01 17:54:22 +00:00
commit aa9c5cc68e

View file

@ -252,6 +252,8 @@ static String *make_name(String *name,SwigType *decl) {
}
return s;
}
if (!name) return 0;
/* Check to see if the name is in the hash */
if (!rename_hash) {
@ -2499,7 +2501,7 @@ cpp_class_decl :
name = $7.id;
Setattr($$,"tdname",name);
Setattr($$,"name",name);
if (!class_rename) class_rename = NewString(name);
/* if (!class_rename) class_rename = NewString(name); */
Swig_symbol_setscopename(name);
/* If a proper name given, we use that as the typedef, not unnamed */