mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
tweak to raise exception in node init if we don't have libxml2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39116 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f341ff0528
commit
58362f14b5
2 changed files with 6 additions and 7 deletions
|
@ -531,7 +531,6 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
|
|||
|
||||
#else
|
||||
|
||||
#import "Foundation/NSException.h"
|
||||
#import "Foundation/NSXMLDocument.h"
|
||||
|
||||
@implementation NSXMLDocument
|
||||
|
@ -558,12 +557,7 @@ GS_PRIVATE_INTERNAL(NSXMLDocument)
|
|||
|
||||
- (id) init
|
||||
{
|
||||
NSString *className = NSStringFromClass([self class]);
|
||||
|
||||
DESTROY(self);
|
||||
[NSException raise: NSGenericException
|
||||
format: @"%@ - no libxml2 at configure time", className];
|
||||
return nil;
|
||||
return [super init];
|
||||
}
|
||||
|
||||
- (id) initWithContentsOfURL: (NSURL*)url
|
||||
|
|
|
@ -2092,6 +2092,7 @@ execute_xpath(xmlNodePtr node, NSString *xpath_exp, NSDictionary *constants,
|
|||
|
||||
#else
|
||||
|
||||
#import "Foundation/NSException.h"
|
||||
#import "Foundation/NSXMLNode.h"
|
||||
|
||||
@implementation NSXMLNode
|
||||
|
@ -2221,7 +2222,11 @@ execute_xpath(xmlNodePtr node, NSString *xpath_exp, NSDictionary *constants,
|
|||
|
||||
- (id) init
|
||||
{
|
||||
NSString *className = NSStringFromClass([self class]);
|
||||
|
||||
DESTROY(self);
|
||||
[NSException raise: NSGenericException
|
||||
format: @"%@ - no libxml2 at configure time", className];
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue