Abstract directors and typemap fixes.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5024 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Mark Rose 2003-08-30 05:03:34 +00:00
commit c1b57370b6
10 changed files with 97 additions and 17 deletions

View file

@ -1640,6 +1640,8 @@ int Language::classDeclaration(Node *n) {
int Language::classHandler(Node *n) {
bool hasDirector = Swig_directorclass(n);
/* Emit all of the class members */
emit_children(n);
@ -1659,7 +1661,7 @@ int Language::classHandler(Node *n) {
if (!ImportMode && (GenerateDefault && !Getattr(n,"feature:nodefault"))) {
if (!Getattr(n,"has_constructor") && !Getattr(n,"allocate:has_constructor") && (Getattr(n,"allocate:default_constructor"))) {
/* Note: will need to change this to support different kinds of classes */
if (!Abstract) {
if (!Abstract || hasDirector) {
Setattr(CurrentClass,"feature:new","1");
constructorHandler(CurrentClass);
Delattr(CurrentClass,"feature:new");
@ -1671,7 +1673,7 @@ int Language::classHandler(Node *n) {
}
/* emit director disown method */
if (Getattr(n, "vtable")) {
if (hasDirector) {
classDirectorDisown(n);
}