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$";
|
static char rcsId[] = "$Id$";
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <GSWeb/GSWeb.h>
|
||||||
|
#ifdef NOEXTENSIONS
|
||||||
|
#else
|
||||||
#include <extensions/NGReflection.h>
|
#include <extensions/NGReflection.h>
|
||||||
#include <extensions/GarbageCollector.h>
|
#include <extensions/GarbageCollector.h>
|
||||||
|
#endif
|
||||||
#if GDL2 // GDL2 implementation
|
#if GDL2 // GDL2 implementation
|
||||||
#include <EOAccess/EOModelGroup.h>
|
#include <EOAccess/EOModelGroup.h>
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef TCSDB
|
||||||
|
#include <TCSimpleDB/TCSimpleDB.h>
|
||||||
|
#endif
|
||||||
#include "stacktrace.h"
|
#include "stacktrace.h"
|
||||||
#include "attach.h"
|
#include "attach.h"
|
||||||
|
|
||||||
|
@ -4213,10 +4219,14 @@ selfLockn,
|
||||||
#if GDL2 // GDL2 implementation
|
#if GDL2 // GDL2 implementation
|
||||||
//OK
|
//OK
|
||||||
return [EOModelGroup defaultGroup];
|
return [EOModelGroup defaultGroup];
|
||||||
|
#else
|
||||||
|
#ifdef TCSDB
|
||||||
|
return [DBModelGroup defaultGroup];
|
||||||
#else
|
#else
|
||||||
LOGClassFnNotImplemented();
|
LOGClassFnNotImplemented();
|
||||||
return nil;
|
return nil;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
@ -4407,6 +4417,14 @@ selfLockn,
|
||||||
+(BOOL)createUnknownComponentClasses:(NSArray*)classes
|
+(BOOL)createUnknownComponentClasses:(NSArray*)classes
|
||||||
superClassName:(NSString*)aSuperClassName
|
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;
|
BOOL ok=YES;
|
||||||
LOGClassFnStart();
|
LOGClassFnStart();
|
||||||
if ([classes count]>0)
|
if ([classes count]>0)
|
||||||
|
@ -4478,6 +4496,7 @@ selfLockn,
|
||||||
};
|
};
|
||||||
LOGClassFnStop();
|
LOGClassFnStop();
|
||||||
return ok;
|
return ok;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
//--------------------------------------------------------------------
|
//--------------------------------------------------------------------
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
#if !GDL2
|
#if !GDL2
|
||||||
#ifdef TCSDB
|
#ifdef TCSDB
|
||||||
#import <TCSimpleDB/EODefines.h>
|
#import <TCSimpleDB/TCSimpleDB.h>
|
||||||
#import <TCSimpleDB/EODefines.h>
|
#import <TCSimpleDB/EODefines.h>
|
||||||
#else // TCSDB
|
#else // TCSDB
|
||||||
#include <eoaccess/EOModel.h>
|
#include <eoaccess/EOModel.h>
|
||||||
|
|
|
@ -30,7 +30,10 @@
|
||||||
static char rcsId[] = "$Id$";
|
static char rcsId[] = "$Id$";
|
||||||
|
|
||||||
#include <GSWeb/GSWeb.h>
|
#include <GSWeb/GSWeb.h>
|
||||||
|
#ifdef NOEXTENSIONS
|
||||||
|
#else
|
||||||
#include <extensions/GarbageCollector.h>
|
#include <extensions/GarbageCollector.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
//====================================================================
|
//====================================================================
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue