mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Strings and data tidied and simplified - GSXML bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7622 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b2b79c362d
commit
622d38a368
5 changed files with 66 additions and 21 deletions
|
@ -535,7 +535,7 @@ static NSMapTable *nodeNames = 0;
|
|||
}
|
||||
else
|
||||
{
|
||||
[d setObject: nil
|
||||
[d setObject: @""
|
||||
forKey: (*csImp)(NSString_class, csSel, name)];
|
||||
}
|
||||
prop = prop->next;
|
||||
|
@ -1213,6 +1213,15 @@ internalSubsetFunction(void *ctx, const char *name,
|
|||
systemID: (*csImp)(NSString_class, csSel, SystemID)];
|
||||
}
|
||||
|
||||
static void
|
||||
externalSubsetFunction(void *ctx, const char *name,
|
||||
const xmlChar *ExternalID, const xmlChar *SystemID)
|
||||
{
|
||||
[HANDLER externalSubset: (*csImp)(NSString_class, csSel, name)
|
||||
externalID: (*csImp)(NSString_class, csSel, ExternalID)
|
||||
systemID: (*csImp)(NSString_class, csSel, SystemID)];
|
||||
}
|
||||
|
||||
static xmlParserInputPtr
|
||||
resolveEntityFunction(void *ctx, const char *publicId, const char *systemId)
|
||||
{
|
||||
|
@ -1408,6 +1417,7 @@ fatalErrorFunction(void *ctx, const char *msg, ...)
|
|||
|
||||
#define LIB ((xmlSAXHandlerPtr)lib)
|
||||
LIB->internalSubset = internalSubsetFunction;
|
||||
LIB->externalSubset = externalSubsetFunction;
|
||||
LIB->isStandalone = isStandaloneFunction;
|
||||
LIB->hasInternalSubset = hasInternalSubsetFunction;
|
||||
LIB->hasExternalSubset = hasExternalSubsetFunction;
|
||||
|
@ -1581,6 +1591,12 @@ fatalErrorFunction(void *ctx, const char *msg, ...)
|
|||
return 0;
|
||||
}
|
||||
|
||||
- (void) externalSubset: (NSString*)name
|
||||
externalID: (NSString*)externalID
|
||||
systemID: (NSString*)systemID
|
||||
{
|
||||
}
|
||||
|
||||
- (void*) getEntity: (NSString*)name
|
||||
{
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue