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:
parent
bf892ecf11
commit
aa9c5cc68e
1 changed files with 3 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue