fixes for const char[]
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5931 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
12af360d6f
commit
08718830bf
2 changed files with 2 additions and 3 deletions
|
|
@ -986,8 +986,7 @@ public:
|
|||
Printf(f_shadow_stubs,"%s = %s.%s\n", global_name, module, global_name);
|
||||
}
|
||||
}
|
||||
|
||||
if ((shadow) && (SwigType_isconst(t))) {
|
||||
if ((shadow) && (!SwigType_ismutable(t))) {
|
||||
if (!in_class) {
|
||||
Printf(f_shadow_stubs,"%s = %s.%s\n", iname, global_name, iname);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ int SwigType_isconst(SwigType *t) {
|
|||
int SwigType_ismutable(SwigType *t) {
|
||||
int r;
|
||||
SwigType *qt = SwigType_typedef_resolve_all(t);
|
||||
if (SwigType_isreference(qt)) {
|
||||
if (SwigType_isreference(qt) || SwigType_isarray(qt)) {
|
||||
Delete(SwigType_pop(qt));
|
||||
}
|
||||
r = SwigType_isconst(qt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue