fix for smart_pointers + friends, fix for errant Delete
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6914 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6e0f299006
commit
bc65d87973
2 changed files with 4 additions and 2 deletions
|
|
@ -13,6 +13,8 @@
|
|||
static int zx;
|
||||
|
||||
static int boo() { return 0;}
|
||||
|
||||
friend int foo(Foo* foo) { return 0;}
|
||||
};
|
||||
|
||||
class Bar {
|
||||
|
|
|
|||
|
|
@ -272,7 +272,8 @@ class Allocate : public Dispatcher {
|
|||
} else if (Strcmp(nodeType(c),"cdecl") == 0) {
|
||||
if (!Getattr(c,"feature:ignore")) {
|
||||
String *storage = Getattr(c,"storage");
|
||||
if (!((Cmp(storage,"typedef") == 0))) {
|
||||
if (!((Cmp(storage,"typedef") == 0))
|
||||
&& !((Cmp(storage,"friend") == 0))) {
|
||||
String *name = Getattr(c,"name");
|
||||
String *symname = Getattr(c,"sym:name");
|
||||
Node *e = Swig_symbol_clookup_local(name,0);
|
||||
|
|
@ -321,7 +322,6 @@ class Allocate : public Dispatcher {
|
|||
} else {
|
||||
Append(methods,cp);
|
||||
}
|
||||
Delete(cp);
|
||||
cc = Getattr(cc,"sym:nextSibling");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue