mirror of
https://github.com/gnustep/libs-gsweb.git
synced 2025-02-24 04:01:16 +00:00
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
This commit is contained in:
parent
1e53c66863
commit
7729fbc5da
3 changed files with 23 additions and 1 deletions
|
@ -30,11 +30,17 @@
|
|||
static char rcsId[] = "$Id$";
|
||||
|
||||
#include <GSWeb/GSWeb.h>
|
||||
#ifdef NOEXTENSIONS
|
||||
#else
|
||||
#include <extensions/NGReflection.h>
|
||||
#include <extensions/GarbageCollector.h>
|
||||
#endif
|
||||
#if GDL2 // GDL2 implementation
|
||||
#include <EOAccess/EOModelGroup.h>
|
||||
#endif
|
||||
#ifdef TCSDB
|
||||
#include <TCSimpleDB/TCSimpleDB.h>
|
||||
#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
|
||||
};
|
||||
|
||||
//--------------------------------------------------------------------
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
#if !GDL2
|
||||
#ifdef TCSDB
|
||||
#import <TCSimpleDB/EODefines.h>
|
||||
#import <TCSimpleDB/TCSimpleDB.h>
|
||||
#import <TCSimpleDB/EODefines.h>
|
||||
#else // TCSDB
|
||||
#include <eoaccess/EOModel.h>
|
||||
|
|
|
@ -30,7 +30,10 @@
|
|||
static char rcsId[] = "$Id$";
|
||||
|
||||
#include <GSWeb/GSWeb.h>
|
||||
#ifdef NOEXTENSIONS
|
||||
#else
|
||||
#include <extensions/GarbageCollector.h>
|
||||
#endif
|
||||
|
||||
//====================================================================
|
||||
|
||||
|
|
Loading…
Reference in a new issue