From 7729fbc5daa481d957d30e16735eec771e074c35 Mon Sep 17 00:00:00 2001 From: dwetzel Date: Tue, 6 Aug 2002 22:06:41 +0000 Subject: [PATCH] added support for NOEXTENSIONS and TCSDB git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gsweb/trunk@14236 72102866-910b-0410-8b05-ffd578937521 --- GSWeb.framework/GSWApplication.m | 19 +++++++++++++++++++ GSWeb.framework/GSWDisplayGroup.h | 2 +- GSWeb.framework/GSWSession.m | 3 +++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/GSWeb.framework/GSWApplication.m b/GSWeb.framework/GSWApplication.m index c040cbd..332ead5 100644 --- a/GSWeb.framework/GSWApplication.m +++ b/GSWeb.framework/GSWApplication.m @@ -30,11 +30,17 @@ static char rcsId[] = "$Id$"; #include +#ifdef NOEXTENSIONS +#else #include #include +#endif #if GDL2 // GDL2 implementation #include #endif +#ifdef TCSDB +#include +#endif #include "stacktrace.h" #include "attach.h" @@ -4213,10 +4219,14 @@ selfLockn, #if GDL2 // GDL2 implementation //OK return [EOModelGroup defaultGroup]; +#else +#ifdef TCSDB + return [DBModelGroup defaultGroup]; #else LOGClassFnNotImplemented(); return nil; #endif +#endif }; //-------------------------------------------------------------------- @@ -4407,6 +4417,14 @@ selfLockn, +(BOOL)createUnknownComponentClasses:(NSArray*)classes superClassName:(NSString*)aSuperClassName { +#ifdef NOEXTENSIONS + ExceptionRaise(@"GSWApplication", + @"GSWApplication: createUnknownComponentClasses: %@ superClassName: %@\n works only when you do not define NOEXTENSIONS while compiling GSWeb", + classes, aSuperClassName); + + return NO; + +#else BOOL ok=YES; LOGClassFnStart(); if ([classes count]>0) @@ -4478,6 +4496,7 @@ selfLockn, }; LOGClassFnStop(); return ok; +#endif }; //-------------------------------------------------------------------- diff --git a/GSWeb.framework/GSWDisplayGroup.h b/GSWeb.framework/GSWDisplayGroup.h index 82efe84..9266a30 100644 --- a/GSWeb.framework/GSWDisplayGroup.h +++ b/GSWeb.framework/GSWDisplayGroup.h @@ -34,7 +34,7 @@ #if !GDL2 #ifdef TCSDB - #import + #import #import #else // TCSDB #include diff --git a/GSWeb.framework/GSWSession.m b/GSWeb.framework/GSWSession.m index 8c9cb4a..dda44e1 100644 --- a/GSWeb.framework/GSWSession.m +++ b/GSWeb.framework/GSWSession.m @@ -30,7 +30,10 @@ static char rcsId[] = "$Id$"; #include +#ifdef NOEXTENSIONS +#else #include +#endif //====================================================================