From 4e3bc83ad50b9a1883a838e8e804faf87a8fd959 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 30 Sep 2005 23:21:59 +0000 Subject: [PATCH] Modify following features to work as flags, so that they can be truely set and unset: exceptionclass git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7571 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/allocate.cxx | 4 ++-- Source/Modules/python.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Modules/allocate.cxx b/Source/Modules/allocate.cxx index 78797922b..9f4dae3a2 100644 --- a/Source/Modules/allocate.cxx +++ b/Source/Modules/allocate.cxx @@ -467,8 +467,8 @@ class Allocate : public Dispatcher { } Node *c = Swig_symbol_clookup(t,0); if (c) { - if (!Getattr(c,"feature:exceptionclass")) { - Setattr(c,"feature:exceptionclass","1"); + if (!GetFlag(c,"feature:exceptionclass")) { + SetFlag(c,"feature:exceptionclass"); } } p = nextSibling(p); diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 9d8b5abf0..b08123464 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -1954,7 +1954,7 @@ public: have_constructor = 0; have_repr = 0; - if (checkAttribute(n,"feature:exceptionclass","1")) { + if (GetFlag(n,"feature:exceptionclass")) { classic = 1; modern = 0; }