fix C + enums + struct
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8747 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2e8cc8a2de
commit
ceaeb49a9f
3 changed files with 13 additions and 2 deletions
|
|
@ -20,6 +20,7 @@
|
|||
char cvsroot_typepass_cxx[] = "$Header$";
|
||||
|
||||
#include "swigmod.h"
|
||||
#include "cparse.h"
|
||||
|
||||
struct normal_node {
|
||||
Symtab *symtab;
|
||||
|
|
@ -726,7 +727,7 @@ class TypePass : private Dispatcher {
|
|||
if (!value) value = name;
|
||||
if (Strcmp(value,name) == 0) {
|
||||
String *new_value;
|
||||
if ((nsname) || (inclass)) {
|
||||
if (((nsname) || (inclass)) && cparse_cplusplus ) {
|
||||
new_value = NewStringf("%s::%s", SwigType_namestr(Swig_symbol_qualified(n)), value);
|
||||
} else {
|
||||
new_value = NewString(value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue